2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libjpeg 8.3.0.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
568 PACKAGE_NAME='libjpeg'
569 PACKAGE_TARNAME='libjpeg'
570 PACKAGE_VERSION='8.3.0'
571 PACKAGE_STRING='libjpeg 8.3.0'
575 # Factoring default headers for most tests.
576 ac_includes_default="\
578 #ifdef HAVE_SYS_TYPES_H
579 # include <sys/types.h>
581 #ifdef HAVE_SYS_STAT_H
582 # include <sys/stat.h>
588 # ifdef HAVE_STDLIB_H
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #ifdef HAVE_STRINGS_H
599 # include <strings.h>
601 #ifdef HAVE_INTTYPES_H
602 # include <inttypes.h>
611 ac_subst_vars='am__EXEEXT_FALSE
636 HAVE_LD_VERSION_SCRIPT_FALSE
637 HAVE_LD_VERSION_SCRIPT_TRUE
640 MAINTAINER_MODE_FALSE
673 INSTALL_STRIP_PROGRAM
727 program_transform_name
740 enable_option_checking
742 enable_dependency_tracking
743 enable_maintainer_mode
744 enable_ld_version_script
754 ac_precious_vars='build_alias
772 # Initialize some variables set by options.
774 ac_init_version=false
775 ac_unrecognized_opts=
777 # The variables have the same names as the options, with
778 # dashes changed to underlines.
786 program_transform_name=s,x,x,
794 # Installation directory options.
795 # These are left unexpanded so users can "make install exec_prefix=/foo"
796 # and all the variables that are supposed to be based on exec_prefix
797 # by default will actually change.
798 # Use braces instead of parens because sh, perl, etc. also accept them.
799 # (The list follows the same order as the GNU Coding Standards.)
800 bindir='${exec_prefix}/bin'
801 sbindir='${exec_prefix}/sbin'
802 libexecdir='${exec_prefix}/libexec'
803 datarootdir='${prefix}/share'
804 datadir='${datarootdir}'
805 sysconfdir='${prefix}/etc'
806 sharedstatedir='${prefix}/com'
807 localstatedir='${prefix}/var'
808 includedir='${prefix}/include'
809 oldincludedir='/usr/include'
810 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811 infodir='${datarootdir}/info'
816 libdir='${exec_prefix}/lib'
817 localedir='${datarootdir}/locale'
818 mandir='${datarootdir}/man'
824 # If the previous option needs an argument, assign it.
825 if test -n "$ac_prev"; then
826 eval $ac_prev=\$ac_option
832 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837 # Accept the important Cygnus configure options, so we can diagnose typos.
839 case $ac_dashdash$ac_option in
843 -bindir | --bindir | --bindi | --bind | --bin | --bi)
845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
848 -build | --build | --buil | --bui | --bu)
849 ac_prev=build_alias ;;
850 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851 build_alias=$ac_optarg ;;
853 -cache-file | --cache-file | --cache-fil | --cache-fi \
854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855 ac_prev=cache_file ;;
856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858 cache_file=$ac_optarg ;;
861 cache_file=config.cache ;;
863 -datadir | --datadir | --datadi | --datad)
865 -datadir=* | --datadir=* | --datadi=* | --datad=*)
866 datadir=$ac_optarg ;;
868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869 | --dataroo | --dataro | --datar)
870 ac_prev=datarootdir ;;
871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873 datarootdir=$ac_optarg ;;
875 -disable-* | --disable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 as_fn_error $? "invalid feature name: $ac_useropt"
880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
889 eval enable_$ac_useropt=no ;;
891 -docdir | --docdir | --docdi | --doc | --do)
893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
901 -enable-* | --enable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
915 eval enable_$ac_useropt=\$ac_optarg ;;
917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919 | --exec | --exe | --ex)
920 ac_prev=exec_prefix ;;
921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923 | --exec=* | --exe=* | --ex=*)
924 exec_prefix=$ac_optarg ;;
926 -gas | --gas | --ga | --g)
927 # Obsolete; use --with-gas.
930 -help | --help | --hel | --he | -h)
932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933 ac_init_help=recursive ;;
934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935 ac_init_help=short ;;
937 -host | --host | --hos | --ho)
938 ac_prev=host_alias ;;
939 -host=* | --host=* | --hos=* | --ho=*)
940 host_alias=$ac_optarg ;;
942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946 htmldir=$ac_optarg ;;
948 -includedir | --includedir | --includedi | --included | --include \
949 | --includ | --inclu | --incl | --inc)
950 ac_prev=includedir ;;
951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952 | --includ=* | --inclu=* | --incl=* | --inc=*)
953 includedir=$ac_optarg ;;
955 -infodir | --infodir | --infodi | --infod | --info | --inf)
957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958 infodir=$ac_optarg ;;
960 -libdir | --libdir | --libdi | --libd)
962 -libdir=* | --libdir=* | --libdi=* | --libd=*)
965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966 | --libexe | --libex | --libe)
967 ac_prev=libexecdir ;;
968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969 | --libexe=* | --libex=* | --libe=*)
970 libexecdir=$ac_optarg ;;
972 -localedir | --localedir | --localedi | --localed | --locale)
974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975 localedir=$ac_optarg ;;
977 -localstatedir | --localstatedir | --localstatedi | --localstated \
978 | --localstate | --localstat | --localsta | --localst | --locals)
979 ac_prev=localstatedir ;;
980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982 localstatedir=$ac_optarg ;;
984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
990 # Obsolete; use --without-fp.
993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994 | --no-cr | --no-c | -n)
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003 | --oldin | --oldi | --old | --ol | --o)
1004 ac_prev=oldincludedir ;;
1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008 oldincludedir=$ac_optarg ;;
1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013 prefix=$ac_optarg ;;
1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016 | --program-pre | --program-pr | --program-p)
1017 ac_prev=program_prefix ;;
1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020 program_prefix=$ac_optarg ;;
1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023 | --program-suf | --program-su | --program-s)
1024 ac_prev=program_suffix ;;
1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027 program_suffix=$ac_optarg ;;
1029 -program-transform-name | --program-transform-name \
1030 | --program-transform-nam | --program-transform-na \
1031 | --program-transform-n | --program-transform- \
1032 | --program-transform | --program-transfor \
1033 | --program-transfo | --program-transf \
1034 | --program-trans | --program-tran \
1035 | --progr-tra | --program-tr | --program-t)
1036 ac_prev=program_transform_name ;;
1037 -program-transform-name=* | --program-transform-name=* \
1038 | --program-transform-nam=* | --program-transform-na=* \
1039 | --program-transform-n=* | --program-transform-=* \
1040 | --program-transform=* | --program-transfor=* \
1041 | --program-transfo=* | --program-transf=* \
1042 | --program-trans=* | --program-tran=* \
1043 | --progr-tra=* | --program-tr=* | --program-t=*)
1044 program_transform_name=$ac_optarg ;;
1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049 pdfdir=$ac_optarg ;;
1051 -psdir | --psdir | --psdi | --psd | --ps)
1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064 sbindir=$ac_optarg ;;
1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068 | --sharedst | --shareds | --shared | --share | --shar \
1070 ac_prev=sharedstatedir ;;
1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075 sharedstatedir=$ac_optarg ;;
1077 -site | --site | --sit)
1079 -site=* | --site=* | --sit=*)
1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085 srcdir=$ac_optarg ;;
1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088 | --syscon | --sysco | --sysc | --sys | --sy)
1089 ac_prev=sysconfdir ;;
1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092 sysconfdir=$ac_optarg ;;
1094 -target | --target | --targe | --targ | --tar | --ta | --t)
1095 ac_prev=target_alias ;;
1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097 target_alias=$ac_optarg ;;
1099 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1102 -version | --version | --versio | --versi | --vers | -V)
1103 ac_init_version=: ;;
1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid package name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1119 eval with_$ac_useropt=\$ac_optarg ;;
1121 -without-* | --without-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1135 eval with_$ac_useropt=no ;;
1138 # Obsolete; use --with-x.
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1155 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1156 Try \`$0 --help' for more information"
1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 case $ac_envvar in #(
1163 '' | [0-9]* | *[!_$as_cr_alnum]* )
1164 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1166 eval $ac_envvar=\$ac_optarg
1167 export $ac_envvar ;;
1170 # FIXME: should be removed in autoconf 3.0.
1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1180 if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 as_fn_error $? "missing argument to $ac_option"
1185 if test -n "$ac_unrecognized_opts"; then
1186 case $enable_option_checking in
1188 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1193 # Check all directory arguments for consistency.
1194 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195 datadir sysconfdir sharedstatedir localstatedir includedir \
1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197 libdir localedir mandir
1199 eval ac_val=\$$ac_var
1200 # Remove trailing slashes.
1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204 eval $ac_var=\$ac_val;;
1206 # Be sure to have absolute directory names.
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1219 target=$target_alias
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
1225 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1226 If a cross compiler is detected then cross compile mode will be used" >&2
1227 elif test "x$build_alias" != "x$host_alias"; then
1233 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235 test "$silent" = yes && exec 6>/dev/null
1238 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di=`ls -di .` &&
1240 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241 as_fn_error $? "working directory cannot be determined"
1242 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243 as_fn_error $? "pwd does not report name of working directory"
1246 # Find the source files, if location was not specified.
1247 if test -z "$srcdir"; then
1248 ac_srcdir_defaulted=yes
1249 # Try the directory containing this script, then the parent directory.
1250 ac_confdir=`$as_dirname -- "$as_myself" ||
1251 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252 X"$as_myself" : 'X\(//\)[^/]' \| \
1253 X"$as_myself" : 'X\(//\)$' \| \
1254 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255 $as_echo X"$as_myself" |
1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1278 ac_srcdir_defaulted=no
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1284 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1296 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 for ac_var in $ac_precious_vars; do
1299 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_env_${ac_var}_value=\$${ac_var}
1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306 # Report the --help message.
1308 if test "$ac_init_help" = "long"; then
1309 # Omit some internal or obsolete options to make the list less imposing.
1310 # This message is too long to be a string in the A/UX 3.1 sh.
1312 \`configure' configures libjpeg 8.3.0 to adapt to many kinds of systems.
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE. See below for descriptions of some of the useful variables.
1319 Defaults for the options are specified in brackets.
1322 -h, --help display this help and exit
1323 --help=short display options specific to this package
1324 --help=recursive display the short help of all the included packages
1325 -V, --version display version information and exit
1326 -q, --quiet, --silent do not print \`checking ...' messages
1327 --cache-file=FILE cache test results in FILE [disabled]
1328 -C, --config-cache alias for \`--cache-file=config.cache'
1329 -n, --no-create do not create output files
1330 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1332 Installation directories:
1333 --prefix=PREFIX install architecture-independent files in PREFIX
1334 [$ac_default_prefix]
1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1343 For better control, use the options below.
1345 Fine tuning of the installation directories:
1346 --bindir=DIR user executables [EPREFIX/bin]
1347 --sbindir=DIR system admin executables [EPREFIX/sbin]
1348 --libexecdir=DIR program executables [EPREFIX/libexec]
1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1352 --libdir=DIR object code libraries [EPREFIX/lib]
1353 --includedir=DIR C header files [PREFIX/include]
1354 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1357 --infodir=DIR info documentation [DATAROOTDIR/info]
1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1359 --mandir=DIR man documentation [DATAROOTDIR/man]
1360 --docdir=DIR documentation root [DATAROOTDIR/doc/libjpeg]
1361 --htmldir=DIR html documentation [DOCDIR]
1362 --dvidir=DIR dvi documentation [DOCDIR]
1363 --pdfdir=DIR pdf documentation [DOCDIR]
1364 --psdir=DIR ps documentation [DOCDIR]
1370 --program-prefix=PREFIX prepend PREFIX to installed program names
1371 --program-suffix=SUFFIX append SUFFIX to installed program names
1372 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377 --target=TARGET configure for building compilers for TARGET [HOST]
1381 if test -n "$ac_init_help"; then
1382 case $ac_init_help in
1383 short | recursive ) echo "Configuration of libjpeg 8.3.0:";;
1388 --disable-option-checking ignore unrecognized --enable/--with options
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --enable-silent-rules less verbose build output (undo: `make V=1')
1392 --disable-silent-rules verbose build output (undo: `make V=0')
1393 --disable-dependency-tracking speeds up one-time build
1394 --enable-dependency-tracking do not reject slow dependency extractors
1395 --enable-maintainer-mode enable make rules and dependencies not useful
1396 (and sometimes confusing) to the casual installer
1397 --enable-ld-version-script
1398 enable linker version script (default is enabled
1400 --enable-shared[=PKGS] build shared libraries [default=yes]
1401 --enable-static[=PKGS] build static libraries [default=yes]
1402 --enable-fast-install[=PKGS]
1403 optimize for fast installation [default=yes]
1404 --disable-libtool-lock avoid locking (might break parallel builds)
1405 --enable-maxmem=N enable use of temp files, set max mem usage to N MB
1408 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1409 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1410 --with-pic try to use only PIC/non-PIC objects [default=use
1412 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1413 --with-sysroot=DIR Search for dependent libraries within DIR
1414 (or the compiler's sysroot if not specified).
1416 Some influential environment variables:
1417 CC C compiler command
1418 CFLAGS C compiler flags
1419 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1420 nonstandard directory <lib dir>
1421 LIBS libraries to pass to the linker, e.g. -l<library>
1422 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1423 you have headers in a nonstandard directory <include dir>
1426 Use these variables to override the choices made by `configure' or to help
1427 it to find libraries and programs with nonstandard names/locations.
1429 Report bugs to the package provider.
1434 if test "$ac_init_help" = "recursive"; then
1435 # If there are subdirs, report their specific --help.
1436 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1437 test -d "$ac_dir" ||
1438 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1446 # A ".." for each directory in $ac_dir_suffix.
1447 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1448 case $ac_top_builddir_sub in
1449 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1453 ac_abs_top_builddir=$ac_pwd
1454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1455 # for backward compatibility:
1456 ac_top_builddir=$ac_top_build_prefix
1459 .) # We are building in place.
1461 ac_top_srcdir=$ac_top_builddir_sub
1462 ac_abs_top_srcdir=$ac_pwd ;;
1463 [\\/]* | ?:[\\/]* ) # Absolute name.
1464 ac_srcdir=$srcdir$ac_dir_suffix;
1465 ac_top_srcdir=$srcdir
1466 ac_abs_top_srcdir=$srcdir ;;
1468 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1469 ac_top_srcdir=$ac_top_build_prefix$srcdir
1470 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1474 cd "$ac_dir" || { ac_status=$?; continue; }
1475 # Check for guested configure.
1476 if test -f "$ac_srcdir/configure.gnu"; then
1478 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1479 elif test -f "$ac_srcdir/configure"; then
1481 $SHELL "$ac_srcdir/configure" --help=recursive
1483 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1485 cd "$ac_pwd" || { ac_status=$?; break; }
1489 test -n "$ac_init_help" && exit $ac_status
1490 if $ac_init_version; then
1492 libjpeg configure 8.3.0
1493 generated by GNU Autoconf 2.68
1495 Copyright (C) 2010 Free Software Foundation, Inc.
1496 This configure script is free software; the Free Software Foundation
1497 gives unlimited permission to copy, distribute and modify it.
1502 ## ------------------------ ##
1503 ## Autoconf initialization. ##
1504 ## ------------------------ ##
1506 # ac_fn_c_try_compile LINENO
1507 # --------------------------
1508 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1509 ac_fn_c_try_compile ()
1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512 rm -f conftest.$ac_objext
1513 if { { ac_try="$ac_compile"
1515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516 *) ac_try_echo=$ac_try;;
1518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519 $as_echo "$ac_try_echo"; } >&5
1520 (eval "$ac_compile") 2>conftest.err
1522 if test -s conftest.err; then
1523 grep -v '^ *+' conftest.err >conftest.er1
1524 cat conftest.er1 >&5
1525 mv -f conftest.er1 conftest.err
1527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1528 test $ac_status = 0; } && {
1529 test -z "$ac_c_werror_flag" ||
1530 test ! -s conftest.err
1531 } && test -s conftest.$ac_objext; then :
1534 $as_echo "$as_me: failed program was:" >&5
1535 sed 's/^/| /' conftest.$ac_ext >&5
1539 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1540 as_fn_set_status $ac_retval
1542 } # ac_fn_c_try_compile
1544 # ac_fn_c_try_cpp LINENO
1545 # ----------------------
1546 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 if { { ac_try="$ac_cpp conftest.$ac_ext"
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } > conftest.i && {
1566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1567 test ! -s conftest.err
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577 as_fn_set_status $ac_retval
1581 # ac_fn_c_try_run LINENO
1582 # ----------------------
1583 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1584 # that executables *can* be run.
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 if { { ac_try="$ac_link"
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_link") 2>&5
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1599 { { case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_try") 2>&5
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; }; }; then :
1611 $as_echo "$as_me: program exited with status $ac_status" >&5
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1615 ac_retval=$ac_status
1617 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1623 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1624 # -------------------------------------------------------
1625 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1626 # the include files in INCLUDES and setting the cache variable VAR
1628 ac_fn_c_check_header_mongrel ()
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 if eval \${$3+:} false; then :
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633 $as_echo_n "checking for $2... " >&6; }
1634 if eval \${$3+:} false; then :
1635 $as_echo_n "(cached) " >&6
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639 $as_echo "$ac_res" >&6; }
1641 # Is the header compilable?
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1643 $as_echo_n "checking $2 usability... " >&6; }
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h. */
1649 if ac_fn_c_try_compile "$LINENO"; then :
1650 ac_header_compiler=yes
1652 ac_header_compiler=no
1654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1656 $as_echo "$ac_header_compiler" >&6; }
1658 # Is the header present?
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1660 $as_echo_n "checking $2 presence... " >&6; }
1661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662 /* end confdefs.h. */
1665 if ac_fn_c_try_cpp "$LINENO"; then :
1666 ac_header_preproc=yes
1668 ac_header_preproc=no
1670 rm -f conftest.err conftest.i conftest.$ac_ext
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1672 $as_echo "$ac_header_preproc" >&6; }
1674 # So? What about this header?
1675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1678 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1680 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1684 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1686 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1688 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1690 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1692 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval \${$3+:} false; then :
1698 $as_echo_n "(cached) " >&6
1700 eval "$3=\$ac_header_compiler"
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704 $as_echo "$ac_res" >&6; }
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 } # ac_fn_c_check_header_mongrel
1710 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1711 # -------------------------------------------------------
1712 # Tests whether HEADER exists and can be compiled using the include files in
1713 # INCLUDES, setting the cache variable VAR accordingly.
1714 ac_fn_c_check_header_compile ()
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718 $as_echo_n "checking for $2... " >&6; }
1719 if eval \${$3+:} false; then :
1720 $as_echo_n "(cached) " >&6
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1727 if ac_fn_c_try_compile "$LINENO"; then :
1732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 } # ac_fn_c_check_header_compile
1741 # ac_fn_c_try_link LINENO
1742 # -----------------------
1743 # Try to link conftest.$ac_ext, and return whether this succeeded.
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 rm -f conftest.$ac_objext conftest$ac_exeext
1748 if { { ac_try="$ac_link"
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_link") 2>conftest.err
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && {
1764 test -z "$ac_c_werror_flag" ||
1765 test ! -s conftest.err
1766 } && test -s conftest$ac_exeext && {
1767 test "$cross_compiling" = yes ||
1768 $as_test_x conftest$ac_exeext
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1777 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1778 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1779 # interfere with the next link command; also delete a directory that is
1780 # left behind by Apple's compiler. We do this before executing the actions.
1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
1785 } # ac_fn_c_try_link
1787 # ac_fn_c_check_func LINENO FUNC VAR
1788 # ----------------------------------
1789 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1790 ac_fn_c_check_func ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796 $as_echo_n "(cached) " >&6
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1802 #define $2 innocuous_$2
1804 /* System header to define __stub macros and hopefully few prototypes,
1805 which can conflict with char $2 (); below.
1806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1807 <limits.h> exists even on freestanding compilers. */
1810 # include <limits.h>
1812 # include <assert.h>
1817 /* Override any GCC internal prototype to avoid an error.
1818 Use char because int might match the return type of a GCC
1819 builtin and then its argument prototype would still apply. */
1824 /* The GNU C library defines this for functions which it implements
1825 to always fail with ENOSYS. Some functions are actually named
1826 something starting with __ and the normal name is an alias. */
1827 #if defined __stub_$2 || defined __stub___$2
1839 if ac_fn_c_try_link "$LINENO"; then :
1844 rm -f core conftest.err conftest.$ac_objext \
1845 conftest$ac_exeext conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 } # ac_fn_c_check_func
1853 cat >config.log <<_ACEOF
1854 This file contains any messages produced by compilers while
1855 running configure, to aid debugging if configure makes a mistake.
1857 It was created by libjpeg $as_me 8.3.0, which was
1858 generated by GNU Autoconf 2.68. Invocation command line was
1870 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1871 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1872 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1873 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1874 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1876 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1877 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1879 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1880 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1881 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1882 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1883 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1884 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1885 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 test -z "$as_dir" && as_dir=.
1894 $as_echo "PATH: $as_dir"
1910 # Keep a trace of the command line.
1911 # Strip out --no-create and --no-recursion so they do not pile up.
1912 # Strip out --silent because we don't want to record it for future runs.
1913 # Also quote any args containing shell meta-characters.
1914 # Make two passes to allow for proper duplicate-argument suppression.
1918 ac_must_keep_next=false
1924 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1925 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1926 | -silent | --silent | --silen | --sile | --sil)
1929 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1932 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1934 as_fn_append ac_configure_args1 " '$ac_arg'"
1935 if test $ac_must_keep_next = true; then
1936 ac_must_keep_next=false # Got value, back to normal.
1939 *=* | --config-cache | -C | -disable-* | --disable-* \
1940 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1941 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1942 | -with-* | --with-* | -without-* | --without-* | --x)
1943 case "$ac_configure_args0 " in
1944 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1947 -* ) ac_must_keep_next=true ;;
1950 as_fn_append ac_configure_args " '$ac_arg'"
1955 { ac_configure_args0=; unset ac_configure_args0;}
1956 { ac_configure_args1=; unset ac_configure_args1;}
1958 # When interrupted or exit'd, cleanup temporary files, and complete
1959 # config.log. We remove comments because anyway the quotes in there
1960 # would cause problems or look ugly.
1961 # WARNING: Use '\'' to represent an apostrophe within the trap.
1962 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1963 trap 'exit_status=$?
1964 # Save into config.log some information that might help in debugging.
1968 $as_echo "## ---------------- ##
1969 ## Cache variables. ##
1970 ## ---------------- ##"
1972 # The following way of writing the cache mishandles newlines in values,
1974 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1975 eval ac_val=\$$ac_var
1979 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1980 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1983 _ | IFS | as_nl) ;; #(
1984 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1985 *) { eval $ac_var=; unset $ac_var;} ;;
1990 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1991 *${as_nl}ac_space=\ *)
1993 "s/'\''/'\''\\\\'\'''\''/g;
1994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1997 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2004 $as_echo "## ----------------- ##
2005 ## Output variables. ##
2006 ## ----------------- ##"
2008 for ac_var in $ac_subst_vars
2010 eval ac_val=\$$ac_var
2012 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2014 $as_echo "$ac_var='\''$ac_val'\''"
2018 if test -n "$ac_subst_files"; then
2019 $as_echo "## ------------------- ##
2020 ## File substitutions. ##
2021 ## ------------------- ##"
2023 for ac_var in $ac_subst_files
2025 eval ac_val=\$$ac_var
2027 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2029 $as_echo "$ac_var='\''$ac_val'\''"
2034 if test -s confdefs.h; then
2035 $as_echo "## ----------- ##
2042 test "$ac_signal" != 0 &&
2043 $as_echo "$as_me: caught signal $ac_signal"
2044 $as_echo "$as_me: exit $exit_status"
2046 rm -f core *.core core.conftest.* &&
2047 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2050 for ac_signal in 1 2 13 15; do
2051 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2056 rm -f -r conftest* confdefs.h
2058 $as_echo "/* confdefs.h */" > confdefs.h
2060 # Predefined preprocessor variables.
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_NAME "$PACKAGE_NAME"
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_STRING "$PACKAGE_STRING"
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_URL "$PACKAGE_URL"
2087 # Let the site file select an alternate cache file if it wants to.
2088 # Prefer an explicitly selected file to automatically selected ones.
2091 if test -n "$CONFIG_SITE"; then
2092 # We do not want a PATH search for config.site.
2093 case $CONFIG_SITE in #((
2094 -*) ac_site_file1=./$CONFIG_SITE;;
2095 */*) ac_site_file1=$CONFIG_SITE;;
2096 *) ac_site_file1=./$CONFIG_SITE;;
2098 elif test "x$prefix" != xNONE; then
2099 ac_site_file1=$prefix/share/config.site
2100 ac_site_file2=$prefix/etc/config.site
2102 ac_site_file1=$ac_default_prefix/share/config.site
2103 ac_site_file2=$ac_default_prefix/etc/config.site
2105 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2107 test "x$ac_site_file" = xNONE && continue
2108 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2110 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2111 sed 's/^/| /' "$ac_site_file" >&5
2113 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2115 as_fn_error $? "failed to load site script $ac_site_file
2116 See \`config.log' for more details" "$LINENO" 5; }
2120 if test -r "$cache_file"; then
2121 # Some versions of bash will fail to source /dev/null (special files
2122 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2123 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2125 $as_echo "$as_me: loading cache $cache_file" >&6;}
2127 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2128 *) . "./$cache_file";;
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2133 $as_echo "$as_me: creating cache $cache_file" >&6;}
2137 # Check that the precious variables saved in the cache have kept the same
2139 ac_cache_corrupted=false
2140 for ac_var in $ac_precious_vars; do
2141 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2142 eval ac_new_set=\$ac_env_${ac_var}_set
2143 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2144 eval ac_new_val=\$ac_env_${ac_var}_value
2145 case $ac_old_set,$ac_new_set in
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2148 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2149 ac_cache_corrupted=: ;;
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2152 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2153 ac_cache_corrupted=: ;;
2156 if test "x$ac_old_val" != "x$ac_new_val"; then
2157 # differences in whitespace do not lead to failure.
2158 ac_old_val_w=`echo x $ac_old_val`
2159 ac_new_val_w=`echo x $ac_new_val`
2160 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2162 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2163 ac_cache_corrupted=:
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2166 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2167 eval $ac_var=\$ac_old_val
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2170 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2172 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2175 # Pass precious variables to config.status.
2176 if test "$ac_new_set" = set; then
2178 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2179 *) ac_arg=$ac_var=$ac_new_val ;;
2181 case " $ac_configure_args " in
2182 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2183 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2187 if $ac_cache_corrupted; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2191 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2192 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2194 ## -------------------- ##
2195 ## Main body of script. ##
2196 ## -------------------- ##
2199 ac_cpp='$CPP $CPPFLAGS'
2200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2206 # Directory where autotools helper scripts lives.
2208 for ac_dir in . "$srcdir"/.; do
2209 if test -f "$ac_dir/install-sh"; then
2211 ac_install_sh="$ac_aux_dir/install-sh -c"
2213 elif test -f "$ac_dir/install.sh"; then
2215 ac_install_sh="$ac_aux_dir/install.sh -c"
2217 elif test -f "$ac_dir/shtool"; then
2219 ac_install_sh="$ac_aux_dir/shtool install -c"
2223 if test -z "$ac_aux_dir"; then
2224 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2227 # These three variables are undocumented and unsupported,
2228 # and are intended to be withdrawn in a future Autoconf release.
2229 # They can cause serious problems if a builder's source tree is in a directory
2230 # whose full name contains unusual characters.
2231 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2232 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2233 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2237 # Generate configuration headers.
2238 ac_config_headers="$ac_config_headers jconfig.h:jconfig.cfg"
2241 # Hack: disable autoheader so that it doesn't overwrite our cfg template.
2242 AUTOHEADER="echo autoheader ignored"
2245 # Make sure we can run config.sub.
2246 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2247 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2250 $as_echo_n "checking build system type... " >&6; }
2251 if ${ac_cv_build+:} false; then :
2252 $as_echo_n "(cached) " >&6
2254 ac_build_alias=$build_alias
2255 test "x$ac_build_alias" = x &&
2256 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2257 test "x$ac_build_alias" = x &&
2258 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2259 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2260 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2264 $as_echo "$ac_cv_build" >&6; }
2265 case $ac_cv_build in
2267 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2270 ac_save_IFS=$IFS; IFS='-'
2276 # Remember, the first character of IFS is used to create $*,
2277 # except with old shells:
2280 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2284 $as_echo_n "checking host system type... " >&6; }
2285 if ${ac_cv_host+:} false; then :
2286 $as_echo_n "(cached) " >&6
2288 if test "x$host_alias" = x; then
2289 ac_cv_host=$ac_cv_build
2291 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2292 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2297 $as_echo "$ac_cv_host" >&6; }
2300 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2303 ac_save_IFS=$IFS; IFS='-'
2309 # Remember, the first character of IFS is used to create $*,
2310 # except with old shells:
2313 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2317 $as_echo_n "checking target system type... " >&6; }
2318 if ${ac_cv_target+:} false; then :
2319 $as_echo_n "(cached) " >&6
2321 if test "x$target_alias" = x; then
2322 ac_cv_target=$ac_cv_host
2324 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2325 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2330 $as_echo "$ac_cv_target" >&6; }
2331 case $ac_cv_target in
2333 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2335 target=$ac_cv_target
2336 ac_save_IFS=$IFS; IFS='-'
2342 # Remember, the first character of IFS is used to create $*,
2343 # except with old shells:
2346 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2349 # The aliases save the names the user supplied, while $host etc.
2350 # will get canonicalized.
2351 test -n "$target_alias" &&
2352 test "$program_prefix$program_suffix$program_transform_name" = \
2354 program_prefix=${target_alias}-
2356 # Initialize Automake
2357 # Don't require all the GNU mandated files
2358 am__api_version='1.11'
2360 # Find a good install program. We prefer a C program (faster),
2361 # so one script is as good as another. But avoid the broken or
2362 # incompatible versions:
2363 # SysV /etc/install, /usr/sbin/install
2364 # SunOS /usr/etc/install
2365 # IRIX /sbin/install
2367 # AmigaOS /C/install, which installs bootblocks on floppy discs
2368 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2369 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2370 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2371 # OS/2's system install, which has a completely different semantic
2372 # ./install, which can be erroneously created by make from ./install.sh.
2373 # Reject install programs that cannot install multiple files.
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2375 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2376 if test -z "$INSTALL"; then
2377 if ${ac_cv_path_install+:} false; then :
2378 $as_echo_n "(cached) " >&6
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 test -z "$as_dir" && as_dir=.
2385 # Account for people who put trailing slashes in PATH elements.
2386 case $as_dir/ in #((
2387 ./ | .// | /[cC]/* | \
2388 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2389 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2392 # OSF1 and SCO ODT 3.0 have their own names for install.
2393 # Don't use installbsd from OSF since it installs stuff as root
2395 for ac_prog in ginstall scoinst install; do
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2398 if test $ac_prog = install &&
2399 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2400 # AIX install. It has an incompatible calling convention.
2402 elif test $ac_prog = install &&
2403 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404 # program-specific install script used by HP pwplus--don't use.
2407 rm -rf conftest.one conftest.two conftest.dir
2408 echo one > conftest.one
2409 echo two > conftest.two
2411 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2412 test -s conftest.one && test -s conftest.two &&
2413 test -s conftest.dir/conftest.one &&
2414 test -s conftest.dir/conftest.two
2416 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2429 rm -rf conftest.one conftest.two conftest.dir
2432 if test "${ac_cv_path_install+set}" = set; then
2433 INSTALL=$ac_cv_path_install
2435 # As a last resort, use the slow shell script. Don't cache a
2436 # value for INSTALL within a source directory, because that will
2437 # break other packages using the cache if that directory is
2438 # removed, or if the value is a relative name.
2439 INSTALL=$ac_install_sh
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2443 $as_echo "$INSTALL" >&6; }
2445 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2446 # It thinks the first close brace ends the variable substitution.
2447 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2449 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2451 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2454 $as_echo_n "checking whether build environment is sane... " >&6; }
2457 echo timestamp > conftest.file
2458 # Reject unsafe characters in $srcdir or the absolute working directory
2459 # name. Accept space and tab only in the latter.
2463 *[\\\"\#\$\&\'\`$am_lf]*)
2464 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2467 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2468 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2471 # Do `set' in a subshell so we don't clobber the current shell's
2472 # arguments. Must try -L first in case configure is actually a
2473 # symlink; some systems play weird games with the mod time of symlinks
2474 # (eg FreeBSD returns the mod time of the symlink's containing
2477 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2478 if test "$*" = "X"; then
2480 set X `ls -t "$srcdir/configure" conftest.file`
2483 if test "$*" != "X $srcdir/configure conftest.file" \
2484 && test "$*" != "X conftest.file $srcdir/configure"; then
2486 # If neither matched, then we have a broken ls. This can happen
2487 # if, for instance, CONFIG_SHELL is bash and it inherits a
2488 # broken ls alias from the environment. This has actually
2489 # happened. Such a system could not be considered "sane".
2490 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2491 alias in your environment" "$LINENO" 5
2494 test "$2" = conftest.file
2500 as_fn_error $? "newly created file is older than distributed files!
2501 Check your system clock" "$LINENO" 5
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2504 $as_echo "yes" >&6; }
2505 test "$program_prefix" != NONE &&
2506 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2507 # Use a double $ so make ignores it.
2508 test "$program_suffix" != NONE &&
2509 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2510 # Double any \ or $.
2511 # By default was `s,x,x', remove it if useless.
2512 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2513 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2515 # expand $ac_aux_dir to an absolute path
2516 am_aux_dir=`cd $ac_aux_dir && pwd`
2518 if test x"${MISSING+set}" != xset; then
2521 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2523 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2526 # Use eval to expand $SHELL
2527 if eval "$MISSING --run true"; then
2528 am_missing_run="$MISSING --run "
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2532 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2535 if test x"${install_sh}" != xset; then
2538 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2540 install_sh="\${SHELL} $am_aux_dir/install-sh"
2544 # Installed binaries are usually stripped using `strip' when the user
2545 # run `make install-strip'. However `strip' might not be the right
2546 # tool to use in cross-compilation environments, therefore Automake
2547 # will honor the `STRIP' environment variable to overrule this program.
2548 if test "$cross_compiling" != no; then
2549 if test -n "$ac_tool_prefix"; then
2550 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2551 set dummy ${ac_tool_prefix}strip; ac_word=$2
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2553 $as_echo_n "checking for $ac_word... " >&6; }
2554 if ${ac_cv_prog_STRIP+:} false; then :
2555 $as_echo_n "(cached) " >&6
2557 if test -n "$STRIP"; then
2558 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 STRIP=$ac_cv_prog_STRIP
2578 if test -n "$STRIP"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2580 $as_echo "$STRIP" >&6; }
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583 $as_echo "no" >&6; }
2588 if test -z "$ac_cv_prog_STRIP"; then
2590 # Extract the first word of "strip", so it can be a program name with args.
2591 set dummy strip; ac_word=$2
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2593 $as_echo_n "checking for $ac_word... " >&6; }
2594 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2595 $as_echo_n "(cached) " >&6
2597 if test -n "$ac_ct_STRIP"; then
2598 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607 ac_cv_prog_ac_ct_STRIP="strip"
2608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2618 if test -n "$ac_ct_STRIP"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2620 $as_echo "$ac_ct_STRIP" >&6; }
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623 $as_echo "no" >&6; }
2626 if test "x$ac_ct_STRIP" = x; then
2629 case $cross_compiling:$ac_tool_warned in
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2633 ac_tool_warned=yes ;;
2638 STRIP="$ac_cv_prog_STRIP"
2642 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2645 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2646 if test -z "$MKDIR_P"; then
2647 if ${ac_cv_path_mkdir+:} false; then :
2648 $as_echo_n "(cached) " >&6
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2654 test -z "$as_dir" && as_dir=.
2655 for ac_prog in mkdir gmkdir; do
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2658 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2659 'mkdir (GNU coreutils) '* | \
2660 'mkdir (coreutils) '* | \
2661 'mkdir (fileutils) '4.1*)
2662 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2672 test -d ./--version && rmdir ./--version
2673 if test "${ac_cv_path_mkdir+set}" = set; then
2674 MKDIR_P="$ac_cv_path_mkdir -p"
2676 # As a last resort, use the slow shell script. Don't cache a
2677 # value for MKDIR_P within a source directory, because that will
2678 # break other packages using the cache if that directory is
2679 # removed, or if the value is a relative name.
2680 MKDIR_P="$ac_install_sh -d"
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2684 $as_echo "$MKDIR_P" >&6; }
2688 [\\/$]* | ?:[\\/]*) ;;
2689 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2692 for ac_prog in gawk mawk nawk awk
2694 # Extract the first word of "$ac_prog", so it can be a program name with args.
2695 set dummy $ac_prog; ac_word=$2
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if ${ac_cv_prog_AWK+:} false; then :
2699 $as_echo_n "(cached) " >&6
2701 if test -n "$AWK"; then
2702 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711 ac_cv_prog_AWK="$ac_prog"
2712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 if test -n "$AWK"; then
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2724 $as_echo "$AWK" >&6; }
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2727 $as_echo "no" >&6; }
2731 test -n "$AWK" && break
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2735 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2737 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2738 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2739 $as_echo_n "(cached) " >&6
2741 cat >conftest.make <<\_ACEOF
2744 @echo '@@@%%%=$(MAKE)=@@@%%%'
2746 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2747 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2749 eval ac_cv_prog_make_${ac_make}_set=yes;;
2751 eval ac_cv_prog_make_${ac_make}_set=no;;
2755 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2757 $as_echo "yes" >&6; }
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2762 SET_MAKE="MAKE=${MAKE-make}"
2765 rm -rf .tst 2>/dev/null
2766 mkdir .tst 2>/dev/null
2767 if test -d .tst; then
2772 rmdir .tst 2>/dev/null
2774 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2775 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2776 # is not polluted with repeated "-I."
2777 am__isrc=' -I$(srcdir)'
2778 # test to see if srcdir already configured
2779 if test -f $srcdir/config.status; then
2780 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2784 # test whether we have cygpath
2785 if test -z "$CYGPATH_W"; then
2786 if (cygpath --version) >/dev/null 2>/dev/null; then
2787 CYGPATH_W='cygpath -w'
2794 # Define the identity of the package.
2799 cat >>confdefs.h <<_ACEOF
2800 #define PACKAGE "$PACKAGE"
2804 cat >>confdefs.h <<_ACEOF
2805 #define VERSION "$VERSION"
2808 # Some tools Automake needs.
2810 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2813 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2816 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2819 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2822 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2824 # We need awk for the "check" target. The system "awk" is bad on
2826 # Always define AMTAR for backward compatibility.
2828 AMTAR=${AMTAR-"${am_missing_run}tar"}
2830 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2837 # Make --enable-silent-rules the default.
2838 # To get verbose build output you may configure
2839 # with --disable-silent-rules or use "make V=1".
2840 # Check whether --enable-silent-rules was given.
2841 if test "${enable_silent_rules+set}" = set; then :
2842 enableval=$enable_silent_rules;
2845 case $enable_silent_rules in
2846 yes) AM_DEFAULT_VERBOSITY=0;;
2847 no) AM_DEFAULT_VERBOSITY=1;;
2848 *) AM_DEFAULT_VERBOSITY=0;;
2853 # This is required when using the de-ANSI-fication feature.
2854 DEPDIR="${am__leading_dot}deps"
2856 ac_config_commands="$ac_config_commands depfiles"
2859 am_make=${MAKE-make}
2860 cat > confinc << 'END'
2862 @echo this is the am__doit target
2865 # If we don't find an include directive, just comment out the code.
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2867 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2871 # First try GNU make style include.
2872 echo "include confinc" > confmf
2873 # Ignore all kinds of additional output from `make'.
2874 case `$am_make -s -f confmf 2> /dev/null` in #(
2875 *the\ am__doit\ target*)
2881 # Now try BSD make style include.
2882 if test "$am__include" = "#"; then
2883 echo '.include "confinc"' > confmf
2884 case `$am_make -s -f confmf 2> /dev/null` in #(
2885 *the\ am__doit\ target*)
2886 am__include=.include
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2895 $as_echo "$_am_result" >&6; }
2896 rm -f confinc confmf
2898 # Check whether --enable-dependency-tracking was given.
2899 if test "${enable_dependency_tracking+set}" = set; then :
2900 enableval=$enable_dependency_tracking;
2903 if test "x$enable_dependency_tracking" != xno; then
2904 am_depcomp="$ac_aux_dir/depcomp"
2907 if test "x$enable_dependency_tracking" != xno; then
2917 ac_cpp='$CPP $CPPFLAGS'
2918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921 if test -n "$ac_tool_prefix"; then
2922 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2923 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if ${ac_cv_prog_CC+:} false; then :
2927 $as_echo_n "(cached) " >&6
2929 if test -n "$CC"; then
2930 ac_cv_prog_CC="$CC" # Let the user override the test.
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 if test -n "$CC"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2952 $as_echo "$CC" >&6; }
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2960 if test -z "$ac_cv_prog_CC"; then
2962 # Extract the first word of "gcc", so it can be a program name with args.
2963 set dummy gcc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2967 $as_echo_n "(cached) " >&6
2969 if test -n "$ac_ct_CC"; then
2970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979 ac_cv_prog_ac_ct_CC="gcc"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2990 if test -n "$ac_ct_CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2992 $as_echo "$ac_ct_CC" >&6; }
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2998 if test "x$ac_ct_CC" = x; then
3001 case $cross_compiling:$ac_tool_warned in
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3005 ac_tool_warned=yes ;;
3013 if test -z "$CC"; then
3014 if test -n "$ac_tool_prefix"; then
3015 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3016 set dummy ${ac_tool_prefix}cc; ac_word=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if ${ac_cv_prog_CC+:} false; then :
3020 $as_echo_n "(cached) " >&6
3022 if test -n "$CC"; then
3023 ac_cv_prog_CC="$CC" # Let the user override the test.
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032 ac_cv_prog_CC="${ac_tool_prefix}cc"
3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 if test -n "$CC"; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3045 $as_echo "$CC" >&6; }
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3054 if test -z "$CC"; then
3055 # Extract the first word of "cc", so it can be a program name with args.
3056 set dummy cc; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if ${ac_cv_prog_CC+:} false; then :
3060 $as_echo_n "(cached) " >&6
3062 if test -n "$CC"; then
3063 ac_cv_prog_CC="$CC" # Let the user override the test.
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3074 ac_prog_rejected=yes
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 if test $ac_prog_rejected = yes; then
3086 # We found a bogon in the path, so make sure we never use it.
3087 set dummy $ac_cv_prog_CC
3089 if test $# != 0; then
3090 # We chose a different compiler from the bogus one.
3091 # However, it has the same basename, so the bogon will be chosen
3092 # first if we set CC to just the basename; use the full file name.
3094 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3100 if test -n "$CC"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3102 $as_echo "$CC" >&6; }
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3110 if test -z "$CC"; then
3111 if test -n "$ac_tool_prefix"; then
3112 for ac_prog in cl.exe
3114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if ${ac_cv_prog_CC+:} false; then :
3119 $as_echo_n "(cached) " >&6
3121 if test -n "$CC"; then
3122 ac_cv_prog_CC="$CC" # Let the user override the test.
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3131 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 if test -n "$CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3151 test -n "$CC" && break
3154 if test -z "$CC"; then
3156 for ac_prog in cl.exe
3158 # Extract the first word of "$ac_prog", so it can be a program name with args.
3159 set dummy $ac_prog; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3163 $as_echo_n "(cached) " >&6
3165 if test -n "$ac_ct_CC"; then
3166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3175 ac_cv_prog_ac_ct_CC="$ac_prog"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3186 if test -n "$ac_ct_CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3188 $as_echo "$ac_ct_CC" >&6; }
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3195 test -n "$ac_ct_CC" && break
3198 if test "x$ac_ct_CC" = x; then
3201 case $cross_compiling:$ac_tool_warned in
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3205 ac_tool_warned=yes ;;
3214 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3216 as_fn_error $? "no acceptable C compiler found in \$PATH
3217 See \`config.log' for more details" "$LINENO" 5; }
3219 # Provide some information about the compiler.
3220 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3223 for ac_option in --version -v -V -qversion; do
3224 { { ac_try="$ac_compiler $ac_option >&5"
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3233 if test -s conftest.err; then
3235 ... rest of stderr output deleted ...
3236 10q' conftest.err >conftest.er1
3237 cat conftest.er1 >&5
3239 rm -f conftest.er1 conftest.err
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3255 ac_clean_files_save=$ac_clean_files
3256 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3257 # Try to create an executable without -o first, disregard a.out.
3258 # It will help us diagnose broken compilers, and finding out an intuition
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3261 $as_echo_n "checking whether the C compiler works... " >&6; }
3262 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3264 # The possible output files:
3265 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3268 for ac_file in $ac_files
3271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3272 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3277 if { { ac_try="$ac_link_default"
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283 $as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_link_default") 2>&5
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }; then :
3288 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3289 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3290 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3291 # so that the user can short-circuit this test for compilers unknown to
3293 for ac_file in $ac_files ''
3295 test -f "$ac_file" || continue
3297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3300 # We found the default executable, but exeext='' is most
3304 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3306 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308 # We set ac_cv_exeext here because the later test for it is not
3309 # safe: cross compilers may not add the suffix if given an `-o'
3310 # argument, so we may need to know it at that point already.
3311 # Even if this section looks crufty: it has the advantage of
3318 test "$ac_cv_exeext" = no && ac_cv_exeext=
3323 if test -z "$ac_file"; then :
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3326 $as_echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error 77 "C compiler cannot create executables
3332 See \`config.log' for more details" "$LINENO" 5; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3335 $as_echo "yes" >&6; }
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3338 $as_echo_n "checking for C compiler default output file name... " >&6; }
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3340 $as_echo "$ac_file" >&6; }
3341 ac_exeext=$ac_cv_exeext
3343 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3344 ac_clean_files=$ac_clean_files_save
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3346 $as_echo_n "checking for suffix of executables... " >&6; }
3347 if { { ac_try="$ac_link"
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353 $as_echo "$ac_try_echo"; } >&5
3354 (eval "$ac_link") 2>&5
3356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357 test $ac_status = 0; }; then :
3358 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3359 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3360 # work properly (i.e., refer to `conftest.exe'), while it won't with
3362 for ac_file in conftest.exe conftest conftest.*; do
3363 test -f "$ac_file" || continue
3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3366 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3375 See \`config.log' for more details" "$LINENO" 5; }
3377 rm -f conftest conftest$ac_cv_exeext
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3379 $as_echo "$ac_cv_exeext" >&6; }
3381 rm -f conftest.$ac_ext
3382 EXEEXT=$ac_cv_exeext
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3390 FILE *f = fopen ("conftest.out", "w");
3391 return ferror (f) || fclose (f) != 0;
3397 ac_clean_files="$ac_clean_files conftest.out"
3398 # Check that the compiler produces executables we can run. If not, either
3399 # the compiler is broken, or we cross compile.
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3401 $as_echo_n "checking whether we are cross compiling... " >&6; }
3402 if test "$cross_compiling" != yes; then
3403 { { ac_try="$ac_link"
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo"; } >&5
3410 (eval "$ac_link") 2>&5
3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413 test $ac_status = 0; }
3414 if { ac_try='./conftest$ac_cv_exeext'
3415 { { case "(($ac_try" in
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420 $as_echo "$ac_try_echo"; } >&5
3421 (eval "$ac_try") 2>&5
3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424 test $ac_status = 0; }; }; then
3427 if test "$cross_compiling" = maybe; then
3430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "cannot run C compiled programs.
3433 If you meant to cross compile, use \`--host'.
3434 See \`config.log' for more details" "$LINENO" 5; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3439 $as_echo "$cross_compiling" >&6; }
3441 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3442 ac_clean_files=$ac_clean_files_save
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3444 $as_echo_n "checking for suffix of object files... " >&6; }
3445 if ${ac_cv_objext+:} false; then :
3446 $as_echo_n "(cached) " >&6
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3459 rm -f conftest.o conftest.obj
3460 if { { ac_try="$ac_compile"
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 $as_echo "$ac_try_echo"; } >&5
3467 (eval "$ac_compile") 2>&5
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }; then :
3471 for ac_file in conftest.o conftest.obj conftest.*; do
3472 test -f "$ac_file" || continue;
3474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3475 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3480 $as_echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485 as_fn_error $? "cannot compute suffix of object files: cannot compile
3486 See \`config.log' for more details" "$LINENO" 5; }
3488 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3491 $as_echo "$ac_cv_objext" >&6; }
3492 OBJEXT=$ac_cv_objext
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3495 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3496 if ${ac_cv_c_compiler_gnu+:} false; then :
3497 $as_echo_n "(cached) " >&6
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3513 if ac_fn_c_try_compile "$LINENO"; then :
3518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3523 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3524 if test $ac_compiler_gnu = yes; then
3529 ac_test_CFLAGS=${CFLAGS+set}
3530 ac_save_CFLAGS=$CFLAGS
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3532 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3533 if ${ac_cv_prog_cc_g+:} false; then :
3534 $as_echo_n "(cached) " >&6
3536 ac_save_c_werror_flag=$ac_c_werror_flag
3537 ac_c_werror_flag=yes
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3551 if ac_fn_c_try_compile "$LINENO"; then :
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3566 if ac_fn_c_try_compile "$LINENO"; then :
3569 ac_c_werror_flag=$ac_save_c_werror_flag
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3582 if ac_fn_c_try_compile "$LINENO"; then :
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 ac_c_werror_flag=$ac_save_c_werror_flag
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3593 $as_echo "$ac_cv_prog_cc_g" >&6; }
3594 if test "$ac_test_CFLAGS" = set; then
3595 CFLAGS=$ac_save_CFLAGS
3596 elif test $ac_cv_prog_cc_g = yes; then
3597 if test "$GCC" = yes; then
3603 if test "$GCC" = yes; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3610 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3611 if ${ac_cv_prog_cc_c89+:} false; then :
3612 $as_echo_n "(cached) " >&6
3614 ac_cv_prog_cc_c89=no
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3620 #include <sys/types.h>
3621 #include <sys/stat.h>
3622 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3623 struct buf { int x; };
3624 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3625 static char *e (p, i)
3631 static char *f (char * (*g) (char **, int), char **p, ...)
3636 s = g (p, va_arg (v,int));
3641 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3642 function prototypes and stuff, but not '\xHH' hex character constants.
3643 These don't provoke an error unfortunately, instead are silently treated
3644 as 'x'. The following induces an error, until -std is added to get
3645 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3646 array size at least. It's necessary to write '\x00'==0 to get something
3647 that's true only with -std. */
3648 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3650 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3651 inside strings and character constants. */
3653 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3655 int test (int i, double x);
3656 struct s1 {int (*f) (int a);};
3657 struct s2 {int (*f) (double a);};
3658 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3664 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3669 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3670 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3672 CC="$ac_save_CC $ac_arg"
3673 if ac_fn_c_try_compile "$LINENO"; then :
3674 ac_cv_prog_cc_c89=$ac_arg
3676 rm -f core conftest.err conftest.$ac_objext
3677 test "x$ac_cv_prog_cc_c89" != "xno" && break
3679 rm -f conftest.$ac_ext
3684 case "x$ac_cv_prog_cc_c89" in
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3687 $as_echo "none needed" >&6; } ;;
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3690 $as_echo "unsupported" >&6; } ;;
3692 CC="$CC $ac_cv_prog_cc_c89"
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3694 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3696 if test "x$ac_cv_prog_cc_c89" != xno; then :
3701 ac_cpp='$CPP $CPPFLAGS'
3702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706 depcc="$CC" am_compiler_list=
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3709 $as_echo_n "checking dependency style of $depcc... " >&6; }
3710 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3711 $as_echo_n "(cached) " >&6
3713 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3714 # We make a subdir and do the tests there. Otherwise we can end up
3715 # making bogus files that we don't know about and never remove. For
3716 # instance it was reported that on HP-UX the gcc test will end up
3717 # making a dummy file named `D' -- because `-MD' means `put the output
3720 # Copy depcomp to subdir because otherwise we won't find it if we're
3721 # using a relative directory.
3722 cp "$am_depcomp" conftest.dir
3724 # We will build objects and dependencies in a subdirectory because
3725 # it helps to detect inapplicable dependency modes. For instance
3726 # both Tru64's cc and ICC support -MD to output dependencies as a
3727 # side effect of compilation, but ICC will put the dependencies in
3728 # the current directory while Tru64 will put them in the object
3732 am_cv_CC_dependencies_compiler_type=none
3733 if test "$am_compiler_list" = ""; then
3734 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3737 case " $depcc " in #(
3738 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3741 for depmode in $am_compiler_list; do
3742 # Setup a source with many dependencies, because some compilers
3743 # like to wrap large dependency lists on column 80 (with \), and
3744 # we should not choose a depcomp mode which is confused by this.
3746 # We need to recreate these files for each test, as the compiler may
3747 # overwrite some of them when testing with obscure command lines.
3748 # This happens at least with the AIX C compiler.
3750 for i in 1 2 3 4 5 6; do
3751 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3752 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3753 # Solaris 8's {/usr,}/bin/sh.
3754 touch sub/conftst$i.h
3756 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3758 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3759 # mode. It turns out that the SunPro C++ compiler does not properly
3760 # handle `-M -o', and we need to detect this. Also, some Intel
3761 # versions had trouble with output in subdirs
3762 am__obj=sub/conftest.${OBJEXT-o}
3763 am__minus_obj="-o $am__obj"
3766 # This depmode causes a compiler race in universal mode.
3767 test "$am__universal" = false || continue
3770 # after this tag, mechanisms are not by side-effect, so they'll
3771 # only be used when explicitly requested
3772 if test "x$enable_dependency_tracking" = xyes; then
3778 msvisualcpp | msvcmsys)
3779 # This compiler won't grok `-c -o', but also, the minuso test has
3780 # not run yet. These depmodes are late enough in the game, and
3781 # so weak that their functioning should not be impacted.
3782 am__obj=conftest.${OBJEXT-o}
3787 if depmode=$depmode \
3788 source=sub/conftest.c object=$am__obj \
3789 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3790 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3791 >/dev/null 2>conftest.err &&
3792 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3793 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3794 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3795 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3796 # icc doesn't choke on unknown options, it will just issue warnings
3797 # or remarks (even with -Werror). So we grep stderr for any message
3798 # that says an option was ignored or not supported.
3799 # When given -MP, icc 7.0 and 7.1 complain thusly:
3800 # icc: Command line warning: ignoring option '-M'; no argument required
3801 # The diagnosis changed in icc 8.0:
3802 # icc: Command line remark: option '-MP' not supported
3803 if (grep 'ignoring option' conftest.err ||
3804 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3805 am_cv_CC_dependencies_compiler_type=$depmode
3814 am_cv_CC_dependencies_compiler_type=none
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3819 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3820 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3823 test "x$enable_dependency_tracking" != xno \
3824 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3826 am__fastdepCC_FALSE='#'
3828 am__fastdepCC_TRUE='#'
3829 am__fastdepCC_FALSE=
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
3834 $as_echo_n "checking for function prototypes... " >&6; }
3835 if test "$ac_cv_prog_cc_c89" != no; then
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3837 $as_echo "yes" >&6; }
3839 $as_echo "#define PROTOTYPES 1" >>confdefs.h
3842 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846 $as_echo "no" >&6; }
3851 ac_cpp='$CPP $CPPFLAGS'
3852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3856 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3857 # On Suns, sometimes $CPP names a directory.
3858 if test -n "$CPP" && test -d "$CPP"; then
3861 if test -z "$CPP"; then
3862 if ${ac_cv_prog_CPP+:} false; then :
3863 $as_echo_n "(cached) " >&6
3865 # Double quotes because CPP needs to be expanded
3866 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3869 for ac_c_preproc_warn_flag in '' yes
3871 # Use a header file that comes with gcc, so configuring glibc
3872 # with a fresh cross-compiler works.
3873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874 # <limits.h> exists even on freestanding compilers.
3875 # On the NeXT, cc -E runs the code through the compiler's parser,
3876 # not just through cpp. "Syntax error" is here to catch this case.
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3880 # include <limits.h>
3882 # include <assert.h>
3886 if ac_fn_c_try_cpp "$LINENO"; then :
3889 # Broken: fails on valid input.
3892 rm -f conftest.err conftest.i conftest.$ac_ext
3894 # OK, works on sane cases. Now check whether nonexistent headers
3895 # can be detected and how.
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3898 #include <ac_nonexistent.h>
3900 if ac_fn_c_try_cpp "$LINENO"; then :
3901 # Broken: success on invalid input.
3904 # Passes both tests.
3908 rm -f conftest.err conftest.i conftest.$ac_ext
3911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3912 rm -f conftest.i conftest.err conftest.$ac_ext
3913 if $ac_preproc_ok; then :
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3926 $as_echo "$CPP" >&6; }
3928 for ac_c_preproc_warn_flag in '' yes
3930 # Use a header file that comes with gcc, so configuring glibc
3931 # with a fresh cross-compiler works.
3932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3933 # <limits.h> exists even on freestanding compilers.
3934 # On the NeXT, cc -E runs the code through the compiler's parser,
3935 # not just through cpp. "Syntax error" is here to catch this case.
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3939 # include <limits.h>
3941 # include <assert.h>
3945 if ac_fn_c_try_cpp "$LINENO"; then :
3948 # Broken: fails on valid input.
3951 rm -f conftest.err conftest.i conftest.$ac_ext
3953 # OK, works on sane cases. Now check whether nonexistent headers
3954 # can be detected and how.
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3957 #include <ac_nonexistent.h>
3959 if ac_fn_c_try_cpp "$LINENO"; then :
3960 # Broken: success on invalid input.
3963 # Passes both tests.
3967 rm -f conftest.err conftest.i conftest.$ac_ext
3970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3971 rm -f conftest.i conftest.err conftest.$ac_ext
3972 if $ac_preproc_ok; then :
3975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3977 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3978 See \`config.log' for more details" "$LINENO" 5; }
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3989 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3990 if ${ac_cv_path_GREP+:} false; then :
3991 $as_echo_n "(cached) " >&6
3993 if test -z "$GREP"; then
3994 ac_path_GREP_found=false
3995 # Loop through the user's path and test for each of PROGNAME-LIST
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4000 test -z "$as_dir" && as_dir=.
4001 for ac_prog in grep ggrep; do
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4004 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4005 # Check for GNU ac_path_GREP and select it if it is found.
4006 # Check for GNU $ac_path_GREP
4007 case `"$ac_path_GREP" --version 2>&1` in
4009 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4012 $as_echo_n 0123456789 >"conftest.in"
4015 cat "conftest.in" "conftest.in" >"conftest.tmp"
4016 mv "conftest.tmp" "conftest.in"
4017 cp "conftest.in" "conftest.nl"
4018 $as_echo 'GREP' >> "conftest.nl"
4019 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4020 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4021 as_fn_arith $ac_count + 1 && ac_count=$as_val
4022 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4023 # Best one so far, save it but keep looking for a better one
4024 ac_cv_path_GREP="$ac_path_GREP"
4025 ac_path_GREP_max=$ac_count
4027 # 10*(2^10) chars as input seems more than enough
4028 test $ac_count -gt 10 && break
4030 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4033 $ac_path_GREP_found && break 3
4038 if test -z "$ac_cv_path_GREP"; then
4039 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4042 ac_cv_path_GREP=$GREP
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4047 $as_echo "$ac_cv_path_GREP" >&6; }
4048 GREP="$ac_cv_path_GREP"
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4052 $as_echo_n "checking for egrep... " >&6; }
4053 if ${ac_cv_path_EGREP+:} false; then :
4054 $as_echo_n "(cached) " >&6
4056 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4057 then ac_cv_path_EGREP="$GREP -E"
4059 if test -z "$EGREP"; then
4060 ac_path_EGREP_found=false
4061 # Loop through the user's path and test for each of PROGNAME-LIST
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4066 test -z "$as_dir" && as_dir=.
4067 for ac_prog in egrep; do
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4070 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4071 # Check for GNU ac_path_EGREP and select it if it is found.
4072 # Check for GNU $ac_path_EGREP
4073 case `"$ac_path_EGREP" --version 2>&1` in
4075 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4078 $as_echo_n 0123456789 >"conftest.in"
4081 cat "conftest.in" "conftest.in" >"conftest.tmp"
4082 mv "conftest.tmp" "conftest.in"
4083 cp "conftest.in" "conftest.nl"
4084 $as_echo 'EGREP' >> "conftest.nl"
4085 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4087 as_fn_arith $ac_count + 1 && ac_count=$as_val
4088 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4089 # Best one so far, save it but keep looking for a better one
4090 ac_cv_path_EGREP="$ac_path_EGREP"
4091 ac_path_EGREP_max=$ac_count
4093 # 10*(2^10) chars as input seems more than enough
4094 test $ac_count -gt 10 && break
4096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4099 $ac_path_EGREP_found && break 3
4104 if test -z "$ac_cv_path_EGREP"; then
4105 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4108 ac_cv_path_EGREP=$EGREP
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4114 $as_echo "$ac_cv_path_EGREP" >&6; }
4115 EGREP="$ac_cv_path_EGREP"
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4119 $as_echo_n "checking for ANSI C header files... " >&6; }
4120 if ${ac_cv_header_stdc+:} false; then :
4121 $as_echo_n "(cached) " >&6
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4138 if ac_fn_c_try_compile "$LINENO"; then :
4139 ac_cv_header_stdc=yes
4141 ac_cv_header_stdc=no
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 if test $ac_cv_header_stdc = yes; then
4146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4153 $EGREP "memchr" >/dev/null 2>&1; then :
4156 ac_cv_header_stdc=no
4162 if test $ac_cv_header_stdc = yes; then
4163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4170 $EGREP "free" >/dev/null 2>&1; then :
4173 ac_cv_header_stdc=no
4179 if test $ac_cv_header_stdc = yes; then
4180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4181 if test "$cross_compiling" = yes; then :
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4188 #if ((' ' & 0x0FF) == 0x020)
4189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4192 # define ISLOWER(c) \
4193 (('a' <= (c) && (c) <= 'i') \
4194 || ('j' <= (c) && (c) <= 'r') \
4195 || ('s' <= (c) && (c) <= 'z'))
4196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4204 for (i = 0; i < 256; i++)
4205 if (XOR (islower (i), ISLOWER (i))
4206 || toupper (i) != TOUPPER (i))
4211 if ac_fn_c_try_run "$LINENO"; then :
4214 ac_cv_header_stdc=no
4216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4217 conftest.$ac_objext conftest.beam conftest.$ac_ext
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4223 $as_echo "$ac_cv_header_stdc" >&6; }
4224 if test $ac_cv_header_stdc = yes; then
4226 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4230 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4231 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4232 inttypes.h stdint.h unistd.h
4234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4235 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4237 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4238 cat >>confdefs.h <<_ACEOF
4239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4248 if test "$ac_cv_prog_cc_stdc" != no; then
4251 U=_ ANSI2KNR=./ansi2knr
4253 # Ensure some checks needed by ansi2knr itself.
4255 for ac_header in string.h
4257 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4258 if test "x$ac_cv_header_string_h" = xyes; then :
4259 cat >>confdefs.h <<_ACEOF
4260 #define HAVE_STRING_H 1
4269 # Add configure option --enable-maintainer-mode which enables
4270 # dependency checking and generation useful to package maintainers.
4271 # This is made an option to avoid confusing end users.
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4274 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4275 # Check whether --enable-maintainer-mode was given.
4276 if test "${enable_maintainer_mode+set}" = set; then :
4277 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4279 USE_MAINTAINER_MODE=no
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4283 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4284 if test $USE_MAINTAINER_MODE = yes; then
4285 MAINTAINER_MODE_TRUE=
4286 MAINTAINER_MODE_FALSE='#'
4288 MAINTAINER_MODE_TRUE='#'
4289 MAINTAINER_MODE_FALSE=
4292 MAINT=$MAINTAINER_MODE_TRUE
4296 # Check for programs
4298 ac_cpp='$CPP $CPPFLAGS'
4299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302 if test -n "$ac_tool_prefix"; then
4303 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4304 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if ${ac_cv_prog_CC+:} false; then :
4308 $as_echo_n "(cached) " >&6
4310 if test -n "$CC"; then
4311 ac_cv_prog_CC="$CC" # Let the user override the test.
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 if test -n "$CC"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4333 $as_echo "$CC" >&6; }
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4341 if test -z "$ac_cv_prog_CC"; then
4343 # Extract the first word of "gcc", so it can be a program name with args.
4344 set dummy gcc; ac_word=$2
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346 $as_echo_n "checking for $ac_word... " >&6; }
4347 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4348 $as_echo_n "(cached) " >&6
4350 if test -n "$ac_ct_CC"; then
4351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4360 ac_cv_prog_ac_ct_CC="gcc"
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4371 if test -n "$ac_ct_CC"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4373 $as_echo "$ac_ct_CC" >&6; }
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376 $as_echo "no" >&6; }
4379 if test "x$ac_ct_CC" = x; then
4382 case $cross_compiling:$ac_tool_warned in
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4386 ac_tool_warned=yes ;;
4394 if test -z "$CC"; then
4395 if test -n "$ac_tool_prefix"; then
4396 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4397 set dummy ${ac_tool_prefix}cc; ac_word=$2
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399 $as_echo_n "checking for $ac_word... " >&6; }
4400 if ${ac_cv_prog_CC+:} false; then :
4401 $as_echo_n "(cached) " >&6
4403 if test -n "$CC"; then
4404 ac_cv_prog_CC="$CC" # Let the user override the test.
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 ac_cv_prog_CC="${ac_tool_prefix}cc"
4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 if test -n "$CC"; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4426 $as_echo "$CC" >&6; }
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4435 if test -z "$CC"; then
4436 # Extract the first word of "cc", so it can be a program name with args.
4437 set dummy cc; ac_word=$2
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if ${ac_cv_prog_CC+:} false; then :
4441 $as_echo_n "(cached) " >&6
4443 if test -n "$CC"; then
4444 ac_cv_prog_CC="$CC" # Let the user override the test.
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4455 ac_prog_rejected=yes
4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 if test $ac_prog_rejected = yes; then
4467 # We found a bogon in the path, so make sure we never use it.
4468 set dummy $ac_cv_prog_CC
4470 if test $# != 0; then
4471 # We chose a different compiler from the bogus one.
4472 # However, it has the same basename, so the bogon will be chosen
4473 # first if we set CC to just the basename; use the full file name.
4475 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4481 if test -n "$CC"; then
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4483 $as_echo "$CC" >&6; }
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 $as_echo "no" >&6; }
4491 if test -z "$CC"; then
4492 if test -n "$ac_tool_prefix"; then
4493 for ac_prog in cl.exe
4495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if ${ac_cv_prog_CC+:} false; then :
4500 $as_echo_n "(cached) " >&6
4502 if test -n "$CC"; then
4503 ac_cv_prog_CC="$CC" # Let the user override the test.
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 if test -n "$CC"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4525 $as_echo "$CC" >&6; }
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4532 test -n "$CC" && break
4535 if test -z "$CC"; then
4537 for ac_prog in cl.exe
4539 # Extract the first word of "$ac_prog", so it can be a program name with args.
4540 set dummy $ac_prog; ac_word=$2
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4542 $as_echo_n "checking for $ac_word... " >&6; }
4543 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4544 $as_echo_n "(cached) " >&6
4546 if test -n "$ac_ct_CC"; then
4547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4556 ac_cv_prog_ac_ct_CC="$ac_prog"
4557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4567 if test -n "$ac_ct_CC"; then
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4569 $as_echo "$ac_ct_CC" >&6; }
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4576 test -n "$ac_ct_CC" && break
4579 if test "x$ac_ct_CC" = x; then
4582 case $cross_compiling:$ac_tool_warned in
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4586 ac_tool_warned=yes ;;
4595 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4597 as_fn_error $? "no acceptable C compiler found in \$PATH
4598 See \`config.log' for more details" "$LINENO" 5; }
4600 # Provide some information about the compiler.
4601 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4604 for ac_option in --version -v -V -qversion; do
4605 { { ac_try="$ac_compiler $ac_option >&5"
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4611 $as_echo "$ac_try_echo"; } >&5
4612 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4614 if test -s conftest.err; then
4616 ... rest of stderr output deleted ...
4617 10q' conftest.err >conftest.er1
4618 cat conftest.er1 >&5
4620 rm -f conftest.er1 conftest.err
4621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4622 test $ac_status = 0; }
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4626 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4627 if ${ac_cv_c_compiler_gnu+:} false; then :
4628 $as_echo_n "(cached) " >&6
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4644 if ac_fn_c_try_compile "$LINENO"; then :
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4654 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4655 if test $ac_compiler_gnu = yes; then
4660 ac_test_CFLAGS=${CFLAGS+set}
4661 ac_save_CFLAGS=$CFLAGS
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4663 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4664 if ${ac_cv_prog_cc_g+:} false; then :
4665 $as_echo_n "(cached) " >&6
4667 ac_save_c_werror_flag=$ac_c_werror_flag
4668 ac_c_werror_flag=yes
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4682 if ac_fn_c_try_compile "$LINENO"; then :
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4697 if ac_fn_c_try_compile "$LINENO"; then :
4700 ac_c_werror_flag=$ac_save_c_werror_flag
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4713 if ac_fn_c_try_compile "$LINENO"; then :
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 ac_c_werror_flag=$ac_save_c_werror_flag
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4724 $as_echo "$ac_cv_prog_cc_g" >&6; }
4725 if test "$ac_test_CFLAGS" = set; then
4726 CFLAGS=$ac_save_CFLAGS
4727 elif test $ac_cv_prog_cc_g = yes; then
4728 if test "$GCC" = yes; then
4734 if test "$GCC" = yes; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4741 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4742 if ${ac_cv_prog_cc_c89+:} false; then :
4743 $as_echo_n "(cached) " >&6
4745 ac_cv_prog_cc_c89=no
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4751 #include <sys/types.h>
4752 #include <sys/stat.h>
4753 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4754 struct buf { int x; };
4755 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4756 static char *e (p, i)
4762 static char *f (char * (*g) (char **, int), char **p, ...)
4767 s = g (p, va_arg (v,int));
4772 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4773 function prototypes and stuff, but not '\xHH' hex character constants.
4774 These don't provoke an error unfortunately, instead are silently treated
4775 as 'x'. The following induces an error, until -std is added to get
4776 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4777 array size at least. It's necessary to write '\x00'==0 to get something
4778 that's true only with -std. */
4779 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4781 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4782 inside strings and character constants. */
4784 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4786 int test (int i, double x);
4787 struct s1 {int (*f) (int a);};
4788 struct s2 {int (*f) (double a);};
4789 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4795 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4800 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4801 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4803 CC="$ac_save_CC $ac_arg"
4804 if ac_fn_c_try_compile "$LINENO"; then :
4805 ac_cv_prog_cc_c89=$ac_arg
4807 rm -f core conftest.err conftest.$ac_objext
4808 test "x$ac_cv_prog_cc_c89" != "xno" && break
4810 rm -f conftest.$ac_ext
4815 case "x$ac_cv_prog_cc_c89" in
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4818 $as_echo "none needed" >&6; } ;;
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4821 $as_echo "unsupported" >&6; } ;;
4823 CC="$CC $ac_cv_prog_cc_c89"
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4825 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4827 if test "x$ac_cv_prog_cc_c89" != xno; then :
4832 ac_cpp='$CPP $CPPFLAGS'
4833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837 depcc="$CC" am_compiler_list=
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4840 $as_echo_n "checking dependency style of $depcc... " >&6; }
4841 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4842 $as_echo_n "(cached) " >&6
4844 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4845 # We make a subdir and do the tests there. Otherwise we can end up
4846 # making bogus files that we don't know about and never remove. For
4847 # instance it was reported that on HP-UX the gcc test will end up
4848 # making a dummy file named `D' -- because `-MD' means `put the output
4851 # Copy depcomp to subdir because otherwise we won't find it if we're
4852 # using a relative directory.
4853 cp "$am_depcomp" conftest.dir
4855 # We will build objects and dependencies in a subdirectory because
4856 # it helps to detect inapplicable dependency modes. For instance
4857 # both Tru64's cc and ICC support -MD to output dependencies as a
4858 # side effect of compilation, but ICC will put the dependencies in
4859 # the current directory while Tru64 will put them in the object
4863 am_cv_CC_dependencies_compiler_type=none
4864 if test "$am_compiler_list" = ""; then
4865 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4868 case " $depcc " in #(
4869 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4872 for depmode in $am_compiler_list; do
4873 # Setup a source with many dependencies, because some compilers
4874 # like to wrap large dependency lists on column 80 (with \), and
4875 # we should not choose a depcomp mode which is confused by this.
4877 # We need to recreate these files for each test, as the compiler may
4878 # overwrite some of them when testing with obscure command lines.
4879 # This happens at least with the AIX C compiler.
4881 for i in 1 2 3 4 5 6; do
4882 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4883 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4884 # Solaris 8's {/usr,}/bin/sh.
4885 touch sub/conftst$i.h
4887 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4889 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4890 # mode. It turns out that the SunPro C++ compiler does not properly
4891 # handle `-M -o', and we need to detect this. Also, some Intel
4892 # versions had trouble with output in subdirs
4893 am__obj=sub/conftest.${OBJEXT-o}
4894 am__minus_obj="-o $am__obj"
4897 # This depmode causes a compiler race in universal mode.
4898 test "$am__universal" = false || continue
4901 # after this tag, mechanisms are not by side-effect, so they'll
4902 # only be used when explicitly requested
4903 if test "x$enable_dependency_tracking" = xyes; then
4909 msvisualcpp | msvcmsys)
4910 # This compiler won't grok `-c -o', but also, the minuso test has
4911 # not run yet. These depmodes are late enough in the game, and
4912 # so weak that their functioning should not be impacted.
4913 am__obj=conftest.${OBJEXT-o}
4918 if depmode=$depmode \
4919 source=sub/conftest.c object=$am__obj \
4920 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4921 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4922 >/dev/null 2>conftest.err &&
4923 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4924 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4925 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4926 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4927 # icc doesn't choke on unknown options, it will just issue warnings
4928 # or remarks (even with -Werror). So we grep stderr for any message
4929 # that says an option was ignored or not supported.
4930 # When given -MP, icc 7.0 and 7.1 complain thusly:
4931 # icc: Command line warning: ignoring option '-M'; no argument required
4932 # The diagnosis changed in icc 8.0:
4933 # icc: Command line remark: option '-MP' not supported
4934 if (grep 'ignoring option' conftest.err ||
4935 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4936 am_cv_CC_dependencies_compiler_type=$depmode
4945 am_cv_CC_dependencies_compiler_type=none
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4950 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4951 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4954 test "x$enable_dependency_tracking" != xno \
4955 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4957 am__fastdepCC_FALSE='#'
4959 am__fastdepCC_TRUE='#'
4960 am__fastdepCC_FALSE=
4964 case $ac_cv_prog_cc_stdc in #(
4966 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4969 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4970 if ${ac_cv_prog_cc_c99+:} false; then :
4971 $as_echo_n "(cached) " >&6
4973 ac_cv_prog_cc_c99=no
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4978 #include <stdbool.h>
4983 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4984 #define debug(...) fprintf (stderr, __VA_ARGS__)
4985 #define showlist(...) puts (#__VA_ARGS__)
4986 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4988 test_varargs_macros (void)
4993 debug ("X = %d\n", x);
4994 showlist (The first, second, and third items.);
4995 report (x>y, "x is %d but y is %d", x, y);
4998 // Check long long types.
4999 #define BIG64 18446744073709551615ull
5000 #define BIG32 4294967295ul
5001 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5003 your preprocessor is broken;
5007 your preprocessor is broken;
5009 static long long int bignum = -9223372036854775807LL;
5010 static unsigned long long int ubignum = BIG64;
5012 struct incomplete_array
5020 const wchar_t *name;
5024 typedef const char *ccp;
5027 test_restrict (ccp restrict text)
5029 // See if C++-style comments work.
5030 // Iterate through items via the restricted pointer.
5031 // Also check for declarations in for loops.
5032 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5037 // Check varargs and va_copy.
5039 test_varargs (const char *format, ...)
5042 va_start (args, format);
5044 va_copy (args_copy, args);
5055 str = va_arg (args_copy, const char *);
5058 number = va_arg (args_copy, int);
5061 fnumber = va_arg (args_copy, double);
5076 _Bool success = false;
5079 if (test_restrict ("String literal") == 0)
5081 char *restrict newvar = "Another string";
5084 test_varargs ("s, d' f .", "string", 65, 34.234);
5085 test_varargs_macros ();
5087 // Check flexible array members.
5088 struct incomplete_array *ia =
5089 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5091 for (int i = 0; i < ia->datasize; ++i)
5092 ia->data[i] = i * 1.234;
5094 // Check named initializers.
5095 struct named_init ni = {
5097 .name = L"Test wide string",
5098 .average = 543.34343,
5103 int dynamic_array[ni.number];
5104 dynamic_array[ni.number - 1] = 543;
5106 // work around unused variable warnings
5107 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5108 || dynamic_array[ni.number - 1] != 543);
5114 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5116 CC="$ac_save_CC $ac_arg"
5117 if ac_fn_c_try_compile "$LINENO"; then :
5118 ac_cv_prog_cc_c99=$ac_arg
5120 rm -f core conftest.err conftest.$ac_objext
5121 test "x$ac_cv_prog_cc_c99" != "xno" && break
5123 rm -f conftest.$ac_ext
5128 case "x$ac_cv_prog_cc_c99" in
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5131 $as_echo "none needed" >&6; } ;;
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5134 $as_echo "unsupported" >&6; } ;;
5136 CC="$CC $ac_cv_prog_cc_c99"
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5138 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5140 if test "x$ac_cv_prog_cc_c99" != xno; then :
5141 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5144 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5145 if ${ac_cv_prog_cc_c89+:} false; then :
5146 $as_echo_n "(cached) " >&6
5148 ac_cv_prog_cc_c89=no
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h. */
5154 #include <sys/types.h>
5155 #include <sys/stat.h>
5156 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5157 struct buf { int x; };
5158 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5159 static char *e (p, i)
5165 static char *f (char * (*g) (char **, int), char **p, ...)
5170 s = g (p, va_arg (v,int));
5175 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5176 function prototypes and stuff, but not '\xHH' hex character constants.
5177 These don't provoke an error unfortunately, instead are silently treated
5178 as 'x'. The following induces an error, until -std is added to get
5179 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5180 array size at least. It's necessary to write '\x00'==0 to get something
5181 that's true only with -std. */
5182 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5184 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5185 inside strings and character constants. */
5187 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5189 int test (int i, double x);
5190 struct s1 {int (*f) (int a);};
5191 struct s2 {int (*f) (double a);};
5192 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5198 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5203 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5204 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5206 CC="$ac_save_CC $ac_arg"
5207 if ac_fn_c_try_compile "$LINENO"; then :
5208 ac_cv_prog_cc_c89=$ac_arg
5210 rm -f core conftest.err conftest.$ac_objext
5211 test "x$ac_cv_prog_cc_c89" != "xno" && break
5213 rm -f conftest.$ac_ext
5218 case "x$ac_cv_prog_cc_c89" in
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5221 $as_echo "none needed" >&6; } ;;
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5224 $as_echo "unsupported" >&6; } ;;
5226 CC="$CC $ac_cv_prog_cc_c89"
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5228 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5230 if test "x$ac_cv_prog_cc_c89" != xno; then :
5231 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5233 ac_cv_prog_cc_stdc=no
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5240 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5241 if ${ac_cv_prog_cc_stdc+:} false; then :
5242 $as_echo_n "(cached) " >&6
5245 case $ac_cv_prog_cc_stdc in #(
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5248 $as_echo "unsupported" >&6; } ;; #(
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5251 $as_echo "none needed" >&6; } ;; #(
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5254 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5258 ac_cpp='$CPP $CPPFLAGS'
5259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5263 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5264 # On Suns, sometimes $CPP names a directory.
5265 if test -n "$CPP" && test -d "$CPP"; then
5268 if test -z "$CPP"; then
5269 if ${ac_cv_prog_CPP+:} false; then :
5270 $as_echo_n "(cached) " >&6
5272 # Double quotes because CPP needs to be expanded
5273 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5276 for ac_c_preproc_warn_flag in '' yes
5278 # Use a header file that comes with gcc, so configuring glibc
5279 # with a fresh cross-compiler works.
5280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5281 # <limits.h> exists even on freestanding compilers.
5282 # On the NeXT, cc -E runs the code through the compiler's parser,
5283 # not just through cpp. "Syntax error" is here to catch this case.
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5287 # include <limits.h>
5289 # include <assert.h>
5293 if ac_fn_c_try_cpp "$LINENO"; then :
5296 # Broken: fails on valid input.
5299 rm -f conftest.err conftest.i conftest.$ac_ext
5301 # OK, works on sane cases. Now check whether nonexistent headers
5302 # can be detected and how.
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5305 #include <ac_nonexistent.h>
5307 if ac_fn_c_try_cpp "$LINENO"; then :
5308 # Broken: success on invalid input.
5311 # Passes both tests.
5315 rm -f conftest.err conftest.i conftest.$ac_ext
5318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5319 rm -f conftest.i conftest.err conftest.$ac_ext
5320 if $ac_preproc_ok; then :
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5333 $as_echo "$CPP" >&6; }
5335 for ac_c_preproc_warn_flag in '' yes
5337 # Use a header file that comes with gcc, so configuring glibc
5338 # with a fresh cross-compiler works.
5339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5340 # <limits.h> exists even on freestanding compilers.
5341 # On the NeXT, cc -E runs the code through the compiler's parser,
5342 # not just through cpp. "Syntax error" is here to catch this case.
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5346 # include <limits.h>
5348 # include <assert.h>
5352 if ac_fn_c_try_cpp "$LINENO"; then :
5355 # Broken: fails on valid input.
5358 rm -f conftest.err conftest.i conftest.$ac_ext
5360 # OK, works on sane cases. Now check whether nonexistent headers
5361 # can be detected and how.
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364 #include <ac_nonexistent.h>
5366 if ac_fn_c_try_cpp "$LINENO"; then :
5367 # Broken: success on invalid input.
5370 # Passes both tests.
5374 rm -f conftest.err conftest.i conftest.$ac_ext
5377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5378 rm -f conftest.i conftest.err conftest.$ac_ext
5379 if $ac_preproc_ok; then :
5382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5384 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5385 See \`config.log' for more details" "$LINENO" 5; }
5389 ac_cpp='$CPP $CPPFLAGS'
5390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5396 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5398 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5399 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5400 $as_echo_n "(cached) " >&6
5402 cat >conftest.make <<\_ACEOF
5405 @echo '@@@%%%=$(MAKE)=@@@%%%'
5407 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5408 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5410 eval ac_cv_prog_make_${ac_make}_set=yes;;
5412 eval ac_cv_prog_make_${ac_make}_set=no;;
5416 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5418 $as_echo "yes" >&6; }
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5423 SET_MAKE="MAKE=${MAKE-make}"
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5427 $as_echo_n "checking whether ln -s works... " >&6; }
5429 if test "$LN_S" = "ln -s"; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5431 $as_echo "yes" >&6; }
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5434 $as_echo "no, using $LN_S" >&6; }
5438 # Check if LD supports linker scripts,
5439 # and define automake conditional HAVE_LD_VERSION_SCRIPT if so.
5440 # Check whether --enable-ld-version-script was given.
5441 if test "${enable_ld_version_script+set}" = set; then :
5442 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
5445 if test -z "$have_ld_version_script"; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
5447 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
5448 save_LDFLAGS="$LDFLAGS"
5449 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
5450 cat > conftest.map <<EOF
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5470 if ac_fn_c_try_link "$LINENO"; then :
5471 have_ld_version_script=yes
5473 have_ld_version_script=no
5475 rm -f core conftest.err conftest.$ac_objext \
5476 conftest$ac_exeext conftest.$ac_ext
5478 LDFLAGS="$save_LDFLAGS"
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
5480 $as_echo "$have_ld_version_script" >&6; }
5482 if test "$have_ld_version_script" = "yes"; then
5483 HAVE_LD_VERSION_SCRIPT_TRUE=
5484 HAVE_LD_VERSION_SCRIPT_FALSE='#'
5486 HAVE_LD_VERSION_SCRIPT_TRUE='#'
5487 HAVE_LD_VERSION_SCRIPT_FALSE=
5491 # See if compiler supports prototypes.
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
5493 $as_echo_n "checking for function prototypes... " >&6; }
5494 if ${ijg_cv_have_prototypes+:} false; then :
5495 $as_echo_n "(cached) " >&6
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5500 int testfunction (int arg1, int * arg2); /* check prototypes */
5501 struct methods_struct { /* check method-pointer declarations */
5502 int (*error_exit) (char *msgtext);
5503 int (*trace_message) (char *msgtext);
5504 int (*another_method) (void);
5506 int testfunction (int arg1, int * arg2) /* check definitions */
5507 { return arg2[arg1]; }
5508 int test2function (void) /* check void arg list */
5519 if ac_fn_c_try_compile "$LINENO"; then :
5520 ijg_cv_have_prototypes=yes
5522 ijg_cv_have_prototypes=no
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_have_prototypes" >&5
5528 $as_echo "$ijg_cv_have_prototypes" >&6; }
5529 if test $ijg_cv_have_prototypes = yes; then
5531 $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
5534 echo Your compiler does not seem to know about function prototypes.
5535 echo Perhaps it needs a special switch to enable ANSI C mode.
5536 echo If so, we recommend running configure like this:
5537 echo " ./configure CC='cc -switch'"
5538 echo where -switch is the proper switch.
5541 # Check header files
5542 for ac_header in stddef.h stdlib.h locale.h
5544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5545 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5546 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5547 cat >>confdefs.h <<_ACEOF
5548 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5555 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5556 if test "x$ac_cv_header_string_h" = xyes; then :
5560 $as_echo "#define NEED_BSD_STRINGS 1" >>confdefs.h
5566 # See whether type size_t is defined in any ANSI-standard places;
5567 # if not, perhaps it is defined in <sys/types.h>.
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
5569 $as_echo_n "checking for size_t... " >&6; }
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5573 #ifdef HAVE_STDDEF_H
5576 #ifdef HAVE_STDLIB_H
5580 #ifdef NEED_BSD_STRINGS
5581 #include <strings.h>
5585 typedef size_t my_size_t;
5595 if ac_fn_c_try_compile "$LINENO"; then :
5598 ijg_size_t_ok="not ANSI, perhaps it is in sys/types.h"
5600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
5602 $as_echo "$ijg_size_t_ok" >&6; }
5603 if test "$ijg_size_t_ok" != yes; then
5604 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
5605 if test "x$ac_cv_header_sys_types_h" = xyes; then :
5607 $as_echo "#define NEED_SYS_TYPES_H 1" >>confdefs.h
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5611 #include <sys/types.h>
5613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5614 $EGREP "size_t" >/dev/null 2>&1; then :
5615 ijg_size_t_ok="size_t is in sys/types.h"
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
5627 $as_echo "$ijg_size_t_ok" >&6; }
5628 if test "$ijg_size_t_ok" = no; then
5629 echo Type size_t is not defined in any of the usual places.
5630 echo Try putting '"typedef unsigned int size_t;"' in jconfig.h.
5634 # Check compiler characteristics
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type unsigned char" >&5
5636 $as_echo_n "checking for type unsigned char... " >&6; }
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5643 unsigned char un_char;
5648 if ac_fn_c_try_compile "$LINENO"; then :
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5650 $as_echo "yes" >&6; }
5652 $as_echo "#define HAVE_UNSIGNED_CHAR 1" >>confdefs.h
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type unsigned short" >&5
5660 $as_echo_n "checking for type unsigned short... " >&6; }
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5667 unsigned short un_short;
5672 if ac_fn_c_try_compile "$LINENO"; then :
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5674 $as_echo "yes" >&6; }
5676 $as_echo "#define HAVE_UNSIGNED_SHORT 1" >>confdefs.h
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type void" >&5
5684 $as_echo_n "checking for type void... " >&6; }
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5688 /* Caution: a C++ compiler will insist on valid prototypes */
5689 typedef void * void_ptr; /* check void * */
5690 #ifdef HAVE_PROTOTYPES /* check ptr to function returning void */
5691 typedef void (*void_func) (int a, int b);
5693 typedef void (*void_func) ();
5696 #ifdef HAVE_PROTOTYPES /* check void function result */
5697 void test3function (void_ptr arg1, void_func arg2)
5699 void test3function (arg1, arg2)
5704 char * locptr = (char *) arg1; /* check casting to and from void * */
5705 arg1 = (void *) locptr;
5706 (*arg2) (1, 2); /* check call of fcn returning void */
5717 if ac_fn_c_try_compile "$LINENO"; then :
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5719 $as_echo "yes" >&6; }
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722 $as_echo "no" >&6; }
5724 $as_echo "#define void char" >>confdefs.h
5727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5729 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5730 if ${ac_cv_c_const+:} false; then :
5731 $as_echo_n "(cached) " >&6
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5739 /* FIXME: Include the comments suggested by Paul. */
5741 /* Ultrix mips cc rejects this. */
5742 typedef int charset[2];
5744 /* SunOS 4.1.1 cc rejects this. */
5745 char const *const *pcpcc;
5747 /* NEC SVR4.0.2 mips cc rejects this. */
5748 struct point {int x, y;};
5749 static struct point const zero = {0,0};
5750 /* AIX XL C 1.02.0.0 rejects this.
5751 It does not let you subtract one const X* pointer from another in
5752 an arm of an if-expression whose if-part is not a constant
5754 const char *g = "string";
5755 pcpcc = &g + (g ? g-g : 0);
5756 /* HPUX 7.0 cc rejects these. */
5758 ppc = (char**) pcpcc;
5759 pcpcc = (char const *const *) ppc;
5760 { /* SCO 3.2v4 cc rejects this. */
5762 char const *s = 0 ? (char *) 0 : (char const *) 0;
5767 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5769 const int *foo = &x[0];
5772 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5773 typedef const int *iptr;
5777 { /* AIX XL C 1.02.0.0 rejects this saying
5778 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5779 struct s { int j; const int *ap[3]; };
5780 struct s *b; b->j = 5;
5782 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5786 return !cs[0] && !zero.x;
5793 if ac_fn_c_try_compile "$LINENO"; then :
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5801 $as_echo "$ac_cv_c_const" >&6; }
5802 if test $ac_cv_c_const = no; then
5804 $as_echo "#define const /**/" >>confdefs.h
5809 # Check for non-broken inline under various spellings
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5811 $as_echo_n "checking for inline... " >&6; }
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5819 } __inline__ int foo() { return 0; }
5820 int bar() { return foo();
5825 if ac_fn_c_try_compile "$LINENO"; then :
5826 ijg_cv_inline="__inline__"
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5834 } __inline int foo() { return 0; }
5835 int bar() { return foo();
5840 if ac_fn_c_try_compile "$LINENO"; then :
5841 ijg_cv_inline="__inline"
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5849 } inline int foo() { return 0; }
5850 int bar() { return foo();
5855 if ac_fn_c_try_compile "$LINENO"; then :
5856 ijg_cv_inline="inline"
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_inline" >&5
5864 $as_echo "$ijg_cv_inline" >&6; }
5866 cat >>confdefs.h <<_ACEOF
5867 #define INLINE $ijg_cv_inline
5871 # We cannot check for bogus warnings, but at least we can check for errors
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken incomplete types" >&5
5873 $as_echo_n "checking for broken incomplete types... " >&6; }
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5876 typedef struct undefined_structure * undef_struct_ptr;
5885 if ac_fn_c_try_compile "$LINENO"; then :
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5887 $as_echo "ok" >&6; }
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
5890 $as_echo "broken" >&6; }
5892 $as_echo "#define INCOMPLETE_TYPES_BROKEN 1" >>confdefs.h
5895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5897 # Test whether global names are unique to at least 15 chars
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for short external names" >&5
5899 $as_echo_n "checking for short external names... " >&6; }
5900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h. */
5903 int possibly_duplicate_function () { return 0; }
5904 int possibly_dupli_function () { return 1; }
5914 if ac_fn_c_try_link "$LINENO"; then :
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5916 $as_echo "ok" >&6; }
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: short" >&5
5919 $as_echo "short" >&6; }
5921 $as_echo "#define NEED_SHORT_EXTERNAL_NAMES 1" >>confdefs.h
5924 rm -f core conftest.err conftest.$ac_objext \
5925 conftest$ac_exeext conftest.$ac_ext
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if char is signed" >&5
5929 $as_echo_n "checking to see if char is signed... " >&6; }
5930 if test "$cross_compiling" = yes; then :
5931 echo Assuming that char is signed on target machine.
5932 echo If it is unsigned, this will be a little bit inefficient.
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5938 #ifdef HAVE_PROTOTYPES
5939 int is_char_signed (int arg)
5941 int is_char_signed (arg)
5945 if (arg == 189) { /* expected result for unsigned char */
5946 return 0; /* type char is unsigned */
5948 else if (arg != -67) { /* expected result for signed char */
5949 printf("Hmm, it seems 'char' is not eight bits wide on your machine.\n");
5950 printf("I fear the JPEG software will not work at all.\n\n");
5952 return 1; /* assume char is signed otherwise */
5954 char signed_char_check = (char) (-67);
5956 exit(is_char_signed((int) signed_char_check));
5959 if ac_fn_c_try_run "$LINENO"; then :
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961 $as_echo "no" >&6; }
5963 $as_echo "#define CHAR_IS_UNSIGNED 1" >>confdefs.h
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5967 $as_echo "yes" >&6; }
5969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5970 conftest.$ac_objext conftest.beam conftest.$ac_ext
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if right shift is signed" >&5
5974 $as_echo_n "checking to see if right shift is signed... " >&6; }
5975 if test "$cross_compiling" = yes; then :
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that right shift is signed on target machine." >&5
5977 $as_echo "Assuming that right shift is signed on target machine." >&6; }
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5982 #ifdef HAVE_PROTOTYPES
5983 int is_shifting_signed (long arg)
5985 int is_shifting_signed (arg)
5988 /* See whether right-shift on a long is signed or not. */
5990 long res = arg >> 4;
5992 if (res == -0x7F7E80CL) { /* expected result for signed shift */
5993 return 1; /* right shift is signed */
5995 /* see if unsigned-shift hack will fix it. */
5996 /* we can't just test exact value since it depends on width of long... */
5997 res |= (~0L) << (32-4);
5998 if (res == -0x7F7E80CL) { /* expected result now? */
5999 return 0; /* right shift is unsigned */
6001 printf("Right shift isn't acting as I expect it to.\n");
6002 printf("I fear the JPEG software will not work at all.\n\n");
6003 return 0; /* try it with unsigned anyway */
6006 exit(is_shifting_signed(-0x7F7E80B1L));
6009 if ac_fn_c_try_run "$LINENO"; then :
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011 $as_echo "no" >&6; }
6013 $as_echo "#define RIGHT_SHIFT_IS_UNSIGNED 1" >>confdefs.h
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6017 $as_echo "yes" >&6; }
6019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6020 conftest.$ac_objext conftest.beam conftest.$ac_ext
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if fopen accepts b spec" >&5
6024 $as_echo_n "checking to see if fopen accepts b spec... " >&6; }
6025 if test "$cross_compiling" = yes; then :
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that it does." >&5
6027 $as_echo "Assuming that it does." >&6; }
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6034 if (fopen("conftestdata", "wb") != NULL)
6039 if ac_fn_c_try_run "$LINENO"; then :
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6041 $as_echo "yes" >&6; }
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6046 $as_echo "#define DONT_USE_B_MODE 1" >>confdefs.h
6049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6050 conftest.$ac_objext conftest.beam conftest.$ac_ext
6055 enable_win32_dll=yes
6058 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6059 if test -n "$ac_tool_prefix"; then
6060 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6061 set dummy ${ac_tool_prefix}as; ac_word=$2
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063 $as_echo_n "checking for $ac_word... " >&6; }
6064 if ${ac_cv_prog_AS+:} false; then :
6065 $as_echo_n "(cached) " >&6
6067 if test -n "$AS"; then
6068 ac_cv_prog_AS="$AS" # Let the user override the test.
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 test -z "$as_dir" && as_dir=.
6075 for ac_exec_ext in '' $ac_executable_extensions; do
6076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6077 ac_cv_prog_AS="${ac_tool_prefix}as"
6078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 if test -n "$AS"; then
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6090 $as_echo "$AS" >&6; }
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6098 if test -z "$ac_cv_prog_AS"; then
6100 # Extract the first word of "as", so it can be a program name with args.
6101 set dummy as; ac_word=$2
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103 $as_echo_n "checking for $ac_word... " >&6; }
6104 if ${ac_cv_prog_ac_ct_AS+:} false; then :
6105 $as_echo_n "(cached) " >&6
6107 if test -n "$ac_ct_AS"; then
6108 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 test -z "$as_dir" && as_dir=.
6115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6117 ac_cv_prog_ac_ct_AS="as"
6118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6128 if test -n "$ac_ct_AS"; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6130 $as_echo "$ac_ct_AS" >&6; }
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6136 if test "x$ac_ct_AS" = x; then
6139 case $cross_compiling:$ac_tool_warned in
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6143 ac_tool_warned=yes ;;
6151 if test -n "$ac_tool_prefix"; then
6152 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6153 set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+:} false; then :
6157 $as_echo_n "(cached) " >&6
6159 if test -n "$DLLTOOL"; then
6160 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6169 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 DLLTOOL=$ac_cv_prog_DLLTOOL
6180 if test -n "$DLLTOOL"; then
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6182 $as_echo "$DLLTOOL" >&6; }
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185 $as_echo "no" >&6; }
6190 if test -z "$ac_cv_prog_DLLTOOL"; then
6191 ac_ct_DLLTOOL=$DLLTOOL
6192 # Extract the first word of "dlltool", so it can be a program name with args.
6193 set dummy dlltool; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6197 $as_echo_n "(cached) " >&6
6199 if test -n "$ac_ct_DLLTOOL"; then
6200 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6220 if test -n "$ac_ct_DLLTOOL"; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6222 $as_echo "$ac_ct_DLLTOOL" >&6; }
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225 $as_echo "no" >&6; }
6228 if test "x$ac_ct_DLLTOOL" = x; then
6231 case $cross_compiling:$ac_tool_warned in
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6235 ac_tool_warned=yes ;;
6237 DLLTOOL=$ac_ct_DLLTOOL
6240 DLLTOOL="$ac_cv_prog_DLLTOOL"
6243 if test -n "$ac_tool_prefix"; then
6244 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6245 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if ${ac_cv_prog_OBJDUMP+:} false; then :
6249 $as_echo_n "(cached) " >&6
6251 if test -n "$OBJDUMP"; then
6252 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 OBJDUMP=$ac_cv_prog_OBJDUMP
6272 if test -n "$OBJDUMP"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6274 $as_echo "$OBJDUMP" >&6; }
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6282 if test -z "$ac_cv_prog_OBJDUMP"; then
6283 ac_ct_OBJDUMP=$OBJDUMP
6284 # Extract the first word of "objdump", so it can be a program name with args.
6285 set dummy objdump; ac_word=$2
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287 $as_echo_n "checking for $ac_word... " >&6; }
6288 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6289 $as_echo_n "(cached) " >&6
6291 if test -n "$ac_ct_OBJDUMP"; then
6292 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 test -z "$as_dir" && as_dir=.
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6312 if test -n "$ac_ct_OBJDUMP"; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6314 $as_echo "$ac_ct_OBJDUMP" >&6; }
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6320 if test "x$ac_ct_OBJDUMP" = x; then
6323 case $cross_compiling:$ac_tool_warned in
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6327 ac_tool_warned=yes ;;
6329 OBJDUMP=$ac_ct_OBJDUMP
6332 OBJDUMP="$ac_cv_prog_OBJDUMP"
6338 test -z "$AS" && AS=as
6344 test -z "$DLLTOOL" && DLLTOOL=dlltool
6350 test -z "$OBJDUMP" && OBJDUMP=objdump
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6361 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6367 macro_revision='1.3293'
6381 ltmain="$ac_aux_dir/ltmain.sh"
6383 # Backslashify metacharacters that are still active within
6384 # double-quoted strings.
6385 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6387 # Same as above, but do not quote variable references.
6388 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6390 # Sed substitution to delay expansion of an escaped shell variable in a
6391 # double_quote_subst'ed string.
6392 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6394 # Sed substitution to delay expansion of an escaped single quote.
6395 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6397 # Sed substitution to avoid accidental globbing in evaled expressions
6398 no_glob_subst='s/\*/\\\*/g'
6400 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6401 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6402 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6405 $as_echo_n "checking how to print strings... " >&6; }
6406 # Test print first, because it will be a builtin if present.
6407 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6408 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6410 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6413 # Use this function as a fallback that always works.
6414 func_fallback_echo ()
6416 eval 'cat <<_LTECHO_EOF
6420 ECHO='func_fallback_echo'
6423 # func_echo_all arg...
6424 # Invoke $ECHO with all args, space-separated.
6431 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6432 $as_echo "printf" >&6; } ;;
6433 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6434 $as_echo "print -r" >&6; } ;;
6435 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6436 $as_echo "cat" >&6; } ;;
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6453 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6454 if ${ac_cv_path_SED+:} false; then :
6455 $as_echo_n "(cached) " >&6
6457 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6458 for ac_i in 1 2 3 4 5 6 7; do
6459 ac_script="$ac_script$as_nl$ac_script"
6461 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6462 { ac_script=; unset ac_script;}
6463 if test -z "$SED"; then
6464 ac_path_SED_found=false
6465 # Loop through the user's path and test for each of PROGNAME-LIST
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 test -z "$as_dir" && as_dir=.
6471 for ac_prog in sed gsed; do
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6474 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6475 # Check for GNU ac_path_SED and select it if it is found.
6476 # Check for GNU $ac_path_SED
6477 case `"$ac_path_SED" --version 2>&1` in
6479 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6482 $as_echo_n 0123456789 >"conftest.in"
6485 cat "conftest.in" "conftest.in" >"conftest.tmp"
6486 mv "conftest.tmp" "conftest.in"
6487 cp "conftest.in" "conftest.nl"
6488 $as_echo '' >> "conftest.nl"
6489 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6490 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6491 as_fn_arith $ac_count + 1 && ac_count=$as_val
6492 if test $ac_count -gt ${ac_path_SED_max-0}; then
6493 # Best one so far, save it but keep looking for a better one
6494 ac_cv_path_SED="$ac_path_SED"
6495 ac_path_SED_max=$ac_count
6497 # 10*(2^10) chars as input seems more than enough
6498 test $ac_count -gt 10 && break
6500 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6503 $ac_path_SED_found && break 3
6508 if test -z "$ac_cv_path_SED"; then
6509 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6517 $as_echo "$ac_cv_path_SED" >&6; }
6518 SED="$ac_cv_path_SED"
6521 test -z "$SED" && SED=sed
6522 Xsed="$SED -e 1s/^X//"
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6535 $as_echo_n "checking for fgrep... " >&6; }
6536 if ${ac_cv_path_FGREP+:} false; then :
6537 $as_echo_n "(cached) " >&6
6539 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6540 then ac_cv_path_FGREP="$GREP -F"
6542 if test -z "$FGREP"; then
6543 ac_path_FGREP_found=false
6544 # Loop through the user's path and test for each of PROGNAME-LIST
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6549 test -z "$as_dir" && as_dir=.
6550 for ac_prog in fgrep; do
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6553 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6554 # Check for GNU ac_path_FGREP and select it if it is found.
6555 # Check for GNU $ac_path_FGREP
6556 case `"$ac_path_FGREP" --version 2>&1` in
6558 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6561 $as_echo_n 0123456789 >"conftest.in"
6564 cat "conftest.in" "conftest.in" >"conftest.tmp"
6565 mv "conftest.tmp" "conftest.in"
6566 cp "conftest.in" "conftest.nl"
6567 $as_echo 'FGREP' >> "conftest.nl"
6568 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6570 as_fn_arith $ac_count + 1 && ac_count=$as_val
6571 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6572 # Best one so far, save it but keep looking for a better one
6573 ac_cv_path_FGREP="$ac_path_FGREP"
6574 ac_path_FGREP_max=$ac_count
6576 # 10*(2^10) chars as input seems more than enough
6577 test $ac_count -gt 10 && break
6579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6582 $ac_path_FGREP_found && break 3
6587 if test -z "$ac_cv_path_FGREP"; then
6588 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6591 ac_cv_path_FGREP=$FGREP
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6597 $as_echo "$ac_cv_path_FGREP" >&6; }
6598 FGREP="$ac_cv_path_FGREP"
6601 test -z "$GREP" && GREP=grep
6621 # Check whether --with-gnu-ld was given.
6622 if test "${with_gnu_ld+set}" = set; then :
6623 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6629 if test "$GCC" = yes; then
6630 # Check if gcc -print-prog-name=ld gives a path.
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6632 $as_echo_n "checking for ld used by $CC... " >&6; }
6635 # gcc leaves a trailing carriage return which upsets mingw
6636 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6638 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6641 # Accept absolute paths.
6643 re_direlt='/[^/][^/]*/\.\./'
6644 # Canonicalize the pathname of ld
6645 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6646 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6647 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6649 test -z "$LD" && LD="$ac_prog"
6652 # If it fails, then pretend we aren't using GCC.
6656 # If it is relative, then search for the first ld in PATH.
6660 elif test "$with_gnu_ld" = yes; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6662 $as_echo_n "checking for GNU ld... " >&6; }
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6665 $as_echo_n "checking for non-GNU ld... " >&6; }
6667 if ${lt_cv_path_LD+:} false; then :
6668 $as_echo_n "(cached) " >&6
6670 if test -z "$LD"; then
6671 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6672 for ac_dir in $PATH; do
6674 test -z "$ac_dir" && ac_dir=.
6675 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6676 lt_cv_path_LD="$ac_dir/$ac_prog"
6677 # Check to see if the program is GNU ld. I'd rather use --version,
6678 # but apparently some variants of GNU ld only accept -v.
6679 # Break only if it was the GNU/non-GNU ld that we prefer.
6680 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6681 *GNU* | *'with BFD'*)
6682 test "$with_gnu_ld" != no && break
6685 test "$with_gnu_ld" != yes && break
6692 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6697 if test -n "$LD"; then
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6699 $as_echo "$LD" >&6; }
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6704 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6706 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6707 if ${lt_cv_prog_gnu_ld+:} false; then :
6708 $as_echo_n "(cached) " >&6
6710 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6711 case `$LD -v 2>&1 </dev/null` in
6712 *GNU* | *'with BFD'*)
6713 lt_cv_prog_gnu_ld=yes
6716 lt_cv_prog_gnu_ld=no
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6721 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6722 with_gnu_ld=$lt_cv_prog_gnu_ld
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6733 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6734 if ${lt_cv_path_NM+:} false; then :
6735 $as_echo_n "(cached) " >&6
6737 if test -n "$NM"; then
6738 # Let the user override the test.
6741 lt_nm_to_check="${ac_tool_prefix}nm"
6742 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6743 lt_nm_to_check="$lt_nm_to_check nm"
6745 for lt_tmp_nm in $lt_nm_to_check; do
6746 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6747 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6749 test -z "$ac_dir" && ac_dir=.
6750 tmp_nm="$ac_dir/$lt_tmp_nm"
6751 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6752 # Check to see if the nm accepts a BSD-compat flag.
6753 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6754 # nm: unknown option "B" ignored
6755 # Tru64's nm complains that /dev/null is an invalid object file
6756 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6757 */dev/null* | *'Invalid file or object type'*)
6758 lt_cv_path_NM="$tmp_nm -B"
6762 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6764 lt_cv_path_NM="$tmp_nm -p"
6768 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6769 continue # so that we can try to find one that supports BSD flags
6778 : ${lt_cv_path_NM=no}
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6782 $as_echo "$lt_cv_path_NM" >&6; }
6783 if test "$lt_cv_path_NM" != "no"; then
6786 # Didn't find any BSD compatible name lister, look for dumpbin.
6787 if test -n "$DUMPBIN"; then :
6788 # Let the user override the test.
6790 if test -n "$ac_tool_prefix"; then
6791 for ac_prog in dumpbin "link -dump"
6793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_DUMPBIN+:} false; then :
6798 $as_echo_n "(cached) " >&6
6800 if test -n "$DUMPBIN"; then
6801 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6810 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 DUMPBIN=$ac_cv_prog_DUMPBIN
6821 if test -n "$DUMPBIN"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6823 $as_echo "$DUMPBIN" >&6; }
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6830 test -n "$DUMPBIN" && break
6833 if test -z "$DUMPBIN"; then
6834 ac_ct_DUMPBIN=$DUMPBIN
6835 for ac_prog in dumpbin "link -dump"
6837 # Extract the first word of "$ac_prog", so it can be a program name with args.
6838 set dummy $ac_prog; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6842 $as_echo_n "(cached) " >&6
6844 if test -n "$ac_ct_DUMPBIN"; then
6845 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6865 if test -n "$ac_ct_DUMPBIN"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6867 $as_echo "$ac_ct_DUMPBIN" >&6; }
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6874 test -n "$ac_ct_DUMPBIN" && break
6877 if test "x$ac_ct_DUMPBIN" = x; then
6880 case $cross_compiling:$ac_tool_warned in
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6884 ac_tool_warned=yes ;;
6886 DUMPBIN=$ac_ct_DUMPBIN
6890 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6892 DUMPBIN="$DUMPBIN -symbols"
6900 if test "$DUMPBIN" != ":"; then
6904 test -z "$NM" && NM=nm
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6912 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6913 if ${lt_cv_nm_interface+:} false; then :
6914 $as_echo_n "(cached) " >&6
6916 lt_cv_nm_interface="BSD nm"
6917 echo "int some_variable = 0;" > conftest.$ac_ext
6918 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6919 (eval "$ac_compile" 2>conftest.err)
6920 cat conftest.err >&5
6921 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6922 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6923 cat conftest.err >&5
6924 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6925 cat conftest.out >&5
6926 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6927 lt_cv_nm_interface="MS dumpbin"
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6932 $as_echo "$lt_cv_nm_interface" >&6; }
6934 # find the maximum length of command line arguments
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6936 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6937 if ${lt_cv_sys_max_cmd_len+:} false; then :
6938 $as_echo_n "(cached) " >&6
6945 # On DJGPP, this test can blow up pretty badly due to problems in libc
6946 # (any single argument exceeding 2000 bytes causes a buffer overrun
6947 # during glob expansion). Even if it were fixed, the result of this
6948 # check would be larger than it should be.
6949 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6953 # Under GNU Hurd, this test is not required because there is
6954 # no limit to the length of command line arguments.
6955 # Libtool will interpret -1 as no limit whatsoever
6956 lt_cv_sys_max_cmd_len=-1;
6959 cygwin* | mingw* | cegcc*)
6960 # On Win9x/ME, this test blows up -- it succeeds, but takes
6961 # about 5 minutes as the teststring grows exponentially.
6962 # Worse, since 9x/ME are not pre-emptively multitasking,
6963 # you end up with a "frozen" computer, even though with patience
6964 # the test eventually succeeds (with a max line length of 256k).
6965 # Instead, let's just punt: use the minimum linelength reported by
6966 # all of the supported platforms: 8192 (on NT/2K/XP).
6967 lt_cv_sys_max_cmd_len=8192;
6971 # On MiNT this can take a long time and run out of memory.
6972 lt_cv_sys_max_cmd_len=8192;
6976 # On AmigaOS with pdksh, this test takes hours, literally.
6977 # So we just punt and use a minimum line length of 8192.
6978 lt_cv_sys_max_cmd_len=8192;
6981 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6982 # This has been around since 386BSD, at least. Likely further.
6983 if test -x /sbin/sysctl; then
6984 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6985 elif test -x /usr/sbin/sysctl; then
6986 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6988 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6990 # And add a safety zone
6991 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6992 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6996 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6997 lt_cv_sys_max_cmd_len=196608
7001 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7002 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7003 # nice to cause kernel panics so lets avoid the loop below.
7004 # First set a reasonable default.
7005 lt_cv_sys_max_cmd_len=16384
7007 if test -x /sbin/sysconfig; then
7008 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7009 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7014 lt_cv_sys_max_cmd_len=102400
7016 sysv5* | sco5v6* | sysv4.2uw2*)
7017 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7018 if test -n "$kargmax"; then
7019 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7021 lt_cv_sys_max_cmd_len=32768
7025 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7026 if test -n "$lt_cv_sys_max_cmd_len"; then
7027 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7030 # Make teststring a little bigger before we do anything with it.
7031 # a 1K string should be a reasonable start.
7032 for i in 1 2 3 4 5 6 7 8 ; do
7033 teststring=$teststring$teststring
7035 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7036 # If test is not a shell built-in, we'll probably end up computing a
7037 # maximum length that is only half of the actual maximum length, but
7039 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7040 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7041 test $i != 17 # 1/2 MB should be enough
7044 teststring=$teststring$teststring
7046 # Only check the string length outside the loop.
7047 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7049 # Add a significant safety factor because C++ compilers can tack on
7050 # massive amounts of additional arguments before passing them to the
7051 # linker. It appears as though 1/2 is a usable value.
7052 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7059 if test -n $lt_cv_sys_max_cmd_len ; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7061 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7064 $as_echo "none" >&6; }
7066 max_cmd_len=$lt_cv_sys_max_cmd_len
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7078 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7079 # Try some XSI features
7082 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7084 && eval 'test $(( 1 + 1 )) -eq 2 \
7085 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7088 $as_echo "$xsi_shell" >&6; }
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7092 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7094 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7096 && lt_shell_append=yes
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7098 $as_echo "$lt_shell_append" >&6; }
7101 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7111 # test EBCDIC or ASCII
7112 case `echo X|tr X '\101'` in
7113 A) # ASCII based system
7114 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7115 lt_SP2NL='tr \040 \012'
7116 lt_NL2SP='tr \015\012 \040\040'
7118 *) # EBCDIC based system
7119 lt_SP2NL='tr \100 \n'
7120 lt_NL2SP='tr \r\n \100\100'
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7133 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7134 if ${lt_cv_to_host_file_cmd+:} false; then :
7135 $as_echo_n "(cached) " >&6
7140 *-*-mingw* ) # actually msys
7141 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7144 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7146 * ) # otherwise, assume *nix
7147 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7153 *-*-mingw* ) # actually msys
7154 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7157 lt_cv_to_host_file_cmd=func_convert_file_noop
7159 * ) # otherwise, assume *nix
7160 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7164 * ) # unhandled hosts (and "normal" native builds)
7165 lt_cv_to_host_file_cmd=func_convert_file_noop
7171 to_host_file_cmd=$lt_cv_to_host_file_cmd
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7173 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7180 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7181 if ${lt_cv_to_tool_file_cmd+:} false; then :
7182 $as_echo_n "(cached) " >&6
7184 #assume ordinary cross tools, or native build.
7185 lt_cv_to_tool_file_cmd=func_convert_file_noop
7189 *-*-mingw* ) # actually msys
7190 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7198 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7200 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7207 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7208 if ${lt_cv_ld_reload_flag+:} false; then :
7209 $as_echo_n "(cached) " >&6
7211 lt_cv_ld_reload_flag='-r'
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7214 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7215 reload_flag=$lt_cv_ld_reload_flag
7216 case $reload_flag in
7218 *) reload_flag=" $reload_flag" ;;
7220 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7222 cygwin* | mingw* | pw32* | cegcc*)
7223 if test "$GCC" != yes; then
7228 if test "$GCC" = yes; then
7229 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7231 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7244 if test -n "$ac_tool_prefix"; then
7245 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7246 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_prog_OBJDUMP+:} false; then :
7250 $as_echo_n "(cached) " >&6
7252 if test -n "$OBJDUMP"; then
7253 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7262 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 OBJDUMP=$ac_cv_prog_OBJDUMP
7273 if test -n "$OBJDUMP"; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7275 $as_echo "$OBJDUMP" >&6; }
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7283 if test -z "$ac_cv_prog_OBJDUMP"; then
7284 ac_ct_OBJDUMP=$OBJDUMP
7285 # Extract the first word of "objdump", so it can be a program name with args.
7286 set dummy objdump; ac_word=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7290 $as_echo_n "(cached) " >&6
7292 if test -n "$ac_ct_OBJDUMP"; then
7293 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7302 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7313 if test -n "$ac_ct_OBJDUMP"; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7315 $as_echo "$ac_ct_OBJDUMP" >&6; }
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318 $as_echo "no" >&6; }
7321 if test "x$ac_ct_OBJDUMP" = x; then
7324 case $cross_compiling:$ac_tool_warned in
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7328 ac_tool_warned=yes ;;
7330 OBJDUMP=$ac_ct_OBJDUMP
7333 OBJDUMP="$ac_cv_prog_OBJDUMP"
7336 test -z "$OBJDUMP" && OBJDUMP=objdump
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7344 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7345 if ${lt_cv_deplibs_check_method+:} false; then :
7346 $as_echo_n "(cached) " >&6
7348 lt_cv_file_magic_cmd='$MAGIC_CMD'
7349 lt_cv_file_magic_test_file=
7350 lt_cv_deplibs_check_method='unknown'
7351 # Need to set the preceding variable on all platforms that support
7352 # interlibrary dependencies.
7353 # 'none' -- dependencies not supported.
7354 # `unknown' -- same as none, but documents that we really don't know.
7355 # 'pass_all' -- all dependencies passed with no checks.
7356 # 'test_compile' -- check by making test program.
7357 # 'file_magic [[regex]]' -- check by looking for files in library path
7358 # which responds to the $file_magic_cmd with a given extended regex.
7359 # If you have `file' or equivalent on your system and you're not sure
7360 # whether `pass_all' will *always* work, you probably want this one.
7364 lt_cv_deplibs_check_method=pass_all
7368 lt_cv_deplibs_check_method=pass_all
7372 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7373 lt_cv_file_magic_cmd='/usr/bin/file -L'
7374 lt_cv_file_magic_test_file=/shlib/libc.so
7378 # func_win32_libid is a shell function defined in ltmain.sh
7379 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7380 lt_cv_file_magic_cmd='func_win32_libid'
7384 # Base MSYS/MinGW do not provide the 'file' command needed by
7385 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7386 # unless we find 'file', for example because we are cross-compiling.
7387 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7388 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7389 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7390 lt_cv_file_magic_cmd='func_win32_libid'
7392 # Keep this pattern in sync with the one in func_win32_libid.
7393 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7394 lt_cv_file_magic_cmd='$OBJDUMP -f'
7399 # use the weaker test based on 'objdump'. See mingw*.
7400 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7401 lt_cv_file_magic_cmd='$OBJDUMP -f'
7404 darwin* | rhapsody*)
7405 lt_cv_deplibs_check_method=pass_all
7408 freebsd* | dragonfly*)
7409 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7412 # Not sure whether the presence of OpenBSD here was a mistake.
7413 # Let's accept both of them until this is cleared up.
7414 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7415 lt_cv_file_magic_cmd=/usr/bin/file
7416 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7420 lt_cv_deplibs_check_method=pass_all
7425 lt_cv_deplibs_check_method=pass_all
7429 lt_cv_deplibs_check_method=pass_all
7432 hpux10.20* | hpux11*)
7433 lt_cv_file_magic_cmd=/usr/bin/file
7436 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7437 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7440 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]'
7441 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7444 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7445 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7451 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7452 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7455 irix5* | irix6* | nonstopux*)
7457 *-32|*"-32 ") libmagic=32-bit;;
7458 *-n32|*"-n32 ") libmagic=N32;;
7459 *-64|*"-64 ") libmagic=64-bit;;
7460 *) libmagic=never-match;;
7462 lt_cv_deplibs_check_method=pass_all
7465 # This must be Linux ELF.
7466 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7467 lt_cv_deplibs_check_method=pass_all
7471 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7479 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7480 lt_cv_file_magic_cmd=/usr/bin/file
7481 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7485 lt_cv_deplibs_check_method=pass_all
7489 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7496 osf3* | osf4* | osf5*)
7497 lt_cv_deplibs_check_method=pass_all
7501 lt_cv_deplibs_check_method=pass_all
7505 lt_cv_deplibs_check_method=pass_all
7508 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7509 lt_cv_deplibs_check_method=pass_all
7513 case $host_vendor in
7515 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]'
7516 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7519 lt_cv_deplibs_check_method=pass_all
7522 lt_cv_file_magic_cmd='/bin/file'
7523 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7526 lt_cv_file_magic_cmd='/bin/file'
7527 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7528 lt_cv_file_magic_test_file=/lib/libc.so
7531 lt_cv_deplibs_check_method=pass_all
7534 lt_cv_deplibs_check_method=pass_all
7540 lt_cv_deplibs_check_method=pass_all
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7546 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7550 if test "$build" = "$host"; then
7553 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7556 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7562 file_magic_cmd=$lt_cv_file_magic_cmd
7563 deplibs_check_method=$lt_cv_deplibs_check_method
7564 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7587 if test -n "$ac_tool_prefix"; then
7588 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7589 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591 $as_echo_n "checking for $ac_word... " >&6; }
7592 if ${ac_cv_prog_DLLTOOL+:} false; then :
7593 $as_echo_n "(cached) " >&6
7595 if test -n "$DLLTOOL"; then
7596 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 DLLTOOL=$ac_cv_prog_DLLTOOL
7616 if test -n "$DLLTOOL"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7618 $as_echo "$DLLTOOL" >&6; }
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7626 if test -z "$ac_cv_prog_DLLTOOL"; then
7627 ac_ct_DLLTOOL=$DLLTOOL
7628 # Extract the first word of "dlltool", so it can be a program name with args.
7629 set dummy dlltool; ac_word=$2
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631 $as_echo_n "checking for $ac_word... " >&6; }
7632 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7633 $as_echo_n "(cached) " >&6
7635 if test -n "$ac_ct_DLLTOOL"; then
7636 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 test -z "$as_dir" && as_dir=.
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7645 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7656 if test -n "$ac_ct_DLLTOOL"; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7658 $as_echo "$ac_ct_DLLTOOL" >&6; }
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7664 if test "x$ac_ct_DLLTOOL" = x; then
7667 case $cross_compiling:$ac_tool_warned in
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7671 ac_tool_warned=yes ;;
7673 DLLTOOL=$ac_ct_DLLTOOL
7676 DLLTOOL="$ac_cv_prog_DLLTOOL"
7679 test -z "$DLLTOOL" && DLLTOOL=dlltool
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7688 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7689 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7690 $as_echo_n "(cached) " >&6
7692 lt_cv_sharedlib_from_linklib_cmd='unknown'
7695 cygwin* | mingw* | pw32* | cegcc*)
7696 # two different shell functions defined in ltmain.sh
7697 # decide which to use based on capabilities of $DLLTOOL
7698 case `$DLLTOOL --help 2>&1` in
7699 *--identify-strict*)
7700 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7703 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7708 # fallback: assume linklib IS sharedlib
7709 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7715 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7716 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7717 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7725 if test -n "$ac_tool_prefix"; then
7728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731 $as_echo_n "checking for $ac_word... " >&6; }
7732 if ${ac_cv_prog_AR+:} false; then :
7733 $as_echo_n "(cached) " >&6
7735 if test -n "$AR"; then
7736 ac_cv_prog_AR="$AR" # Let the user override the test.
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7745 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 if test -n "$AR"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7758 $as_echo "$AR" >&6; }
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 $as_echo "no" >&6; }
7765 test -n "$AR" && break
7768 if test -z "$AR"; then
7772 # Extract the first word of "$ac_prog", so it can be a program name with args.
7773 set dummy $ac_prog; ac_word=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7777 $as_echo_n "(cached) " >&6
7779 if test -n "$ac_ct_AR"; then
7780 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7789 ac_cv_prog_ac_ct_AR="$ac_prog"
7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7800 if test -n "$ac_ct_AR"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7802 $as_echo "$ac_ct_AR" >&6; }
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7809 test -n "$ac_ct_AR" && break
7812 if test "x$ac_ct_AR" = x; then
7815 case $cross_compiling:$ac_tool_warned in
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7819 ac_tool_warned=yes ;;
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7839 $as_echo_n "checking for archiver @FILE support... " >&6; }
7840 if ${lt_cv_ar_at_file+:} false; then :
7841 $as_echo_n "(cached) " >&6
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7855 if ac_fn_c_try_compile "$LINENO"; then :
7856 echo conftest.$ac_objext > conftest.lst
7857 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7859 (eval $lt_ar_try) 2>&5
7861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7862 test $ac_status = 0; }
7863 if test "$ac_status" -eq 0; then
7864 # Ensure the archiver fails upon bogus file names.
7865 rm -f conftest.$ac_objext libconftest.a
7866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7867 (eval $lt_ar_try) 2>&5
7869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7870 test $ac_status = 0; }
7871 if test "$ac_status" -ne 0; then
7875 rm -f conftest.* libconftest.a
7878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7882 $as_echo "$lt_cv_ar_at_file" >&6; }
7884 if test "x$lt_cv_ar_at_file" = xno; then
7887 archiver_list_spec=$lt_cv_ar_at_file
7896 if test -n "$ac_tool_prefix"; then
7897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7898 set dummy ${ac_tool_prefix}strip; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if ${ac_cv_prog_STRIP+:} false; then :
7902 $as_echo_n "(cached) " >&6
7904 if test -n "$STRIP"; then
7905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7914 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 STRIP=$ac_cv_prog_STRIP
7925 if test -n "$STRIP"; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7927 $as_echo "$STRIP" >&6; }
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7935 if test -z "$ac_cv_prog_STRIP"; then
7937 # Extract the first word of "strip", so it can be a program name with args.
7938 set dummy strip; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7942 $as_echo_n "(cached) " >&6
7944 if test -n "$ac_ct_STRIP"; then
7945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7954 ac_cv_prog_ac_ct_STRIP="strip"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7965 if test -n "$ac_ct_STRIP"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7967 $as_echo "$ac_ct_STRIP" >&6; }
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7973 if test "x$ac_ct_STRIP" = x; then
7976 case $cross_compiling:$ac_tool_warned in
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980 ac_tool_warned=yes ;;
7985 STRIP="$ac_cv_prog_STRIP"
7988 test -z "$STRIP" && STRIP=:
7995 if test -n "$ac_tool_prefix"; then
7996 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7997 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7999 $as_echo_n "checking for $ac_word... " >&6; }
8000 if ${ac_cv_prog_RANLIB+:} false; then :
8001 $as_echo_n "(cached) " >&6
8003 if test -n "$RANLIB"; then
8004 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010 test -z "$as_dir" && as_dir=.
8011 for ac_exec_ext in '' $ac_executable_extensions; do
8012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8013 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 RANLIB=$ac_cv_prog_RANLIB
8024 if test -n "$RANLIB"; then
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8026 $as_echo "$RANLIB" >&6; }
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 $as_echo "no" >&6; }
8034 if test -z "$ac_cv_prog_RANLIB"; then
8035 ac_ct_RANLIB=$RANLIB
8036 # Extract the first word of "ranlib", so it can be a program name with args.
8037 set dummy ranlib; ac_word=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8041 $as_echo_n "(cached) " >&6
8043 if test -n "$ac_ct_RANLIB"; then
8044 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 test -z "$as_dir" && as_dir=.
8051 for ac_exec_ext in '' $ac_executable_extensions; do
8052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8053 ac_cv_prog_ac_ct_RANLIB="ranlib"
8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8064 if test -n "$ac_ct_RANLIB"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8066 $as_echo "$ac_ct_RANLIB" >&6; }
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8072 if test "x$ac_ct_RANLIB" = x; then
8075 case $cross_compiling:$ac_tool_warned in
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8079 ac_tool_warned=yes ;;
8081 RANLIB=$ac_ct_RANLIB
8084 RANLIB="$ac_cv_prog_RANLIB"
8087 test -z "$RANLIB" && RANLIB=:
8094 # Determine commands to create old-style static archives.
8095 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8096 old_postinstall_cmds='chmod 644 $oldlib'
8097 old_postuninstall_cmds=
8099 if test -n "$RANLIB"; then
8102 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8105 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8108 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8113 lock_old_archive_extraction=yes ;;
8115 lock_old_archive_extraction=no ;;
8156 # If no C compiler was specified, use CC.
8159 # If no C compiler flags were specified, use CFLAGS.
8160 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8162 # Allow CC to be a program name with arguments.
8166 # Check for command to grab the raw symbol name followed by C symbol from nm.
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8168 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8169 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8170 $as_echo_n "(cached) " >&6
8173 # These are sane defaults that work on at least a few old systems.
8174 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8176 # Character class describing NM global symbol codes.
8177 symcode='[BCDEGRST]'
8179 # Regexp to match symbols that can be accessed directly from C.
8180 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8182 # Define system-specific variables.
8187 cygwin* | mingw* | pw32* | cegcc*)
8188 symcode='[ABCDGISTW]'
8191 if test "$host_cpu" = ia64; then
8192 symcode='[ABCDEGRST]'
8196 symcode='[BCDEGRST]'
8199 symcode='[BCDEGQRST]'
8210 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8218 # If we're using GNU nm, then use its standard symbol codes.
8219 case `$NM -V 2>&1` in
8220 *GNU* | *'with BFD'*)
8221 symcode='[ABCDGIRSTW]' ;;
8224 # Transform an extracted symbol line into a proper C declaration.
8225 # Some systems (esp. on ia64) link data and code symbols differently,
8226 # so use this general approach.
8227 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8229 # Transform an extracted symbol line into symbol name and symbol address
8230 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8231 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'"
8233 # Handle CRLF in mingw tool chain
8237 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8241 # Try without a prefix underscore, then with it.
8242 for ac_symprfx in "" "_"; do
8244 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8245 symxfrm="\\1 $ac_symprfx\\2 \\2"
8247 # Write the raw and C identifiers.
8248 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8249 # Fake it for dumpbin and say T for any non-static function
8250 # and D for any global variable.
8251 # Also find C++ and __fastcall symbols from MSVC++,
8252 # which start with @ or ?.
8253 lt_cv_sys_global_symbol_pipe="$AWK '"\
8254 " {last_section=section; section=\$ 3};"\
8255 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8256 " \$ 0!~/External *\|/{next};"\
8257 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8258 " {if(hide[section]) next};"\
8259 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8260 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8261 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8262 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8263 " ' prfx=^$ac_symprfx"
8265 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8267 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8269 # Check to see that the pipe works correctly.
8273 cat > conftest.$ac_ext <<_LT_EOF
8278 void nm_test_func(void);
8279 void nm_test_func(void){}
8283 int main(){nm_test_var='a';nm_test_func();return(0);}
8286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8287 (eval $ac_compile) 2>&5
8289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8290 test $ac_status = 0; }; then
8291 # Now try to grab the symbols.
8293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8294 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8297 test $ac_status = 0; } && test -s "$nlist"; then
8298 # Try sorting and uniquifying the output.
8299 if sort "$nlist" | uniq > "$nlist"T; then
8300 mv -f "$nlist"T "$nlist"
8305 # Make sure that we snagged all the symbols we need.
8306 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8307 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8308 cat <<_LT_EOF > conftest.$ac_ext
8309 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8310 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8311 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8312 relocations are performed -- see ld's documentation on pseudo-relocs. */
8313 # define LT_DLSYM_CONST
8314 #elif defined(__osf__)
8315 /* This system does not cope well with relocations in const data. */
8316 # define LT_DLSYM_CONST
8318 # define LT_DLSYM_CONST const
8326 # Now generate the symbol file.
8327 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8329 cat <<_LT_EOF >> conftest.$ac_ext
8331 /* The mapping between symbol names and symbols. */
8332 LT_DLSYM_CONST struct {
8336 lt__PROGRAM__LTX_preloaded_symbols[] =
8338 { "@PROGRAM@", (void *) 0 },
8340 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8341 cat <<\_LT_EOF >> conftest.$ac_ext
8345 /* This works around a problem in FreeBSD linker */
8346 #ifdef FREEBSD_WORKAROUND
8347 static const void *lt_preloaded_setup() {
8348 return lt__PROGRAM__LTX_preloaded_symbols;
8356 # Now try linking the two files.
8357 mv conftest.$ac_objext conftstm.$ac_objext
8358 lt_globsym_save_LIBS=$LIBS
8359 lt_globsym_save_CFLAGS=$CFLAGS
8360 LIBS="conftstm.$ac_objext"
8361 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8363 (eval $ac_link) 2>&5
8365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8366 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8369 LIBS=$lt_globsym_save_LIBS
8370 CFLAGS=$lt_globsym_save_CFLAGS
8372 echo "cannot find nm_test_func in $nlist" >&5
8375 echo "cannot find nm_test_var in $nlist" >&5
8378 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8381 echo "$progname: failed program was:" >&5
8382 cat conftest.$ac_ext >&5
8384 rm -rf conftest* conftst*
8386 # Do not use the global_symbol_pipe unless it works.
8387 if test "$pipe_works" = yes; then
8390 lt_cv_sys_global_symbol_pipe=
8396 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8397 lt_cv_sys_global_symbol_to_cdecl=
8399 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8401 $as_echo "failed" >&6; }
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8404 $as_echo "ok" >&6; }
8407 # Response file support.
8408 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8409 nm_file_list_spec='@'
8410 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8411 nm_file_list_spec='@'
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8441 $as_echo_n "checking for sysroot... " >&6; }
8443 # Check whether --with-sysroot was given.
8444 if test "${with_sysroot+set}" = set; then :
8445 withval=$with_sysroot;
8452 case ${with_sysroot} in #(
8454 if test "$GCC" = yes; then
8455 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8459 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8465 $as_echo "${with_sysroot}" >&6; }
8466 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8471 $as_echo "${lt_sysroot:-no}" >&6; }
8477 # Check whether --enable-libtool-lock was given.
8478 if test "${enable_libtool_lock+set}" = set; then :
8479 enableval=$enable_libtool_lock;
8482 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8484 # Some flags need to be propagated to the compiler or linker for good
8488 # Find out which ABI we are using.
8489 echo 'int i;' > conftest.$ac_ext
8490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8491 (eval $ac_compile) 2>&5
8493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8494 test $ac_status = 0; }; then
8495 case `/usr/bin/file conftest.$ac_objext` in
8507 # Find out which ABI we are using.
8508 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8510 (eval $ac_compile) 2>&5
8512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8513 test $ac_status = 0; }; then
8514 if test "$lt_cv_prog_gnu_ld" = yes; then
8515 case `/usr/bin/file conftest.$ac_objext` in
8517 LD="${LD-ld} -melf32bsmip"
8520 LD="${LD-ld} -melf32bmipn32"
8523 LD="${LD-ld} -melf64bmip"
8527 case `/usr/bin/file conftest.$ac_objext` in
8543 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8544 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8545 # Find out which ABI we are using.
8546 echo 'int i;' > conftest.$ac_ext
8547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8548 (eval $ac_compile) 2>&5
8550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8551 test $ac_status = 0; }; then
8552 case `/usr/bin/file conftest.o` in
8555 x86_64-*kfreebsd*-gnu)
8556 LD="${LD-ld} -m elf_i386_fbsd"
8559 LD="${LD-ld} -m elf_i386"
8561 ppc64-*linux*|powerpc64-*linux*)
8562 LD="${LD-ld} -m elf32ppclinux"
8565 LD="${LD-ld} -m elf_s390"
8568 LD="${LD-ld} -m elf32_sparc"
8574 x86_64-*kfreebsd*-gnu)
8575 LD="${LD-ld} -m elf_x86_64_fbsd"
8578 LD="${LD-ld} -m elf_x86_64"
8580 ppc*-*linux*|powerpc*-*linux*)
8581 LD="${LD-ld} -m elf64ppc"
8583 s390*-*linux*|s390*-*tpf*)
8584 LD="${LD-ld} -m elf64_s390"
8587 LD="${LD-ld} -m elf64_sparc"
8597 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8598 SAVE_CFLAGS="$CFLAGS"
8599 CFLAGS="$CFLAGS -belf"
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8601 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8602 if ${lt_cv_cc_needs_belf+:} false; then :
8603 $as_echo_n "(cached) " >&6
8606 ac_cpp='$CPP $CPPFLAGS'
8607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
8622 if ac_fn_c_try_link "$LINENO"; then :
8623 lt_cv_cc_needs_belf=yes
8625 lt_cv_cc_needs_belf=no
8627 rm -f core conftest.err conftest.$ac_objext \
8628 conftest$ac_exeext conftest.$ac_ext
8630 ac_cpp='$CPP $CPPFLAGS'
8631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8637 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8638 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8639 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8640 CFLAGS="$SAVE_CFLAGS"
8644 # Find out which ABI we are using.
8645 echo 'int i;' > conftest.$ac_ext
8646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8647 (eval $ac_compile) 2>&5
8649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8650 test $ac_status = 0; }; then
8651 case `/usr/bin/file conftest.o` in
8653 case $lt_cv_prog_gnu_ld in
8654 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8656 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8668 need_locks="$enable_libtool_lock"
8670 if test -n "$ac_tool_prefix"; then
8671 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8672 set dummy ${ac_tool_prefix}mt; ac_word=$2
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8674 $as_echo_n "checking for $ac_word... " >&6; }
8675 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8676 $as_echo_n "(cached) " >&6
8678 if test -n "$MANIFEST_TOOL"; then
8679 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8685 test -z "$as_dir" && as_dir=.
8686 for ac_exec_ext in '' $ac_executable_extensions; do
8687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8688 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8698 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8699 if test -n "$MANIFEST_TOOL"; then
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8701 $as_echo "$MANIFEST_TOOL" >&6; }
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8704 $as_echo "no" >&6; }
8709 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8710 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8711 # Extract the first word of "mt", so it can be a program name with args.
8712 set dummy mt; ac_word=$2
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8714 $as_echo_n "checking for $ac_word... " >&6; }
8715 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8716 $as_echo_n "(cached) " >&6
8718 if test -n "$ac_ct_MANIFEST_TOOL"; then
8719 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8725 test -z "$as_dir" && as_dir=.
8726 for ac_exec_ext in '' $ac_executable_extensions; do
8727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8728 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8738 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8739 if test -n "$ac_ct_MANIFEST_TOOL"; then
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8741 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744 $as_echo "no" >&6; }
8747 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8750 case $cross_compiling:$ac_tool_warned in
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8754 ac_tool_warned=yes ;;
8756 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8759 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8762 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8764 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8765 if ${lt_cv_path_mainfest_tool+:} false; then :
8766 $as_echo_n "(cached) " >&6
8768 lt_cv_path_mainfest_tool=no
8769 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8770 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8771 cat conftest.err >&5
8772 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8773 lt_cv_path_mainfest_tool=yes
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8778 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8779 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8789 rhapsody* | darwin*)
8790 if test -n "$ac_tool_prefix"; then
8791 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8792 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794 $as_echo_n "checking for $ac_word... " >&6; }
8795 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8796 $as_echo_n "(cached) " >&6
8798 if test -n "$DSYMUTIL"; then
8799 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805 test -z "$as_dir" && as_dir=.
8806 for ac_exec_ext in '' $ac_executable_extensions; do
8807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8808 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8819 if test -n "$DSYMUTIL"; then
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8821 $as_echo "$DSYMUTIL" >&6; }
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8829 if test -z "$ac_cv_prog_DSYMUTIL"; then
8830 ac_ct_DSYMUTIL=$DSYMUTIL
8831 # Extract the first word of "dsymutil", so it can be a program name with args.
8832 set dummy dsymutil; ac_word=$2
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 $as_echo_n "checking for $ac_word... " >&6; }
8835 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8836 $as_echo_n "(cached) " >&6
8838 if test -n "$ac_ct_DSYMUTIL"; then
8839 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 test -z "$as_dir" && as_dir=.
8846 for ac_exec_ext in '' $ac_executable_extensions; do
8847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8848 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8858 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8859 if test -n "$ac_ct_DSYMUTIL"; then
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8861 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864 $as_echo "no" >&6; }
8867 if test "x$ac_ct_DSYMUTIL" = x; then
8870 case $cross_compiling:$ac_tool_warned in
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8874 ac_tool_warned=yes ;;
8876 DSYMUTIL=$ac_ct_DSYMUTIL
8879 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8882 if test -n "$ac_tool_prefix"; then
8883 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8884 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886 $as_echo_n "checking for $ac_word... " >&6; }
8887 if ${ac_cv_prog_NMEDIT+:} false; then :
8888 $as_echo_n "(cached) " >&6
8890 if test -n "$NMEDIT"; then
8891 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8897 test -z "$as_dir" && as_dir=.
8898 for ac_exec_ext in '' $ac_executable_extensions; do
8899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8900 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8910 NMEDIT=$ac_cv_prog_NMEDIT
8911 if test -n "$NMEDIT"; then
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8913 $as_echo "$NMEDIT" >&6; }
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916 $as_echo "no" >&6; }
8921 if test -z "$ac_cv_prog_NMEDIT"; then
8922 ac_ct_NMEDIT=$NMEDIT
8923 # Extract the first word of "nmedit", so it can be a program name with args.
8924 set dummy nmedit; ac_word=$2
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8926 $as_echo_n "checking for $ac_word... " >&6; }
8927 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8928 $as_echo_n "(cached) " >&6
8930 if test -n "$ac_ct_NMEDIT"; then
8931 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937 test -z "$as_dir" && as_dir=.
8938 for ac_exec_ext in '' $ac_executable_extensions; do
8939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8940 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8950 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8951 if test -n "$ac_ct_NMEDIT"; then
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8953 $as_echo "$ac_ct_NMEDIT" >&6; }
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8956 $as_echo "no" >&6; }
8959 if test "x$ac_ct_NMEDIT" = x; then
8962 case $cross_compiling:$ac_tool_warned in
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8966 ac_tool_warned=yes ;;
8968 NMEDIT=$ac_ct_NMEDIT
8971 NMEDIT="$ac_cv_prog_NMEDIT"
8974 if test -n "$ac_tool_prefix"; then
8975 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8976 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8978 $as_echo_n "checking for $ac_word... " >&6; }
8979 if ${ac_cv_prog_LIPO+:} false; then :
8980 $as_echo_n "(cached) " >&6
8982 if test -n "$LIPO"; then
8983 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8989 test -z "$as_dir" && as_dir=.
8990 for ac_exec_ext in '' $ac_executable_extensions; do
8991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8992 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9002 LIPO=$ac_cv_prog_LIPO
9003 if test -n "$LIPO"; then
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9005 $as_echo "$LIPO" >&6; }
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9008 $as_echo "no" >&6; }
9013 if test -z "$ac_cv_prog_LIPO"; then
9015 # Extract the first word of "lipo", so it can be a program name with args.
9016 set dummy lipo; ac_word=$2
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9018 $as_echo_n "checking for $ac_word... " >&6; }
9019 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9020 $as_echo_n "(cached) " >&6
9022 if test -n "$ac_ct_LIPO"; then
9023 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9032 ac_cv_prog_ac_ct_LIPO="lipo"
9033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9042 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9043 if test -n "$ac_ct_LIPO"; then
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9045 $as_echo "$ac_ct_LIPO" >&6; }
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048 $as_echo "no" >&6; }
9051 if test "x$ac_ct_LIPO" = x; then
9054 case $cross_compiling:$ac_tool_warned in
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9058 ac_tool_warned=yes ;;
9063 LIPO="$ac_cv_prog_LIPO"
9066 if test -n "$ac_tool_prefix"; then
9067 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9068 set dummy ${ac_tool_prefix}otool; ac_word=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if ${ac_cv_prog_OTOOL+:} false; then :
9072 $as_echo_n "(cached) " >&6
9074 if test -n "$OTOOL"; then
9075 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081 test -z "$as_dir" && as_dir=.
9082 for ac_exec_ext in '' $ac_executable_extensions; do
9083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9084 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9094 OTOOL=$ac_cv_prog_OTOOL
9095 if test -n "$OTOOL"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9097 $as_echo "$OTOOL" >&6; }
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9105 if test -z "$ac_cv_prog_OTOOL"; then
9107 # Extract the first word of "otool", so it can be a program name with args.
9108 set dummy otool; ac_word=$2
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110 $as_echo_n "checking for $ac_word... " >&6; }
9111 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9112 $as_echo_n "(cached) " >&6
9114 if test -n "$ac_ct_OTOOL"; then
9115 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121 test -z "$as_dir" && as_dir=.
9122 for ac_exec_ext in '' $ac_executable_extensions; do
9123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9124 ac_cv_prog_ac_ct_OTOOL="otool"
9125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9134 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9135 if test -n "$ac_ct_OTOOL"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9137 $as_echo "$ac_ct_OTOOL" >&6; }
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9143 if test "x$ac_ct_OTOOL" = x; then
9146 case $cross_compiling:$ac_tool_warned in
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9150 ac_tool_warned=yes ;;
9155 OTOOL="$ac_cv_prog_OTOOL"
9158 if test -n "$ac_tool_prefix"; then
9159 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9160 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9162 $as_echo_n "checking for $ac_word... " >&6; }
9163 if ${ac_cv_prog_OTOOL64+:} false; then :
9164 $as_echo_n "(cached) " >&6
9166 if test -n "$OTOOL64"; then
9167 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9173 test -z "$as_dir" && as_dir=.
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9176 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9186 OTOOL64=$ac_cv_prog_OTOOL64
9187 if test -n "$OTOOL64"; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9189 $as_echo "$OTOOL64" >&6; }
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192 $as_echo "no" >&6; }
9197 if test -z "$ac_cv_prog_OTOOL64"; then
9198 ac_ct_OTOOL64=$OTOOL64
9199 # Extract the first word of "otool64", so it can be a program name with args.
9200 set dummy otool64; ac_word=$2
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9202 $as_echo_n "checking for $ac_word... " >&6; }
9203 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9204 $as_echo_n "(cached) " >&6
9206 if test -n "$ac_ct_OTOOL64"; then
9207 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9213 test -z "$as_dir" && as_dir=.
9214 for ac_exec_ext in '' $ac_executable_extensions; do
9215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9216 ac_cv_prog_ac_ct_OTOOL64="otool64"
9217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9226 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9227 if test -n "$ac_ct_OTOOL64"; then
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9229 $as_echo "$ac_ct_OTOOL64" >&6; }
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9232 $as_echo "no" >&6; }
9235 if test "x$ac_ct_OTOOL64" = x; then
9238 case $cross_compiling:$ac_tool_warned in
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9242 ac_tool_warned=yes ;;
9244 OTOOL64=$ac_ct_OTOOL64
9247 OTOOL64="$ac_cv_prog_OTOOL64"
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9277 $as_echo_n "checking for -single_module linker flag... " >&6; }
9278 if ${lt_cv_apple_cc_single_mod+:} false; then :
9279 $as_echo_n "(cached) " >&6
9281 lt_cv_apple_cc_single_mod=no
9282 if test -z "${LT_MULTI_MODULE}"; then
9283 # By default we will add the -single_module flag. You can override
9284 # by either setting the environment variable LT_MULTI_MODULE
9285 # non-empty at configure time, or by adding -multi_module to the
9287 rm -rf libconftest.dylib*
9288 echo "int foo(void){return 1;}" > conftest.c
9289 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9290 -dynamiclib -Wl,-single_module conftest.c" >&5
9291 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9292 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9294 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9295 lt_cv_apple_cc_single_mod=yes
9297 cat conftest.err >&5
9299 rm -rf libconftest.dylib*
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9304 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9306 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9307 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9308 $as_echo_n "(cached) " >&6
9310 lt_cv_ld_exported_symbols_list=no
9311 save_LDFLAGS=$LDFLAGS
9312 echo "_main" > conftest.sym
9313 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9315 /* end confdefs.h. */
9325 if ac_fn_c_try_link "$LINENO"; then :
9326 lt_cv_ld_exported_symbols_list=yes
9328 lt_cv_ld_exported_symbols_list=no
9330 rm -f core conftest.err conftest.$ac_objext \
9331 conftest$ac_exeext conftest.$ac_ext
9332 LDFLAGS="$save_LDFLAGS"
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9336 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9338 $as_echo_n "checking for -force_load linker flag... " >&6; }
9339 if ${lt_cv_ld_force_load+:} false; then :
9340 $as_echo_n "(cached) " >&6
9342 lt_cv_ld_force_load=no
9343 cat > conftest.c << _LT_EOF
9344 int forced_loaded() { return 2;}
9346 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9347 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9348 echo "$AR cru libconftest.a conftest.o" >&5
9349 $AR cru libconftest.a conftest.o 2>&5
9350 echo "$RANLIB libconftest.a" >&5
9351 $RANLIB libconftest.a 2>&5
9352 cat > conftest.c << _LT_EOF
9353 int main() { return 0;}
9355 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9356 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9358 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9359 lt_cv_ld_force_load=yes
9361 cat conftest.err >&5
9363 rm -f conftest.err libconftest.a conftest conftest.c
9364 rm -rf conftest.dSYM
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9368 $as_echo "$lt_cv_ld_force_load" >&6; }
9370 rhapsody* | darwin1.[012])
9371 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9373 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9374 darwin*) # darwin 5.x on
9375 # if running on 10.5 or later, the deployment target defaults
9376 # to the OS version, if on x86, and 10.4, the deployment
9377 # target defaults to 10.4. Don't you love it?
9378 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9379 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9380 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9382 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9384 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9388 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9389 _lt_dar_single_mod='$single_module'
9391 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9392 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9394 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9396 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9397 _lt_dsymutil='~$DSYMUTIL $lib || :'
9404 for ac_header in dlfcn.h
9406 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9408 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9409 cat >>confdefs.h <<_ACEOF
9410 #define HAVE_DLFCN_H 1
9429 # Check whether --enable-shared was given.
9430 if test "${enable_shared+set}" = set; then :
9431 enableval=$enable_shared; p=${PACKAGE-default}
9433 yes) enable_shared=yes ;;
9434 no) enable_shared=no ;;
9437 # Look at the argument we got. We use all the common list separators.
9438 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9439 for pkg in $enableval; do
9441 if test "X$pkg" = "X$p"; then
9460 # Check whether --enable-static was given.
9461 if test "${enable_static+set}" = set; then :
9462 enableval=$enable_static; p=${PACKAGE-default}
9464 yes) enable_static=yes ;;
9465 no) enable_static=no ;;
9468 # Look at the argument we got. We use all the common list separators.
9469 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9470 for pkg in $enableval; do
9472 if test "X$pkg" = "X$p"; then
9492 # Check whether --with-pic was given.
9493 if test "${with_pic+set}" = set; then :
9494 withval=$with_pic; pic_mode="$withval"
9500 test -z "$pic_mode" && pic_mode=default
9508 # Check whether --enable-fast-install was given.
9509 if test "${enable_fast_install+set}" = set; then :
9510 enableval=$enable_fast_install; p=${PACKAGE-default}
9512 yes) enable_fast_install=yes ;;
9513 no) enable_fast_install=no ;;
9515 enable_fast_install=no
9516 # Look at the argument we got. We use all the common list separators.
9517 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9518 for pkg in $enableval; do
9520 if test "X$pkg" = "X$p"; then
9521 enable_fast_install=yes
9528 enable_fast_install=yes
9541 # This can be used to rebuild libtool when needed
9542 LIBTOOL_DEPS="$ltmain"
9544 # Always use our own libtool.
9545 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9572 test -z "$LN_S" && LN_S="ln -s"
9587 if test -n "${ZSH_VERSION+set}" ; then
9588 setopt NO_GLOB_SUBST
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9592 $as_echo_n "checking for objdir... " >&6; }
9593 if ${lt_cv_objdir+:} false; then :
9594 $as_echo_n "(cached) " >&6
9596 rm -f .libs 2>/dev/null
9597 mkdir .libs 2>/dev/null
9598 if test -d .libs; then
9601 # MS-DOS does not allow filenames that begin with a dot.
9604 rmdir .libs 2>/dev/null
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9607 $as_echo "$lt_cv_objdir" >&6; }
9608 objdir=$lt_cv_objdir
9614 cat >>confdefs.h <<_ACEOF
9615 #define LT_OBJDIR "$lt_cv_objdir/"
9623 # AIX sometimes has problems with the GCC collect2 program. For some
9624 # reason, if we set the COLLECT_NAMES environment variable, the problems
9625 # vanish in a puff of smoke.
9626 if test "X${COLLECT_NAMES+set}" != Xset; then
9628 export COLLECT_NAMES
9635 can_build_shared=yes
9637 # All known linkers require a `.a' archive for static linking (except MSVC,
9638 # which needs '.lib').
9641 with_gnu_ld="$lt_cv_prog_gnu_ld"
9644 old_CFLAGS="$CFLAGS"
9646 # Set sane defaults for various variables
9647 test -z "$CC" && CC=cc
9648 test -z "$LTCC" && LTCC=$CC
9649 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9650 test -z "$LD" && LD=ld
9651 test -z "$ac_objext" && ac_objext=o
9653 for cc_temp in $compiler""; do
9655 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9656 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9661 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9664 # Only perform the check for file, if the check method requires it
9665 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9666 case $deplibs_check_method in
9668 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9670 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9671 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9672 $as_echo_n "(cached) " >&6
9676 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9679 lt_save_MAGIC_CMD="$MAGIC_CMD"
9680 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9681 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9682 for ac_dir in $ac_dummy; do
9684 test -z "$ac_dir" && ac_dir=.
9685 if test -f $ac_dir/${ac_tool_prefix}file; then
9686 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9687 if test -n "$file_magic_test_file"; then
9688 case $deplibs_check_method in
9690 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9691 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9692 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9693 $EGREP "$file_magic_regex" > /dev/null; then
9698 *** Warning: the command libtool uses to detect shared libraries,
9699 *** $file_magic_cmd, produces output that libtool cannot recognize.
9700 *** The result is that libtool may fail to recognize shared libraries
9701 *** as such. This will affect the creation of libtool libraries that
9702 *** depend on shared libraries, but programs linked with such libtool
9703 *** libraries will work regardless of this problem. Nevertheless, you
9704 *** may want to report the problem to your system manager and/or to
9705 *** bug-libtool@gnu.org
9715 MAGIC_CMD="$lt_save_MAGIC_CMD"
9720 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9721 if test -n "$MAGIC_CMD"; then
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9723 $as_echo "$MAGIC_CMD" >&6; }
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9726 $as_echo "no" >&6; }
9733 if test -z "$lt_cv_path_MAGIC_CMD"; then
9734 if test -n "$ac_tool_prefix"; then
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9736 $as_echo_n "checking for file... " >&6; }
9737 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9738 $as_echo_n "(cached) " >&6
9742 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9745 lt_save_MAGIC_CMD="$MAGIC_CMD"
9746 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9747 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9748 for ac_dir in $ac_dummy; do
9750 test -z "$ac_dir" && ac_dir=.
9751 if test -f $ac_dir/file; then
9752 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9753 if test -n "$file_magic_test_file"; then
9754 case $deplibs_check_method in
9756 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9757 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9758 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9759 $EGREP "$file_magic_regex" > /dev/null; then
9764 *** Warning: the command libtool uses to detect shared libraries,
9765 *** $file_magic_cmd, produces output that libtool cannot recognize.
9766 *** The result is that libtool may fail to recognize shared libraries
9767 *** as such. This will affect the creation of libtool libraries that
9768 *** depend on shared libraries, but programs linked with such libtool
9769 *** libraries will work regardless of this problem. Nevertheless, you
9770 *** may want to report the problem to your system manager and/or to
9771 *** bug-libtool@gnu.org
9781 MAGIC_CMD="$lt_save_MAGIC_CMD"
9786 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9787 if test -n "$MAGIC_CMD"; then
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9789 $as_echo "$MAGIC_CMD" >&6; }
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9792 $as_echo "no" >&6; }
9805 # Use C for the default configuration in the libtool script
9809 ac_cpp='$CPP $CPPFLAGS'
9810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9815 # Source file extension for C test sources.
9818 # Object file extension for compiled C test sources.
9822 # Code to be used in simple compile tests
9823 lt_simple_compile_test_code="int some_variable = 0;"
9825 # Code to be used in simple link tests
9826 lt_simple_link_test_code='int main(){return(0);}'
9834 # If no C compiler was specified, use CC.
9837 # If no C compiler flags were specified, use CFLAGS.
9838 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9840 # Allow CC to be a program name with arguments.
9843 # Save the default compiler, since it gets overwritten when the other
9844 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9845 compiler_DEFAULT=$CC
9847 # save warnings/boilerplate of simple test code
9848 ac_outfile=conftest.$ac_objext
9849 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9850 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9851 _lt_compiler_boilerplate=`cat conftest.err`
9854 ac_outfile=conftest.$ac_objext
9855 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9856 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9857 _lt_linker_boilerplate=`cat conftest.err`
9861 if test -n "$compiler"; then
9863 lt_prog_compiler_no_builtin_flag=
9865 if test "$GCC" = yes; then
9866 case $cc_basename in
9868 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9870 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9874 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9875 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9876 $as_echo_n "(cached) " >&6
9878 lt_cv_prog_compiler_rtti_exceptions=no
9879 ac_outfile=conftest.$ac_objext
9880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9881 lt_compiler_flag="-fno-rtti -fno-exceptions"
9882 # Insert the option either (1) after the last *FLAGS variable, or
9883 # (2) before a word containing "conftest.", or (3) at the end.
9884 # Note that $ac_compile itself does not contain backslashes and begins
9885 # with a dollar sign (not a hyphen), so the echo should work correctly.
9886 # The option is referenced via a variable to avoid confusing sed.
9887 lt_compile=`echo "$ac_compile" | $SED \
9888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9890 -e 's:$: $lt_compiler_flag:'`
9891 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9892 (eval "$lt_compile" 2>conftest.err)
9894 cat conftest.err >&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 if (exit $ac_status) && test -s "$ac_outfile"; then
9897 # The compiler can only warn and ignore the option if not recognized
9898 # So say no if there are warnings other than the usual output.
9899 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9901 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9902 lt_cv_prog_compiler_rtti_exceptions=yes
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9909 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9911 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9912 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9924 lt_prog_compiler_wl=
9925 lt_prog_compiler_pic=
9926 lt_prog_compiler_static=
9929 if test "$GCC" = yes; then
9930 lt_prog_compiler_wl='-Wl,'
9931 lt_prog_compiler_static='-static'
9935 # All AIX code is PIC.
9936 if test "$host_cpu" = ia64; then
9937 # AIX 5 now supports IA64 processor
9938 lt_prog_compiler_static='-Bstatic'
9945 # see comment about AmigaOS4 .so support
9946 lt_prog_compiler_pic='-fPIC'
9949 # FIXME: we need at least 68020 code to build shared libraries, but
9950 # adding the `-m68020' flag to GCC prevents building anything better,
9952 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9957 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9958 # PIC is the default for these OSes.
9961 mingw* | cygwin* | pw32* | os2* | cegcc*)
9962 # This hack is so that the source file can tell whether it is being
9963 # built for inclusion in a dll (and should export symbols for example).
9964 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9965 # (--disable-auto-import) libraries
9966 lt_prog_compiler_pic='-DDLL_EXPORT'
9969 darwin* | rhapsody*)
9970 # PIC is the default on this platform
9971 # Common symbols not allowed in MH_DYLIB files
9972 lt_prog_compiler_pic='-fno-common'
9976 # PIC is the default for Haiku.
9977 # The "-static" flag exists, but is broken.
9978 lt_prog_compiler_static=
9982 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9983 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9984 # sets the default TLS model and affects inlining.
9990 lt_prog_compiler_pic='-fPIC'
9996 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9997 # Instead, we relocate shared libraries at runtime.
10001 # Just because we use GCC doesn't mean we suddenly get shared libraries
10002 # on systems that don't support them.
10003 lt_prog_compiler_can_build_shared=no
10008 # QNX uses GNU C++, but need to define -shared option too, otherwise
10009 # it will coredump.
10010 lt_prog_compiler_pic='-fPIC -shared'
10014 if test -d /usr/nec; then
10015 lt_prog_compiler_pic=-Kconform_pic
10020 lt_prog_compiler_pic='-fPIC'
10024 case $cc_basename in
10025 nvcc*) # Cuda Compiler Driver 2.2
10026 lt_prog_compiler_wl='-Xlinker '
10027 lt_prog_compiler_pic='-Xcompiler -fPIC'
10031 # PORTME Check for flag to pass linker flags through the system compiler.
10034 lt_prog_compiler_wl='-Wl,'
10035 if test "$host_cpu" = ia64; then
10036 # AIX 5 now supports IA64 processor
10037 lt_prog_compiler_static='-Bstatic'
10039 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10043 mingw* | cygwin* | pw32* | os2* | cegcc*)
10044 # This hack is so that the source file can tell whether it is being
10045 # built for inclusion in a dll (and should export symbols for example).
10046 lt_prog_compiler_pic='-DDLL_EXPORT'
10049 hpux9* | hpux10* | hpux11*)
10050 lt_prog_compiler_wl='-Wl,'
10051 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10052 # not for PA HP-UX.
10058 lt_prog_compiler_pic='+Z'
10061 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10062 lt_prog_compiler_static='${wl}-a ${wl}archive'
10065 irix5* | irix6* | nonstopux*)
10066 lt_prog_compiler_wl='-Wl,'
10067 # PIC (with -KPIC) is the default.
10068 lt_prog_compiler_static='-non_shared'
10071 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10072 case $cc_basename in
10073 # old Intel for x86_64 which still supported -KPIC.
10075 lt_prog_compiler_wl='-Wl,'
10076 lt_prog_compiler_pic='-KPIC'
10077 lt_prog_compiler_static='-static'
10079 # icc used to be incompatible with GCC.
10080 # ICC 10 doesn't accept -KPIC any more.
10082 lt_prog_compiler_wl='-Wl,'
10083 lt_prog_compiler_pic='-fPIC'
10084 lt_prog_compiler_static='-static'
10086 # Lahey Fortran 8.1.
10088 lt_prog_compiler_wl='-Wl,'
10089 lt_prog_compiler_pic='--shared'
10090 lt_prog_compiler_static='--static'
10093 # NAG Fortran compiler
10094 lt_prog_compiler_wl='-Wl,-Wl,,'
10095 lt_prog_compiler_pic='-PIC'
10096 lt_prog_compiler_static='-Bstatic'
10098 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10099 # Portland Group compilers (*not* the Pentium gcc compiler,
10100 # which looks to be a dead project)
10101 lt_prog_compiler_wl='-Wl,'
10102 lt_prog_compiler_pic='-fpic'
10103 lt_prog_compiler_static='-Bstatic'
10106 lt_prog_compiler_wl='-Wl,'
10107 # All Alpha code is PIC.
10108 lt_prog_compiler_static='-non_shared'
10110 xl* | bgxl* | bgf* | mpixl*)
10111 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10112 lt_prog_compiler_wl='-Wl,'
10113 lt_prog_compiler_pic='-qpic'
10114 lt_prog_compiler_static='-qstaticlink'
10117 case `$CC -V 2>&1 | sed 5q` in
10118 *Sun\ F* | *Sun*Fortran*)
10119 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10120 lt_prog_compiler_pic='-KPIC'
10121 lt_prog_compiler_static='-Bstatic'
10122 lt_prog_compiler_wl=''
10126 lt_prog_compiler_pic='-KPIC'
10127 lt_prog_compiler_static='-Bstatic'
10128 lt_prog_compiler_wl='-Wl,'
10136 lt_prog_compiler_pic='-KPIC'
10137 lt_prog_compiler_static='-Bstatic'
10141 # QNX uses GNU C++, but need to define -shared option too, otherwise
10142 # it will coredump.
10143 lt_prog_compiler_pic='-fPIC -shared'
10146 osf3* | osf4* | osf5*)
10147 lt_prog_compiler_wl='-Wl,'
10148 # All OSF/1 code is PIC.
10149 lt_prog_compiler_static='-non_shared'
10153 lt_prog_compiler_static='-non_shared'
10157 lt_prog_compiler_pic='-KPIC'
10158 lt_prog_compiler_static='-Bstatic'
10159 case $cc_basename in
10160 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10161 lt_prog_compiler_wl='-Qoption ld ';;
10163 lt_prog_compiler_wl='-Wl,';;
10168 lt_prog_compiler_wl='-Qoption ld '
10169 lt_prog_compiler_pic='-PIC'
10170 lt_prog_compiler_static='-Bstatic'
10173 sysv4 | sysv4.2uw2* | sysv4.3*)
10174 lt_prog_compiler_wl='-Wl,'
10175 lt_prog_compiler_pic='-KPIC'
10176 lt_prog_compiler_static='-Bstatic'
10180 if test -d /usr/nec ;then
10181 lt_prog_compiler_pic='-Kconform_pic'
10182 lt_prog_compiler_static='-Bstatic'
10186 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10187 lt_prog_compiler_wl='-Wl,'
10188 lt_prog_compiler_pic='-KPIC'
10189 lt_prog_compiler_static='-Bstatic'
10193 lt_prog_compiler_wl='-Wl,'
10194 lt_prog_compiler_can_build_shared=no
10198 lt_prog_compiler_pic='-pic'
10199 lt_prog_compiler_static='-Bstatic'
10203 lt_prog_compiler_can_build_shared=no
10209 # For platforms which do not support PIC, -DPIC is meaningless:
10211 lt_prog_compiler_pic=
10214 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10219 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10220 if ${lt_cv_prog_compiler_pic+:} false; then :
10221 $as_echo_n "(cached) " >&6
10223 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10226 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10227 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10230 # Check to make sure the PIC flag actually works.
10232 if test -n "$lt_prog_compiler_pic"; then
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10234 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10235 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10236 $as_echo_n "(cached) " >&6
10238 lt_cv_prog_compiler_pic_works=no
10239 ac_outfile=conftest.$ac_objext
10240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10241 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10242 # Insert the option either (1) after the last *FLAGS variable, or
10243 # (2) before a word containing "conftest.", or (3) at the end.
10244 # Note that $ac_compile itself does not contain backslashes and begins
10245 # with a dollar sign (not a hyphen), so the echo should work correctly.
10246 # The option is referenced via a variable to avoid confusing sed.
10247 lt_compile=`echo "$ac_compile" | $SED \
10248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10250 -e 's:$: $lt_compiler_flag:'`
10251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10252 (eval "$lt_compile" 2>conftest.err)
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 if (exit $ac_status) && test -s "$ac_outfile"; then
10257 # The compiler can only warn and ignore the option if not recognized
10258 # So say no if there are warnings other than the usual output.
10259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10261 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10262 lt_cv_prog_compiler_pic_works=yes
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10269 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10271 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10272 case $lt_prog_compiler_pic in
10274 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10277 lt_prog_compiler_pic=
10278 lt_prog_compiler_can_build_shared=no
10294 # Check to make sure the static flag actually works.
10296 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10298 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10299 if ${lt_cv_prog_compiler_static_works+:} false; then :
10300 $as_echo_n "(cached) " >&6
10302 lt_cv_prog_compiler_static_works=no
10303 save_LDFLAGS="$LDFLAGS"
10304 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10305 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10306 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10307 # The linker can only warn and ignore the option if not recognized
10308 # So say no if there are warnings
10309 if test -s conftest.err; then
10310 # Append any errors to the config.log.
10311 cat conftest.err 1>&5
10312 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10314 if diff conftest.exp conftest.er2 >/dev/null; then
10315 lt_cv_prog_compiler_static_works=yes
10318 lt_cv_prog_compiler_static_works=yes
10322 LDFLAGS="$save_LDFLAGS"
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10326 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10328 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10331 lt_prog_compiler_static=
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10341 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10342 if ${lt_cv_prog_compiler_c_o+:} false; then :
10343 $as_echo_n "(cached) " >&6
10345 lt_cv_prog_compiler_c_o=no
10346 $RM -r conftest 2>/dev/null
10350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10352 lt_compiler_flag="-o out/conftest2.$ac_objext"
10353 # Insert the option either (1) after the last *FLAGS variable, or
10354 # (2) before a word containing "conftest.", or (3) at the end.
10355 # Note that $ac_compile itself does not contain backslashes and begins
10356 # with a dollar sign (not a hyphen), so the echo should work correctly.
10357 lt_compile=`echo "$ac_compile" | $SED \
10358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10360 -e 's:$: $lt_compiler_flag:'`
10361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10362 (eval "$lt_compile" 2>out/conftest.err)
10364 cat out/conftest.err >&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10368 # The compiler can only warn and ignore the option if not recognized
10369 # So say no if there are warnings
10370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10373 lt_cv_prog_compiler_c_o=yes
10378 # SGI C++ compiler will create directory out/ii_files/ for
10379 # template instantiation
10380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10381 $RM out/* && rmdir out
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10388 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10396 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10397 if ${lt_cv_prog_compiler_c_o+:} false; then :
10398 $as_echo_n "(cached) " >&6
10400 lt_cv_prog_compiler_c_o=no
10401 $RM -r conftest 2>/dev/null
10405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10407 lt_compiler_flag="-o out/conftest2.$ac_objext"
10408 # Insert the option either (1) after the last *FLAGS variable, or
10409 # (2) before a word containing "conftest.", or (3) at the end.
10410 # Note that $ac_compile itself does not contain backslashes and begins
10411 # with a dollar sign (not a hyphen), so the echo should work correctly.
10412 lt_compile=`echo "$ac_compile" | $SED \
10413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10415 -e 's:$: $lt_compiler_flag:'`
10416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10417 (eval "$lt_compile" 2>out/conftest.err)
10419 cat out/conftest.err >&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10423 # The compiler can only warn and ignore the option if not recognized
10424 # So say no if there are warnings
10425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10426 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10427 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10428 lt_cv_prog_compiler_c_o=yes
10433 # SGI C++ compiler will create directory out/ii_files/ for
10434 # template instantiation
10435 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10436 $RM out/* && rmdir out
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10443 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10448 hard_links="nottested"
10449 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10450 # do not overwrite the value of need_locks provided by the user
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10452 $as_echo_n "checking if we can lock with hard links... " >&6; }
10455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10457 ln conftest.a conftest.b 2>&5 || hard_links=no
10458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10460 $as_echo "$hard_links" >&6; }
10461 if test "$hard_links" = no; then
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10463 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10476 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10479 allow_undefined_flag=
10480 always_export_symbols=no
10482 archive_expsym_cmds=
10483 compiler_needs_object=no
10484 enable_shared_with_static_runtimes=no
10485 export_dynamic_flag_spec=
10486 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10487 hardcode_automatic=no
10489 hardcode_direct_absolute=no
10490 hardcode_libdir_flag_spec=
10491 hardcode_libdir_flag_spec_ld=
10492 hardcode_libdir_separator=
10493 hardcode_minus_L=no
10494 hardcode_shlibpath_var=unsupported
10496 link_all_deplibs=unknown
10498 module_expsym_cmds=
10499 old_archive_from_new_cmds=
10500 old_archive_from_expsyms_cmds=
10501 thread_safe_flag_spec=
10502 whole_archive_flag_spec=
10503 # include_expsyms should be a list of space-separated symbols to be *always*
10504 # included in the symbol list
10506 # exclude_expsyms can be an extended regexp of symbols to exclude
10507 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10508 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10509 # as well as any symbol that contains `d'.
10510 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10511 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10512 # platforms (ab)use it in PIC code, but their linkers get confused if
10513 # the symbol is explicitly referenced. Since portable code cannot
10514 # rely on this symbol name, it's probably fine to never include it in
10515 # preloaded symbol tables.
10516 # Exclude shared library initialization/finalization symbols.
10517 extract_expsyms_cmds=
10520 cygwin* | mingw* | pw32* | cegcc*)
10521 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10522 # When not using gcc, we currently assume that we are using
10523 # Microsoft Visual C++.
10524 if test "$GCC" != yes; then
10529 # we just hope/assume this is gcc and not c89 (= MSVC++)
10539 # On some targets, GNU ld is compatible enough with the native linker
10540 # that we're better off using the native interface for both.
10541 lt_use_gnu_ld_interface=no
10542 if test "$with_gnu_ld" = yes; then
10545 # The AIX port of GNU ld has always aspired to compatibility
10546 # with the native linker. However, as the warning in the GNU ld
10547 # block says, versions before 2.19.5* couldn't really create working
10548 # shared libraries, regardless of the interface used.
10549 case `$LD -v 2>&1` in
10550 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10551 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10552 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10554 lt_use_gnu_ld_interface=yes
10559 lt_use_gnu_ld_interface=yes
10564 if test "$lt_use_gnu_ld_interface" = yes; then
10565 # If archive_cmds runs LD, not CC, wlarc should be empty
10568 # Set some defaults for GNU ld with shared library support. These
10569 # are reset later if shared libraries are not supported. Putting them
10570 # here allows them to be overridden if necessary.
10571 runpath_var=LD_RUN_PATH
10572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10573 export_dynamic_flag_spec='${wl}--export-dynamic'
10574 # ancient GNU ld didn't support --whole-archive et. al.
10575 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10576 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10578 whole_archive_flag_spec=
10580 supports_anon_versioning=no
10581 case `$LD -v 2>&1` in
10582 *GNU\ gold*) supports_anon_versioning=yes ;;
10583 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10584 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10585 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10586 *\ 2.11.*) ;; # other 2.11 versions
10587 *) supports_anon_versioning=yes ;;
10590 # See if GNU ld supports shared libraries.
10593 # On AIX/PPC, the GNU linker is very broken
10594 if test "$host_cpu" != ia64; then
10598 *** Warning: the GNU linker, at least up to release 2.19, is reported
10599 *** to be unable to reliably create shared libraries on AIX.
10600 *** Therefore, libtool is disabling shared libraries support. If you
10601 *** really care for shared libraries, you may want to install binutils
10602 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10603 *** You will then need to restart the configuration process.
10612 # see comment about AmigaOS4 .so support
10613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10614 archive_expsym_cmds=''
10617 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)'
10618 hardcode_libdir_flag_spec='-L$libdir'
10619 hardcode_minus_L=yes
10625 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10626 allow_undefined_flag=unsupported
10627 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10628 # support --undefined. This deserves some investigation. FIXME
10629 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10635 cygwin* | mingw* | pw32* | cegcc*)
10636 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10637 # as there is no search path for DLLs.
10638 hardcode_libdir_flag_spec='-L$libdir'
10639 export_dynamic_flag_spec='${wl}--export-all-symbols'
10640 allow_undefined_flag=unsupported
10641 always_export_symbols=no
10642 enable_shared_with_static_runtimes=yes
10643 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10644 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10646 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10648 # If the export-symbols file already is a .def file (1st line
10649 # is EXPORTS), use it as is; otherwise, prepend...
10650 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10651 cp $export_symbols $output_objdir/$soname.def;
10653 echo EXPORTS > $output_objdir/$soname.def;
10654 cat $export_symbols >> $output_objdir/$soname.def;
10656 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10664 link_all_deplibs=yes
10669 hardcode_shlibpath_var=no
10670 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10671 export_dynamic_flag_spec='${wl}-E'
10672 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10673 # Instead, shared libraries are loaded at an image base (0x10000000 by
10674 # default) and relocated if they conflict, which is a slow very memory
10675 # consuming and fragmenting process. To avoid this, we pick a random,
10676 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10677 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10678 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10679 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'
10682 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10684 if test "$host_os" = linux-dietlibc; then
10685 case $cc_basename in
10686 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10689 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10690 && test "$tmp_diet" = no
10692 tmp_addflag=' $pic_flag'
10693 tmp_sharedflag='-shared'
10694 case $cc_basename,$host_cpu in
10695 pgcc*) # Portland Group C compiler
10696 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'
10697 tmp_addflag=' $pic_flag'
10699 pgf77* | pgf90* | pgf95* | pgfortran*)
10700 # Portland Group f77 and f90 compilers
10701 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'
10702 tmp_addflag=' $pic_flag -Mnomain' ;;
10703 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10704 tmp_addflag=' -i_dynamic' ;;
10705 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10706 tmp_addflag=' -i_dynamic -nofor_main' ;;
10707 ifc* | ifort*) # Intel Fortran compiler
10708 tmp_addflag=' -nofor_main' ;;
10709 lf95*) # Lahey Fortran 8.1
10710 whole_archive_flag_spec=
10711 tmp_sharedflag='--shared' ;;
10712 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10713 tmp_sharedflag='-qmkshrobj'
10715 nvcc*) # Cuda Compiler Driver 2.2
10716 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'
10717 compiler_needs_object=yes
10720 case `$CC -V 2>&1 | sed 5q` in
10721 *Sun\ C*) # Sun C 5.9
10722 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'
10723 compiler_needs_object=yes
10724 tmp_sharedflag='-G' ;;
10725 *Sun\ F*) # Sun Fortran 8.3
10726 tmp_sharedflag='-G' ;;
10728 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10730 if test "x$supports_anon_versioning" = xyes; then
10731 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10732 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10733 echo "local: *; };" >> $output_objdir/$libname.ver~
10734 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10737 case $cc_basename in
10738 xlf* | bgf* | bgxlf* | mpixlf*)
10739 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10740 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10741 hardcode_libdir_flag_spec=
10742 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10743 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10744 if test "x$supports_anon_versioning" = xyes; then
10745 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10747 echo "local: *; };" >> $output_objdir/$libname.ver~
10748 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10758 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10759 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10762 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10763 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10768 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10772 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10773 *** create shared libraries on Solaris systems. Therefore, libtool
10774 *** is disabling shared libraries support. We urge you to upgrade GNU
10775 *** binutils to release 2.9.1 or newer. Another option is to modify
10776 *** your PATH or compiler configuration so that the native linker is
10777 *** used, and then restart.
10780 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10781 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10782 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10788 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10789 case `$LD -v 2>&1` in
10790 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10794 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10795 *** reliably create shared libraries on SCO systems. Therefore, libtool
10796 *** is disabling shared libraries support. We urge you to upgrade GNU
10797 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10798 *** your PATH or compiler configuration so that the native linker is
10799 *** used, and then restart.
10804 # For security reasons, it is highly recommended that you always
10805 # use absolute paths for naming shared libraries, and exclude the
10806 # DT_RUNPATH tag from executables and libraries. But doing so
10807 # requires that you compile everything twice, which is a pain.
10808 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10811 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10820 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10822 hardcode_direct=yes
10823 hardcode_shlibpath_var=no
10827 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10828 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10829 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10836 if test "$ld_shlibs" = no; then
10838 hardcode_libdir_flag_spec=
10839 export_dynamic_flag_spec=
10840 whole_archive_flag_spec=
10843 # PORTME fill in a description of your system's linker (not GNU ld)
10846 allow_undefined_flag=unsupported
10847 always_export_symbols=yes
10848 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'
10849 # Note: this linker hardcodes the directories in LIBPATH if there
10850 # are no directories specified by -L.
10851 hardcode_minus_L=yes
10852 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10853 # Neither direct hardcoding nor static linking is supported with a
10855 hardcode_direct=unsupported
10860 if test "$host_cpu" = ia64; then
10861 # On IA64, the linker does run time linking by default, so we don't
10862 # have to do anything special.
10863 aix_use_runtimelinking=no
10864 exp_sym_flag='-Bexport'
10867 # If we're using GNU nm, then we don't want the "-C" option.
10868 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10869 # Also, AIX nm treats weak defined symbols like other global
10870 # defined symbols, whereas GNU nm marks them as "W".
10871 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10872 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'
10874 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'
10876 aix_use_runtimelinking=no
10878 # Test if we are trying to use run time linking or normal
10879 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10880 # need to do runtime linking.
10881 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10882 for ld_flag in $LDFLAGS; do
10883 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10884 aix_use_runtimelinking=yes
10891 exp_sym_flag='-bexport'
10892 no_entry_flag='-bnoentry'
10895 # When large executables or shared objects are built, AIX ld can
10896 # have problems creating the table of contents. If linking a library
10897 # or program results in "error TOC overflow" add -mminimal-toc to
10898 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10899 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10902 hardcode_direct=yes
10903 hardcode_direct_absolute=yes
10904 hardcode_libdir_separator=':'
10905 link_all_deplibs=yes
10906 file_list_spec='${wl}-f,'
10908 if test "$GCC" = yes; then
10909 case $host_os in aix4.[012]|aix4.[012].*)
10910 # We only want to do this on AIX 4.2 and lower, the check
10911 # below for broken collect2 doesn't work under 4.3+
10912 collect2name=`${CC} -print-prog-name=collect2`
10913 if test -f "$collect2name" &&
10914 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10916 # We have reworked collect2
10919 # We have old collect2
10920 hardcode_direct=unsupported
10921 # It fails to find uninstalled libraries when the uninstalled
10922 # path is not listed in the libpath. Setting hardcode_minus_L
10923 # to unsupported forces relinking
10924 hardcode_minus_L=yes
10925 hardcode_libdir_flag_spec='-L$libdir'
10926 hardcode_libdir_separator=
10930 shared_flag='-shared'
10931 if test "$aix_use_runtimelinking" = yes; then
10932 shared_flag="$shared_flag "'${wl}-G'
10936 if test "$host_cpu" = ia64; then
10937 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10938 # chokes on -Wl,-G. The following line is correct:
10941 if test "$aix_use_runtimelinking" = yes; then
10942 shared_flag='${wl}-G'
10944 shared_flag='${wl}-bM:SRE'
10949 export_dynamic_flag_spec='${wl}-bexpall'
10950 # It seems that -bexpall does not export symbols beginning with
10951 # underscore (_), so it is better to generate a list of symbols to export.
10952 always_export_symbols=yes
10953 if test "$aix_use_runtimelinking" = yes; then
10954 # Warning - without using the other runtime loading flags (-brtl),
10955 # -berok will link without error, but may produce a broken library.
10956 allow_undefined_flag='-berok'
10957 # Determine the default libpath from the value encoded in an
10958 # empty executable.
10959 if test "${lt_cv_aix_libpath+set}" = set; then
10960 aix_libpath=$lt_cv_aix_libpath
10962 if ${lt_cv_aix_libpath_+:} false; then :
10963 $as_echo_n "(cached) " >&6
10965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966 /* end confdefs.h. */
10976 if ac_fn_c_try_link "$LINENO"; then :
10978 lt_aix_libpath_sed='
10979 /Import File Strings/,/^$/ {
10981 s/^0 *\([^ ]*\) *$/\1/
10985 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10986 # Check for a 64-bit object if we didn't find anything.
10987 if test -z "$lt_cv_aix_libpath_"; then
10988 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10991 rm -f core conftest.err conftest.$ac_objext \
10992 conftest$ac_exeext conftest.$ac_ext
10993 if test -z "$lt_cv_aix_libpath_"; then
10994 lt_cv_aix_libpath_="/usr/lib:/lib"
10999 aix_libpath=$lt_cv_aix_libpath_
11002 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11003 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"
11005 if test "$host_cpu" = ia64; then
11006 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11007 allow_undefined_flag="-z nodefs"
11008 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"
11010 # Determine the default libpath from the value encoded in an
11011 # empty executable.
11012 if test "${lt_cv_aix_libpath+set}" = set; then
11013 aix_libpath=$lt_cv_aix_libpath
11015 if ${lt_cv_aix_libpath_+:} false; then :
11016 $as_echo_n "(cached) " >&6
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11029 if ac_fn_c_try_link "$LINENO"; then :
11031 lt_aix_libpath_sed='
11032 /Import File Strings/,/^$/ {
11034 s/^0 *\([^ ]*\) *$/\1/
11038 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11039 # Check for a 64-bit object if we didn't find anything.
11040 if test -z "$lt_cv_aix_libpath_"; then
11041 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11044 rm -f core conftest.err conftest.$ac_objext \
11045 conftest$ac_exeext conftest.$ac_ext
11046 if test -z "$lt_cv_aix_libpath_"; then
11047 lt_cv_aix_libpath_="/usr/lib:/lib"
11052 aix_libpath=$lt_cv_aix_libpath_
11055 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11056 # Warning - without using the other run time loading flags,
11057 # -berok will link without error, but may produce a broken library.
11058 no_undefined_flag=' ${wl}-bernotok'
11059 allow_undefined_flag=' ${wl}-berok'
11060 if test "$with_gnu_ld" = yes; then
11061 # We only use this code for GNU lds that support --whole-archive.
11062 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11064 # Exported symbols can be pulled into shared objects from archives
11065 whole_archive_flag_spec='$convenience'
11067 archive_cmds_need_lc=yes
11068 # This is similar to how AIX traditionally builds its shared libraries.
11069 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'
11077 # see comment about AmigaOS4 .so support
11078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11079 archive_expsym_cmds=''
11082 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)'
11083 hardcode_libdir_flag_spec='-L$libdir'
11084 hardcode_minus_L=yes
11090 export_dynamic_flag_spec=-rdynamic
11093 cygwin* | mingw* | pw32* | cegcc*)
11094 # When not using gcc, we currently assume that we are using
11095 # Microsoft Visual C++.
11096 # hardcode_libdir_flag_spec is actually meaningless, as there is
11097 # no search path for DLLs.
11098 case $cc_basename in
11101 hardcode_libdir_flag_spec=' '
11102 allow_undefined_flag=unsupported
11103 always_export_symbols=yes
11105 # Tell ltmain to make .lib files, not .a files.
11107 # Tell ltmain to make .dll files, not .so files.
11109 # FIXME: Setting linknames here is a bad hack.
11110 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11111 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11112 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11114 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11116 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11118 # The linker will not automatically build a static lib if we build a DLL.
11119 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11120 enable_shared_with_static_runtimes=yes
11121 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11123 old_postinstall_cmds='chmod 644 $oldlib'
11124 postlink_cmds='lt_outputfile="@OUTPUT@"~
11125 lt_tool_outputfile="@TOOL_OUTPUT@"~
11126 case $lt_outputfile in
11129 lt_outputfile="$lt_outputfile.exe"
11130 lt_tool_outputfile="$lt_tool_outputfile.exe"
11133 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11134 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11135 $RM "$lt_outputfile.manifest";
11139 # Assume MSVC wrapper
11140 hardcode_libdir_flag_spec=' '
11141 allow_undefined_flag=unsupported
11142 # Tell ltmain to make .lib files, not .a files.
11144 # Tell ltmain to make .dll files, not .so files.
11146 # FIXME: Setting linknames here is a bad hack.
11147 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11148 # The linker will automatically build a .lib file if we build a DLL.
11149 old_archive_from_new_cmds='true'
11150 # FIXME: Should let the user specify the lib program.
11151 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11152 enable_shared_with_static_runtimes=yes
11157 darwin* | rhapsody*)
11160 archive_cmds_need_lc=no
11162 hardcode_automatic=yes
11163 hardcode_shlibpath_var=unsupported
11164 if test "$lt_cv_ld_force_load" = "yes"; then
11165 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\"`'
11167 whole_archive_flag_spec=''
11169 link_all_deplibs=yes
11170 allow_undefined_flag="$_lt_dar_allow_undefined"
11171 case $cc_basename in
11172 ifort*) _lt_dar_can_shared=yes ;;
11173 *) _lt_dar_can_shared=$GCC ;;
11175 if test "$_lt_dar_can_shared" = "yes"; then
11176 output_verbose_link_cmd=func_echo_all
11177 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11178 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11179 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}"
11180 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}"
11189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11190 hardcode_libdir_flag_spec='-L$libdir'
11191 hardcode_shlibpath_var=no
11198 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11199 # support. Future versions do this automatically, but an explicit c++rt0.o
11200 # does not break anything, and helps significantly (at the cost of a little
11203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11204 hardcode_libdir_flag_spec='-R$libdir'
11205 hardcode_direct=yes
11206 hardcode_shlibpath_var=no
11209 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11212 hardcode_direct=yes
11213 hardcode_minus_L=yes
11214 hardcode_shlibpath_var=no
11217 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11218 freebsd* | dragonfly*)
11219 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11220 hardcode_libdir_flag_spec='-R$libdir'
11221 hardcode_direct=yes
11222 hardcode_shlibpath_var=no
11226 if test "$GCC" = yes; then
11227 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11229 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'
11231 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11232 hardcode_libdir_separator=:
11233 hardcode_direct=yes
11235 # hardcode_minus_L: Not really in the search PATH,
11236 # but as the default location of the library.
11237 hardcode_minus_L=yes
11238 export_dynamic_flag_spec='${wl}-E'
11242 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11243 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11245 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11247 if test "$with_gnu_ld" = no; then
11248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11249 hardcode_libdir_flag_spec_ld='+b $libdir'
11250 hardcode_libdir_separator=:
11251 hardcode_direct=yes
11252 hardcode_direct_absolute=yes
11253 export_dynamic_flag_spec='${wl}-E'
11254 # hardcode_minus_L: Not really in the search PATH,
11255 # but as the default location of the library.
11256 hardcode_minus_L=yes
11261 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11264 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11267 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11270 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11276 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11279 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11283 # Older versions of the 11.00 compiler do not understand -b yet
11284 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11286 $as_echo_n "checking if $CC understands -b... " >&6; }
11287 if ${lt_cv_prog_compiler__b+:} false; then :
11288 $as_echo_n "(cached) " >&6
11290 lt_cv_prog_compiler__b=no
11291 save_LDFLAGS="$LDFLAGS"
11292 LDFLAGS="$LDFLAGS -b"
11293 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11294 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11295 # The linker can only warn and ignore the option if not recognized
11296 # So say no if there are warnings
11297 if test -s conftest.err; then
11298 # Append any errors to the config.log.
11299 cat conftest.err 1>&5
11300 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11302 if diff conftest.exp conftest.er2 >/dev/null; then
11303 lt_cv_prog_compiler__b=yes
11306 lt_cv_prog_compiler__b=yes
11310 LDFLAGS="$save_LDFLAGS"
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11314 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11316 if test x"$lt_cv_prog_compiler__b" = xyes; then
11317 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11319 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11325 if test "$with_gnu_ld" = no; then
11326 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11327 hardcode_libdir_separator=:
11332 hardcode_shlibpath_var=no
11335 hardcode_direct=yes
11336 hardcode_direct_absolute=yes
11337 export_dynamic_flag_spec='${wl}-E'
11339 # hardcode_minus_L: Not really in the search PATH,
11340 # but as the default location of the library.
11341 hardcode_minus_L=yes
11347 irix5* | irix6* | nonstopux*)
11348 if test "$GCC" = yes; then
11349 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11350 # Try to use the -exported_symbol ld option, if it does not
11351 # work, assume that -exports_file does not work either and
11352 # implicitly export all symbols.
11353 # This should be the same for all languages, so no per-tag cache variable.
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11355 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11356 if ${lt_cv_irix_exported_symbol+:} false; then :
11357 $as_echo_n "(cached) " >&6
11359 save_LDFLAGS="$LDFLAGS"
11360 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h. */
11363 int foo (void) { return 0; }
11365 if ac_fn_c_try_link "$LINENO"; then :
11366 lt_cv_irix_exported_symbol=yes
11368 lt_cv_irix_exported_symbol=no
11370 rm -f core conftest.err conftest.$ac_objext \
11371 conftest$ac_exeext conftest.$ac_ext
11372 LDFLAGS="$save_LDFLAGS"
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11375 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11376 if test "$lt_cv_irix_exported_symbol" = yes; then
11377 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11380 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'
11381 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'
11383 archive_cmds_need_lc='no'
11384 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11385 hardcode_libdir_separator=:
11387 link_all_deplibs=yes
11391 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11392 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11394 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11396 hardcode_libdir_flag_spec='-R$libdir'
11397 hardcode_direct=yes
11398 hardcode_shlibpath_var=no
11402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11403 hardcode_direct=yes
11404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11405 hardcode_libdir_separator=:
11406 hardcode_shlibpath_var=no
11413 if test -f /usr/libexec/ld.so; then
11414 hardcode_direct=yes
11415 hardcode_shlibpath_var=no
11416 hardcode_direct_absolute=yes
11417 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11418 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11419 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11420 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11421 export_dynamic_flag_spec='${wl}-E'
11424 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11425 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11426 hardcode_libdir_flag_spec='-R$libdir'
11429 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11430 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11440 hardcode_libdir_flag_spec='-L$libdir'
11441 hardcode_minus_L=yes
11442 allow_undefined_flag=unsupported
11443 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'
11444 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11448 if test "$GCC" = yes; then
11449 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11450 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'
11452 allow_undefined_flag=' -expect_unresolved \*'
11453 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'
11455 archive_cmds_need_lc='no'
11456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11457 hardcode_libdir_separator=:
11460 osf4* | osf5*) # as osf3* with the addition of -msym flag
11461 if test "$GCC" = yes; then
11462 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11463 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11466 allow_undefined_flag=' -expect_unresolved \*'
11467 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'
11468 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~
11469 $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'
11471 # Both c and cxx compiler support -rpath directly
11472 hardcode_libdir_flag_spec='-rpath $libdir'
11474 archive_cmds_need_lc='no'
11475 hardcode_libdir_separator=:
11479 no_undefined_flag=' -z defs'
11480 if test "$GCC" = yes; then
11482 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11483 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11484 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11486 case `$CC -V 2>&1` in
11489 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11490 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11491 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11495 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11496 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11497 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11501 hardcode_libdir_flag_spec='-R$libdir'
11502 hardcode_shlibpath_var=no
11504 solaris2.[0-5] | solaris2.[0-5].*) ;;
11506 # The compiler driver will combine and reorder linker options,
11507 # but understands `-z linker_flag'. GCC discards it without `$wl',
11508 # but is careful enough not to reorder.
11509 # Supported since Solaris 2.6 (maybe 2.5.1?)
11510 if test "$GCC" = yes; then
11511 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11513 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11517 link_all_deplibs=yes
11521 if test "x$host_vendor" = xsequent; then
11522 # Use $CC to link under sequent, because it throws in some extra .o
11523 # files that make .init and .fini sections work.
11524 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11526 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11528 hardcode_libdir_flag_spec='-L$libdir'
11529 hardcode_direct=yes
11530 hardcode_minus_L=yes
11531 hardcode_shlibpath_var=no
11535 case $host_vendor in
11537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11538 hardcode_direct=yes # is this really true???
11541 ## LD is ld it makes a PLAMLIB
11542 ## CC just makes a GrossModule.
11543 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11544 reload_cmds='$CC -r -o $output$reload_objs'
11548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11549 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11552 runpath_var='LD_RUN_PATH'
11553 hardcode_shlibpath_var=no
11557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11558 hardcode_shlibpath_var=no
11559 export_dynamic_flag_spec='-Bexport'
11563 if test -d /usr/nec; then
11564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11565 hardcode_shlibpath_var=no
11566 runpath_var=LD_RUN_PATH
11567 hardcode_runpath_var=yes
11572 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11573 no_undefined_flag='${wl}-z,text'
11574 archive_cmds_need_lc=no
11575 hardcode_shlibpath_var=no
11576 runpath_var='LD_RUN_PATH'
11578 if test "$GCC" = yes; then
11579 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11580 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11582 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11583 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11587 sysv5* | sco3.2v5* | sco5v6*)
11588 # Note: We can NOT use -z defs as we might desire, because we do not
11589 # link with -lc, and that would cause any symbols used from libc to
11590 # always be unresolved, which means just about no library would
11591 # ever link correctly. If we're not using GNU ld we use -z text
11592 # though, which does catch some bad symbols but isn't as heavy-handed
11594 no_undefined_flag='${wl}-z,text'
11595 allow_undefined_flag='${wl}-z,nodefs'
11596 archive_cmds_need_lc=no
11597 hardcode_shlibpath_var=no
11598 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11599 hardcode_libdir_separator=':'
11600 link_all_deplibs=yes
11601 export_dynamic_flag_spec='${wl}-Bexport'
11602 runpath_var='LD_RUN_PATH'
11604 if test "$GCC" = yes; then
11605 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11606 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11608 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11609 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11615 hardcode_libdir_flag_spec='-L$libdir'
11616 hardcode_shlibpath_var=no
11624 if test x$host_vendor = xsni; then
11626 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11627 export_dynamic_flag_spec='${wl}-Blargedynsym'
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11634 $as_echo "$ld_shlibs" >&6; }
11635 test "$ld_shlibs" = no && can_build_shared=no
11637 with_gnu_ld=$with_gnu_ld
11654 # Do we need to explicitly link libc?
11656 case "x$archive_cmds_need_lc" in
11658 # Assume -lc should be added
11659 archive_cmds_need_lc=yes
11661 if test "$enable_shared" = yes && test "$GCC" = yes; then
11662 case $archive_cmds in
11664 # FIXME: we may have to deal with multi-command sequences.
11667 # Test whether the compiler implicitly links with -lc since on some
11668 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11669 # to ld, don't add -lc before -lgcc.
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11671 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11672 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11673 $as_echo_n "(cached) " >&6
11676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11679 (eval $ac_compile) 2>&5
11681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11682 test $ac_status = 0; } 2>conftest.err; then
11685 libobjs=conftest.$ac_objext
11687 wl=$lt_prog_compiler_wl
11688 pic_flag=$lt_prog_compiler_pic
11694 lt_save_allow_undefined_flag=$allow_undefined_flag
11695 allow_undefined_flag=
11696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11697 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11700 test $ac_status = 0; }
11702 lt_cv_archive_cmds_need_lc=no
11704 lt_cv_archive_cmds_need_lc=yes
11706 allow_undefined_flag=$lt_save_allow_undefined_flag
11708 cat conftest.err 1>&5
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11714 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11715 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11879 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11881 if test "$GCC" = yes; then
11883 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11884 *) lt_awk_arg="/^libraries:/" ;;
11887 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11888 *) lt_sed_strip_eq="s,=/,/,g" ;;
11890 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11891 case $lt_search_path_spec in
11893 # if the path contains ";" then we assume it to be the separator
11894 # otherwise default to the standard path separator (i.e. ":") - it is
11895 # assumed that no part of a normal pathname contains ";" but that should
11896 # okay in the real world where ";" in dirpaths is itself problematic.
11897 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11900 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11903 # Ok, now we have the path, separated by spaces, we can step through it
11904 # and add multilib dir if necessary.
11905 lt_tmp_lt_search_path_spec=
11906 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11907 for lt_sys_path in $lt_search_path_spec; do
11908 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11909 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11911 test -d "$lt_sys_path" && \
11912 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11915 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11916 BEGIN {RS=" "; FS="/|\n";} {
11919 for (lt_i = NF; lt_i > 0; lt_i--) {
11920 if ($lt_i != "" && $lt_i != ".") {
11921 if ($lt_i == "..") {
11924 if (lt_count == 0) {
11925 lt_foo="/" $lt_i lt_foo;
11932 if (lt_foo != "") { lt_freq[lt_foo]++; }
11933 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11935 # AWK program above erroneously prepends '/' to C:/dos/paths
11938 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11939 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11941 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11943 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11945 library_names_spec=
11946 libname_spec='lib$name'
11950 postuninstall_cmds=
11954 shlibpath_overrides_runpath=unknown
11956 dynamic_linker="$host_os ld.so"
11957 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11958 need_lib_prefix=unknown
11959 hardcode_into_libs=no
11961 # when you set need_version to no, make sure it does not cause -set_version
11962 # flags to be left without arguments
11963 need_version=unknown
11968 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11969 shlibpath_var=LIBPATH
11971 # AIX 3 has no versioning support, so we append a major version to the name.
11972 soname_spec='${libname}${release}${shared_ext}$major'
11979 hardcode_into_libs=yes
11980 if test "$host_cpu" = ia64; then
11981 # AIX 5 supports IA64
11982 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11983 shlibpath_var=LD_LIBRARY_PATH
11985 # With GCC up to 2.95.x, collect2 would create an import file
11986 # for dependence libraries. The import file would start with
11987 # the line `#! .'. This would cause the generated library to
11988 # depend on `.', always an invalid library. This was fixed in
11989 # development snapshots of GCC prior to 3.0.
11991 aix4 | aix4.[01] | aix4.[01].*)
11992 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11994 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11997 can_build_shared=no
12001 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12002 # soname into executable. Probably we can add versioning support to
12003 # collect2, so additional links can be useful in future.
12004 if test "$aix_use_runtimelinking" = yes; then
12005 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12006 # instead of lib<name>.a to let people know that these are not
12007 # typical AIX shared libraries.
12008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12010 # We preserve .a as extension for shared libraries through AIX4.2
12011 # and later when we are not doing run time linking.
12012 library_names_spec='${libname}${release}.a $libname.a'
12013 soname_spec='${libname}${release}${shared_ext}$major'
12015 shlibpath_var=LIBPATH
12022 # Since July 2007 AmigaOS4 officially supports .so libraries.
12023 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12027 library_names_spec='$libname.ixlibrary $libname.a'
12028 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12029 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'
12035 library_names_spec='${libname}${shared_ext}'
12036 dynamic_linker="$host_os ld.so"
12037 shlibpath_var=LIBRARY_PATH
12043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12044 soname_spec='${libname}${release}${shared_ext}$major'
12045 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12046 shlibpath_var=LD_LIBRARY_PATH
12047 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12048 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12049 # the default ld.so.conf also contains /usr/contrib/lib and
12050 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12051 # libtool to hard-code these into programs
12054 cygwin* | mingw* | pw32* | cegcc*)
12055 version_type=windows
12060 case $GCC,$cc_basename in
12063 library_names_spec='$libname.dll.a'
12064 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12065 postinstall_cmds='base_file=`basename \${file}`~
12066 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12067 dldir=$destdir/`dirname \$dlpath`~
12068 test -d \$dldir || mkdir -p \$dldir~
12069 $install_prog $dir/$dlname \$dldir/$dlname~
12070 chmod a+x \$dldir/$dlname~
12071 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12072 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12074 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12075 dlpath=$dir/\$dldll~
12077 shlibpath_overrides_runpath=yes
12081 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12082 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12084 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12087 # MinGW DLLs use traditional 'lib' prefix
12088 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12091 # pw32 DLLs use 'pw' prefix rather than 'lib'
12092 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12095 dynamic_linker='Win32 ld.exe'
12100 libname_spec='$name'
12101 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12102 library_names_spec='${libname}.dll.lib'
12106 sys_lib_search_path_spec=
12109 for lt_path in $LIB
12112 # Let DOS variable expansion print the short 8.3 style file name.
12113 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12114 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12117 # Convert to MSYS style.
12118 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12121 # Convert to unix form, then to dos form, then back to unix form
12122 # but this time dos style (no spaces!) so that the unix form looks
12123 # like /cygdrive/c/PROGRA~1:/cygdr...
12124 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12125 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12126 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12129 sys_lib_search_path_spec="$LIB"
12130 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12131 # It is most probably a Windows format PATH.
12132 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12134 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12136 # FIXME: find the short name or the path components, as spaces are
12137 # common. (e.g. "Program Files" -> "PROGRA~1")
12141 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12142 postinstall_cmds='base_file=`basename \${file}`~
12143 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12144 dldir=$destdir/`dirname \$dlpath`~
12145 test -d \$dldir || mkdir -p \$dldir~
12146 $install_prog $dir/$dlname \$dldir/$dlname'
12147 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12148 dlpath=$dir/\$dldll~
12150 shlibpath_overrides_runpath=yes
12151 dynamic_linker='Win32 link.exe'
12155 # Assume MSVC wrapper
12156 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12157 dynamic_linker='Win32 ld.exe'
12160 # FIXME: first we should search . and the directory the executable is in
12164 darwin* | rhapsody*)
12165 dynamic_linker="$host_os dyld"
12166 version_type=darwin
12169 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12170 soname_spec='${libname}${release}${major}$shared_ext'
12171 shlibpath_overrides_runpath=yes
12172 shlibpath_var=DYLD_LIBRARY_PATH
12173 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12175 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12176 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12184 soname_spec='${libname}${release}${shared_ext}$major'
12185 shlibpath_var=LD_LIBRARY_PATH
12192 freebsd* | dragonfly*)
12193 # DragonFly does not have aout. When/if they implement a new
12194 # versioning mechanism, adjust this.
12195 if test -x /usr/bin/objformat; then
12196 objformat=`/usr/bin/objformat`
12199 freebsd[123]*) objformat=aout ;;
12200 *) objformat=elf ;;
12203 version_type=freebsd-$objformat
12204 case $version_type in
12206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12215 shlibpath_var=LD_LIBRARY_PATH
12218 shlibpath_overrides_runpath=yes
12220 freebsd3.[01]* | freebsdelf3.[01]*)
12221 shlibpath_overrides_runpath=yes
12222 hardcode_into_libs=yes
12224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12226 shlibpath_overrides_runpath=no
12227 hardcode_into_libs=yes
12229 *) # from 4.6 on, and DragonFly
12230 shlibpath_overrides_runpath=yes
12231 hardcode_into_libs=yes
12240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12241 soname_spec='${libname}${release}${shared_ext}$major'
12242 shlibpath_var=LD_LIBRARY_PATH
12243 hardcode_into_libs=yes
12250 dynamic_linker="$host_os runtime_loader"
12251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12252 soname_spec='${libname}${release}${shared_ext}$major'
12253 shlibpath_var=LIBRARY_PATH
12254 shlibpath_overrides_runpath=yes
12255 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12256 hardcode_into_libs=yes
12259 hpux9* | hpux10* | hpux11*)
12260 # Give a soname corresponding to the major version so that dld.sl refuses to
12261 # link against other versions.
12268 hardcode_into_libs=yes
12269 dynamic_linker="$host_os dld.so"
12270 shlibpath_var=LD_LIBRARY_PATH
12271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12273 soname_spec='${libname}${release}${shared_ext}$major'
12274 if test "X$HPUX_IA64_MODE" = X32; then
12275 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12277 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12283 hardcode_into_libs=yes
12284 dynamic_linker="$host_os dld.sl"
12285 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12288 soname_spec='${libname}${release}${shared_ext}$major'
12289 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12294 dynamic_linker="$host_os dld.sl"
12295 shlibpath_var=SHLIB_PATH
12296 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12298 soname_spec='${libname}${release}${shared_ext}$major'
12301 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12302 postinstall_cmds='chmod 555 $lib'
12303 # or fails outright, so override atomically:
12304 install_override_mode=555
12311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12312 soname_spec='${libname}${release}${shared_ext}$major'
12313 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12314 shlibpath_var=LD_LIBRARY_PATH
12315 shlibpath_overrides_runpath=no
12316 hardcode_into_libs=yes
12319 irix5* | irix6* | nonstopux*)
12321 nonstopux*) version_type=nonstopux ;;
12323 if test "$lt_cv_prog_gnu_ld" = yes; then
12331 soname_spec='${libname}${release}${shared_ext}$major'
12332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12334 irix5* | nonstopux*)
12335 libsuff= shlibsuff=
12338 case $LD in # libtool.m4 will add one of these switches to LD
12339 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12340 libsuff= shlibsuff= libmagic=32-bit;;
12341 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12342 libsuff=32 shlibsuff=N32 libmagic=N32;;
12343 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12344 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12345 *) libsuff= shlibsuff= libmagic=never-match;;
12349 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12350 shlibpath_overrides_runpath=no
12351 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12352 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12353 hardcode_into_libs=yes
12356 # No shared lib support for Linux oldld, aout, or coff.
12357 linux*oldld* | linux*aout* | linux*coff*)
12361 # This must be Linux ELF.
12362 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12367 soname_spec='${libname}${release}${shared_ext}$major'
12368 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12369 shlibpath_var=LD_LIBRARY_PATH
12370 shlibpath_overrides_runpath=no
12372 # Some binutils ld are patched to set DT_RUNPATH
12373 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12374 $as_echo_n "(cached) " >&6
12376 lt_cv_shlibpath_overrides_runpath=no
12377 save_LDFLAGS=$LDFLAGS
12378 save_libdir=$libdir
12379 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12380 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12392 if ac_fn_c_try_link "$LINENO"; then :
12393 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12394 lt_cv_shlibpath_overrides_runpath=yes
12397 rm -f core conftest.err conftest.$ac_objext \
12398 conftest$ac_exeext conftest.$ac_ext
12399 LDFLAGS=$save_LDFLAGS
12400 libdir=$save_libdir
12404 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12406 # This implies no fast_install, which is unacceptable.
12407 # Some rework will be needed to allow for fast_install
12408 # before this can be enabled.
12409 hardcode_into_libs=yes
12411 # Append ld.so.conf contents to the search path
12412 if test -f /etc/ld.so.conf; then
12413 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' ' '`
12414 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12417 # We used to test for /lib/ld.so.1 and disable shared libraries on
12418 # powerpc, because MkLinux only supported shared libraries with the
12419 # GNU dynamic linker. Since this was broken with cross compilers,
12420 # most powerpc-linux boxes support dynamic linking these days and
12421 # people can always --disable-shared, the test was removed, and we
12422 # assume the GNU/Linux dynamic linker is in use.
12423 dynamic_linker='GNU/Linux ld.so'
12430 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12433 dynamic_linker='NetBSD (a.out) ld.so'
12435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12436 soname_spec='${libname}${release}${shared_ext}$major'
12437 dynamic_linker='NetBSD ld.elf_so'
12439 shlibpath_var=LD_LIBRARY_PATH
12440 shlibpath_overrides_runpath=yes
12441 hardcode_into_libs=yes
12446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12447 shlibpath_var=LD_LIBRARY_PATH
12448 shlibpath_overrides_runpath=yes
12455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12456 soname_spec='${libname}${release}${shared_ext}$major'
12457 shlibpath_var=LD_LIBRARY_PATH
12458 shlibpath_overrides_runpath=no
12459 hardcode_into_libs=yes
12460 dynamic_linker='ldqnx.so'
12465 sys_lib_dlsearch_path_spec="/usr/lib"
12467 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12469 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12470 *) need_version=no ;;
12472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12474 shlibpath_var=LD_LIBRARY_PATH
12475 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12477 openbsd2.[89] | openbsd2.[89].*)
12478 shlibpath_overrides_runpath=no
12481 shlibpath_overrides_runpath=yes
12485 shlibpath_overrides_runpath=yes
12490 libname_spec='$name'
12493 library_names_spec='$libname${shared_ext} $libname.a'
12494 dynamic_linker='OS/2 ld.exe'
12495 shlibpath_var=LIBPATH
12498 osf3* | osf4* | osf5*)
12502 soname_spec='${libname}${release}${shared_ext}$major'
12503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12504 shlibpath_var=LD_LIBRARY_PATH
12505 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12506 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12518 soname_spec='${libname}${release}${shared_ext}$major'
12519 shlibpath_var=LD_LIBRARY_PATH
12520 shlibpath_overrides_runpath=yes
12521 hardcode_into_libs=yes
12522 # ldd complains unless libraries are executable
12523 postinstall_cmds='chmod +x $lib'
12528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12529 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12530 shlibpath_var=LD_LIBRARY_PATH
12531 shlibpath_overrides_runpath=yes
12532 if test "$with_gnu_ld" = yes; then
12540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12541 soname_spec='${libname}${release}${shared_ext}$major'
12542 shlibpath_var=LD_LIBRARY_PATH
12543 case $host_vendor in
12545 shlibpath_overrides_runpath=no
12547 runpath_var=LD_RUN_PATH
12555 shlibpath_overrides_runpath=no
12556 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12562 if test -d /usr/nec ;then
12564 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12565 soname_spec='$libname${shared_ext}.$major'
12566 shlibpath_var=LD_LIBRARY_PATH
12570 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12571 version_type=freebsd-elf
12574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12575 soname_spec='${libname}${release}${shared_ext}$major'
12576 shlibpath_var=LD_LIBRARY_PATH
12577 shlibpath_overrides_runpath=yes
12578 hardcode_into_libs=yes
12579 if test "$with_gnu_ld" = yes; then
12580 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12582 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12585 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12589 sys_lib_dlsearch_path_spec='/usr/lib'
12593 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12598 shlibpath_var=LD_LIBRARY_PATH
12599 shlibpath_overrides_runpath=no
12600 hardcode_into_libs=yes
12605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12606 soname_spec='${libname}${release}${shared_ext}$major'
12607 shlibpath_var=LD_LIBRARY_PATH
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12615 $as_echo "$dynamic_linker" >&6; }
12616 test "$dynamic_linker" = no && can_build_shared=no
12618 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12619 if test "$GCC" = yes; then
12620 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12623 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12624 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12626 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12627 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12722 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12724 if test -n "$hardcode_libdir_flag_spec" ||
12725 test -n "$runpath_var" ||
12726 test "X$hardcode_automatic" = "Xyes" ; then
12728 # We can hardcode non-existent directories.
12729 if test "$hardcode_direct" != no &&
12730 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12731 # have to relink, otherwise we might link with an installed library
12732 # when we should be linking with a yet-to-be-installed one
12733 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12734 test "$hardcode_minus_L" != no; then
12735 # Linking always hardcodes the temporary library directory.
12736 hardcode_action=relink
12738 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12739 hardcode_action=immediate
12742 # We cannot hardcode anything, or else we can only hardcode existing
12744 hardcode_action=unsupported
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12747 $as_echo "$hardcode_action" >&6; }
12749 if test "$hardcode_action" = relink ||
12750 test "$inherit_rpath" = yes; then
12751 # Fast installation is not supported
12752 enable_fast_install=no
12753 elif test "$shlibpath_overrides_runpath" = yes ||
12754 test "$enable_shared" = no; then
12755 # Fast installation is not necessary
12756 enable_fast_install=needless
12764 if test "x$enable_dlopen" != xyes; then
12765 enable_dlopen=unknown
12766 enable_dlopen_self=unknown
12767 enable_dlopen_self_static=unknown
12774 lt_cv_dlopen="load_add_on"
12776 lt_cv_dlopen_self=yes
12779 mingw* | pw32* | cegcc*)
12780 lt_cv_dlopen="LoadLibrary"
12785 lt_cv_dlopen="dlopen"
12790 # if libdl is installed we need to link against it
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12792 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12793 if ${ac_cv_lib_dl_dlopen+:} false; then :
12794 $as_echo_n "(cached) " >&6
12796 ac_check_lib_save_LIBS=$LIBS
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h. */
12801 /* Override any GCC internal prototype to avoid an error.
12802 Use char because int might match the return type of a GCC
12803 builtin and then its argument prototype would still apply. */
12816 if ac_fn_c_try_link "$LINENO"; then :
12817 ac_cv_lib_dl_dlopen=yes
12819 ac_cv_lib_dl_dlopen=no
12821 rm -f core conftest.err conftest.$ac_objext \
12822 conftest$ac_exeext conftest.$ac_ext
12823 LIBS=$ac_check_lib_save_LIBS
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12826 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12827 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12828 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12831 lt_cv_dlopen="dyld"
12833 lt_cv_dlopen_self=yes
12840 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12841 if test "x$ac_cv_func_shl_load" = xyes; then :
12842 lt_cv_dlopen="shl_load"
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12845 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12846 if ${ac_cv_lib_dld_shl_load+:} false; then :
12847 $as_echo_n "(cached) " >&6
12849 ac_check_lib_save_LIBS=$LIBS
12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h. */
12854 /* Override any GCC internal prototype to avoid an error.
12855 Use char because int might match the return type of a GCC
12856 builtin and then its argument prototype would still apply. */
12864 return shl_load ();
12869 if ac_fn_c_try_link "$LINENO"; then :
12870 ac_cv_lib_dld_shl_load=yes
12872 ac_cv_lib_dld_shl_load=no
12874 rm -f core conftest.err conftest.$ac_objext \
12875 conftest$ac_exeext conftest.$ac_ext
12876 LIBS=$ac_check_lib_save_LIBS
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12879 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12880 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12881 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12883 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12884 if test "x$ac_cv_func_dlopen" = xyes; then :
12885 lt_cv_dlopen="dlopen"
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12888 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12889 if ${ac_cv_lib_dl_dlopen+:} false; then :
12890 $as_echo_n "(cached) " >&6
12892 ac_check_lib_save_LIBS=$LIBS
12894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12895 /* end confdefs.h. */
12897 /* Override any GCC internal prototype to avoid an error.
12898 Use char because int might match the return type of a GCC
12899 builtin and then its argument prototype would still apply. */
12912 if ac_fn_c_try_link "$LINENO"; then :
12913 ac_cv_lib_dl_dlopen=yes
12915 ac_cv_lib_dl_dlopen=no
12917 rm -f core conftest.err conftest.$ac_objext \
12918 conftest$ac_exeext conftest.$ac_ext
12919 LIBS=$ac_check_lib_save_LIBS
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12922 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12923 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12924 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12927 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12928 if ${ac_cv_lib_svld_dlopen+:} false; then :
12929 $as_echo_n "(cached) " >&6
12931 ac_check_lib_save_LIBS=$LIBS
12932 LIBS="-lsvld $LIBS"
12933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934 /* end confdefs.h. */
12936 /* Override any GCC internal prototype to avoid an error.
12937 Use char because int might match the return type of a GCC
12938 builtin and then its argument prototype would still apply. */
12951 if ac_fn_c_try_link "$LINENO"; then :
12952 ac_cv_lib_svld_dlopen=yes
12954 ac_cv_lib_svld_dlopen=no
12956 rm -f core conftest.err conftest.$ac_objext \
12957 conftest$ac_exeext conftest.$ac_ext
12958 LIBS=$ac_check_lib_save_LIBS
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12961 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12962 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12963 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12966 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12967 if ${ac_cv_lib_dld_dld_link+:} false; then :
12968 $as_echo_n "(cached) " >&6
12970 ac_check_lib_save_LIBS=$LIBS
12972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973 /* end confdefs.h. */
12975 /* Override any GCC internal prototype to avoid an error.
12976 Use char because int might match the return type of a GCC
12977 builtin and then its argument prototype would still apply. */
12985 return dld_link ();
12990 if ac_fn_c_try_link "$LINENO"; then :
12991 ac_cv_lib_dld_dld_link=yes
12993 ac_cv_lib_dld_dld_link=no
12995 rm -f core conftest.err conftest.$ac_objext \
12996 conftest$ac_exeext conftest.$ac_ext
12997 LIBS=$ac_check_lib_save_LIBS
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13000 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13001 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13002 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13023 if test "x$lt_cv_dlopen" != xno; then
13029 case $lt_cv_dlopen in
13031 save_CPPFLAGS="$CPPFLAGS"
13032 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13034 save_LDFLAGS="$LDFLAGS"
13035 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13038 LIBS="$lt_cv_dlopen_libs $LIBS"
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13041 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13042 if ${lt_cv_dlopen_self+:} false; then :
13043 $as_echo_n "(cached) " >&6
13045 if test "$cross_compiling" = yes; then :
13046 lt_cv_dlopen_self=cross
13048 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13049 lt_status=$lt_dlunknown
13050 cat > conftest.$ac_ext <<_LT_EOF
13051 #line $LINENO "configure"
13052 #include "confdefs.h"
13061 # define LT_DLGLOBAL RTLD_GLOBAL
13064 # define LT_DLGLOBAL DL_GLOBAL
13066 # define LT_DLGLOBAL 0
13070 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13071 find out it does not work in some platform. */
13072 #ifndef LT_DLLAZY_OR_NOW
13074 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13077 # define LT_DLLAZY_OR_NOW DL_LAZY
13080 # define LT_DLLAZY_OR_NOW RTLD_NOW
13083 # define LT_DLLAZY_OR_NOW DL_NOW
13085 # define LT_DLLAZY_OR_NOW 0
13092 /* When -fvisbility=hidden is used, assume the code has been annotated
13093 correspondingly for the symbols needed. */
13094 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13095 int fnord () __attribute__((visibility("default")));
13098 int fnord () { return 42; }
13101 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13102 int status = $lt_dlunknown;
13106 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13109 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13110 else puts (dlerror ());
13112 /* dlclose (self); */
13120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13121 (eval $ac_link) 2>&5
13123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13124 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13125 (./conftest; exit; ) >&5 2>/dev/null
13127 case x$lt_status in
13128 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13129 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13130 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13133 # compilation failed
13134 lt_cv_dlopen_self=no
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13142 $as_echo "$lt_cv_dlopen_self" >&6; }
13144 if test "x$lt_cv_dlopen_self" = xyes; then
13145 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13147 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13148 if ${lt_cv_dlopen_self_static+:} false; then :
13149 $as_echo_n "(cached) " >&6
13151 if test "$cross_compiling" = yes; then :
13152 lt_cv_dlopen_self_static=cross
13154 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13155 lt_status=$lt_dlunknown
13156 cat > conftest.$ac_ext <<_LT_EOF
13157 #line $LINENO "configure"
13158 #include "confdefs.h"
13167 # define LT_DLGLOBAL RTLD_GLOBAL
13170 # define LT_DLGLOBAL DL_GLOBAL
13172 # define LT_DLGLOBAL 0
13176 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13177 find out it does not work in some platform. */
13178 #ifndef LT_DLLAZY_OR_NOW
13180 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13183 # define LT_DLLAZY_OR_NOW DL_LAZY
13186 # define LT_DLLAZY_OR_NOW RTLD_NOW
13189 # define LT_DLLAZY_OR_NOW DL_NOW
13191 # define LT_DLLAZY_OR_NOW 0
13198 /* When -fvisbility=hidden is used, assume the code has been annotated
13199 correspondingly for the symbols needed. */
13200 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13201 int fnord () __attribute__((visibility("default")));
13204 int fnord () { return 42; }
13207 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13208 int status = $lt_dlunknown;
13212 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13215 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13216 else puts (dlerror ());
13218 /* dlclose (self); */
13226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13227 (eval $ac_link) 2>&5
13229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13230 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13231 (./conftest; exit; ) >&5 2>/dev/null
13233 case x$lt_status in
13234 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13235 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13236 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13239 # compilation failed
13240 lt_cv_dlopen_self_static=no
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13248 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13251 CPPFLAGS="$save_CPPFLAGS"
13252 LDFLAGS="$save_LDFLAGS"
13257 case $lt_cv_dlopen_self in
13258 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13259 *) enable_dlopen_self=unknown ;;
13262 case $lt_cv_dlopen_self_static in
13263 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13264 *) enable_dlopen_self_static=unknown ;;
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13287 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13288 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13289 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13290 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13292 $as_echo "yes" >&6; }
13294 # FIXME - insert some real tests, host_os isn't really good enough
13297 if test -n "$STRIP" ; then
13298 striplib="$STRIP -x"
13299 old_striplib="$STRIP -S"
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13301 $as_echo "yes" >&6; }
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13325 # Report which library types will actually be built
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13327 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13329 $as_echo "$can_build_shared" >&6; }
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13332 $as_echo_n "checking whether to build shared libraries... " >&6; }
13333 test "$can_build_shared" = "no" && enable_shared=no
13335 # On AIX, shared libraries and static libraries use the same namespace, and
13336 # are all built from PIC.
13339 test "$enable_shared" = yes && enable_static=no
13340 if test -n "$RANLIB"; then
13341 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13342 postinstall_cmds='$RANLIB $lib'
13347 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13348 test "$enable_shared" = yes && enable_static=no
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13353 $as_echo "$enable_shared" >&6; }
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13356 $as_echo_n "checking whether to build static libraries... " >&6; }
13357 # Make sure either enable_shared or enable_static is yes.
13358 test "$enable_shared" = yes || enable_static=yes
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13360 $as_echo "$enable_static" >&6; }
13367 ac_cpp='$CPP $CPPFLAGS'
13368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13386 ac_config_commands="$ac_config_commands libtool"
13391 # Only expand once:
13395 # Select memory manager depending on user input.
13396 # If no "-enable-maxmem", use jmemnobs
13397 MEMORYMGR='jmemnobs'
13399 # Check whether --enable-maxmem was given.
13400 if test "${enable_maxmem+set}" = set; then :
13401 enableval=$enable_maxmem; MAXMEM="$enableval"
13404 if test "x$MAXMEM" = xyes; then
13407 if test "x$MAXMEM" != xno; then
13408 if test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then
13409 as_fn_error $? "non-numeric argument to --enable-maxmem" "$LINENO" 5
13411 DEFAULTMAXMEM=`expr $MAXMEM \* 1048576`
13413 cat >>confdefs.h <<_ACEOF
13414 #define DEFAULT_MAX_MEM ${DEFAULTMAXMEM}
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'tmpfile()'" >&5
13418 $as_echo_n "checking for 'tmpfile()'... " >&6; }
13419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13420 /* end confdefs.h. */
13425 FILE * tfile = tmpfile();
13430 if ac_fn_c_try_link "$LINENO"; then :
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13432 $as_echo "yes" >&6; }
13433 MEMORYMGR='jmemansi'
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13436 $as_echo "no" >&6; }
13437 MEMORYMGR='jmemname'
13439 # Test for the need to remove temporary files using a signal handler (for cjpeg/djpeg)
13441 $as_echo "#define NEED_SIGNAL_CATCHER 1" >>confdefs.h
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'mktemp()'" >&5
13444 $as_echo_n "checking for 'mktemp()'... " >&6; }
13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13451 char fname[80]; mktemp(fname);
13456 if ac_fn_c_try_link "$LINENO"; then :
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13458 $as_echo "yes" >&6; }
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13461 $as_echo "no" >&6; }
13463 $as_echo "#define NO_MKTEMP 1" >>confdefs.h
13466 rm -f core conftest.err conftest.$ac_objext \
13467 conftest$ac_exeext conftest.$ac_ext
13469 rm -f core conftest.err conftest.$ac_objext \
13470 conftest$ac_exeext conftest.$ac_ext
13474 # Extract the library version IDs from jpeglib.h.
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libjpeg version number" >&5
13476 $as_echo_n "checking libjpeg version number... " >&6; }
13477 JPEG_LIB_VERSION_MAJOR=`sed -e '/^#define JPEG_LIB_VERSION_MAJOR/!d' -e 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/' $srcdir/jpeglib.h`
13478 JPEG_LIB_VERSION_MINOR=`sed -e '/^#define JPEG_LIB_VERSION_MINOR/!d' -e 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/' $srcdir/jpeglib.h`
13479 JPEG_LIB_VERSION="`expr $JPEG_LIB_VERSION_MAJOR + $JPEG_LIB_VERSION_MINOR`:0:$JPEG_LIB_VERSION_MINOR"
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JPEG_LIB_VERSION" >&5
13481 $as_echo "$JPEG_LIB_VERSION" >&6; }
13484 ac_config_files="$ac_config_files Makefile"
13486 cat >confcache <<\_ACEOF
13487 # This file is a shell script that caches the results of configure
13488 # tests run on this system so they can be shared between configure
13489 # scripts and configure runs, see configure's option --config-cache.
13490 # It is not useful on other systems. If it contains results you don't
13491 # want to keep, you may remove or edit it.
13493 # config.status only pays attention to the cache file if you give it
13494 # the --recheck option to rerun configure.
13496 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13497 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13498 # following values.
13502 # The following way of writing the cache mishandles newlines in values,
13503 # but we know of no workaround that is simple, portable, and efficient.
13504 # So, we kill variables containing newlines.
13505 # Ultrix sh set writes to stderr and can't be redirected directly,
13506 # and sets the high bit in the cache file unless we assign to the vars.
13508 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13509 eval ac_val=\$$ac_var
13513 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13514 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13517 _ | IFS | as_nl) ;; #(
13518 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13519 *) { eval $ac_var=; unset $ac_var;} ;;
13525 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13526 *${as_nl}ac_space=\ *)
13527 # `set' does not quote correctly, so add quotes: double-quote
13528 # substitution turns \\\\ into \\, and sed turns \\ into \.
13531 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13534 # `set' quotes correctly as required by POSIX, so do not add quotes.
13535 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13544 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13546 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13548 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13549 if test -w "$cache_file"; then
13550 if test "x$cache_file" != "x/dev/null"; then
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13552 $as_echo "$as_me: updating cache $cache_file" >&6;}
13553 if test ! -f "$cache_file" || test -h "$cache_file"; then
13554 cat confcache >"$cache_file"
13556 case $cache_file in #(
13558 mv -f confcache "$cache_file"$$ &&
13559 mv -f "$cache_file"$$ "$cache_file" ;; #(
13561 mv -f confcache "$cache_file" ;;
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13567 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13572 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13573 # Let make expand exec_prefix.
13574 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13576 DEFS=-DHAVE_CONFIG_H
13580 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13581 # 1. Remove the extension, and $U if already installed.
13582 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13583 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13584 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13585 # will be set to the directory where LIBOBJS objects are built.
13586 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13587 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13589 LIBOBJS=$ac_libobjs
13591 LTLIBOBJS=$ac_ltlibobjs
13594 if test -n "$EXEEXT"; then
13596 am__EXEEXT_FALSE='#'
13598 am__EXEEXT_TRUE='#'
13602 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13603 as_fn_error $? "conditional \"AMDEP\" was never defined.
13604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13606 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13607 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13610 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13611 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13614 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13615 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13618 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
13619 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
13620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13623 : "${CONFIG_STATUS=./config.status}"
13625 ac_clean_files_save=$ac_clean_files
13626 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13628 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13630 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13632 # Generated by $as_me.
13633 # Run this file to recreate the current configuration.
13634 # Compiler output produced by configure, useful for debugging
13635 # configure, is in config.log if it exists.
13638 ac_cs_recheck=false
13641 SHELL=\${CONFIG_SHELL-$SHELL}
13644 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13645 ## -------------------- ##
13646 ## M4sh Initialization. ##
13647 ## -------------------- ##
13649 # Be more Bourne compatible
13650 DUALCASE=1; export DUALCASE # for MKS sh
13651 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13654 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13655 # is contrary to our usage. Disable this feature.
13656 alias -g '${1+"$@"}'='"$@"'
13657 setopt NO_GLOB_SUBST
13659 case `(set -o) 2>/dev/null` in #(
13671 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13672 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13673 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13674 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13675 # Prefer a ksh shell builtin over an external printf program on Solaris,
13676 # but without wasting forks for bash or zsh.
13677 if test -z "$BASH_VERSION$ZSH_VERSION" \
13678 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13679 as_echo='print -r --'
13680 as_echo_n='print -rn --'
13681 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13682 as_echo='printf %s\n'
13683 as_echo_n='printf %s'
13685 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13686 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13687 as_echo_n='/usr/ucb/echo -n'
13689 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13690 as_echo_n_body='eval
13694 expr "X$arg" : "X\\(.*\\)$as_nl";
13695 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13697 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13699 export as_echo_n_body
13700 as_echo_n='sh -c $as_echo_n_body as_echo'
13702 export as_echo_body
13703 as_echo='sh -c $as_echo_body as_echo'
13706 # The user is always right.
13707 if test "${PATH_SEPARATOR+set}" != set; then
13709 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13710 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13717 # We need space, tab and new line, in precisely that order. Quoting is
13718 # there to prevent editors from complaining about space-tab.
13719 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13720 # splitting by setting IFS to empty value.)
13723 # Find who we are. Look in the path if we contain no directory separator.
13726 *[\\/]* ) as_myself=$0 ;;
13727 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13728 for as_dir in $PATH
13731 test -z "$as_dir" && as_dir=.
13732 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13738 # We did not find ourselves, most probably we were run as `sh COMMAND'
13739 # in which case we are not to be found in the path.
13740 if test "x$as_myself" = x; then
13743 if test ! -f "$as_myself"; then
13744 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13748 # Unset variables that we do not need and which cause bugs (e.g. in
13749 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13750 # suppresses any "Segmentation fault" message there. '((' could
13751 # trigger a bug in pdksh 5.2.14.
13752 for as_var in BASH_ENV ENV MAIL MAILPATH
13753 do eval test x\${$as_var+set} = xset \
13754 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13767 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13770 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13771 # ----------------------------------------
13772 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13773 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13774 # script with STATUS, using 1 if that was 0.
13777 as_status=$1; test $as_status -eq 0 && as_status=1
13779 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13780 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13782 $as_echo "$as_me: error: $2" >&2
13783 as_fn_exit $as_status
13787 # as_fn_set_status STATUS
13788 # -----------------------
13789 # Set $? to STATUS, without forking.
13790 as_fn_set_status ()
13793 } # as_fn_set_status
13795 # as_fn_exit STATUS
13796 # -----------------
13797 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13801 as_fn_set_status $1
13807 # Portably unset VAR.
13810 { eval $1=; unset $1;}
13812 as_unset=as_fn_unset
13813 # as_fn_append VAR VALUE
13814 # ----------------------
13815 # Append the text in VALUE to the end of the definition contained in VAR. Take
13816 # advantage of any shell optimizations that allow amortized linear growth over
13817 # repeated appends, instead of the typical quadratic growth present in naive
13819 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13820 eval 'as_fn_append ()
13831 # as_fn_arith ARG...
13832 # ------------------
13833 # Perform arithmetic evaluation on the ARGs, and store the result in the
13834 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13835 # must be portable across $(()) and expr.
13836 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13837 eval 'as_fn_arith ()
13844 as_val=`expr "$@" || test $? -eq 1`
13849 if expr a : '\(a\)' >/dev/null 2>&1 &&
13850 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13856 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13857 as_basename=basename
13862 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13868 as_me=`$as_basename -- "$0" ||
13869 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13870 X"$0" : 'X\(//\)$' \| \
13871 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13873 sed '/^.*\/\([^/][^/]*\)\/*$/{
13887 # Avoid depending upon Character Ranges.
13888 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13889 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13890 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13891 as_cr_digits='0123456789'
13892 as_cr_alnum=$as_cr_Letters$as_cr_digits
13894 ECHO_C= ECHO_N= ECHO_T=
13895 case `echo -n x` in #(((((
13897 case `echo 'xy\c'` in
13898 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13900 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13907 rm -f conf$$ conf$$.exe conf$$.file
13908 if test -d conf$$.dir; then
13909 rm -f conf$$.dir/conf$$.file
13912 mkdir conf$$.dir 2>/dev/null
13914 if (echo >conf$$.file) 2>/dev/null; then
13915 if ln -s conf$$.file conf$$ 2>/dev/null; then
13917 # ... but there are two gotchas:
13918 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13919 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13920 # In both cases, we have to default to `cp -p'.
13921 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13923 elif ln conf$$.file conf$$ 2>/dev/null; then
13931 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13932 rmdir conf$$.dir 2>/dev/null
13937 # Create "$as_dir" as a directory, including parents if necessary.
13942 -*) as_dir=./$as_dir;;
13944 test -d "$as_dir" || eval $as_mkdir_p || {
13948 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13949 *) as_qdir=$as_dir;;
13951 as_dirs="'$as_qdir' $as_dirs"
13952 as_dir=`$as_dirname -- "$as_dir" ||
13953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13954 X"$as_dir" : 'X\(//\)[^/]' \| \
13955 X"$as_dir" : 'X\(//\)$' \| \
13956 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13957 $as_echo X"$as_dir" |
13958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13962 /^X\(\/\/\)[^/].*/{
13975 test -d "$as_dir" && break
13977 test -z "$as_dirs" || eval "mkdir $as_dirs"
13978 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13982 if mkdir -p . 2>/dev/null; then
13983 as_mkdir_p='mkdir -p "$as_dir"'
13985 test -d ./-p && rmdir ./-p
13989 if test -x / >/dev/null 2>&1; then
13990 as_test_x='test -x'
13992 if ls -dL / >/dev/null 2>&1; then
13999 if test -d "$1"; then
14005 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14006 ???[sx]*):;;*)false;;esac;fi
14010 as_executable_p=$as_test_x
14012 # Sed expression to map a string onto a valid CPP name.
14013 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14015 # Sed expression to map a string onto a valid variable name.
14016 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14020 ## ----------------------------------- ##
14021 ## Main body of $CONFIG_STATUS script. ##
14022 ## ----------------------------------- ##
14024 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14027 # Save the log message, to keep $0 and so on meaningful, and to
14028 # report actual input values of CONFIG_FILES etc. instead of their
14029 # values after options handling.
14031 This file was extended by libjpeg $as_me 8.3.0, which was
14032 generated by GNU Autoconf 2.68. Invocation command line was
14034 CONFIG_FILES = $CONFIG_FILES
14035 CONFIG_HEADERS = $CONFIG_HEADERS
14036 CONFIG_LINKS = $CONFIG_LINKS
14037 CONFIG_COMMANDS = $CONFIG_COMMANDS
14040 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14045 case $ac_config_files in *"
14046 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14049 case $ac_config_headers in *"
14050 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14055 # Files that config.status was made for.
14056 config_files="$ac_config_files"
14057 config_headers="$ac_config_headers"
14058 config_commands="$ac_config_commands"
14062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14064 \`$as_me' instantiates files and other configuration actions
14065 from templates according to the current configuration. Unless the files
14066 and actions are specified as TAGs, all are instantiated by default.
14068 Usage: $0 [OPTION]... [TAG]...
14070 -h, --help print this help, then exit
14071 -V, --version print version number and configuration settings, then exit
14072 --config print configuration, then exit
14073 -q, --quiet, --silent
14074 do not print progress messages
14075 -d, --debug don't remove temporary files
14076 --recheck update $as_me by reconfiguring in the same conditions
14077 --file=FILE[:TEMPLATE]
14078 instantiate the configuration file FILE
14079 --header=FILE[:TEMPLATE]
14080 instantiate the configuration header FILE
14082 Configuration files:
14085 Configuration headers:
14088 Configuration commands:
14091 Report bugs to the package provider."
14094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14095 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14097 libjpeg config.status 8.3.0
14098 configured by $0, generated by GNU Autoconf 2.68,
14099 with options \\"\$ac_cs_config\\"
14101 Copyright (C) 2010 Free Software Foundation, Inc.
14102 This config.status script is free software; the Free Software Foundation
14103 gives unlimited permission to copy, distribute and modify it."
14110 test -n "\$AWK" || AWK=awk
14113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14114 # The default lists apply if the user does not specify any file.
14120 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14121 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14125 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14137 # Handling of the options.
14138 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14140 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14141 $as_echo "$ac_cs_version"; exit ;;
14142 --config | --confi | --conf | --con | --co | --c )
14143 $as_echo "$ac_cs_config"; exit ;;
14144 --debug | --debu | --deb | --de | --d | -d )
14146 --file | --fil | --fi | --f )
14149 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14150 '') as_fn_error $? "missing file argument" ;;
14152 as_fn_append CONFIG_FILES " '$ac_optarg'"
14153 ac_need_defaults=false;;
14154 --header | --heade | --head | --hea )
14157 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14159 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14160 ac_need_defaults=false;;
14162 # Conflict between --help and --header
14163 as_fn_error $? "ambiguous option: \`$1'
14164 Try \`$0 --help' for more information.";;
14165 --help | --hel | -h )
14166 $as_echo "$ac_cs_usage"; exit ;;
14167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14168 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14171 # This is an error.
14172 -*) as_fn_error $? "unrecognized option: \`$1'
14173 Try \`$0 --help' for more information." ;;
14175 *) as_fn_append ac_config_targets " $1"
14176 ac_need_defaults=false ;;
14182 ac_configure_extra_args=
14184 if $ac_cs_silent; then
14186 ac_configure_extra_args="$ac_configure_extra_args --silent"
14190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14191 if \$ac_cs_recheck; then
14192 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14194 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14195 CONFIG_SHELL='$SHELL'
14196 export CONFIG_SHELL
14201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14205 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14206 ## Running $as_me. ##
14212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14216 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14219 # The HP-UX ksh and POSIX shell print the target directory to stdout
14220 # if CDPATH is set.
14221 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14223 sed_quote_subst='$sed_quote_subst'
14224 double_quote_subst='$double_quote_subst'
14225 delay_variable_subst='$delay_variable_subst'
14226 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14227 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14228 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14229 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14230 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14231 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14232 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14233 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14234 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14235 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14236 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14237 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14238 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14239 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14240 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14241 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14242 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14243 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14244 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14245 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14246 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14247 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14248 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14249 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14250 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14251 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14252 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14253 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14254 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14255 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14256 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14257 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14258 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14259 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14260 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14261 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14262 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14263 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14264 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14265 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14266 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14267 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14268 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14269 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14270 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14271 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14272 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14273 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14274 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14275 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14276 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14277 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14278 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14279 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14280 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14281 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14282 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"`'
14283 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14284 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14285 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14286 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14287 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14288 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14289 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14290 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14291 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14292 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14293 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14294 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14295 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14296 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14297 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14298 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14299 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14300 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14301 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14302 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14303 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14304 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14305 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14306 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14307 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14308 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14309 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14310 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14311 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14312 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14313 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14314 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14315 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14316 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14317 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14318 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14319 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14320 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14321 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14322 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14323 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14324 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14325 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14326 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14327 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14328 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14329 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14330 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14331 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14332 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14333 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14334 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14335 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14336 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14337 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14338 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14339 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14340 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14341 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14342 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14343 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14344 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14345 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14346 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14347 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14348 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14349 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14350 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14351 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14352 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14353 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14354 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14355 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14356 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14359 LTCFLAGS='$LTCFLAGS'
14360 compiler='$compiler_DEFAULT'
14362 # A function that is used when there is no print builtin or printf.
14363 func_fallback_echo ()
14365 eval 'cat <<_LTECHO_EOF
14370 # Quote evaled strings.
14386 deplibs_check_method \
14390 sharedlib_from_linklib_cmd \
14393 archiver_list_spec \
14399 lt_cv_sys_global_symbol_pipe \
14400 lt_cv_sys_global_symbol_to_cdecl \
14401 lt_cv_sys_global_symbol_to_c_name_address \
14402 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14403 nm_file_list_spec \
14404 lt_prog_compiler_no_builtin_flag \
14405 lt_prog_compiler_pic \
14406 lt_prog_compiler_wl \
14407 lt_prog_compiler_static \
14408 lt_cv_prog_compiler_c_o \
14417 export_dynamic_flag_spec \
14418 whole_archive_flag_spec \
14419 compiler_needs_object \
14421 allow_undefined_flag \
14422 no_undefined_flag \
14423 hardcode_libdir_flag_spec \
14424 hardcode_libdir_flag_spec_ld \
14425 hardcode_libdir_separator \
14429 variables_saved_for_relink \
14431 library_names_spec \
14433 install_override_mode \
14437 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14438 *[\\\\\\\`\\"\\\$]*)
14439 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14442 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14447 # Double-quote double-evaled strings.
14448 for var in reload_cmds \
14449 old_postinstall_cmds \
14450 old_postuninstall_cmds \
14452 extract_expsyms_cmds \
14453 old_archive_from_new_cmds \
14454 old_archive_from_expsyms_cmds \
14456 archive_expsym_cmds \
14458 module_expsym_cmds \
14459 export_symbols_cmds \
14463 postuninstall_cmds \
14465 sys_lib_search_path_spec \
14466 sys_lib_dlsearch_path_spec; do
14467 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14468 *[\\\\\\\`\\"\\\$]*)
14469 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14472 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14477 ac_aux_dir='$ac_aux_dir'
14478 xsi_shell='$xsi_shell'
14479 lt_shell_append='$lt_shell_append'
14481 # See if we are running on zsh, and set the options which allow our
14482 # commands through without removal of \ escapes INIT.
14483 if test -n "\${ZSH_VERSION+set}" ; then
14484 setopt NO_GLOB_SUBST
14490 TIMESTAMP='$TIMESTAMP'
14499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14501 # Handling of arguments.
14502 for ac_config_target in $ac_config_targets
14504 case $ac_config_target in
14505 "jconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h:jconfig.cfg" ;;
14506 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14507 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14508 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14510 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14515 # If the user did not use the arguments to specify the items to instantiate,
14516 # then the envvar interface is used. Set only those that are not.
14517 # We use the long form for the default assignment because of an extremely
14518 # bizarre bug on SunOS 4.1.3.
14519 if $ac_need_defaults; then
14520 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14521 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14522 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14525 # Have a temporary directory for convenience. Make it in the build tree
14526 # simply because there is no reason against having it here, and in addition,
14527 # creating and moving files from /tmp can sometimes cause problems.
14528 # Hook for its removal unless debugging.
14529 # Note that there is a small window in which the directory will not be cleaned:
14530 # after its creation but before its name has been assigned to `$tmp'.
14534 trap 'exit_status=$?
14535 : "${ac_tmp:=$tmp}"
14536 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14538 trap 'as_fn_exit 1' 1 2 13 15
14540 # Create a (secure) tmp directory for tmp files.
14543 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14547 tmp=./conf$$-$RANDOM
14548 (umask 077 && mkdir "$tmp")
14549 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14552 # Set up the scripts for CONFIG_FILES section.
14553 # No need to generate them if there are no CONFIG_FILES.
14554 # This happens for instance with `./config.status config.h'.
14555 if test -n "$CONFIG_FILES"; then
14558 ac_cr=`echo X | tr X '\015'`
14559 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14560 # But we know of no other shell where ac_cr would be empty at this
14561 # point, so we can use a bashism as a fallback.
14562 if test "x$ac_cr" = x; then
14563 eval ac_cr=\$\'\\r\'
14565 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14566 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14569 ac_cs_awk_cr=$ac_cr
14572 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14577 echo "cat >conf$$subs.awk <<_ACEOF" &&
14578 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14580 } >conf$$subs.sh ||
14581 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14582 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14584 for ac_last_try in false false false false false :; do
14585 . ./conf$$subs.sh ||
14586 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14588 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14589 if test $ac_delim_n = $ac_delim_num; then
14591 elif $ac_last_try; then
14592 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14594 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14597 rm -f conf$$subs.sh
14599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14600 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14604 s/^/S["/; s/!.*/"]=/
14614 s/\(.\{148\}\)..*/\1/
14616 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14621 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14628 s/\(.\{148\}\)..*/\1/
14630 s/["\\]/\\&/g; s/^/"/; s/$/"/
14634 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14639 ' <conf$$subs.awk | sed '
14644 ' >>$CONFIG_STATUS || ac_write_fail=1
14645 rm -f conf$$subs.awk
14646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14648 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14649 for (key in S) S_is_set[key] = 1
14655 nfields = split(line, field, "@")
14657 len = length(field[1])
14658 for (i = 2; i < nfields; i++) {
14660 keylen = length(key)
14661 if (S_is_set[key]) {
14663 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14664 len += length(value) + length(field[++i])
14675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14676 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14677 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14680 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14681 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14684 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14685 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14686 # trailing colons and then remove the whole line if VPATH becomes empty
14687 # (actually we leave an empty line to preserve line numbers).
14688 if test "x$srcdir" = x.; then
14689 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14708 fi # test -n "$CONFIG_FILES"
14710 # Set up the scripts for CONFIG_HEADERS section.
14711 # No need to generate them if there are no CONFIG_HEADERS.
14712 # This happens for instance with `./config.status Makefile'.
14713 if test -n "$CONFIG_HEADERS"; then
14714 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14718 # Transform confdefs.h into an awk script `defines.awk', embedded as
14719 # here-document in config.status, that substitutes the proper values into
14720 # config.h.in to produce config.h.
14722 # Create a delimiter string that does not exist in confdefs.h, to ease
14723 # handling of long lines.
14725 for ac_last_try in false false :; do
14726 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14727 if test -z "$ac_tt"; then
14729 elif $ac_last_try; then
14730 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14732 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14736 # For the awk script, D is an array of macro values keyed by name,
14737 # likewise P contains macro parameters if any. Preserve backslash
14738 # newline sequences.
14740 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14742 s/.\{148\}/&'"$ac_delim"'/g
14745 s/^[ ]*#[ ]*define[ ][ ]*/ /
14752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14754 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14758 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14759 D["\1"]=" \3\\\\\\n"\\/p
14761 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14766 s/.\{148\}/&'"$ac_delim"'/g
14771 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14774 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14776 ' <confdefs.h | sed '
14777 s/'"$ac_delim"'/"\\\
14778 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14781 for (key in D) D_is_set[key] = 1
14784 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14786 split(line, arg, " ")
14787 if (arg[1] == "#") {
14791 defundef = substr(arg[1], 2)
14794 split(mac1, mac2, "(") #)
14796 prefix = substr(line, 1, index(line, defundef) - 1)
14797 if (D_is_set[macro]) {
14798 # Preserve the white space surrounding the "#".
14799 print prefix "define", macro P[macro] D[macro]
14802 # Replace #undef with comments. This is necessary, for example,
14803 # in the case of _POSIX_SOURCE, which is predefined and required
14804 # on some systems where configure will not decide to define it.
14805 if (defundef == "undef") {
14806 print "/*", prefix defundef, macro, "*/"
14814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14815 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14816 fi # test -n "$CONFIG_HEADERS"
14819 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14824 :[FHLC]) ac_mode=$ac_tag; continue;;
14826 case $ac_mode$ac_tag in
14828 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14829 :[FH]-) ac_tag=-:-;;
14830 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14847 -) ac_f="$ac_tmp/stdin";;
14848 *) # Look for the file first in the build tree, then in the source tree
14849 # (if the path is not absolute). The absolute path cannot be DOS-style,
14850 # because $ac_f cannot contain `:'.
14854 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14856 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14858 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14859 as_fn_append ac_file_inputs " '$ac_f'"
14862 # Let's still pretend it is `configure' which instantiates (i.e., don't
14863 # use $as_me), people would be surprised to read:
14864 # /* config.h. Generated by config.status. */
14865 configure_input='Generated from '`
14866 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14868 if test x"$ac_file" != x-; then
14869 configure_input="$ac_file. $configure_input"
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14871 $as_echo "$as_me: creating $ac_file" >&6;}
14873 # Neutralize special characters interpreted by sed in replacement strings.
14874 case $configure_input in #(
14875 *\&* | *\|* | *\\* )
14876 ac_sed_conf_input=`$as_echo "$configure_input" |
14877 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14878 *) ac_sed_conf_input=$configure_input;;
14882 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14888 ac_dir=`$as_dirname -- "$ac_file" ||
14889 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14890 X"$ac_file" : 'X\(//\)[^/]' \| \
14891 X"$ac_file" : 'X\(//\)$' \| \
14892 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14893 $as_echo X"$ac_file" |
14894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14898 /^X\(\/\/\)[^/].*/{
14911 as_dir="$ac_dir"; as_fn_mkdir_p
14915 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14917 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14918 # A ".." for each directory in $ac_dir_suffix.
14919 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14920 case $ac_top_builddir_sub in
14921 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14922 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14925 ac_abs_top_builddir=$ac_pwd
14926 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14927 # for backward compatibility:
14928 ac_top_builddir=$ac_top_build_prefix
14931 .) # We are building in place.
14933 ac_top_srcdir=$ac_top_builddir_sub
14934 ac_abs_top_srcdir=$ac_pwd ;;
14935 [\\/]* | ?:[\\/]* ) # Absolute name.
14936 ac_srcdir=$srcdir$ac_dir_suffix;
14937 ac_top_srcdir=$srcdir
14938 ac_abs_top_srcdir=$srcdir ;;
14939 *) # Relative name.
14940 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14941 ac_top_srcdir=$ac_top_build_prefix$srcdir
14942 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14944 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14954 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14955 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14957 ac_MKDIR_P=$MKDIR_P
14959 [\\/$]* | ?:[\\/]* ) ;;
14960 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14965 # If the template does not know about datarootdir, expand it.
14966 # FIXME: This hack should be removed a few years after 2.60.
14967 ac_datarootdir_hack=; ac_datarootdir_seen=
14978 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14979 *datarootdir*) ac_datarootdir_seen=yes;;
14980 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14982 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14985 ac_datarootdir_hack='
14986 s&@datadir@&$datadir&g
14987 s&@docdir@&$docdir&g
14988 s&@infodir@&$infodir&g
14989 s&@localedir@&$localedir&g
14990 s&@mandir@&$mandir&g
14991 s&\\\${datarootdir}&$datarootdir&g' ;;
14995 # Neutralize VPATH when `$srcdir' = `.'.
14996 # Shell code in configure.ac might set extrasub.
14997 # FIXME: do we really want to maintain this feature?
14998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14999 ac_sed_extra="$ac_vpsub
15002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15004 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15005 s|@configure_input@|$ac_sed_conf_input|;t t
15006 s&@top_builddir@&$ac_top_builddir_sub&;t t
15007 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15008 s&@srcdir@&$ac_srcdir&;t t
15009 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15010 s&@top_srcdir@&$ac_top_srcdir&;t t
15011 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15012 s&@builddir@&$ac_builddir&;t t
15013 s&@abs_builddir@&$ac_abs_builddir&;t t
15014 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15015 s&@INSTALL@&$ac_INSTALL&;t t
15016 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15017 $ac_datarootdir_hack
15019 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15020 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15022 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15023 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15024 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15025 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15027 which seems to be undefined. Please make sure it is defined" >&5
15028 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15029 which seems to be undefined. Please make sure it is defined" >&2;}
15031 rm -f "$ac_tmp/stdin"
15033 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15034 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15036 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15042 if test x"$ac_file" != x-; then
15044 $as_echo "/* $configure_input */" \
15045 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15046 } >"$ac_tmp/config.h" \
15047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15048 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15050 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15053 mv "$ac_tmp/config.h" "$ac_file" \
15054 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15057 $as_echo "/* $configure_input */" \
15058 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15059 || as_fn_error $? "could not create -" "$LINENO" 5
15061 # Compute "$ac_file"'s index in $config_headers.
15064 for _am_header in $config_headers :; do
15065 case $_am_header in
15066 $_am_arg | $_am_arg:* )
15069 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15072 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15073 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15074 X"$_am_arg" : 'X\(//\)[^/]' \| \
15075 X"$_am_arg" : 'X\(//\)$' \| \
15076 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15077 $as_echo X"$_am_arg" |
15078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15082 /^X\(\/\/\)[^/].*/{
15094 s/.*/./; q'`/stamp-h$_am_stamp_count
15097 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15098 $as_echo "$as_me: executing $ac_file commands" >&6;}
15103 case $ac_file$ac_mode in
15104 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15105 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15106 # are listed without --file. Let's play safe and only enable the eval
15107 # if we detect the quoting.
15108 case $CONFIG_FILES in
15109 *\'*) eval set x "$CONFIG_FILES" ;;
15110 *) set x $CONFIG_FILES ;;
15115 # Strip MF so we end up with the name of the file.
15116 mf=`echo "$mf" | sed -e 's/:.*$//'`
15117 # Check whether this is an Automake generated Makefile or not.
15118 # We used to match only the files named `Makefile.in', but
15119 # some people rename them; so instead we look at the file content.
15120 # Grep'ing the first line is not enough: some people post-process
15121 # each Makefile.in and add a new line on top of each file to say so.
15122 # Grep'ing the whole file is not good either: AIX grep has a line
15123 # limit of 2048, but all sed's we know have understand at least 4000.
15124 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15125 dirpart=`$as_dirname -- "$mf" ||
15126 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15127 X"$mf" : 'X\(//\)[^/]' \| \
15128 X"$mf" : 'X\(//\)$' \| \
15129 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15135 /^X\(\/\/\)[^/].*/{
15151 # Extract the definition of DEPDIR, am__include, and am__quote
15152 # from the Makefile without running `make'.
15153 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15154 test -z "$DEPDIR" && continue
15155 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15156 test -z "am__include" && continue
15157 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15158 # When using ansi2knr, U may be empty or an underscore; expand it
15159 U=`sed -n 's/^U = //p' < "$mf"`
15160 # Find all dependency output files, they are included files with
15161 # $(DEPDIR) in their names. We invoke sed twice because it is the
15162 # simplest approach to changing $(DEPDIR) to its actual value in the
15164 for file in `sed -n "
15165 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15166 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15167 # Make sure the directory exists.
15168 test -f "$dirpart/$file" && continue
15169 fdir=`$as_dirname -- "$file" ||
15170 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15171 X"$file" : 'X\(//\)[^/]' \| \
15172 X"$file" : 'X\(//\)$' \| \
15173 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15174 $as_echo X"$file" |
15175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15179 /^X\(\/\/\)[^/].*/{
15192 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15193 # echo "creating $dirpart/$file"
15194 echo '# dummy' > "$dirpart/$file"
15201 # See if we are running on zsh, and set the options which allow our
15202 # commands through without removal of \ escapes.
15203 if test -n "${ZSH_VERSION+set}" ; then
15204 setopt NO_GLOB_SUBST
15207 cfgfile="${ofile}T"
15208 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15211 cat <<_LT_EOF >> "$cfgfile"
15214 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15215 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15216 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15217 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15219 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15220 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15222 # Written by Gordon Matzigkeit, 1996
15224 # This file is part of GNU Libtool.
15226 # GNU Libtool is free software; you can redistribute it and/or
15227 # modify it under the terms of the GNU General Public License as
15228 # published by the Free Software Foundation; either version 2 of
15229 # the License, or (at your option) any later version.
15231 # As a special exception to the GNU General Public License,
15232 # if you distribute this file as part of a program or library that
15233 # is built using GNU Libtool, you may include this file under the
15234 # same distribution terms that you use for the rest of that program.
15236 # GNU Libtool is distributed in the hope that it will be useful,
15237 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15238 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15239 # GNU General Public License for more details.
15241 # You should have received a copy of the GNU General Public License
15242 # along with GNU Libtool; see the file COPYING. If not, a copy
15243 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15244 # obtained by writing to the Free Software Foundation, Inc.,
15245 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15248 # The names of the tagged configurations supported by this script.
15251 # ### BEGIN LIBTOOL CONFIG
15253 # Assembler program.
15256 # DLL creation program.
15257 DLLTOOL=$lt_DLLTOOL
15259 # Object dumper program.
15260 OBJDUMP=$lt_OBJDUMP
15262 # Which release of libtool.m4 was used?
15263 macro_version=$macro_version
15264 macro_revision=$macro_revision
15266 # Whether or not to build shared libraries.
15267 build_libtool_libs=$enable_shared
15269 # Whether or not to build static libraries.
15270 build_old_libs=$enable_static
15272 # What type of objects to build.
15275 # Whether or not to optimize for fast installation.
15276 fast_install=$enable_fast_install
15278 # Shell to use when invoking shell scripts.
15281 # An echo program that protects backslashes.
15285 host_alias=$host_alias
15289 # The build system.
15290 build_alias=$build_alias
15294 # A sed program that does not truncate output.
15297 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15298 Xsed="\$SED -e 1s/^X//"
15300 # A grep program that handles long lines.
15306 # A literal string matcher.
15309 # A BSD- or MS-compatible name lister.
15312 # Whether we need soft or hard links.
15315 # What is the maximum length of a command?
15316 max_cmd_len=$max_cmd_len
15318 # Object file suffix (normally "o").
15321 # Executable file suffix (normally "").
15324 # whether the shell understands "unset".
15327 # turn spaces into newlines.
15330 # turn newlines into spaces.
15333 # convert \$build file names to \$host format.
15334 to_host_file_cmd=$lt_cv_to_host_file_cmd
15336 # convert \$build files to toolchain format.
15337 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15339 # Method to check whether dependent libraries are shared objects.
15340 deplibs_check_method=$lt_deplibs_check_method
15342 # Command to use when deplibs_check_method = "file_magic".
15343 file_magic_cmd=$lt_file_magic_cmd
15345 # How to find potential files when deplibs_check_method = "file_magic".
15346 file_magic_glob=$lt_file_magic_glob
15348 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15349 want_nocaseglob=$lt_want_nocaseglob
15351 # Command to associate shared and link libraries.
15352 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15357 # Flags to create an archive.
15358 AR_FLAGS=$lt_AR_FLAGS
15360 # How to feed a file listing to the archiver.
15361 archiver_list_spec=$lt_archiver_list_spec
15363 # A symbol stripping program.
15366 # Commands used to install an old-style archive.
15368 old_postinstall_cmds=$lt_old_postinstall_cmds
15369 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15371 # Whether to use a lock for old archive extraction.
15372 lock_old_archive_extraction=$lock_old_archive_extraction
15377 # LTCC compiler flags.
15378 LTCFLAGS=$lt_CFLAGS
15380 # Take the output of nm and produce a listing of raw symbols and C names.
15381 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15383 # Transform the output of nm in a proper C declaration.
15384 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15386 # Transform the output of nm in a C name address pair.
15387 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15389 # Transform the output of nm in a C name address pair when lib prefix is needed.
15390 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15392 # Specify filename containing input files for \$NM.
15393 nm_file_list_spec=$lt_nm_file_list_spec
15395 # The root where to search for dependent libraries,and in which our libraries should be installed.
15396 lt_sysroot=$lt_sysroot
15398 # The name of the directory that contains temporary libtool files.
15401 # Used to examine libraries when file_magic_cmd begins with "file".
15402 MAGIC_CMD=$MAGIC_CMD
15404 # Must we lock files when doing compilation?
15405 need_locks=$lt_need_locks
15408 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15410 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15411 DSYMUTIL=$lt_DSYMUTIL
15413 # Tool to change global to local symbols on Mac OS X.
15416 # Tool to manipulate fat objects and archives on Mac OS X.
15419 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15422 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15423 OTOOL64=$lt_OTOOL64
15425 # Old archive suffix (normally "a").
15428 # Shared library suffix (normally ".so").
15429 shrext_cmds=$lt_shrext_cmds
15431 # The commands to extract the exported symbol list from a shared archive.
15432 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15434 # Variables whose values should be saved in libtool wrapper scripts and
15435 # restored at link time.
15436 variables_saved_for_relink=$lt_variables_saved_for_relink
15438 # Do we need the "lib" prefix for modules?
15439 need_lib_prefix=$need_lib_prefix
15441 # Do we need a version for libraries?
15442 need_version=$need_version
15444 # Library versioning type.
15445 version_type=$version_type
15447 # Shared library runtime path variable.
15448 runpath_var=$runpath_var
15450 # Shared library path variable.
15451 shlibpath_var=$shlibpath_var
15453 # Is shlibpath searched before the hard-coded library search path?
15454 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15456 # Format of library name prefix.
15457 libname_spec=$lt_libname_spec
15459 # List of archive names. First name is the real one, the rest are links.
15460 # The last name is the one that the linker finds with -lNAME
15461 library_names_spec=$lt_library_names_spec
15463 # The coded name of the library, if different from the real name.
15464 soname_spec=$lt_soname_spec
15466 # Permission mode override for installation of shared libraries.
15467 install_override_mode=$lt_install_override_mode
15469 # Command to use after installation of a shared archive.
15470 postinstall_cmds=$lt_postinstall_cmds
15472 # Command to use after uninstallation of a shared archive.
15473 postuninstall_cmds=$lt_postuninstall_cmds
15475 # Commands used to finish a libtool library installation in a directory.
15476 finish_cmds=$lt_finish_cmds
15478 # As "finish_cmds", except a single script fragment to be evaled but
15480 finish_eval=$lt_finish_eval
15482 # Whether we should hardcode library paths into libraries.
15483 hardcode_into_libs=$hardcode_into_libs
15485 # Compile-time system search path for libraries.
15486 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15488 # Run-time system search path for libraries.
15489 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15491 # Whether dlopen is supported.
15492 dlopen_support=$enable_dlopen
15494 # Whether dlopen of programs is supported.
15495 dlopen_self=$enable_dlopen_self
15497 # Whether dlopen of statically linked programs is supported.
15498 dlopen_self_static=$enable_dlopen_self_static
15500 # Commands to strip libraries.
15501 old_striplib=$lt_old_striplib
15502 striplib=$lt_striplib
15505 # The linker used to build libraries.
15508 # How to create reloadable object files.
15509 reload_flag=$lt_reload_flag
15510 reload_cmds=$lt_reload_cmds
15512 # Commands used to build an old-style archive.
15513 old_archive_cmds=$lt_old_archive_cmds
15515 # A language specific compiler.
15518 # Is the compiler the GNU compiler?
15521 # Compiler flag to turn off builtin functions.
15522 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15524 # Additional compiler flags for building library objects.
15525 pic_flag=$lt_lt_prog_compiler_pic
15527 # How to pass a linker flag through the compiler.
15528 wl=$lt_lt_prog_compiler_wl
15530 # Compiler flag to prevent dynamic linking.
15531 link_static_flag=$lt_lt_prog_compiler_static
15533 # Does compiler simultaneously support -c and -o options?
15534 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15536 # Whether or not to add -lc for building shared libraries.
15537 build_libtool_need_lc=$archive_cmds_need_lc
15539 # Whether or not to disallow shared libs when runtime libs are static.
15540 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15542 # Compiler flag to allow reflexive dlopens.
15543 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15545 # Compiler flag to generate shared objects directly from archives.
15546 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15548 # Whether the compiler copes with passing no objects directly.
15549 compiler_needs_object=$lt_compiler_needs_object
15551 # Create an old-style archive from a shared archive.
15552 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15554 # Create a temporary old-style archive to link instead of a shared archive.
15555 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15557 # Commands used to build a shared archive.
15558 archive_cmds=$lt_archive_cmds
15559 archive_expsym_cmds=$lt_archive_expsym_cmds
15561 # Commands used to build a loadable module if different from building
15562 # a shared archive.
15563 module_cmds=$lt_module_cmds
15564 module_expsym_cmds=$lt_module_expsym_cmds
15566 # Whether we are building with GNU ld or not.
15567 with_gnu_ld=$lt_with_gnu_ld
15569 # Flag that allows shared libraries with undefined symbols to be built.
15570 allow_undefined_flag=$lt_allow_undefined_flag
15572 # Flag that enforces no undefined symbols.
15573 no_undefined_flag=$lt_no_undefined_flag
15575 # Flag to hardcode \$libdir into a binary during linking.
15576 # This must work even if \$libdir does not exist
15577 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15579 # If ld is used when linking, flag to hardcode \$libdir into a binary
15580 # during linking. This must work even if \$libdir does not exist.
15581 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15583 # Whether we need a single "-rpath" flag with a separated argument.
15584 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15586 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15587 # DIR into the resulting binary.
15588 hardcode_direct=$hardcode_direct
15590 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15591 # DIR into the resulting binary and the resulting library dependency is
15592 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15593 # library is relocated.
15594 hardcode_direct_absolute=$hardcode_direct_absolute
15596 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15597 # into the resulting binary.
15598 hardcode_minus_L=$hardcode_minus_L
15600 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15601 # into the resulting binary.
15602 hardcode_shlibpath_var=$hardcode_shlibpath_var
15604 # Set to "yes" if building a shared library automatically hardcodes DIR
15605 # into the library and all subsequent libraries and executables linked
15607 hardcode_automatic=$hardcode_automatic
15609 # Set to yes if linker adds runtime paths of dependent libraries
15610 # to runtime path list.
15611 inherit_rpath=$inherit_rpath
15613 # Whether libtool must link a program against all its dependency libraries.
15614 link_all_deplibs=$link_all_deplibs
15616 # Set to "yes" if exported symbols are required.
15617 always_export_symbols=$always_export_symbols
15619 # The commands to list exported symbols.
15620 export_symbols_cmds=$lt_export_symbols_cmds
15622 # Symbols that should not be listed in the preloaded symbols.
15623 exclude_expsyms=$lt_exclude_expsyms
15625 # Symbols that must always be exported.
15626 include_expsyms=$lt_include_expsyms
15628 # Commands necessary for linking programs (against libraries) with templates.
15629 prelink_cmds=$lt_prelink_cmds
15631 # Commands necessary for finishing linking programs.
15632 postlink_cmds=$lt_postlink_cmds
15634 # Specify filename containing input files.
15635 file_list_spec=$lt_file_list_spec
15637 # How to hardcode a shared library path into an executable.
15638 hardcode_action=$hardcode_action
15640 # ### END LIBTOOL CONFIG
15646 cat <<\_LT_EOF >> "$cfgfile"
15647 # AIX sometimes has problems with the GCC collect2 program. For some
15648 # reason, if we set the COLLECT_NAMES environment variable, the problems
15649 # vanish in a puff of smoke.
15650 if test "X${COLLECT_NAMES+set}" != Xset; then
15652 export COLLECT_NAMES
15659 ltmain="$ac_aux_dir/ltmain.sh"
15662 # We use sed instead of cat because bash on DJGPP gets confused if
15663 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15664 # text mode, it properly converts lines to CR/LF. This bash problem
15665 # is reportedly fixed, but why not run on old versions too?
15666 sed '$q' "$ltmain" >> "$cfgfile" \
15667 || (rm -f "$cfgfile"; exit 1)
15669 if test x"$xsi_shell" = xyes; then
15670 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15674 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15675 \ * ) func_dirname_result="${3}" ;;\
15677 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15678 && mv -f "$cfgfile.tmp" "$cfgfile" \
15679 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15680 test 0 -eq $? || _lt_function_replace_fail=:
15683 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15686 \ func_basename_result="${1##*/}"\
15687 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15688 && mv -f "$cfgfile.tmp" "$cfgfile" \
15689 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15690 test 0 -eq $? || _lt_function_replace_fail=:
15693 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15694 func_dirname_and_basename ()\
15697 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15698 \ * ) func_dirname_result="${3}" ;;\
15700 \ func_basename_result="${1##*/}"\
15701 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15702 && mv -f "$cfgfile.tmp" "$cfgfile" \
15703 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15704 test 0 -eq $? || _lt_function_replace_fail=:
15707 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15710 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15711 \ # positional parameters, so assign one to ordinary parameter first.\
15712 \ func_stripname_result=${3}\
15713 \ func_stripname_result=${func_stripname_result#"${1}"}\
15714 \ func_stripname_result=${func_stripname_result%"${2}"}\
15715 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15716 && mv -f "$cfgfile.tmp" "$cfgfile" \
15717 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15718 test 0 -eq $? || _lt_function_replace_fail=:
15721 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15722 func_split_long_opt ()\
15724 \ func_split_long_opt_name=${1%%=*}\
15725 \ func_split_long_opt_arg=${1#*=}\
15726 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15727 && mv -f "$cfgfile.tmp" "$cfgfile" \
15728 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15729 test 0 -eq $? || _lt_function_replace_fail=:
15732 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15733 func_split_short_opt ()\
15735 \ func_split_short_opt_arg=${1#??}\
15736 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15737 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15738 && mv -f "$cfgfile.tmp" "$cfgfile" \
15739 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15740 test 0 -eq $? || _lt_function_replace_fail=:
15743 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15747 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15748 \ *) func_lo2o_result=${1} ;;\
15750 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15751 && mv -f "$cfgfile.tmp" "$cfgfile" \
15752 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15753 test 0 -eq $? || _lt_function_replace_fail=:
15756 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15759 func_xform_result=${1%.*}.lo\
15760 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15761 && mv -f "$cfgfile.tmp" "$cfgfile" \
15762 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15763 test 0 -eq $? || _lt_function_replace_fail=:
15766 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15769 func_arith_result=$(( $* ))\
15770 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15771 && mv -f "$cfgfile.tmp" "$cfgfile" \
15772 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15773 test 0 -eq $? || _lt_function_replace_fail=:
15776 sed -e '/^func_len ()$/,/^} # func_len /c\
15779 func_len_result=${#1}\
15780 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15781 && mv -f "$cfgfile.tmp" "$cfgfile" \
15782 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15783 test 0 -eq $? || _lt_function_replace_fail=:
15787 if test x"$lt_shell_append" = xyes; then
15788 sed -e '/^func_append ()$/,/^} # func_append /c\
15791 eval "${1}+=\\${2}"\
15792 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15793 && mv -f "$cfgfile.tmp" "$cfgfile" \
15794 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15795 test 0 -eq $? || _lt_function_replace_fail=:
15798 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15799 func_append_quoted ()\
15801 \ func_quote_for_eval "${2}"\
15802 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15803 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15804 && mv -f "$cfgfile.tmp" "$cfgfile" \
15805 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15806 test 0 -eq $? || _lt_function_replace_fail=:
15809 # Save a `func_append' function call where possible by direct use of '+='
15810 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15811 && mv -f "$cfgfile.tmp" "$cfgfile" \
15812 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15813 test 0 -eq $? || _lt_function_replace_fail=:
15815 # Save a `func_append' function call even when '+=' is not available
15816 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15817 && mv -f "$cfgfile.tmp" "$cfgfile" \
15818 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15819 test 0 -eq $? || _lt_function_replace_fail=:
15822 if test x"$_lt_function_replace_fail" = x":"; then
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15824 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15828 mv -f "$cfgfile" "$ofile" ||
15829 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15840 ac_clean_files=$ac_clean_files_save
15842 test $ac_write_fail = 0 ||
15843 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15846 # configure is writing to config.log, and then calls config.status.
15847 # config.status does its own redirection, appending to config.log.
15848 # Unfortunately, on DOS this fails, as config.log is still kept open
15849 # by configure, so config.status won't be able to write to it; its
15850 # output is simply discarded. So we exec the FD to /dev/null,
15851 # effectively closing config.log, so it can be properly (re)opened and
15852 # appended to by config.status. When coming back to configure, we
15853 # need to make the FD available again.
15854 if test "$no_create" != yes; then
15856 ac_config_status_args=
15857 test "$silent" = yes &&
15858 ac_config_status_args="$ac_config_status_args --quiet"
15860 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15862 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15863 # would make configure fail if this is the last instruction.
15864 $ac_cs_success || as_fn_exit 1
15866 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15868 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}