2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libjpeg 9.2.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
588 PACKAGE_NAME
='libjpeg'
589 PACKAGE_TARNAME
='libjpeg'
590 PACKAGE_VERSION
='9.2.0'
591 PACKAGE_STRING
='libjpeg 9.2.0'
595 # Factoring default headers for most tests.
596 ac_includes_default
="\
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
608 # ifdef HAVE_STDLIB_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
631 ac_subst_vars
='am__EXEEXT_FALSE
657 HAVE_LD_VERSION_SCRIPT_FALSE
658 HAVE_LD_VERSION_SCRIPT_TRUE
681 MAINTAINER_MODE_FALSE
695 INSTALL_STRIP_PROGRAM
749 program_transform_name
762 enable_option_checking
764 enable_maintainer_mode
765 enable_dependency_tracking
766 enable_ld_version_script
777 ac_precious_vars
='build_alias
789 # Initialize some variables set by options.
791 ac_init_version
=false
792 ac_unrecognized_opts
=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
803 program_transform_name
=s
,x
,x
,
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir
='${exec_prefix}/bin'
818 sbindir
='${exec_prefix}/sbin'
819 libexecdir
='${exec_prefix}/libexec'
820 datarootdir
='${prefix}/share'
821 datadir
='${datarootdir}'
822 sysconfdir
='${prefix}/etc'
823 sharedstatedir
='${prefix}/com'
824 localstatedir
='${prefix}/var'
825 includedir
='${prefix}/include'
826 oldincludedir
='/usr/include'
827 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir
='${datarootdir}/info'
833 libdir
='${exec_prefix}/lib'
834 localedir
='${datarootdir}/locale'
835 mandir
='${datarootdir}/man'
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\
$ac_option
849 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 # Accept the important Cygnus configure options, so we can diagnose typos.
856 case $ac_dashdash$ac_option in
860 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
862 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
865 -build |
--build |
--buil |
--bui |
--bu)
866 ac_prev
=build_alias
;;
867 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
868 build_alias
=$ac_optarg ;;
870 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
871 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
872 ac_prev
=cache_file
;;
873 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
874 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
875 cache_file
=$ac_optarg ;;
878 cache_file
=config.cache
;;
880 -datadir |
--datadir |
--datadi |
--datad)
882 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
883 datadir
=$ac_optarg ;;
885 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
886 |
--dataroo |
--dataro |
--datar)
887 ac_prev
=datarootdir
;;
888 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
889 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
890 datarootdir
=$ac_optarg ;;
892 -disable-* |
--disable-*)
893 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
896 as_fn_error $?
"invalid feature name: $ac_useropt"
897 ac_useropt_orig
=$ac_useropt
898 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
903 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep
=', ';;
906 eval enable_
$ac_useropt=no
;;
908 -docdir |
--docdir |
--docdi |
--doc |
--do)
910 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
913 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
915 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
918 -enable-* |
--enable-*)
919 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
922 as_fn_error $?
"invalid feature name: $ac_useropt"
923 ac_useropt_orig
=$ac_useropt
924 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
929 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep
=', ';;
932 eval enable_
$ac_useropt=\
$ac_optarg ;;
934 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
935 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
936 |
--exec |
--exe |
--ex)
937 ac_prev
=exec_prefix
;;
938 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
939 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
940 |
--exec=* |
--exe=* |
--ex=*)
941 exec_prefix
=$ac_optarg ;;
943 -gas |
--gas |
--ga |
--g)
944 # Obsolete; use --with-gas.
947 -help |
--help |
--hel |
--he |
-h)
949 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
950 ac_init_help
=recursive
;;
951 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
952 ac_init_help
=short
;;
954 -host |
--host |
--hos |
--ho)
955 ac_prev
=host_alias
;;
956 -host=* |
--host=* |
--hos=* |
--ho=*)
957 host_alias
=$ac_optarg ;;
959 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
961 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
963 htmldir
=$ac_optarg ;;
965 -includedir |
--includedir |
--includedi |
--included |
--include \
966 |
--includ |
--inclu |
--incl |
--inc)
967 ac_prev
=includedir
;;
968 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
969 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
970 includedir
=$ac_optarg ;;
972 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
974 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
975 infodir
=$ac_optarg ;;
977 -libdir |
--libdir |
--libdi |
--libd)
979 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
982 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
983 |
--libexe |
--libex |
--libe)
984 ac_prev
=libexecdir
;;
985 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
986 |
--libexe=* |
--libex=* |
--libe=*)
987 libexecdir
=$ac_optarg ;;
989 -localedir |
--localedir |
--localedi |
--localed |
--locale)
991 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
992 localedir
=$ac_optarg ;;
994 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
995 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
996 ac_prev
=localstatedir
;;
997 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
998 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
999 localstatedir
=$ac_optarg ;;
1001 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1003 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1004 mandir
=$ac_optarg ;;
1006 -nfp |
--nfp |
--nf)
1007 # Obsolete; use --without-fp.
1010 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1011 |
--no-cr |
--no-c |
-n)
1014 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1015 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1018 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1019 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1020 |
--oldin |
--oldi |
--old |
--ol |
--o)
1021 ac_prev
=oldincludedir
;;
1022 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1023 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1024 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1025 oldincludedir
=$ac_optarg ;;
1027 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1029 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1030 prefix
=$ac_optarg ;;
1032 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1033 |
--program-pre |
--program-pr |
--program-p)
1034 ac_prev
=program_prefix
;;
1035 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1036 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1037 program_prefix
=$ac_optarg ;;
1039 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1040 |
--program-suf |
--program-su |
--program-s)
1041 ac_prev
=program_suffix
;;
1042 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1043 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1044 program_suffix
=$ac_optarg ;;
1046 -program-transform-name |
--program-transform-name \
1047 |
--program-transform-nam |
--program-transform-na \
1048 |
--program-transform-n |
--program-transform- \
1049 |
--program-transform |
--program-transfor \
1050 |
--program-transfo |
--program-transf \
1051 |
--program-trans |
--program-tran \
1052 |
--progr-tra |
--program-tr |
--program-t)
1053 ac_prev
=program_transform_name
;;
1054 -program-transform-name=* |
--program-transform-name=* \
1055 |
--program-transform-nam=* |
--program-transform-na=* \
1056 |
--program-transform-n=* |
--program-transform-=* \
1057 |
--program-transform=* |
--program-transfor=* \
1058 |
--program-transfo=* |
--program-transf=* \
1059 |
--program-trans=* |
--program-tran=* \
1060 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1061 program_transform_name
=$ac_optarg ;;
1063 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1065 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1066 pdfdir
=$ac_optarg ;;
1068 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1070 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1073 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1074 |
-silent |
--silent |
--silen |
--sile |
--sil)
1077 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1079 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1081 sbindir
=$ac_optarg ;;
1083 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1084 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1085 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1087 ac_prev
=sharedstatedir
;;
1088 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1089 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1090 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1092 sharedstatedir
=$ac_optarg ;;
1094 -site |
--site |
--sit)
1096 -site=* |
--site=* |
--sit=*)
1099 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1101 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1102 srcdir
=$ac_optarg ;;
1104 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1105 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1106 ac_prev
=sysconfdir
;;
1107 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1108 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1109 sysconfdir
=$ac_optarg ;;
1111 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1112 ac_prev
=target_alias
;;
1113 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1114 target_alias
=$ac_optarg ;;
1116 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1119 -version |
--version |
--versio |
--versi |
--vers |
-V)
1120 ac_init_version
=: ;;
1123 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1126 as_fn_error $?
"invalid package name: $ac_useropt"
1127 ac_useropt_orig
=$ac_useropt
1128 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1133 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep
=', ';;
1136 eval with_
$ac_useropt=\
$ac_optarg ;;
1138 -without-* |
--without-*)
1139 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1142 as_fn_error $?
"invalid package name: $ac_useropt"
1143 ac_useropt_orig
=$ac_useropt
1144 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1149 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep
=', ';;
1152 eval with_
$ac_useropt=no
;;
1155 # Obsolete; use --with-x.
1158 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1159 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1160 ac_prev
=x_includes
;;
1161 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1162 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1163 x_includes
=$ac_optarg ;;
1165 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1166 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1167 ac_prev
=x_libraries
;;
1168 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1169 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1170 x_libraries
=$ac_optarg ;;
1172 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information"
1177 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1181 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1183 eval $ac_envvar=\
$ac_optarg
1184 export $ac_envvar ;;
1187 # FIXME: should be removed in autoconf 3.0.
1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1197 if test -n "$ac_prev"; then
1198 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1199 as_fn_error $?
"missing argument to $ac_option"
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1205 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 # Check all directory arguments for consistency.
1211 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1216 eval ac_val
=\$
$ac_var
1217 # Remove trailing slashes.
1220 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\
$ac_val;;
1223 # Be sure to have absolute directory names.
1225 [\\/$
]* | ?
:[\\/]* ) continue;;
1226 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1228 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1236 target
=$target_alias
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x
; then
1240 if test "x$build_alias" = x
; then
1241 cross_compiling
=maybe
1242 elif test "x$build_alias" != "x$host_alias"; then
1248 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1250 test "$silent" = yes && exec 6>/dev
/null
1253 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di
=`ls -di .` &&
1255 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error $?
"working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error $?
"pwd does not report name of working directory"
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted
=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir
=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1293 ac_srcdir_defaulted
=no
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1297 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1299 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1311 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 for ac_var
in $ac_precious_vars; do
1314 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1316 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1321 # Report the --help message.
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1327 \`configure' configures libjpeg 9.2.0 to adapt to many kinds of systems.
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1334 Defaults for the options are specified in brackets.
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking ...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1358 For better control, use the options below.
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/libjpeg]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1390 --build=BUILD configure
for building on BUILD
[guessed
]
1391 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1392 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive
) echo "Configuration of libjpeg 9.2.0:";;
1403 --disable-option-checking ignore unrecognized
--enable/--with options
1404 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1405 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1406 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1407 --disable-silent-rules verbose build output
(undo
: "make V=0")
1408 --enable-maintainer-mode
1409 enable make rules and dependencies not useful
(and
1410 sometimes confusing
) to the casual installer
1411 --enable-dependency-tracking
1412 do not reject slow dependency extractors
1413 --disable-dependency-tracking
1414 speeds up one-time build
1415 --enable-ld-version-script
1416 enable linker version
script (default is enabled
1418 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1419 --enable-static[=PKGS
] build static libraries
[default
=yes]
1420 --enable-fast-install[=PKGS
]
1421 optimize
for fast installation
[default
=yes]
1422 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1423 --enable-maxmem=N
enable use of temp files
, set max mem usage to N MB
1426 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1427 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1428 --with-pic[=PKGS
] try to use only PIC
/non-PIC objects
[default
=use
1430 --with-aix-soname=aix|svr4|both
1431 shared library versioning
(aka
"SONAME") variant to
1432 provide on AIX
, [default
=aix
].
1433 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1434 --with-sysroot[=DIR
] Search
for dependent libraries within DIR
(or the
1435 compiler
's sysroot if not specified).
1437 Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 LIBS libraries to pass to the linker, e.g. -l<library>
1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444 you have headers in a nonstandard directory <include dir>
1447 User-defined run-time library search path.
1449 Use these variables to override the choices made by `configure' or to
help
1450 it to
find libraries and programs with nonstandard names
/locations.
1452 Report bugs to the package provider.
1457 if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
1459 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1466 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1468 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1473 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1476 ac_abs_top_builddir
=$ac_pwd
1477 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir
=$ac_top_build_prefix
1482 .
) # We are building in place.
1484 ac_top_srcdir
=$ac_top_builddir_sub
1485 ac_abs_top_srcdir
=$ac_pwd ;;
1486 [\\/]* | ?
:[\\/]* ) # Absolute name.
1487 ac_srcdir
=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir
=$srcdir
1489 ac_abs_top_srcdir
=$srcdir ;;
1491 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1495 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1497 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1515 libjpeg configure
9.2.0
1516 generated by GNU Autoconf
2.69
1518 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1519 This configure
script is free software
; the Free Software Foundation
1520 gives unlimited permission to copy
, distribute and modify it.
1525 ## ------------------------ ##
1526 ## Autoconf initialization. ##
1527 ## ------------------------ ##
1529 # ac_fn_c_try_compile LINENO
1530 # --------------------------
1531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_compile
()
1534 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1535 rm -f conftest.
$ac_objext
1536 if { { ac_try
="$ac_compile"
1538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext; then :
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563 as_fn_set_status $ac_retval
1565 } # ac_fn_c_try_compile
1567 # ac_fn_c_try_cpp LINENO
1568 # ----------------------
1569 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 if { { ac_try="$ac_cpp conftest.$ac_ext"
1575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1576 *) ac_try_echo
=$ac_try;;
1578 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1582 if test -s conftest.err
; then
1583 grep -v '^ *+' conftest.err
>conftest.er1
1584 cat conftest.er1
>&5
1585 mv -f conftest.er1 conftest.err
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } > conftest.i
&& {
1589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.
$ac_ext >&5
1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600 as_fn_set_status
$ac_retval
1604 # ac_fn_c_try_link LINENO
1605 # -----------------------
1606 # Try to link conftest.$ac_ext, and return whether this succeeded.
1609 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1610 rm -f conftest.
$ac_objext conftest
$ac_exeext
1611 if { { ac_try
="$ac_link"
1613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_link") 2>conftest.err
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest$ac_exeext && {
1630 test "$cross_compiling" = yes ||
1631 test -x conftest$ac_exeext
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1640 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1641 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1642 # interfere with the next link command; also delete a directory that is
1643 # left behind by Apple's compiler. We do this before executing the actions.
1644 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
1648 } # ac_fn_c_try_link
1650 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1651 # -------------------------------------------------------
1652 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1653 # the include files in INCLUDES and setting the cache variable VAR
1655 ac_fn_c_check_header_mongrel ()
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if eval \${$3+:} false; then :
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if eval \${$3+:} false; then :
1662 $as_echo_n "(cached) " >&6
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1668 # Is the header compilable?
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1670 $as_echo_n "checking $2 usability... " >&6; }
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1676 if ac_fn_c_try_compile "$LINENO"; then :
1677 ac_header_compiler=yes
1679 ac_header_compiler=no
1681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1683 $as_echo "$ac_header_compiler" >&6; }
1685 # Is the header present?
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1687 $as_echo_n "checking $2 presence... " >&6; }
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1692 if ac_fn_c_try_cpp "$LINENO"; then :
1693 ac_header_preproc=yes
1695 ac_header_preproc=no
1697 rm -f conftest.err conftest.i conftest.$ac_ext
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1699 $as_echo "$ac_header_preproc" >&6; }
1701 # So? What about this header?
1702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1705 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1707 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1711 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1713 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1715 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1717 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1719 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if eval \${$3+:} false; then :
1725 $as_echo_n "(cached) " >&6
1727 eval "$3=\$ac_header_compiler"
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 } # ac_fn_c_check_header_mongrel
1737 # ac_fn_c_try_run LINENO
1738 # ----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1740 # that executables *can* be run.
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_link"
1746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1747 *) ac_try_echo
=$ac_try;;
1749 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>&5
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1755 { { case "(($ac_try" in
1756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_try") 2>&5
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; }; }; then :
1767 $as_echo "$as_me: program exited with status $ac_status" >&5
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1771 ac_retval=$ac_status
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1779 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1780 # -------------------------------------------------------
1781 # Tests whether HEADER exists and can be compiled using the include files in
1782 # INCLUDES, setting the cache variable VAR accordingly.
1783 ac_fn_c_check_header_compile ()
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1796 if ac_fn_c_try_compile "$LINENO"; then :
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 } # ac_fn_c_check_header_compile
1810 # ac_fn_c_check_func LINENO FUNC VAR
1811 # ----------------------------------
1812 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1813 ac_fn_c_check_func ()
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval \${$3+:} false; then :
1819 $as_echo_n "(cached) " >&6
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1825 #define $2 innocuous_$2
1827 /* System header to define __stub macros and hopefully few prototypes,
1828 which can conflict with char $2 (); below.
1829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1830 <limits.h> exists even on freestanding compilers. */
1833 # include <limits.h>
1835 # include <assert.h>
1840 /* Override any GCC internal prototype to avoid an error.
1841 Use char because int might match the return type of a GCC
1842 builtin and then its argument prototype would still apply. */
1847 /* The GNU C library defines this for functions which it implements
1848 to always fail with ENOSYS. Some functions are actually named
1849 something starting with __ and the normal name is an alias. */
1850 #if defined __stub_$2 || defined __stub___$2
1862 if ac_fn_c_try_link "$LINENO"; then :
1867 rm -f core conftest.err conftest.$ac_objext \
1868 conftest$ac_exeext conftest.$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 } # ac_fn_c_check_func
1876 cat >config.log <<_ACEOF
1877 This file contains any messages produced by compilers while
1878 running configure, to aid debugging if configure makes a mistake.
1880 It was created by libjpeg $as_me 9.2.0, which was
1881 generated by GNU Autoconf 2.69. Invocation command line was
1893 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1894 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1895 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1896 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1897 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1899 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1900 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1902 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1903 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1904 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1905 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1906 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1907 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1908 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 test -z "$as_dir" && as_dir=.
1917 $as_echo "PATH: $as_dir"
1933 # Keep a trace of the command line.
1934 # Strip out --no-create and --no-recursion so they do not pile up.
1935 # Strip out --silent because we don't want to record it for future runs.
1936 # Also quote any args containing shell meta-characters.
1937 # Make two passes to allow for proper duplicate-argument suppression.
1941 ac_must_keep_next=false
1947 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1949 | -silent | --silent | --silen | --sile | --sil)
1952 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1955 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1957 as_fn_append ac_configure_args1 " '$ac_arg'"
1958 if test $ac_must_keep_next = true; then
1959 ac_must_keep_next=false # Got value, back to normal.
1962 *=* | --config-cache | -C | -disable-* | --disable-* \
1963 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1964 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1965 | -with-* | --with-* | -without-* | --without-* | --x)
1966 case "$ac_configure_args0 " in
1967 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1970 -* ) ac_must_keep_next=true ;;
1973 as_fn_append ac_configure_args " '$ac_arg'"
1978 { ac_configure_args0=; unset ac_configure_args0;}
1979 { ac_configure_args1=; unset ac_configure_args1;}
1981 # When interrupted or exit'd, cleanup temporary files, and complete
1982 # config.log. We remove comments because anyway the quotes in there
1983 # would cause problems or look ugly.
1984 # WARNING: Use '\'' to represent an apostrophe within the trap.
1985 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1986 trap 'exit_status=$?
1987 # Save into config.log some information that might help in debugging.
1991 $as_echo "## ---------------- ##
1992 ## Cache variables. ##
1993 ## ---------------- ##"
1995 # The following way of writing the cache mishandles newlines in values,
1997 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1998 eval ac_val=\$$ac_var
2002 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2003 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2006 _ | IFS | as_nl) ;; #(
2007 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2008 *) { eval $ac_var=; unset $ac_var;} ;;
2013 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2014 *${as_nl}ac_space=\ *)
2016 "s/'\''/'\''\\\\'\'''\''/g;
2017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2027 $as_echo "## ----------------- ##
2028 ## Output variables. ##
2029 ## ----------------- ##"
2031 for ac_var in $ac_subst_vars
2033 eval ac_val=\$$ac_var
2035 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037 $as_echo "$ac_var='\''$ac_val'\''"
2041 if test -n "$ac_subst_files"; then
2042 $as_echo "## ------------------- ##
2043 ## File substitutions. ##
2044 ## ------------------- ##"
2046 for ac_var in $ac_subst_files
2048 eval ac_val=\$$ac_var
2050 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052 $as_echo "$ac_var='\''$ac_val'\''"
2057 if test -s confdefs.h; then
2058 $as_echo "## ----------- ##
2065 test "$ac_signal" != 0 &&
2066 $as_echo "$as_me: caught signal $ac_signal"
2067 $as_echo "$as_me: exit $exit_status"
2069 rm -f core *.core core.conftest.* &&
2070 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2073 for ac_signal in 1 2 13 15; do
2074 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2078 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2079 rm -f -r conftest* confdefs.h
2081 $as_echo "/* confdefs.h */" > confdefs.h
2083 # Predefined preprocessor variables.
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_NAME "$PACKAGE_NAME"
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_STRING "$PACKAGE_STRING"
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_URL "$PACKAGE_URL"
2110 # Let the site file select an alternate cache file if it wants to.
2111 # Prefer an explicitly selected file to automatically selected ones.
2114 if test -n "$CONFIG_SITE"; then
2115 # We do not want a PATH search for config.site.
2116 case $CONFIG_SITE in #((
2117 -*) ac_site_file1=./$CONFIG_SITE;;
2118 */*) ac_site_file1=$CONFIG_SITE;;
2119 *) ac_site_file1=./$CONFIG_SITE;;
2121 elif test "x$prefix" != xNONE; then
2122 ac_site_file1=$prefix/share/config.site
2123 ac_site_file2=$prefix/etc/config.site
2125 ac_site_file1=$ac_default_prefix/share/config.site
2126 ac_site_file2=$ac_default_prefix/etc/config.site
2128 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2130 test "x$ac_site_file" = xNONE && continue
2131 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2133 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2134 sed 's/^/| /' "$ac_site_file" >&5
2136 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2138 as_fn_error $? "failed to load site
script $ac_site_file
2139 See \
`config.log' for more details" "$LINENO" 5; }
2143 if test -r "$cache_file"; then
2144 # Some versions of bash will fail to source /dev/null (special files
2145 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2146 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2148 $as_echo "$as_me: loading cache $cache_file" >&6;}
2150 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2151 *) . "./$cache_file";;
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2156 $as_echo "$as_me: creating cache $cache_file" >&6;}
2160 # Check that the precious variables saved in the cache have kept the same
2162 ac_cache_corrupted=false
2163 for ac_var in $ac_precious_vars; do
2164 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2165 eval ac_new_set=\$ac_env_${ac_var}_set
2166 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2167 eval ac_new_val=\$ac_env_${ac_var}_value
2168 case $ac_old_set,$ac_new_set in
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2171 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2172 ac_cache_corrupted=: ;;
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2175 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2176 ac_cache_corrupted=: ;;
2179 if test "x$ac_old_val" != "x$ac_new_val"; then
2180 # differences in whitespace do not lead to failure.
2181 ac_old_val_w=`echo x
$ac_old_val`
2182 ac_new_val_w=`echo x
$ac_new_val`
2183 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2185 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2186 ac_cache_corrupted=:
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2189 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2190 eval $ac_var=\$ac_old_val
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2193 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2195 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2198 # Pass precious variables to config.status.
2199 if test "$ac_new_set" = set; then
2201 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2202 *) ac_arg=$ac_var=$ac_new_val ;;
2204 case " $ac_configure_args " in
2205 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2206 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2210 if $ac_cache_corrupted; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2214 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2215 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2217 ## -------------------- ##
2218 ## Main body of script. ##
2219 ## -------------------- ##
2222 ac_cpp='$CPP $CPPFLAGS'
2223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229 # Directory where autotools helper scripts lives.
2231 for ac_dir in . "$srcdir"/.; do
2232 if test -f "$ac_dir/install-sh"; then
2234 ac_install_sh="$ac_aux_dir/install-sh -c"
2236 elif test -f "$ac_dir/install.sh"; then
2238 ac_install_sh="$ac_aux_dir/install.sh -c"
2240 elif test -f "$ac_dir/shtool"; then
2242 ac_install_sh="$ac_aux_dir/shtool install -c"
2246 if test -z "$ac_aux_dir"; then
2247 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2250 # These three variables are undocumented and unsupported,
2251 # and are intended to be withdrawn in a future Autoconf release.
2252 # They can cause serious problems if a builder's source tree is in a directory
2253 # whose full name contains unusual characters.
2254 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2255 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2256 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2260 # Generate configuration headers.
2261 ac_config_headers="$ac_config_headers jconfig.h:jconfig.cfg"
2264 # Hack: disable autoheader so that it doesn't overwrite our cfg template.
2265 AUTOHEADER="echo autoheader ignored"
2268 # Make sure we can run config.sub.
2269 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2270 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2273 $as_echo_n "checking build system type... " >&6; }
2274 if ${ac_cv_build+:} false; then :
2275 $as_echo_n "(cached) " >&6
2277 ac_build_alias=$build_alias
2278 test "x$ac_build_alias" = x &&
2279 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2280 test "x$ac_build_alias" = x &&
2281 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2282 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2283 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2287 $as_echo "$ac_cv_build" >&6; }
2288 case $ac_cv_build in
2290 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2293 ac_save_IFS=$IFS; IFS='-'
2299 # Remember, the first character of IFS is used to create $*,
2300 # except with old shells:
2303 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2307 $as_echo_n "checking host system type... " >&6; }
2308 if ${ac_cv_host+:} false; then :
2309 $as_echo_n "(cached) " >&6
2311 if test "x$host_alias" = x; then
2312 ac_cv_host=$ac_cv_build
2314 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2315 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2320 $as_echo "$ac_cv_host" >&6; }
2323 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2326 ac_save_IFS=$IFS; IFS='-'
2332 # Remember, the first character of IFS is used to create $*,
2333 # except with old shells:
2336 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2340 $as_echo_n "checking target system type... " >&6; }
2341 if ${ac_cv_target+:} false; then :
2342 $as_echo_n "(cached) " >&6
2344 if test "x$target_alias" = x; then
2345 ac_cv_target=$ac_cv_host
2347 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2348 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2353 $as_echo "$ac_cv_target" >&6; }
2354 case $ac_cv_target in
2356 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2358 target=$ac_cv_target
2359 ac_save_IFS=$IFS; IFS='-'
2365 # Remember, the first character of IFS is used to create $*,
2366 # except with old shells:
2369 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2372 # The aliases save the names the user supplied, while $host etc.
2373 # will get canonicalized.
2374 test -n "$target_alias" &&
2375 test "$program_prefix$program_suffix$program_transform_name" = \
2377 program_prefix=${target_alias}-
2379 # Initialize Automake
2380 # Don't require all the GNU mandated files
2381 am__api_version='1.15'
2383 # Find a good install program. We prefer a C program (faster),
2384 # so one script is as good as another. But avoid the broken or
2385 # incompatible versions:
2386 # SysV /etc/install, /usr/sbin/install
2387 # SunOS /usr/etc/install
2388 # IRIX /sbin/install
2390 # AmigaOS /C/install, which installs bootblocks on floppy discs
2391 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2392 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2393 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2394 # OS/2's system install, which has a completely different semantic
2395 # ./install, which can be erroneously created by make from ./install.sh.
2396 # Reject install programs that cannot install multiple files.
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2398 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2399 if test -z "$INSTALL"; then
2400 if ${ac_cv_path_install+:} false; then :
2401 $as_echo_n "(cached) " >&6
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir=.
2408 # Account for people who put trailing slashes in PATH elements.
2409 case $as_dir/ in #((
2410 ./ | .// | /[cC]/* | \
2411 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2412 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2415 # OSF1 and SCO ODT 3.0 have their own names for install.
2416 # Don't use installbsd from OSF since it installs stuff as root
2418 for ac_prog in ginstall scoinst install; do
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2421 if test $ac_prog = install &&
2422 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2423 # AIX install. It has an incompatible calling convention.
2425 elif test $ac_prog = install &&
2426 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2427 # program-specific install script used by HP pwplus--don't use.
2430 rm -rf conftest.one conftest.two conftest.dir
2431 echo one > conftest.one
2432 echo two > conftest.two
2434 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2435 test -s conftest.one && test -s conftest.two &&
2436 test -s conftest.dir/conftest.one &&
2437 test -s conftest.dir/conftest.two
2439 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2452 rm -rf conftest.one conftest.two conftest.dir
2455 if test "${ac_cv_path_install+set}" = set; then
2456 INSTALL=$ac_cv_path_install
2458 # As a last resort, use the slow shell script. Don't cache a
2459 # value for INSTALL within a source directory, because that will
2460 # break other packages using the cache if that directory is
2461 # removed, or if the value is a relative name.
2462 INSTALL=$ac_install_sh
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2466 $as_echo "$INSTALL" >&6; }
2468 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2469 # It thinks the first close brace ends the variable substitution.
2470 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2472 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2474 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2477 $as_echo_n "checking whether build environment is sane... " >&6; }
2478 # Reject unsafe characters in $srcdir or the absolute working directory
2479 # name. Accept space and tab only in the latter.
2483 *[\\\"\#\$\&\'\`$am_lf]*)
2484 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2487 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2488 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2491 # Do 'set' in a subshell so we don't clobber the current shell's
2492 # arguments. Must try -L first in case configure is actually a
2493 # symlink; some systems play weird games with the mod time of symlinks
2494 # (eg FreeBSD returns the mod time of the symlink's containing
2498 for am_try
in 1 2; do
2499 echo "timestamp, slept: $am_has_slept" > conftest.
file
2500 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2501 if test "$*" = "X"; then
2503 set X
`ls -t "$srcdir/configure" conftest.file`
2505 if test "$*" != "X $srcdir/configure conftest.file" \
2506 && test "$*" != "X conftest.file $srcdir/configure"; then
2508 # If neither matched, then we have a broken ls. This can happen
2509 # if, for instance, CONFIG_SHELL is bash and it inherits a
2510 # broken ls alias from the environment. This has actually
2511 # happened. Such a system could not be considered "sane".
2512 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2513 alias in your environment" "$LINENO" 5
2515 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2522 test "$2" = conftest.
file
2528 as_fn_error $?
"newly created file is older than distributed files!
2529 Check your system clock" "$LINENO" 5
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2532 $as_echo "yes" >&6; }
2533 # If we didn't sleep, we still need to ensure time stamps of config.status and
2534 # generated files are strictly newer.
2536 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2543 test "$program_prefix" != NONE
&&
2544 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2545 # Use a double $ so make ignores it.
2546 test "$program_suffix" != NONE
&&
2547 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2548 # Double any \ or $.
2549 # By default was `s,x,x', remove it if useless.
2550 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2551 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2553 # Expand $ac_aux_dir to an absolute path.
2554 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2556 if test x
"${MISSING+set}" != xset
; then
2559 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2561 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2564 # Use eval to expand $SHELL
2565 if eval "$MISSING --is-lightweight"; then
2566 am_missing_run
="$MISSING "
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2570 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2573 if test x
"${install_sh+set}" != xset
; then
2576 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2578 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2582 # Installed binaries are usually stripped using 'strip' when the user
2583 # run "make install-strip". However 'strip' might not be the right
2584 # tool to use in cross-compilation environments, therefore Automake
2585 # will honor the 'STRIP' environment variable to overrule this program.
2586 if test "$cross_compiling" != no
; then
2587 if test -n "$ac_tool_prefix"; then
2588 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2589 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591 $as_echo_n "checking for $ac_word... " >&6; }
2592 if ${ac_cv_prog_STRIP+:} false
; then :
2593 $as_echo_n "(cached) " >&6
2595 if test -n "$STRIP"; then
2596 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2602 test -z "$as_dir" && as_dir
=.
2603 for ac_exec_ext
in '' $ac_executable_extensions; do
2604 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2605 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 STRIP
=$ac_cv_prog_STRIP
2616 if test -n "$STRIP"; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2618 $as_echo "$STRIP" >&6; }
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2626 if test -z "$ac_cv_prog_STRIP"; then
2628 # Extract the first word of "strip", so it can be a program name with args.
2629 set dummy strip
; ac_word
=$2
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631 $as_echo_n "checking for $ac_word... " >&6; }
2632 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2633 $as_echo_n "(cached) " >&6
2635 if test -n "$ac_ct_STRIP"; then
2636 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2642 test -z "$as_dir" && as_dir
=.
2643 for ac_exec_ext
in '' $ac_executable_extensions; do
2644 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2645 ac_cv_prog_ac_ct_STRIP
="strip"
2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2656 if test -n "$ac_ct_STRIP"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2658 $as_echo "$ac_ct_STRIP" >&6; }
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2664 if test "x$ac_ct_STRIP" = x
; then
2667 case $cross_compiling:$ac_tool_warned in
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2671 ac_tool_warned
=yes ;;
2676 STRIP
="$ac_cv_prog_STRIP"
2680 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2683 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2684 if test -z "$MKDIR_P"; then
2685 if ${ac_cv_path_mkdir+:} false
; then :
2686 $as_echo_n "(cached) " >&6
2688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2689 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2692 test -z "$as_dir" && as_dir
=.
2693 for ac_prog
in mkdir gmkdir
; do
2694 for ac_exec_ext
in '' $ac_executable_extensions; do
2695 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
2696 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2697 'mkdir (GNU coreutils) '* | \
2698 'mkdir (coreutils) '* | \
2699 'mkdir (fileutils) '4.1*)
2700 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2710 test -d .
/--version && rmdir .
/--version
2711 if test "${ac_cv_path_mkdir+set}" = set; then
2712 MKDIR_P
="$ac_cv_path_mkdir -p"
2714 # As a last resort, use the slow shell script. Don't cache a
2715 # value for MKDIR_P within a source directory, because that will
2716 # break other packages using the cache if that directory is
2717 # removed, or if the value is a relative name.
2718 MKDIR_P
="$ac_install_sh -d"
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2722 $as_echo "$MKDIR_P" >&6; }
2724 for ac_prog
in gawk mawk nawk
awk
2726 # Extract the first word of "$ac_prog", so it can be a program name with args.
2727 set dummy
$ac_prog; ac_word
=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if ${ac_cv_prog_AWK+:} false
; then :
2731 $as_echo_n "(cached) " >&6
2733 if test -n "$AWK"; then
2734 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2740 test -z "$as_dir" && as_dir
=.
2741 for ac_exec_ext
in '' $ac_executable_extensions; do
2742 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2743 ac_cv_prog_AWK
="$ac_prog"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 if test -n "$AWK"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2756 $as_echo "$AWK" >&6; }
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2763 test -n "$AWK" && break
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2767 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2769 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2770 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2771 $as_echo_n "(cached) " >&6
2773 cat >conftest.
make <<\_ACEOF
2776 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2778 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2779 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2781 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2783 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2787 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2789 $as_echo "yes" >&6; }
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2794 SET_MAKE
="MAKE=${MAKE-make}"
2797 rm -rf .tst
2>/dev
/null
2798 mkdir .tst
2>/dev
/null
2799 if test -d .tst
; then
2804 rmdir .tst
2>/dev
/null
2806 # Check whether --enable-silent-rules was given.
2807 if test "${enable_silent_rules+set}" = set; then :
2808 enableval
=$enable_silent_rules;
2811 case $enable_silent_rules in # (((
2812 yes) AM_DEFAULT_VERBOSITY
=0;;
2813 no
) AM_DEFAULT_VERBOSITY
=1;;
2814 *) AM_DEFAULT_VERBOSITY
=1;;
2816 am_make
=${MAKE-make}
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2818 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2819 if ${am_cv_make_support_nested_variables+:} false
; then :
2820 $as_echo_n "(cached) " >&6
2822 if $as_echo 'TRUE=$(BAR$(V))
2828 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
2829 am_cv_make_support_nested_variables
=yes
2831 am_cv_make_support_nested_variables
=no
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2835 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2836 if test $am_cv_make_support_nested_variables = yes; then
2838 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
2840 AM_V
=$AM_DEFAULT_VERBOSITY
2841 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
2845 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2846 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2847 # is not polluted with repeated "-I."
2848 am__isrc
=' -I$(srcdir)'
2849 # test to see if srcdir already configured
2850 if test -f $srcdir/config.status
; then
2851 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2855 # test whether we have cygpath
2856 if test -z "$CYGPATH_W"; then
2857 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2858 CYGPATH_W
='cygpath -w'
2865 # Define the identity of the package.
2870 cat >>confdefs.h
<<_ACEOF
2871 #define PACKAGE "$PACKAGE"
2875 cat >>confdefs.h
<<_ACEOF
2876 #define VERSION "$VERSION"
2879 # Some tools Automake needs.
2881 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2884 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2887 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2890 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2893 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2895 # For better backward compatibility. To be removed once Automake 1.9.x
2896 # dies out for good. For more background, see:
2897 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2898 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2899 mkdir_p
='$(MKDIR_P)'
2901 # We need awk for the "check" target (and possibly the TAP driver). The
2902 # system "awk" is bad on some platforms.
2903 # Always define AMTAR for backward compatibility. Yes, it's still used
2904 # in the wild :-( We should find a proper way to deprecate it ...
2908 # We'll loop over all known methods to create a tar archive until one works.
2909 _am_tools
='gnutar pax cpio none'
2911 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
2918 # POSIX will say in a future version that running "rm -f" with no argument
2919 # is OK; and we want to be able to make that assumption in our Makefile
2920 # recipes. So use an aggressive probe to check that the usage we want is
2921 # actually supported "in the wild" to an acceptable degree.
2922 # See automake bug#10828.
2923 # To make any issue more visible, cause the running configure to be aborted
2924 # by default if the 'rm' program in use doesn't match our expectations; the
2925 # user can still override this though.
2926 if rm -f && rm -fr && rm -rf; then : OK
; else
2930 Your 'rm' program seems unable to run without file operands specified
2931 on the command line, even when the '-f' option is present. This is contrary
2932 to the behaviour of most rm programs out there, and not conforming with
2933 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2935 Please tell bug-automake@gnu.org about your system, including the value
2936 of your $PATH and any error possibly output before this message. This
2937 can help us improve future automake versions.
2940 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
2941 echo 'Configuration will proceed anyway, since you have set the' >&2
2942 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2946 Aborting the configuration process, to ensure you take notice of the issue.
2948 You can download and install GNU coreutils to get an 'rm' implementation
2949 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2951 If you want to complete the configuration process using your problematic
2952 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2953 to "yes", and re-run configure.
2956 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
2961 # Make --enable-silent-rules the default.
2962 # To get verbose build output you may configure
2963 # with --disable-silent-rules or use "make V=1".
2964 # Check whether --enable-silent-rules was given.
2965 if test "${enable_silent_rules+set}" = set; then :
2966 enableval
=$enable_silent_rules;
2969 case $enable_silent_rules in # (((
2970 yes) AM_DEFAULT_VERBOSITY
=0;;
2971 no
) AM_DEFAULT_VERBOSITY
=1;;
2972 *) AM_DEFAULT_VERBOSITY
=0;;
2974 am_make
=${MAKE-make}
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2976 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2977 if ${am_cv_make_support_nested_variables+:} false
; then :
2978 $as_echo_n "(cached) " >&6
2980 if $as_echo 'TRUE=$(BAR$(V))
2986 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
2987 am_cv_make_support_nested_variables
=yes
2989 am_cv_make_support_nested_variables
=no
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2993 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2994 if test $am_cv_make_support_nested_variables = yes; then
2996 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
2998 AM_V
=$AM_DEFAULT_VERBOSITY
2999 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3004 # Add configure option --enable-maintainer-mode which enables
3005 # dependency checking and generation useful to package maintainers.
3006 # This is made an option to avoid confusing end users.
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3009 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3010 # Check whether --enable-maintainer-mode was given.
3011 if test "${enable_maintainer_mode+set}" = set; then :
3012 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3014 USE_MAINTAINER_MODE=no
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3018 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3019 if test $USE_MAINTAINER_MODE = yes; then
3020 MAINTAINER_MODE_TRUE=
3021 MAINTAINER_MODE_FALSE='#'
3023 MAINTAINER_MODE_TRUE
='#'
3024 MAINTAINER_MODE_FALSE
=
3027 MAINT
=$MAINTAINER_MODE_TRUE
3031 # Check for programs
3033 ac_cpp
='$CPP $CPPFLAGS'
3034 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3037 if test -n "$ac_tool_prefix"; then
3038 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3039 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if ${ac_cv_prog_CC+:} false
; then :
3043 $as_echo_n "(cached) " >&6
3045 if test -n "$CC"; then
3046 ac_cv_prog_CC
="$CC" # Let the user override the test.
3048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3052 test -z "$as_dir" && as_dir
=.
3053 for ac_exec_ext
in '' $ac_executable_extensions; do
3054 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3055 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 if test -n "$CC"; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3068 $as_echo "$CC" >&6; }
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3076 if test -z "$ac_cv_prog_CC"; then
3078 # Extract the first word of "gcc", so it can be a program name with args.
3079 set dummy gcc
; ac_word
=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3083 $as_echo_n "(cached) " >&6
3085 if test -n "$ac_ct_CC"; then
3086 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3092 test -z "$as_dir" && as_dir
=.
3093 for ac_exec_ext
in '' $ac_executable_extensions; do
3094 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3095 ac_cv_prog_ac_ct_CC
="gcc"
3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3106 if test -n "$ac_ct_CC"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3108 $as_echo "$ac_ct_CC" >&6; }
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3114 if test "x$ac_ct_CC" = x
; then
3117 case $cross_compiling:$ac_tool_warned in
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3121 ac_tool_warned
=yes ;;
3129 if test -z "$CC"; then
3130 if test -n "$ac_tool_prefix"; then
3131 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3132 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_CC+:} false
; then :
3136 $as_echo_n "(cached) " >&6
3138 if test -n "$CC"; then
3139 ac_cv_prog_CC
="$CC" # Let the user override the test.
3141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3145 test -z "$as_dir" && as_dir
=.
3146 for ac_exec_ext
in '' $ac_executable_extensions; do
3147 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3148 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 if test -n "$CC"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161 $as_echo "$CC" >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3170 if test -z "$CC"; then
3171 # Extract the first word of "cc", so it can be a program name with args.
3172 set dummy cc
; ac_word
=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if ${ac_cv_prog_CC+:} false
; then :
3176 $as_echo_n "(cached) " >&6
3178 if test -n "$CC"; then
3179 ac_cv_prog_CC
="$CC" # Let the user override the test.
3182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3186 test -z "$as_dir" && as_dir
=.
3187 for ac_exec_ext
in '' $ac_executable_extensions; do
3188 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3189 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3190 ac_prog_rejected
=yes
3194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 if test $ac_prog_rejected = yes; then
3202 # We found a bogon in the path, so make sure we never use it.
3203 set dummy
$ac_cv_prog_CC
3205 if test $# != 0; then
3206 # We chose a different compiler from the bogus one.
3207 # However, it has the same basename, so the bogon will be chosen
3208 # first if we set CC to just the basename; use the full file name.
3210 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3216 if test -n "$CC"; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3218 $as_echo "$CC" >&6; }
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3226 if test -z "$CC"; then
3227 if test -n "$ac_tool_prefix"; then
3228 for ac_prog
in cl.exe
3230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3231 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if ${ac_cv_prog_CC+:} false
; then :
3235 $as_echo_n "(cached) " >&6
3237 if test -n "$CC"; then
3238 ac_cv_prog_CC
="$CC" # Let the user override the test.
3240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3244 test -z "$as_dir" && as_dir
=.
3245 for ac_exec_ext
in '' $ac_executable_extensions; do
3246 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3247 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 if test -n "$CC"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3260 $as_echo "$CC" >&6; }
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3267 test -n "$CC" && break
3270 if test -z "$CC"; then
3272 for ac_prog
in cl.exe
3274 # Extract the first word of "$ac_prog", so it can be a program name with args.
3275 set dummy
$ac_prog; ac_word
=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3279 $as_echo_n "(cached) " >&6
3281 if test -n "$ac_ct_CC"; then
3282 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3288 test -z "$as_dir" && as_dir
=.
3289 for ac_exec_ext
in '' $ac_executable_extensions; do
3290 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3291 ac_cv_prog_ac_ct_CC
="$ac_prog"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3302 if test -n "$ac_ct_CC"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3304 $as_echo "$ac_ct_CC" >&6; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3311 test -n "$ac_ct_CC" && break
3314 if test "x$ac_ct_CC" = x
; then
3317 case $cross_compiling:$ac_tool_warned in
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3321 ac_tool_warned
=yes ;;
3330 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332 as_fn_error $?
"no acceptable C compiler found in \$PATH
3333 See \`config.log' for more details" "$LINENO" 5; }
3335 # Provide some information about the compiler.
3336 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3339 for ac_option
in --version -v -V -qversion; do
3340 { { ac_try
="$ac_compiler $ac_option >&5"
3342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 $as_echo "$ac_try_echo"; } >&5
3347 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3349 if test -s conftest.err; then
3351 ... rest of stderr output deleted ...
3352 10q' conftest.err >conftest.er1
3353 cat conftest.er1 >&5
3355 rm -f conftest.er1 conftest.err
3356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357 test $ac_status = 0; }
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3371 ac_clean_files_save=$ac_clean_files
3372 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3373 # Try to create an executable without -o first, disregard a.out.
3374 # It will help us diagnose broken compilers, and finding out an intuition
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3377 $as_echo_n "checking whether the C compiler works... " >&6; }
3378 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3380 # The possible output files:
3381 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3384 for ac_file in $ac_files
3387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3388 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3393 if { { ac_try="$ac_link_default"
3395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3396 *) ac_try_echo
=$ac_try;;
3398 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400 (eval "$ac_link_default") 2>&5
3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }; then :
3404 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3405 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3406 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3407 # so that the user can short-circuit this test for compilers unknown to
3409 for ac_file
in $ac_files ''
3411 test -f "$ac_file" ||
continue
3413 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3416 # We found the default executable, but exeext='' is most
3420 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3422 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3424 # We set ac_cv_exeext here because the later test for it is not
3425 # safe: cross compilers may not add the suffix if given an `-o'
3426 # argument, so we may need to know it at that point already.
3427 # Even if this section looks crufty: it has the advantage of
3434 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3439 if test -z "$ac_file"; then :
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3442 $as_echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.
$ac_ext >&5
3445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447 as_fn_error
77 "C compiler cannot create executables
3448 See \`config.log' for more details" "$LINENO" 5; }
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3451 $as_echo "yes" >&6; }
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3454 $as_echo_n "checking for C compiler default output file name... " >&6; }
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3456 $as_echo "$ac_file" >&6; }
3457 ac_exeext
=$ac_cv_exeext
3459 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3460 ac_clean_files
=$ac_clean_files_save
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3462 $as_echo_n "checking for suffix of executables... " >&6; }
3463 if { { ac_try
="$ac_link"
3465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470 (eval "$ac_link") 2>&5
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }; then :
3474 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3475 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3476 # work properly (i.e., refer to `conftest.exe'), while it won't with
3478 for ac_file
in conftest.exe conftest conftest.
*; do
3479 test -f "$ac_file" ||
continue
3481 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3482 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3491 See \`config.log' for more details" "$LINENO" 5; }
3493 rm -f conftest conftest
$ac_cv_exeext
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3495 $as_echo "$ac_cv_exeext" >&6; }
3497 rm -f conftest.
$ac_ext
3498 EXEEXT
=$ac_cv_exeext
3500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3506 FILE *f = fopen ("conftest.out", "w");
3507 return ferror (f) || fclose (f) != 0;
3513 ac_clean_files
="$ac_clean_files conftest.out"
3514 # Check that the compiler produces executables we can run. If not, either
3515 # the compiler is broken, or we cross compile.
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3517 $as_echo_n "checking whether we are cross compiling... " >&6; }
3518 if test "$cross_compiling" != yes; then
3519 { { ac_try
="$ac_link"
3521 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3525 $as_echo "$ac_try_echo"; } >&5
3526 (eval "$ac_link") 2>&5
3528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529 test $ac_status = 0; }
3530 if { ac_try='./conftest$ac_cv_exeext'
3531 { { case "(($ac_try" in
3532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3533 *) ac_try_echo
=$ac_try;;
3535 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536 $as_echo "$ac_try_echo"; } >&5
3537 (eval "$ac_try") 2>&5
3539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540 test $ac_status = 0; }; }; then
3543 if test "$cross_compiling" = maybe
; then
3546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3548 as_fn_error $?
"cannot run C compiled programs.
3549 If you meant to cross compile, use \`--host'.
3550 See \`config.log' for more details" "$LINENO" 5; }
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3555 $as_echo "$cross_compiling" >&6; }
3557 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3558 ac_clean_files
=$ac_clean_files_save
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3560 $as_echo_n "checking for suffix of object files... " >&6; }
3561 if ${ac_cv_objext+:} false
; then :
3562 $as_echo_n "(cached) " >&6
3564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3575 rm -f conftest.o conftest.obj
3576 if { { ac_try
="$ac_compile"
3578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3582 $as_echo "$ac_try_echo"; } >&5
3583 (eval "$ac_compile") 2>&5
3585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3586 test $ac_status = 0; }; then :
3587 for ac_file in conftest.o conftest.obj conftest.*; do
3588 test -f "$ac_file" || continue;
3590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3591 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3596 $as_echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3602 See \
`config.log' for more details" "$LINENO" 5; }
3604 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3607 $as_echo "$ac_cv_objext" >&6; }
3608 OBJEXT=$ac_cv_objext
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3611 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3612 if ${ac_cv_c_compiler_gnu+:} false; then :
3613 $as_echo_n "(cached) " >&6
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3629 if ac_fn_c_try_compile "$LINENO"; then :
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3639 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3640 if test $ac_compiler_gnu = yes; then
3645 ac_test_CFLAGS=${CFLAGS+set}
3646 ac_save_CFLAGS=$CFLAGS
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3648 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3649 if ${ac_cv_prog_cc_g+:} false; then :
3650 $as_echo_n "(cached) " >&6
3652 ac_save_c_werror_flag=$ac_c_werror_flag
3653 ac_c_werror_flag=yes
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3667 if ac_fn_c_try_compile "$LINENO"; then :
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3682 if ac_fn_c_try_compile "$LINENO"; then :
3685 ac_c_werror_flag=$ac_save_c_werror_flag
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3698 if ac_fn_c_try_compile "$LINENO"; then :
3701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 ac_c_werror_flag=$ac_save_c_werror_flag
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3709 $as_echo "$ac_cv_prog_cc_g" >&6; }
3710 if test "$ac_test_CFLAGS" = set; then
3711 CFLAGS=$ac_save_CFLAGS
3712 elif test $ac_cv_prog_cc_g = yes; then
3713 if test "$GCC" = yes; then
3719 if test "$GCC" = yes; then
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3726 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3727 if ${ac_cv_prog_cc_c89+:} false; then :
3728 $as_echo_n "(cached) " >&6
3730 ac_cv_prog_cc_c89=no
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3737 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3738 struct buf { int x; };
3739 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3740 static char *e (p, i)
3746 static char *f (char * (*g) (char **, int), char **p, ...)
3751 s = g (p, va_arg (v,int));
3756 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3757 function prototypes and stuff, but not '\xHH' hex character constants.
3758 These don't provoke an error unfortunately, instead are silently treated
3759 as 'x'. The following induces an error, until -std is added to get
3760 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3761 array size at least. It's necessary to write '\x00'==0 to get something
3762 that's true only with -std. */
3763 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3765 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3766 inside strings and character constants. */
3768 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3770 int test (int i, double x);
3771 struct s1 {int (*f) (int a);};
3772 struct s2 {int (*f) (double a);};
3773 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3779 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3784 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3785 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3787 CC="$ac_save_CC $ac_arg"
3788 if ac_fn_c_try_compile "$LINENO"; then :
3789 ac_cv_prog_cc_c89=$ac_arg
3791 rm -f core conftest.err conftest.$ac_objext
3792 test "x$ac_cv_prog_cc_c89" != "xno" && break
3794 rm -f conftest.$ac_ext
3799 case "x$ac_cv_prog_cc_c89" in
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3802 $as_echo "none needed" >&6; } ;;
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3805 $as_echo "unsupported" >&6; } ;;
3807 CC="$CC $ac_cv_prog_cc_c89"
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3809 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3811 if test "x$ac_cv_prog_cc_c89" != xno; then :
3816 ac_cpp='$CPP $CPPFLAGS'
3817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3827 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3828 if ${am_cv_prog_cc_c_o+:} false; then :
3829 $as_echo_n "(cached) " >&6
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3842 # Make sure it works both with $CC and with simple cc.
3843 # Following AC_PROG_CC_C_O, we do the test twice because some
3844 # compilers refuse to overwrite an existing .o file with -o,
3845 # though they will create one.
3846 am_cv_prog_cc_c_o=yes
3848 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3849 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } \
3853 && test -f conftest2.$ac_objext; then
3856 am_cv_prog_cc_c_o=no
3860 rm -f core conftest*
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3864 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3865 if test "$am_cv_prog_cc_c_o" != yes; then
3866 # Losing compiler, so override with the script.
3867 # FIXME: It is wrong to rewrite CC.
3868 # But if we don't then we get into trouble of one sort or another.
3869 # A longer-term fix would be to have automake use am__CC in this case,
3870 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3871 CC="$am_aux_dir/compile $CC"
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3879 DEPDIR="${am__leading_dot}deps"
3881 ac_config_commands="$ac_config_commands depfiles"
3884 am_make=${MAKE-make}
3885 cat > confinc << 'END'
3887 @echo this is the am__doit target
3890 # If we don't find an include directive, just comment out the code.
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3892 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3896 # First try GNU make style include.
3897 echo "include confinc" > confmf
3898 # Ignore all kinds of additional output from 'make'.
3899 case `$am_make -s -f confmf
2> /dev
/null
` in #(
3900 *the\ am__doit\ target*)
3906 # Now try BSD make style include.
3907 if test "$am__include" = "#"; then
3908 echo '.include "confinc"' > confmf
3909 case `$am_make -s -f confmf
2> /dev
/null
` in #(
3910 *the\ am__doit\ target*)
3911 am__include=.include
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3920 $as_echo "$_am_result" >&6; }
3921 rm -f confinc confmf
3923 # Check whether --enable-dependency-tracking was given.
3924 if test "${enable_dependency_tracking+set}" = set; then :
3925 enableval=$enable_dependency_tracking;
3928 if test "x$enable_dependency_tracking" != xno; then
3929 am_depcomp="$ac_aux_dir/depcomp"
3933 if test "x$enable_dependency_tracking" != xno; then
3943 depcc="$CC" am_compiler_list=
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3946 $as_echo_n "checking dependency style of $depcc... " >&6; }
3947 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3948 $as_echo_n "(cached) " >&6
3950 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3951 # We make a subdir and do the tests there. Otherwise we can end up
3952 # making bogus files that we don't know about and never remove. For
3953 # instance it was reported that on HP-UX the gcc test will end up
3954 # making a dummy file named 'D' -- because '-MD' means "put the output
3958 # Copy depcomp to subdir because otherwise we won't find it if we're
3959 # using a relative directory.
3960 cp "$am_depcomp" conftest.dir
3962 # We will build objects and dependencies in a subdirectory because
3963 # it helps to detect inapplicable dependency modes. For instance
3964 # both Tru64's cc and ICC support -MD to output dependencies as a
3965 # side effect of compilation, but ICC will put the dependencies in
3966 # the current directory while Tru64 will put them in the object
3970 am_cv_CC_dependencies_compiler_type=none
3971 if test "$am_compiler_list" = ""; then
3972 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
3975 case " $depcc " in #(
3976 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3979 for depmode in $am_compiler_list; do
3980 # Setup a source with many dependencies, because some compilers
3981 # like to wrap large dependency lists on column 80 (with \), and
3982 # we should not choose a depcomp mode which is confused by this.
3984 # We need to recreate these files for each test, as the compiler may
3985 # overwrite some of them when testing with obscure command lines.
3986 # This happens at least with the AIX C compiler.
3988 for i in 1 2 3 4 5 6; do
3989 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3990 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3991 # Solaris 10 /bin/sh.
3992 echo '/* dummy */' > sub/conftst$i.h
3994 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3996 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3997 # mode. It turns out that the SunPro C++ compiler does not properly
3998 # handle '-M -o', and we need to detect this. Also, some Intel
3999 # versions had trouble with output in subdirs.
4000 am__obj=sub/conftest.${OBJEXT-o}
4001 am__minus_obj="-o $am__obj"
4004 # This depmode causes a compiler race in universal mode.
4005 test "$am__universal" = false || continue
4008 # After this tag, mechanisms are not by side-effect, so they'll
4009 # only be used when explicitly requested.
4010 if test "x$enable_dependency_tracking" = xyes; then
4016 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4017 # This compiler won't grok '-c -o', but also, the minuso test has
4018 # not run yet. These depmodes are late enough in the game, and
4019 # so weak that their functioning should not be impacted.
4020 am__obj=conftest.${OBJEXT-o}
4025 if depmode=$depmode \
4026 source=sub/conftest.c object=$am__obj \
4027 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4028 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4029 >/dev/null 2>conftest.err &&
4030 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4031 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4032 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4033 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4034 # icc doesn't choke on unknown options, it will just issue warnings
4035 # or remarks (even with -Werror). So we grep stderr for any message
4036 # that says an option was ignored or not supported.
4037 # When given -MP, icc 7.0 and 7.1 complain thusly:
4038 # icc: Command line warning: ignoring option '-M'; no argument required
4039 # The diagnosis changed in icc 8.0:
4040 # icc: Command line remark: option '-MP' not supported
4041 if (grep 'ignoring option' conftest.err ||
4042 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4043 am_cv_CC_dependencies_compiler_type=$depmode
4052 am_cv_CC_dependencies_compiler_type=none
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4057 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4058 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4061 test "x$enable_dependency_tracking" != xno \
4062 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4064 am__fastdepCC_FALSE='#'
4066 am__fastdepCC_TRUE='#'
4067 am__fastdepCC_FALSE=
4071 case $ac_cv_prog_cc_stdc in #(
4073 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4076 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4077 if ${ac_cv_prog_cc_c99+:} false; then :
4078 $as_echo_n "(cached) " >&6
4080 ac_cv_prog_cc_c99=no
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4085 #include <stdbool.h>
4090 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4091 #define debug(...) fprintf (stderr, __VA_ARGS__)
4092 #define showlist(...) puts (#__VA_ARGS__)
4093 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4095 test_varargs_macros (void)
4100 debug ("X = %d\n", x);
4101 showlist (The first, second, and third items.);
4102 report (x>y, "x is %d but y is %d", x, y);
4105 // Check long long types.
4106 #define BIG64 18446744073709551615ull
4107 #define BIG32 4294967295ul
4108 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4110 your preprocessor is broken;
4114 your preprocessor is broken;
4116 static long long int bignum = -9223372036854775807LL;
4117 static unsigned long long int ubignum = BIG64;
4119 struct incomplete_array
4127 const wchar_t *name;
4131 typedef const char *ccp;
4134 test_restrict (ccp restrict text)
4136 // See if C++-style comments work.
4137 // Iterate through items via the restricted pointer.
4138 // Also check for declarations in for loops.
4139 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4144 // Check varargs and va_copy.
4146 test_varargs (const char *format, ...)
4149 va_start (args, format);
4151 va_copy (args_copy, args);
4162 str = va_arg (args_copy, const char *);
4165 number = va_arg (args_copy, int);
4168 fnumber = va_arg (args_copy, double);
4183 _Bool success = false;
4186 if (test_restrict ("String literal") == 0)
4188 char *restrict newvar = "Another string";
4191 test_varargs ("s, d' f .", "string", 65, 34.234);
4192 test_varargs_macros ();
4194 // Check flexible array members.
4195 struct incomplete_array *ia =
4196 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4198 for (int i = 0; i < ia->datasize; ++i)
4199 ia->data[i] = i * 1.234;
4201 // Check named initializers.
4202 struct named_init ni = {
4204 .name = L"Test wide string",
4205 .average = 543.34343,
4210 int dynamic_array[ni.number];
4211 dynamic_array[ni.number - 1] = 543;
4213 // work around unused variable warnings
4214 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4215 || dynamic_array[ni.number - 1] != 543);
4221 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4223 CC="$ac_save_CC $ac_arg"
4224 if ac_fn_c_try_compile "$LINENO"; then :
4225 ac_cv_prog_cc_c99=$ac_arg
4227 rm -f core conftest.err conftest.$ac_objext
4228 test "x$ac_cv_prog_cc_c99" != "xno" && break
4230 rm -f conftest.$ac_ext
4235 case "x$ac_cv_prog_cc_c99" in
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4238 $as_echo "none needed" >&6; } ;;
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4241 $as_echo "unsupported" >&6; } ;;
4243 CC="$CC $ac_cv_prog_cc_c99"
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4245 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4247 if test "x$ac_cv_prog_cc_c99" != xno; then :
4248 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4251 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4252 if ${ac_cv_prog_cc_c89+:} false; then :
4253 $as_echo_n "(cached) " >&6
4255 ac_cv_prog_cc_c89=no
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4262 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4263 struct buf { int x; };
4264 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4265 static char *e (p, i)
4271 static char *f (char * (*g) (char **, int), char **p, ...)
4276 s = g (p, va_arg (v,int));
4281 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4282 function prototypes and stuff, but not '\xHH' hex character constants.
4283 These don't provoke an error unfortunately, instead are silently treated
4284 as 'x'. The following induces an error, until -std is added to get
4285 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4286 array size at least. It's necessary to write '\x00'==0 to get something
4287 that's true only with -std. */
4288 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4290 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4291 inside strings and character constants. */
4293 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4295 int test (int i, double x);
4296 struct s1 {int (*f) (int a);};
4297 struct s2 {int (*f) (double a);};
4298 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4304 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4309 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4310 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4312 CC="$ac_save_CC $ac_arg"
4313 if ac_fn_c_try_compile "$LINENO"; then :
4314 ac_cv_prog_cc_c89=$ac_arg
4316 rm -f core conftest.err conftest.$ac_objext
4317 test "x$ac_cv_prog_cc_c89" != "xno" && break
4319 rm -f conftest.$ac_ext
4324 case "x$ac_cv_prog_cc_c89" in
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4327 $as_echo "none needed" >&6; } ;;
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4330 $as_echo "unsupported" >&6; } ;;
4332 CC="$CC $ac_cv_prog_cc_c89"
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4334 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4336 if test "x$ac_cv_prog_cc_c89" != xno; then :
4337 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4339 ac_cv_prog_cc_stdc=no
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4346 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4347 if ${ac_cv_prog_cc_stdc+:} false; then :
4348 $as_echo_n "(cached) " >&6
4351 case $ac_cv_prog_cc_stdc in #(
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4354 $as_echo "unsupported" >&6; } ;; #(
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4357 $as_echo "none needed" >&6; } ;; #(
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4360 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4364 ac_cpp='$CPP $CPPFLAGS'
4365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4369 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4370 # On Suns, sometimes $CPP names a directory.
4371 if test -n "$CPP" && test -d "$CPP"; then
4374 if test -z "$CPP"; then
4375 if ${ac_cv_prog_CPP+:} false; then :
4376 $as_echo_n "(cached) " >&6
4378 # Double quotes because CPP needs to be expanded
4379 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4382 for ac_c_preproc_warn_flag in '' yes
4384 # Use a header file that comes with gcc, so configuring glibc
4385 # with a fresh cross-compiler works.
4386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4387 # <limits.h> exists even on freestanding compilers.
4388 # On the NeXT, cc -E runs the code through the compiler's parser,
4389 # not just through cpp. "Syntax error" is here to catch this case.
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4393 # include <limits.h>
4395 # include <assert.h>
4399 if ac_fn_c_try_cpp "$LINENO"; then :
4402 # Broken: fails on valid input.
4405 rm -f conftest.err conftest.i conftest.$ac_ext
4407 # OK, works on sane cases. Now check whether nonexistent headers
4408 # can be detected and how.
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411 #include <ac_nonexistent.h>
4413 if ac_fn_c_try_cpp "$LINENO"; then :
4414 # Broken: success on invalid input.
4417 # Passes both tests.
4421 rm -f conftest.err conftest.i conftest.$ac_ext
4424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4425 rm -f conftest.i conftest.err conftest.
$ac_ext
4426 if $ac_preproc_ok; then :
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4439 $as_echo "$CPP" >&6; }
4441 for ac_c_preproc_warn_flag
in '' yes
4443 # Use a header file that comes with gcc, so configuring glibc
4444 # with a fresh cross-compiler works.
4445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4446 # <limits.h> exists even on freestanding compilers.
4447 # On the NeXT, cc -E runs the code through the compiler's parser,
4448 # not just through cpp. "Syntax error" is here to catch this case.
4449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4452 # include <limits.h>
4454 # include <assert.h>
4458 if ac_fn_c_try_cpp
"$LINENO"; then :
4461 # Broken: fails on valid input.
4464 rm -f conftest.err conftest.i conftest.
$ac_ext
4466 # OK, works on sane cases. Now check whether nonexistent headers
4467 # can be detected and how.
4468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470 #include <ac_nonexistent.h>
4472 if ac_fn_c_try_cpp
"$LINENO"; then :
4473 # Broken: success on invalid input.
4476 # Passes both tests.
4480 rm -f conftest.err conftest.i conftest.
$ac_ext
4483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4484 rm -f conftest.i conftest.err conftest.
$ac_ext
4485 if $ac_preproc_ok; then :
4488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4490 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4491 See \`config.log' for more details" "$LINENO" 5; }
4495 ac_cpp
='$CPP $CPPFLAGS'
4496 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4502 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4504 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4505 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
4506 $as_echo_n "(cached) " >&6
4508 cat >conftest.
make <<\_ACEOF
4511 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4513 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4514 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4516 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4518 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4522 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4524 $as_echo "yes" >&6; }
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4529 SET_MAKE
="MAKE=${MAKE-make}"
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4533 $as_echo_n "checking whether ln -s works... " >&6; }
4535 if test "$LN_S" = "ln -s"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4537 $as_echo "yes" >&6; }
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4540 $as_echo "no, using $LN_S" >&6; }
4544 if test -n "$ac_tool_prefix"; then
4545 for ac_prog
in ar lib
"link -lib"
4547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4548 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550 $as_echo_n "checking for $ac_word... " >&6; }
4551 if ${ac_cv_prog_AR+:} false
; then :
4552 $as_echo_n "(cached) " >&6
4554 if test -n "$AR"; then
4555 ac_cv_prog_AR
="$AR" # Let the user override the test.
4557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4561 test -z "$as_dir" && as_dir
=.
4562 for ac_exec_ext
in '' $ac_executable_extensions; do
4563 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4564 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 if test -n "$AR"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4577 $as_echo "$AR" >&6; }
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4584 test -n "$AR" && break
4587 if test -z "$AR"; then
4589 for ac_prog
in ar lib
"link -lib"
4591 # Extract the first word of "$ac_prog", so it can be a program name with args.
4592 set dummy
$ac_prog; ac_word
=$2
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4596 $as_echo_n "(cached) " >&6
4598 if test -n "$ac_ct_AR"; then
4599 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4601 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4605 test -z "$as_dir" && as_dir
=.
4606 for ac_exec_ext
in '' $ac_executable_extensions; do
4607 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4608 ac_cv_prog_ac_ct_AR
="$ac_prog"
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4619 if test -n "$ac_ct_AR"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4621 $as_echo "$ac_ct_AR" >&6; }
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4628 test -n "$ac_ct_AR" && break
4631 if test "x$ac_ct_AR" = x
; then
4634 case $cross_compiling:$ac_tool_warned in
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4638 ac_tool_warned
=yes ;;
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4647 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4648 if ${am_cv_ar_interface+:} false
; then :
4649 $as_echo_n "(cached) " >&6
4652 ac_cpp
='$CPP $CPPFLAGS'
4653 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4657 am_cv_ar_interface
=ar
4658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4660 int some_variable = 0;
4662 if ac_fn_c_try_compile
"$LINENO"; then :
4663 am_ar_try
='$AR cru libconftest.a conftest.$ac_objext >&5'
4664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4665 (eval $am_ar_try) 2>&5
4667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4668 test $ac_status = 0; }
4669 if test "$ac_status" -eq 0; then
4670 am_cv_ar_interface
=ar
4672 am_ar_try
='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4674 (eval $am_ar_try) 2>&5
4676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4677 test $ac_status = 0; }
4678 if test "$ac_status" -eq 0; then
4679 am_cv_ar_interface
=lib
4681 am_cv_ar_interface
=unknown
4684 rm -f conftest.lib libconftest.a
4687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4689 ac_cpp
='$CPP $CPPFLAGS'
4690 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4696 $as_echo "$am_cv_ar_interface" >&6; }
4698 case $am_cv_ar_interface in
4702 # Microsoft lib, so override with the ar-lib wrapper script.
4703 # FIXME: It is wrong to rewrite AR.
4704 # But if we don't then we get into trouble of one sort or another.
4705 # A longer-term fix would be to have automake use am__AR in this case,
4706 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4708 AR
="$am_aux_dir/ar-lib $AR"
4711 as_fn_error $?
"could not determine $AR interface" "$LINENO" 5
4716 # Check if LD supports linker scripts,
4717 # and define automake conditional HAVE_LD_VERSION_SCRIPT if so.
4718 # Check whether --enable-ld-version-script was given.
4719 if test "${enable_ld_version_script+set}" = set; then :
4720 enableval
=$enable_ld_version_script; have_ld_version_script
=$enableval
4723 if test -z "$have_ld_version_script"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
4725 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
4726 save_LDFLAGS
="$LDFLAGS"
4727 LDFLAGS
="$LDFLAGS -Wl,--version-script=conftest.map"
4728 cat > conftest.map
<<EOF
4737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4748 if ac_fn_c_try_link
"$LINENO"; then :
4749 have_ld_version_script
=yes
4751 have_ld_version_script
=no
4753 rm -f core conftest.err conftest.
$ac_objext \
4754 conftest
$ac_exeext conftest.
$ac_ext
4756 LDFLAGS
="$save_LDFLAGS"
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
4758 $as_echo "$have_ld_version_script" >&6; }
4760 if test "$have_ld_version_script" = "yes"; then
4761 HAVE_LD_VERSION_SCRIPT_TRUE
=
4762 HAVE_LD_VERSION_SCRIPT_FALSE
='#'
4764 HAVE_LD_VERSION_SCRIPT_TRUE
='#'
4765 HAVE_LD_VERSION_SCRIPT_FALSE
=
4769 # See if compiler supports prototypes.
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
4771 $as_echo_n "checking for function prototypes... " >&6; }
4772 if ${ijg_cv_have_prototypes+:} false
; then :
4773 $as_echo_n "(cached) " >&6
4775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4778 int testfunction (int arg1, int * arg2); /* check prototypes */
4779 struct methods_struct { /* check method-pointer declarations */
4780 int (*error_exit) (char *msgtext);
4781 int (*trace_message) (char *msgtext);
4782 int (*another_method) (void);
4784 int testfunction (int arg1, int * arg2) /* check definitions */
4785 { return arg2[arg1]; }
4786 int test2function (void) /* check void arg list */
4790 if ac_fn_c_try_compile
"$LINENO"; then :
4791 ijg_cv_have_prototypes
=yes
4793 ijg_cv_have_prototypes
=no
4795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_have_prototypes" >&5
4799 $as_echo "$ijg_cv_have_prototypes" >&6; }
4800 if test $ijg_cv_have_prototypes = yes; then
4802 $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your compiler does not seem to know about function prototypes.
4806 Perhaps it needs a special switch to enable ANSI C mode.
4807 If so, we recommend running configure like this:
4808 ./configure CC='cc -switch'
4809 where -switch is the proper switch." >&5
4810 $as_echo "$as_me: WARNING: Your compiler does not seem to know about function prototypes.
4811 Perhaps it needs a special switch to enable ANSI C mode.
4812 If so, we recommend running configure like this:
4813 ./configure CC='cc -switch'
4814 where -switch is the proper switch." >&2;}
4817 # Check header files
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4820 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4821 if ${ac_cv_path_GREP+:} false
; then :
4822 $as_echo_n "(cached) " >&6
4824 if test -z "$GREP"; then
4825 ac_path_GREP_found
=false
4826 # Loop through the user's path and test for each of PROGNAME-LIST
4827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4828 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4831 test -z "$as_dir" && as_dir
=.
4832 for ac_prog
in grep ggrep
; do
4833 for ac_exec_ext
in '' $ac_executable_extensions; do
4834 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4835 as_fn_executable_p
"$ac_path_GREP" ||
continue
4836 # Check for GNU ac_path_GREP and select it if it is found.
4837 # Check for GNU $ac_path_GREP
4838 case `"$ac_path_GREP" --version 2>&1` in
4840 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4843 $as_echo_n 0123456789 >"conftest.in"
4846 cat "conftest.in" "conftest.in" >"conftest.tmp"
4847 mv "conftest.tmp" "conftest.in"
4848 cp "conftest.in" "conftest.nl"
4849 $as_echo 'GREP' >> "conftest.nl"
4850 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4851 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4852 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4853 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4854 # Best one so far, save it but keep looking for a better one
4855 ac_cv_path_GREP
="$ac_path_GREP"
4856 ac_path_GREP_max
=$ac_count
4858 # 10*(2^10) chars as input seems more than enough
4859 test $ac_count -gt 10 && break
4861 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4864 $ac_path_GREP_found && break 3
4869 if test -z "$ac_cv_path_GREP"; then
4870 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4873 ac_cv_path_GREP
=$GREP
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4878 $as_echo "$ac_cv_path_GREP" >&6; }
4879 GREP
="$ac_cv_path_GREP"
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4883 $as_echo_n "checking for egrep... " >&6; }
4884 if ${ac_cv_path_EGREP+:} false
; then :
4885 $as_echo_n "(cached) " >&6
4887 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4888 then ac_cv_path_EGREP
="$GREP -E"
4890 if test -z "$EGREP"; then
4891 ac_path_EGREP_found
=false
4892 # Loop through the user's path and test for each of PROGNAME-LIST
4893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4894 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4897 test -z "$as_dir" && as_dir
=.
4898 for ac_prog
in egrep; do
4899 for ac_exec_ext
in '' $ac_executable_extensions; do
4900 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4901 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4902 # Check for GNU ac_path_EGREP and select it if it is found.
4903 # Check for GNU $ac_path_EGREP
4904 case `"$ac_path_EGREP" --version 2>&1` in
4906 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4909 $as_echo_n 0123456789 >"conftest.in"
4912 cat "conftest.in" "conftest.in" >"conftest.tmp"
4913 mv "conftest.tmp" "conftest.in"
4914 cp "conftest.in" "conftest.nl"
4915 $as_echo 'EGREP' >> "conftest.nl"
4916 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4917 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4918 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4919 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4920 # Best one so far, save it but keep looking for a better one
4921 ac_cv_path_EGREP
="$ac_path_EGREP"
4922 ac_path_EGREP_max
=$ac_count
4924 # 10*(2^10) chars as input seems more than enough
4925 test $ac_count -gt 10 && break
4927 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4930 $ac_path_EGREP_found && break 3
4935 if test -z "$ac_cv_path_EGREP"; then
4936 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4939 ac_cv_path_EGREP
=$EGREP
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4945 $as_echo "$ac_cv_path_EGREP" >&6; }
4946 EGREP
="$ac_cv_path_EGREP"
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4950 $as_echo_n "checking for ANSI C header files... " >&6; }
4951 if ${ac_cv_header_stdc+:} false
; then :
4952 $as_echo_n "(cached) " >&6
4954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4969 if ac_fn_c_try_compile
"$LINENO"; then :
4970 ac_cv_header_stdc
=yes
4972 ac_cv_header_stdc
=no
4974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4976 if test $ac_cv_header_stdc = yes; then
4977 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4984 $EGREP "memchr" >/dev
/null
2>&1; then :
4987 ac_cv_header_stdc
=no
4993 if test $ac_cv_header_stdc = yes; then
4994 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
5000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5001 $EGREP "free" >/dev
/null
2>&1; then :
5004 ac_cv_header_stdc
=no
5010 if test $ac_cv_header_stdc = yes; then
5011 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5012 if test "$cross_compiling" = yes; then :
5015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5019 #if ((' ' & 0x0FF) == 0x020)
5020 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5021 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5023 # define ISLOWER(c) \
5024 (('a' <= (c) && (c) <= 'i') \
5025 || ('j' <= (c) && (c) <= 'r') \
5026 || ('s' <= (c) && (c) <= 'z'))
5027 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5030 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5035 for (i = 0; i < 256; i++)
5036 if (XOR (islower (i), ISLOWER (i))
5037 || toupper (i) != TOUPPER (i))
5042 if ac_fn_c_try_run
"$LINENO"; then :
5045 ac_cv_header_stdc
=no
5047 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5048 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5054 $as_echo "$ac_cv_header_stdc" >&6; }
5055 if test $ac_cv_header_stdc = yes; then
5057 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5061 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5062 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5063 inttypes.h stdint.h unistd.h
5065 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5066 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5068 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5069 cat >>confdefs.h
<<_ACEOF
5070 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5078 for ac_header
in stddef.h stdlib.h locale.h
5080 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5081 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5082 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5083 cat >>confdefs.h
<<_ACEOF
5084 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5091 ac_fn_c_check_header_mongrel
"$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5092 if test "x$ac_cv_header_string_h" = xyes
; then :
5096 $as_echo "#define NEED_BSD_STRINGS 1" >>confdefs.h
5102 # See whether type size_t is defined in any ANSI-standard places;
5103 # if not, perhaps it is defined in <sys/types.h>.
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
5105 $as_echo_n "checking for size_t... " >&6; }
5106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5109 #ifdef HAVE_STDDEF_H
5112 #ifdef HAVE_STDLIB_H
5116 #ifdef NEED_BSD_STRINGS
5117 #include <strings.h>
5121 typedef size_t my_size_t;
5131 if ac_fn_c_try_compile
"$LINENO"; then :
5134 ijg_size_t_ok
="not ANSI, perhaps it is in sys/types.h"
5136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
5138 $as_echo "$ijg_size_t_ok" >&6; }
5139 if test "$ijg_size_t_ok" != yes; then
5140 ac_fn_c_check_header_mongrel
"$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
5141 if test "x$ac_cv_header_sys_types_h" = xyes
; then :
5143 $as_echo "#define NEED_SYS_TYPES_H 1" >>confdefs.h
5145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147 #include <sys/types.h>
5149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5150 $EGREP "size_t" >/dev
/null
2>&1; then :
5151 ijg_size_t_ok
="size_t is in sys/types.h"
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
5163 $as_echo "$ijg_size_t_ok" >&6; }
5164 if test "$ijg_size_t_ok" = no
; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Type size_t is not defined in any of the usual places.
5166 Try putting '\"typedef unsigned int size_t;\"' in jconfig.h." >&5
5167 $as_echo "$as_me: WARNING: Type size_t is not defined in any of the usual places.
5168 Try putting '\"typedef unsigned int size_t;\"' in jconfig.h." >&2;}
5172 # Check compiler characteristics
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type unsigned char" >&5
5174 $as_echo_n "checking for type unsigned char... " >&6; }
5175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5181 unsigned char un_char;
5186 if ac_fn_c_try_compile
"$LINENO"; then :
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5188 $as_echo "yes" >&6; }
5190 $as_echo "#define HAVE_UNSIGNED_CHAR 1" >>confdefs.h
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; }
5196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type unsigned short" >&5
5199 $as_echo_n "checking for type unsigned short... " >&6; }
5200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5206 unsigned short un_short;
5211 if ac_fn_c_try_compile
"$LINENO"; then :
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5213 $as_echo "yes" >&6; }
5215 $as_echo "#define HAVE_UNSIGNED_SHORT 1" >>confdefs.h
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type void" >&5
5224 $as_echo_n "checking for type void... " >&6; }
5225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5228 /* Caution: a C++ compiler will insist on valid prototypes */
5229 typedef void * void_ptr; /* check void * */
5230 #ifdef HAVE_PROTOTYPES /* check ptr to function returning void */
5231 typedef void (*void_func) (int a, int b);
5233 typedef void (*void_func) ();
5236 #ifdef HAVE_PROTOTYPES /* check void function result */
5237 void test3function (void_ptr arg1, void_func arg2)
5239 void test3function (arg1, arg2)
5244 char * locptr = (char *) arg1; /* check casting to and from void * */
5245 arg1 = (void *) locptr;
5246 (*arg2) (1, 2); /* check call of fcn returning void */
5257 if ac_fn_c_try_compile
"$LINENO"; then :
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5259 $as_echo "yes" >&6; }
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5264 $as_echo "#define void char" >>confdefs.h
5267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5269 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5270 if ${ac_cv_c_const+:} false
; then :
5271 $as_echo_n "(cached) " >&6
5273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5281 /* Ultrix mips cc rejects this sort of thing. */
5282 typedef int charset[2];
5283 const charset cs = { 0, 0 };
5284 /* SunOS 4.1.1 cc rejects this. */
5285 char const *const *pcpcc;
5287 /* NEC SVR4.0.2 mips cc rejects this. */
5288 struct point {int x, y;};
5289 static struct point const zero = {0,0};
5290 /* AIX XL C 1.02.0.0 rejects this.
5291 It does not let you subtract one const X* pointer from another in
5292 an arm of an if-expression whose if-part is not a constant
5294 const char *g = "string";
5295 pcpcc = &g + (g ? g-g : 0);
5296 /* HPUX 7.0 cc rejects these. */
5298 ppc = (char**) pcpcc;
5299 pcpcc = (char const *const *) ppc;
5300 { /* SCO 3.2v4 cc rejects this sort of thing. */
5303 char const *s = 0 ? (char *) 0 : (char const *) 0;
5308 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5310 const int *foo = &x[0];
5313 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5314 typedef const int *iptr;
5318 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5319 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5320 struct s { int j; const int *ap[3]; } bx;
5321 struct s *b = &bx; b->j = 5;
5323 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5327 return !cs[0] && !zero.x;
5334 if ac_fn_c_try_compile
"$LINENO"; then :
5339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5342 $as_echo "$ac_cv_c_const" >&6; }
5343 if test $ac_cv_c_const = no
; then
5345 $as_echo "#define const /**/" >>confdefs.h
5350 # Check for non-broken inline under various spellings
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5352 $as_echo_n "checking for inline... " >&6; }
5354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5360 } __inline__ int foo() { return 0; }
5361 int bar() { return foo();
5366 if ac_fn_c_try_compile
"$LINENO"; then :
5367 ijg_cv_inline
="__inline__"
5369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5375 } __inline int foo() { return 0; }
5376 int bar() { return foo();
5381 if ac_fn_c_try_compile
"$LINENO"; then :
5382 ijg_cv_inline
="__inline"
5384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5390 } inline int foo() { return 0; }
5391 int bar() { return foo();
5396 if ac_fn_c_try_compile
"$LINENO"; then :
5397 ijg_cv_inline
="inline"
5399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_inline" >&5
5405 $as_echo "$ijg_cv_inline" >&6; }
5407 cat >>confdefs.h
<<_ACEOF
5408 #define INLINE $ijg_cv_inline
5412 # We cannot check for bogus warnings, but at least we can check for errors
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken incomplete types" >&5
5414 $as_echo_n "checking for broken incomplete types... " >&6; }
5415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5417 typedef struct undefined_structure * undef_struct_ptr;
5426 if ac_fn_c_try_compile
"$LINENO"; then :
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5428 $as_echo "ok" >&6; }
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
5431 $as_echo "broken" >&6; }
5433 $as_echo "#define INCOMPLETE_TYPES_BROKEN 1" >>confdefs.h
5436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5438 # Test whether global names are unique to at least 15 chars
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for short external names" >&5
5440 $as_echo_n "checking for short external names... " >&6; }
5441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5444 int possibly_duplicate_function () { return 0; }
5445 int possibly_dupli_function () { return 1; }
5455 if ac_fn_c_try_link
"$LINENO"; then :
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5457 $as_echo "ok" >&6; }
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: short" >&5
5460 $as_echo "short" >&6; }
5462 $as_echo "#define NEED_SHORT_EXTERNAL_NAMES 1" >>confdefs.h
5465 rm -f core conftest.err conftest.
$ac_objext \
5466 conftest
$ac_exeext conftest.
$ac_ext
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if char is signed" >&5
5470 $as_echo_n "checking to see if char is signed... " >&6; }
5471 if test "$cross_compiling" = yes; then :
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Assuming that char is signed on target machine.
5473 If it is unsigned, this will be a little bit inefficient." >&5
5474 $as_echo "$as_me: WARNING: Assuming that char is signed on target machine.
5475 If it is unsigned, this will be a little bit inefficient." >&2;}
5478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5481 #ifdef HAVE_STDLIB_H
5485 #ifdef HAVE_PROTOTYPES
5486 int is_char_signed (int arg)
5488 int is_char_signed (arg)
5492 if (arg == 189) { /* expected result for unsigned char */
5493 return 0; /* type char is unsigned */
5495 else if (arg != -67) { /* expected result for signed char */
5496 printf("Hmm, it seems 'char' is not eight bits wide on your machine.\n");
5497 printf("I fear the JPEG software will not work at all.\n\n");
5499 return 1; /* assume char is signed otherwise */
5501 char signed_char_check = (char) (-67);
5503 exit(is_char_signed((int) signed_char_check));
5506 if ac_fn_c_try_run
"$LINENO"; then :
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5510 $as_echo "#define CHAR_IS_UNSIGNED 1" >>confdefs.h
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5514 $as_echo "yes" >&6; }
5516 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5517 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if right shift is signed" >&5
5522 $as_echo_n "checking to see if right shift is signed... " >&6; }
5523 if test "$cross_compiling" = yes; then :
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that right shift is signed on target machine." >&5
5525 $as_echo "Assuming that right shift is signed on target machine." >&6; }
5527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5530 #ifdef HAVE_STDLIB_H
5534 #ifdef HAVE_PROTOTYPES
5535 int is_shifting_signed (long arg)
5537 int is_shifting_signed (arg)
5540 /* See whether right-shift on a long is signed or not. */
5542 long res = arg >> 4;
5544 if (res == -0x7F7E80CL) { /* expected result for signed shift */
5545 return 1; /* right shift is signed */
5547 /* see if unsigned-shift hack will fix it. */
5548 /* we can't just test exact value since it depends on width of long... */
5549 res |= (~0L) << (32-4);
5550 if (res == -0x7F7E80CL) { /* expected result now? */
5551 return 0; /* right shift is unsigned */
5553 printf("Right shift isn't acting as I expect it to.\n");
5554 printf("I fear the JPEG software will not work at all.\n\n");
5555 return 0; /* try it with unsigned anyway */
5558 exit(is_shifting_signed(-0x7F7E80B1L));
5561 if ac_fn_c_try_run
"$LINENO"; then :
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 $as_echo "no" >&6; }
5565 $as_echo "#define RIGHT_SHIFT_IS_UNSIGNED 1" >>confdefs.h
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5569 $as_echo "yes" >&6; }
5571 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5572 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if fopen accepts b spec" >&5
5577 $as_echo_n "checking to see if fopen accepts b spec... " >&6; }
5578 if test "$cross_compiling" = yes; then :
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that it does." >&5
5580 $as_echo "Assuming that it does." >&6; }
5582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5585 #ifdef HAVE_STDLIB_H
5590 if (fopen("conftestdata", "wb") != NULL)
5595 if ac_fn_c_try_run
"$LINENO"; then :
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5597 $as_echo "yes" >&6; }
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5602 $as_echo "#define DONT_USE_B_MODE 1" >>confdefs.h
5605 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5606 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5611 enable_win32_dll
=yes
5614 *-*-cygwin* |
*-*-mingw* |
*-*-pw32* |
*-*-cegcc*)
5615 if test -n "$ac_tool_prefix"; then
5616 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5617 set dummy
${ac_tool_prefix}as
; ac_word
=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_AS+:} false
; then :
5621 $as_echo_n "(cached) " >&6
5623 if test -n "$AS"; then
5624 ac_cv_prog_AS
="$AS" # Let the user override the test.
5626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5630 test -z "$as_dir" && as_dir
=.
5631 for ac_exec_ext
in '' $ac_executable_extensions; do
5632 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_AS
="${ac_tool_prefix}as"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 if test -n "$AS"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5646 $as_echo "$AS" >&6; }
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5654 if test -z "$ac_cv_prog_AS"; then
5656 # Extract the first word of "as", so it can be a program name with args.
5657 set dummy as
; ac_word
=$2
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if ${ac_cv_prog_ac_ct_AS+:} false
; then :
5661 $as_echo_n "(cached) " >&6
5663 if test -n "$ac_ct_AS"; then
5664 ac_cv_prog_ac_ct_AS
="$ac_ct_AS" # Let the user override the test.
5666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5670 test -z "$as_dir" && as_dir
=.
5671 for ac_exec_ext
in '' $ac_executable_extensions; do
5672 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5673 ac_cv_prog_ac_ct_AS
="as"
5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 ac_ct_AS
=$ac_cv_prog_ac_ct_AS
5684 if test -n "$ac_ct_AS"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5686 $as_echo "$ac_ct_AS" >&6; }
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5692 if test "x$ac_ct_AS" = x
; then
5695 case $cross_compiling:$ac_tool_warned in
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5699 ac_tool_warned
=yes ;;
5707 if test -n "$ac_tool_prefix"; then
5708 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5709 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 $as_echo_n "checking for $ac_word... " >&6; }
5712 if ${ac_cv_prog_DLLTOOL+:} false
; then :
5713 $as_echo_n "(cached) " >&6
5715 if test -n "$DLLTOOL"; then
5716 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
5718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5722 test -z "$as_dir" && as_dir
=.
5723 for ac_exec_ext
in '' $ac_executable_extensions; do
5724 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5725 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 DLLTOOL
=$ac_cv_prog_DLLTOOL
5736 if test -n "$DLLTOOL"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5738 $as_echo "$DLLTOOL" >&6; }
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5746 if test -z "$ac_cv_prog_DLLTOOL"; then
5747 ac_ct_DLLTOOL
=$DLLTOOL
5748 # Extract the first word of "dlltool", so it can be a program name with args.
5749 set dummy dlltool
; ac_word
=$2
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751 $as_echo_n "checking for $ac_word... " >&6; }
5752 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
5753 $as_echo_n "(cached) " >&6
5755 if test -n "$ac_ct_DLLTOOL"; then
5756 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
5758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5762 test -z "$as_dir" && as_dir
=.
5763 for ac_exec_ext
in '' $ac_executable_extensions; do
5764 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5765 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
5776 if test -n "$ac_ct_DLLTOOL"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5778 $as_echo "$ac_ct_DLLTOOL" >&6; }
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5784 if test "x$ac_ct_DLLTOOL" = x
; then
5787 case $cross_compiling:$ac_tool_warned in
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5791 ac_tool_warned
=yes ;;
5793 DLLTOOL
=$ac_ct_DLLTOOL
5796 DLLTOOL
="$ac_cv_prog_DLLTOOL"
5799 if test -n "$ac_tool_prefix"; then
5800 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5801 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_prog_OBJDUMP+:} false
; then :
5805 $as_echo_n "(cached) " >&6
5807 if test -n "$OBJDUMP"; then
5808 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
5810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5814 test -z "$as_dir" && as_dir
=.
5815 for ac_exec_ext
in '' $ac_executable_extensions; do
5816 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5817 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 OBJDUMP
=$ac_cv_prog_OBJDUMP
5828 if test -n "$OBJDUMP"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5830 $as_echo "$OBJDUMP" >&6; }
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5838 if test -z "$ac_cv_prog_OBJDUMP"; then
5839 ac_ct_OBJDUMP
=$OBJDUMP
5840 # Extract the first word of "objdump", so it can be a program name with args.
5841 set dummy objdump
; ac_word
=$2
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 $as_echo_n "checking for $ac_word... " >&6; }
5844 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
5845 $as_echo_n "(cached) " >&6
5847 if test -n "$ac_ct_OBJDUMP"; then
5848 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
5850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5854 test -z "$as_dir" && as_dir
=.
5855 for ac_exec_ext
in '' $ac_executable_extensions; do
5856 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5857 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
5868 if test -n "$ac_ct_OBJDUMP"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5870 $as_echo "$ac_ct_OBJDUMP" >&6; }
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5876 if test "x$ac_ct_OBJDUMP" = x
; then
5879 case $cross_compiling:$ac_tool_warned in
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5883 ac_tool_warned
=yes ;;
5885 OBJDUMP
=$ac_ct_OBJDUMP
5888 OBJDUMP
="$ac_cv_prog_OBJDUMP"
5894 test -z "$AS" && AS
=as
5900 test -z "$DLLTOOL" && DLLTOOL
=dlltool
5906 test -z "$OBJDUMP" && OBJDUMP
=objdump
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5917 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5922 macro_version
='2.4.6'
5923 macro_revision
='2.4.6'
5937 ltmain
=$ac_aux_dir/ltmain.sh
5939 # Backslashify metacharacters that are still active within
5940 # double-quoted strings.
5941 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5943 # Same as above, but do not quote variable references.
5944 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5946 # Sed substitution to delay expansion of an escaped shell variable in a
5947 # double_quote_subst'ed string.
5948 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5950 # Sed substitution to delay expansion of an escaped single quote.
5951 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5953 # Sed substitution to avoid accidental globbing in evaled expressions
5954 no_glob_subst
='s/\*/\\\*/g'
5956 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5957 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5958 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5961 $as_echo_n "checking how to print strings... " >&6; }
5962 # Test print first, because it will be a builtin if present.
5963 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5964 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5966 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5969 # Use this function as a fallback that always works.
5970 func_fallback_echo ()
5972 eval 'cat <<_LTECHO_EOF
5976 ECHO='func_fallback_echo
'
5979 # func_echo_all arg...
5980 # Invoke $ECHO with all args, space-separated.
5987 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5988 $as_echo "printf" >&6; } ;;
5989 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5990 $as_echo "print -r" >&6; } ;;
5991 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5992 $as_echo "cat" >&6; } ;;
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6009 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6010 if ${ac_cv_path_SED+:} false; then :
6011 $as_echo_n "(cached) " >&6
6013 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6014 for ac_i in 1 2 3 4 5 6 7; do
6015 ac_script="$ac_script$as_nl$ac_script"
6017 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6018 { ac_script=; unset ac_script;}
6019 if test -z "$SED"; then
6020 ac_path_SED_found=false
6021 # Loop through the user's path and
test for each of PROGNAME-LIST
6022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6026 test -z "$as_dir" && as_dir
=.
6027 for ac_prog
in sed gsed
; do
6028 for ac_exec_ext
in '' $ac_executable_extensions; do
6029 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6030 as_fn_executable_p
"$ac_path_SED" ||
continue
6031 # Check for GNU ac_path_SED and select it if it is found.
6032 # Check for GNU $ac_path_SED
6033 case `"$ac_path_SED" --version 2>&1` in
6035 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6038 $as_echo_n 0123456789 >"conftest.in"
6041 cat "conftest.in" "conftest.in" >"conftest.tmp"
6042 mv "conftest.tmp" "conftest.in"
6043 cp "conftest.in" "conftest.nl"
6044 $as_echo '' >> "conftest.nl"
6045 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6046 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6047 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6048 if test $ac_count -gt ${ac_path_SED_max-0}; then
6049 # Best one so far, save it but keep looking for a better one
6050 ac_cv_path_SED
="$ac_path_SED"
6051 ac_path_SED_max
=$ac_count
6053 # 10*(2^10) chars as input seems more than enough
6054 test $ac_count -gt 10 && break
6056 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6059 $ac_path_SED_found && break 3
6064 if test -z "$ac_cv_path_SED"; then
6065 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6073 $as_echo "$ac_cv_path_SED" >&6; }
6074 SED
="$ac_cv_path_SED"
6077 test -z "$SED" && SED
=sed
6078 Xsed
="$SED -e 1s/^X//"
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6091 $as_echo_n "checking for fgrep... " >&6; }
6092 if ${ac_cv_path_FGREP+:} false
; then :
6093 $as_echo_n "(cached) " >&6
6095 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
6096 then ac_cv_path_FGREP
="$GREP -F"
6098 if test -z "$FGREP"; then
6099 ac_path_FGREP_found
=false
6100 # Loop through the user's path and test for each of PROGNAME-LIST
6101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6102 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6105 test -z "$as_dir" && as_dir
=.
6106 for ac_prog
in fgrep
; do
6107 for ac_exec_ext
in '' $ac_executable_extensions; do
6108 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
6109 as_fn_executable_p
"$ac_path_FGREP" ||
continue
6110 # Check for GNU ac_path_FGREP and select it if it is found.
6111 # Check for GNU $ac_path_FGREP
6112 case `"$ac_path_FGREP" --version 2>&1` in
6114 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
6117 $as_echo_n 0123456789 >"conftest.in"
6120 cat "conftest.in" "conftest.in" >"conftest.tmp"
6121 mv "conftest.tmp" "conftest.in"
6122 cp "conftest.in" "conftest.nl"
6123 $as_echo 'FGREP' >> "conftest.nl"
6124 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6125 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6126 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6127 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6128 # Best one so far, save it but keep looking for a better one
6129 ac_cv_path_FGREP
="$ac_path_FGREP"
6130 ac_path_FGREP_max
=$ac_count
6132 # 10*(2^10) chars as input seems more than enough
6133 test $ac_count -gt 10 && break
6135 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6138 $ac_path_FGREP_found && break 3
6143 if test -z "$ac_cv_path_FGREP"; then
6144 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6147 ac_cv_path_FGREP
=$FGREP
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6153 $as_echo "$ac_cv_path_FGREP" >&6; }
6154 FGREP
="$ac_cv_path_FGREP"
6157 test -z "$GREP" && GREP
=grep
6177 # Check whether --with-gnu-ld was given.
6178 if test "${with_gnu_ld+set}" = set; then :
6179 withval
=$with_gnu_ld; test no
= "$withval" || with_gnu_ld
=yes
6185 if test yes = "$GCC"; then
6186 # Check if gcc -print-prog-name=ld gives a path.
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6188 $as_echo_n "checking for ld used by $CC... " >&6; }
6191 # gcc leaves a trailing carriage return, which upsets mingw
6192 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6194 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6197 # Accept absolute paths.
6199 re_direlt
='/[^/][^/]*/\.\./'
6200 # Canonicalize the pathname of ld
6201 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6202 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
6203 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6205 test -z "$LD" && LD
=$ac_prog
6208 # If it fails, then pretend we aren't using GCC.
6212 # If it is relative, then search for the first ld in PATH.
6216 elif test yes = "$with_gnu_ld"; then
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6218 $as_echo_n "checking for GNU ld... " >&6; }
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6221 $as_echo_n "checking for non-GNU ld... " >&6; }
6223 if ${lt_cv_path_LD+:} false
; then :
6224 $as_echo_n "(cached) " >&6
6226 if test -z "$LD"; then
6227 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
6228 for ac_dir
in $PATH; do
6230 test -z "$ac_dir" && ac_dir
=.
6231 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6232 lt_cv_path_LD
=$ac_dir/$ac_prog
6233 # Check to see if the program is GNU ld. I'd rather use --version,
6234 # but apparently some variants of GNU ld only accept -v.
6235 # Break only if it was the GNU/non-GNU ld that we prefer.
6236 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6237 *GNU
* |
*'with BFD'*)
6238 test no
!= "$with_gnu_ld" && break
6241 test yes != "$with_gnu_ld" && break
6248 lt_cv_path_LD
=$LD # Let the user override the test with a path.
6253 if test -n "$LD"; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6255 $as_echo "$LD" >&6; }
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }
6260 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6262 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6263 if ${lt_cv_prog_gnu_ld+:} false
; then :
6264 $as_echo_n "(cached) " >&6
6266 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6267 case `$LD -v 2>&1 </dev/null` in
6268 *GNU
* |
*'with BFD'*)
6269 lt_cv_prog_gnu_ld
=yes
6272 lt_cv_prog_gnu_ld
=no
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6277 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6278 with_gnu_ld
=$lt_cv_prog_gnu_ld
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6289 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6290 if ${lt_cv_path_NM+:} false
; then :
6291 $as_echo_n "(cached) " >&6
6293 if test -n "$NM"; then
6294 # Let the user override the test.
6297 lt_nm_to_check
=${ac_tool_prefix}nm
6298 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6299 lt_nm_to_check
="$lt_nm_to_check nm"
6301 for lt_tmp_nm
in $lt_nm_to_check; do
6302 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
6303 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6305 test -z "$ac_dir" && ac_dir
=.
6306 tmp_nm
=$ac_dir/$lt_tmp_nm
6307 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext"; then
6308 # Check to see if the nm accepts a BSD-compat flag.
6309 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6310 # nm: unknown option "B" ignored
6311 # Tru64's nm complains that /dev/null is an invalid object file
6312 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6314 mingw
*) lt_bad_file
=conftest.nm
/nofile
;;
6315 *) lt_bad_file
=/dev
/null
;;
6317 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6318 *$lt_bad_file* |
*'Invalid file or object type'*)
6319 lt_cv_path_NM
="$tmp_nm -B"
6323 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6325 lt_cv_path_NM
="$tmp_nm -p"
6329 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6330 continue # so that we can try to find one that supports BSD flags
6339 : ${lt_cv_path_NM=no}
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6343 $as_echo "$lt_cv_path_NM" >&6; }
6344 if test no
!= "$lt_cv_path_NM"; then
6347 # Didn't find any BSD compatible name lister, look for dumpbin.
6348 if test -n "$DUMPBIN"; then :
6349 # Let the user override the test.
6351 if test -n "$ac_tool_prefix"; then
6352 for ac_prog
in dumpbin
"link -dump"
6354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6355 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357 $as_echo_n "checking for $ac_word... " >&6; }
6358 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6359 $as_echo_n "(cached) " >&6
6361 if test -n "$DUMPBIN"; then
6362 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6368 test -z "$as_dir" && as_dir
=.
6369 for ac_exec_ext
in '' $ac_executable_extensions; do
6370 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6371 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 DUMPBIN
=$ac_cv_prog_DUMPBIN
6382 if test -n "$DUMPBIN"; then
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6384 $as_echo "$DUMPBIN" >&6; }
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6391 test -n "$DUMPBIN" && break
6394 if test -z "$DUMPBIN"; then
6395 ac_ct_DUMPBIN
=$DUMPBIN
6396 for ac_prog
in dumpbin
"link -dump"
6398 # Extract the first word of "$ac_prog", so it can be a program name with args.
6399 set dummy
$ac_prog; ac_word
=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6403 $as_echo_n "(cached) " >&6
6405 if test -n "$ac_ct_DUMPBIN"; then
6406 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6412 test -z "$as_dir" && as_dir
=.
6413 for ac_exec_ext
in '' $ac_executable_extensions; do
6414 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6415 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6426 if test -n "$ac_ct_DUMPBIN"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6428 $as_echo "$ac_ct_DUMPBIN" >&6; }
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6435 test -n "$ac_ct_DUMPBIN" && break
6438 if test "x$ac_ct_DUMPBIN" = x
; then
6441 case $cross_compiling:$ac_tool_warned in
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6445 ac_tool_warned
=yes ;;
6447 DUMPBIN
=$ac_ct_DUMPBIN
6451 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6453 DUMPBIN
="$DUMPBIN -symbols -headers"
6461 if test : != "$DUMPBIN"; then
6465 test -z "$NM" && NM
=nm
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6473 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6474 if ${lt_cv_nm_interface+:} false
; then :
6475 $as_echo_n "(cached) " >&6
6477 lt_cv_nm_interface
="BSD nm"
6478 echo "int some_variable = 0;" > conftest.
$ac_ext
6479 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6480 (eval "$ac_compile" 2>conftest.err
)
6481 cat conftest.err
>&5
6482 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6483 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6484 cat conftest.err
>&5
6485 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6486 cat conftest.out
>&5
6487 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6488 lt_cv_nm_interface
="MS dumpbin"
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6493 $as_echo "$lt_cv_nm_interface" >&6; }
6495 # find the maximum length of command line arguments
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6497 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6498 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6499 $as_echo_n "(cached) " >&6
6506 # On DJGPP, this test can blow up pretty badly due to problems in libc
6507 # (any single argument exceeding 2000 bytes causes a buffer overrun
6508 # during glob expansion). Even if it were fixed, the result of this
6509 # check would be larger than it should be.
6510 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6514 # Under GNU Hurd, this test is not required because there is
6515 # no limit to the length of command line arguments.
6516 # Libtool will interpret -1 as no limit whatsoever
6517 lt_cv_sys_max_cmd_len
=-1;
6520 cygwin
* | mingw
* | cegcc
*)
6521 # On Win9x/ME, this test blows up -- it succeeds, but takes
6522 # about 5 minutes as the teststring grows exponentially.
6523 # Worse, since 9x/ME are not pre-emptively multitasking,
6524 # you end up with a "frozen" computer, even though with patience
6525 # the test eventually succeeds (with a max line length of 256k).
6526 # Instead, let's just punt: use the minimum linelength reported by
6527 # all of the supported platforms: 8192 (on NT/2K/XP).
6528 lt_cv_sys_max_cmd_len
=8192;
6532 # On MiNT this can take a long time and run out of memory.
6533 lt_cv_sys_max_cmd_len
=8192;
6537 # On AmigaOS with pdksh, this test takes hours, literally.
6538 # So we just punt and use a minimum line length of 8192.
6539 lt_cv_sys_max_cmd_len
=8192;
6542 bitrig
* | darwin
* | dragonfly
* | freebsd
* | netbsd
* | openbsd
*)
6543 # This has been around since 386BSD, at least. Likely further.
6544 if test -x /sbin
/sysctl
; then
6545 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6546 elif test -x /usr
/sbin
/sysctl
; then
6547 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6549 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6551 # And add a safety zone
6552 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6553 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6557 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6558 lt_cv_sys_max_cmd_len
=196608
6562 # The test takes a long time on OS/2.
6563 lt_cv_sys_max_cmd_len
=8192
6567 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6568 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6569 # nice to cause kernel panics so lets avoid the loop below.
6570 # First set a reasonable default.
6571 lt_cv_sys_max_cmd_len
=16384
6573 if test -x /sbin
/sysconfig
; then
6574 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6575 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6580 lt_cv_sys_max_cmd_len
=102400
6582 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6583 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6584 if test -n "$kargmax"; then
6585 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6587 lt_cv_sys_max_cmd_len
=32768
6591 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6592 if test -n "$lt_cv_sys_max_cmd_len" && \
6593 test undefined
!= "$lt_cv_sys_max_cmd_len"; then
6594 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6595 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6597 # Make teststring a little bigger before we do anything with it.
6598 # a 1K string should be a reasonable start.
6599 for i
in 1 2 3 4 5 6 7 8; do
6600 teststring
=$teststring$teststring
6602 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6603 # If test is not a shell built-in, we'll probably end up computing a
6604 # maximum length that is only half of the actual maximum length, but
6606 while { test X
`env echo "$teststring$teststring" 2>/dev/null` \
6607 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6608 test 17 != "$i" # 1/2 MB should be enough
6611 teststring
=$teststring$teststring
6613 # Only check the string length outside the loop.
6614 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6616 # Add a significant safety factor because C++ compilers can tack on
6617 # massive amounts of additional arguments before passing them to the
6618 # linker. It appears as though 1/2 is a usable value.
6619 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6626 if test -n "$lt_cv_sys_max_cmd_len"; then
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6628 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6631 $as_echo "none" >&6; }
6633 max_cmd_len
=$lt_cv_sys_max_cmd_len
6644 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
6654 # test EBCDIC or ASCII
6655 case `echo X|tr X '\101'` in
6656 A
) # ASCII based system
6657 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6658 lt_SP2NL
='tr \040 \012'
6659 lt_NL2SP
='tr \015\012 \040\040'
6661 *) # EBCDIC based system
6662 lt_SP2NL
='tr \100 \n'
6663 lt_NL2SP
='tr \r\n \100\100'
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6676 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6677 if ${lt_cv_to_host_file_cmd+:} false
; then :
6678 $as_echo_n "(cached) " >&6
6683 *-*-mingw* ) # actually msys
6684 lt_cv_to_host_file_cmd
=func_convert_file_msys_to_w32
6687 lt_cv_to_host_file_cmd
=func_convert_file_cygwin_to_w32
6689 * ) # otherwise, assume *nix
6690 lt_cv_to_host_file_cmd
=func_convert_file_nix_to_w32
6696 *-*-mingw* ) # actually msys
6697 lt_cv_to_host_file_cmd
=func_convert_file_msys_to_cygwin
6700 lt_cv_to_host_file_cmd
=func_convert_file_noop
6702 * ) # otherwise, assume *nix
6703 lt_cv_to_host_file_cmd
=func_convert_file_nix_to_cygwin
6707 * ) # unhandled hosts (and "normal" native builds)
6708 lt_cv_to_host_file_cmd
=func_convert_file_noop
6714 to_host_file_cmd
=$lt_cv_to_host_file_cmd
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6716 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6723 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6724 if ${lt_cv_to_tool_file_cmd+:} false
; then :
6725 $as_echo_n "(cached) " >&6
6727 #assume ordinary cross tools, or native build.
6728 lt_cv_to_tool_file_cmd
=func_convert_file_noop
6732 *-*-mingw* ) # actually msys
6733 lt_cv_to_tool_file_cmd
=func_convert_file_msys_to_w32
6741 to_tool_file_cmd
=$lt_cv_to_tool_file_cmd
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6743 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6750 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6751 if ${lt_cv_ld_reload_flag+:} false
; then :
6752 $as_echo_n "(cached) " >&6
6754 lt_cv_ld_reload_flag
='-r'
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6757 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6758 reload_flag
=$lt_cv_ld_reload_flag
6759 case $reload_flag in
6761 *) reload_flag
=" $reload_flag" ;;
6763 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
6765 cygwin
* | mingw
* | pw32
* | cegcc
*)
6766 if test yes != "$GCC"; then
6771 if test yes = "$GCC"; then
6772 reload_cmds
='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6774 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
6787 if test -n "$ac_tool_prefix"; then
6788 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6789 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791 $as_echo_n "checking for $ac_word... " >&6; }
6792 if ${ac_cv_prog_OBJDUMP+:} false
; then :
6793 $as_echo_n "(cached) " >&6
6795 if test -n "$OBJDUMP"; then
6796 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
6798 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6802 test -z "$as_dir" && as_dir
=.
6803 for ac_exec_ext
in '' $ac_executable_extensions; do
6804 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6805 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 OBJDUMP
=$ac_cv_prog_OBJDUMP
6816 if test -n "$OBJDUMP"; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6818 $as_echo "$OBJDUMP" >&6; }
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821 $as_echo "no" >&6; }
6826 if test -z "$ac_cv_prog_OBJDUMP"; then
6827 ac_ct_OBJDUMP
=$OBJDUMP
6828 # Extract the first word of "objdump", so it can be a program name with args.
6829 set dummy objdump
; ac_word
=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
6833 $as_echo_n "(cached) " >&6
6835 if test -n "$ac_ct_OBJDUMP"; then
6836 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
6838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6842 test -z "$as_dir" && as_dir
=.
6843 for ac_exec_ext
in '' $ac_executable_extensions; do
6844 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6845 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
6846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
6856 if test -n "$ac_ct_OBJDUMP"; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6858 $as_echo "$ac_ct_OBJDUMP" >&6; }
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 $as_echo "no" >&6; }
6864 if test "x$ac_ct_OBJDUMP" = x
; then
6867 case $cross_compiling:$ac_tool_warned in
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6871 ac_tool_warned
=yes ;;
6873 OBJDUMP
=$ac_ct_OBJDUMP
6876 OBJDUMP
="$ac_cv_prog_OBJDUMP"
6879 test -z "$OBJDUMP" && OBJDUMP
=objdump
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6887 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6888 if ${lt_cv_deplibs_check_method+:} false
; then :
6889 $as_echo_n "(cached) " >&6
6891 lt_cv_file_magic_cmd
='$MAGIC_CMD'
6892 lt_cv_file_magic_test_file
=
6893 lt_cv_deplibs_check_method
='unknown'
6894 # Need to set the preceding variable on all platforms that support
6895 # interlibrary dependencies.
6896 # 'none' -- dependencies not supported.
6897 # 'unknown' -- same as none, but documents that we really don't know.
6898 # 'pass_all' -- all dependencies passed with no checks.
6899 # 'test_compile' -- check by making test program.
6900 # 'file_magic [[regex]]' -- check by looking for files in library path
6901 # that responds to the $file_magic_cmd with a given extended regex.
6902 # If you have 'file' or equivalent on your system and you're not sure
6903 # whether 'pass_all' will *always* work, you probably want this one.
6907 lt_cv_deplibs_check_method
=pass_all
6911 lt_cv_deplibs_check_method
=pass_all
6915 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6916 lt_cv_file_magic_cmd
='/usr/bin/file -L'
6917 lt_cv_file_magic_test_file
=/shlib
/libc.so
6921 # func_win32_libid is a shell function defined in ltmain.sh
6922 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6923 lt_cv_file_magic_cmd
='func_win32_libid'
6927 # Base MSYS/MinGW do not provide the 'file' command needed by
6928 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6929 # unless we find 'file', for example because we are cross-compiling.
6930 if ( file / ) >/dev
/null
2>&1; then
6931 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6932 lt_cv_file_magic_cmd
='func_win32_libid'
6934 # Keep this pattern in sync with the one in func_win32_libid.
6935 lt_cv_deplibs_check_method
='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6936 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6941 # use the weaker test based on 'objdump'. See mingw*.
6942 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6943 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6946 darwin
* | rhapsody
*)
6947 lt_cv_deplibs_check_method
=pass_all
6950 freebsd
* | dragonfly
*)
6951 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6954 # Not sure whether the presence of OpenBSD here was a mistake.
6955 # Let's accept both of them until this is cleared up.
6956 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6957 lt_cv_file_magic_cmd
=/usr
/bin
/file
6958 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6962 lt_cv_deplibs_check_method
=pass_all
6967 lt_cv_deplibs_check_method
=pass_all
6970 hpux10.20
* | hpux11
*)
6971 lt_cv_file_magic_cmd
=/usr
/bin
/file
6974 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6975 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
6978 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]'
6979 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
6982 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6983 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6989 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6990 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6993 irix5
* | irix6
* | nonstopux
*)
6995 *-32|
*"-32 ") libmagic
=32-bit;;
6996 *-n32|
*"-n32 ") libmagic
=N32
;;
6997 *-64|
*"-64 ") libmagic
=64-bit;;
6998 *) libmagic
=never-match
;;
7000 lt_cv_deplibs_check_method
=pass_all
7003 # This must be glibc/ELF.
7004 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
7005 lt_cv_deplibs_check_method
=pass_all
7009 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
7010 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7012 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7017 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7018 lt_cv_file_magic_cmd
=/usr
/bin
/file
7019 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
7023 lt_cv_deplibs_check_method
=pass_all
7027 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7028 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7030 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7034 osf3
* | osf4
* | osf5
*)
7035 lt_cv_deplibs_check_method
=pass_all
7039 lt_cv_deplibs_check_method
=pass_all
7043 lt_cv_deplibs_check_method
=pass_all
7046 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
7047 lt_cv_deplibs_check_method
=pass_all
7051 case $host_vendor in
7053 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]'
7054 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
7057 lt_cv_deplibs_check_method
=pass_all
7060 lt_cv_file_magic_cmd
='/bin/file'
7061 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7064 lt_cv_file_magic_cmd
='/bin/file'
7065 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7066 lt_cv_file_magic_test_file
=/lib
/libc.so
7069 lt_cv_deplibs_check_method
=pass_all
7072 lt_cv_deplibs_check_method
=pass_all
7078 lt_cv_deplibs_check_method
=pass_all
7081 lt_cv_deplibs_check_method
=pass_all
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7087 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7091 if test "$build" = "$host"; then
7094 if ( shopt |
grep nocaseglob
) >/dev
/null
2>&1; then
7097 file_magic_glob
=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7103 file_magic_cmd
=$lt_cv_file_magic_cmd
7104 deplibs_check_method
=$lt_cv_deplibs_check_method
7105 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
7128 if test -n "$ac_tool_prefix"; then
7129 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7130 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7134 $as_echo_n "(cached) " >&6
7136 if test -n "$DLLTOOL"; then
7137 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7143 test -z "$as_dir" && as_dir
=.
7144 for ac_exec_ext
in '' $ac_executable_extensions; do
7145 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7146 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 DLLTOOL
=$ac_cv_prog_DLLTOOL
7157 if test -n "$DLLTOOL"; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7159 $as_echo "$DLLTOOL" >&6; }
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7167 if test -z "$ac_cv_prog_DLLTOOL"; then
7168 ac_ct_DLLTOOL
=$DLLTOOL
7169 # Extract the first word of "dlltool", so it can be a program name with args.
7170 set dummy dlltool
; ac_word
=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7174 $as_echo_n "(cached) " >&6
7176 if test -n "$ac_ct_DLLTOOL"; then
7177 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7183 test -z "$as_dir" && as_dir
=.
7184 for ac_exec_ext
in '' $ac_executable_extensions; do
7185 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7186 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7197 if test -n "$ac_ct_DLLTOOL"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7199 $as_echo "$ac_ct_DLLTOOL" >&6; }
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7205 if test "x$ac_ct_DLLTOOL" = x
; then
7208 case $cross_compiling:$ac_tool_warned in
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7212 ac_tool_warned
=yes ;;
7214 DLLTOOL
=$ac_ct_DLLTOOL
7217 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7220 test -z "$DLLTOOL" && DLLTOOL
=dlltool
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7229 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7230 if ${lt_cv_sharedlib_from_linklib_cmd+:} false
; then :
7231 $as_echo_n "(cached) " >&6
7233 lt_cv_sharedlib_from_linklib_cmd
='unknown'
7236 cygwin
* | mingw
* | pw32
* | cegcc
*)
7237 # two different shell functions defined in ltmain.sh;
7238 # decide which one to use based on capabilities of $DLLTOOL
7239 case `$DLLTOOL --help 2>&1` in
7240 *--identify-strict*)
7241 lt_cv_sharedlib_from_linklib_cmd
=func_cygming_dll_for_implib
7244 lt_cv_sharedlib_from_linklib_cmd
=func_cygming_dll_for_implib_fallback
7249 # fallback: assume linklib IS sharedlib
7250 lt_cv_sharedlib_from_linklib_cmd
=$ECHO
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7256 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7257 sharedlib_from_linklib_cmd
=$lt_cv_sharedlib_from_linklib_cmd
7258 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd
=$ECHO
7266 if test -n "$ac_tool_prefix"; then
7269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7270 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272 $as_echo_n "checking for $ac_word... " >&6; }
7273 if ${ac_cv_prog_AR+:} false
; then :
7274 $as_echo_n "(cached) " >&6
7276 if test -n "$AR"; then
7277 ac_cv_prog_AR
="$AR" # Let the user override the test.
7279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7283 test -z "$as_dir" && as_dir
=.
7284 for ac_exec_ext
in '' $ac_executable_extensions; do
7285 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7286 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
7287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 if test -n "$AR"; then
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7299 $as_echo "$AR" >&6; }
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302 $as_echo "no" >&6; }
7306 test -n "$AR" && break
7309 if test -z "$AR"; then
7313 # Extract the first word of "$ac_prog", so it can be a program name with args.
7314 set dummy
$ac_prog; ac_word
=$2
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7316 $as_echo_n "checking for $ac_word... " >&6; }
7317 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7318 $as_echo_n "(cached) " >&6
7320 if test -n "$ac_ct_AR"; then
7321 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7327 test -z "$as_dir" && as_dir
=.
7328 for ac_exec_ext
in '' $ac_executable_extensions; do
7329 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7330 ac_cv_prog_ac_ct_AR
="$ac_prog"
7331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7341 if test -n "$ac_ct_AR"; then
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7343 $as_echo "$ac_ct_AR" >&6; }
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7346 $as_echo "no" >&6; }
7350 test -n "$ac_ct_AR" && break
7353 if test "x$ac_ct_AR" = x
; then
7356 case $cross_compiling:$ac_tool_warned in
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7360 ac_tool_warned
=yes ;;
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7380 $as_echo_n "checking for archiver @FILE support... " >&6; }
7381 if ${lt_cv_ar_at_file+:} false
; then :
7382 $as_echo_n "(cached) " >&6
7385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h. */
7396 if ac_fn_c_try_compile
"$LINENO"; then :
7397 echo conftest.
$ac_objext > conftest.lst
7398 lt_ar_try
='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7400 (eval $lt_ar_try) 2>&5
7402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7403 test $ac_status = 0; }
7404 if test 0 -eq "$ac_status"; then
7405 # Ensure the archiver fails upon bogus file names.
7406 rm -f conftest.
$ac_objext libconftest.a
7407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7408 (eval $lt_ar_try) 2>&5
7410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7411 test $ac_status = 0; }
7412 if test 0 -ne "$ac_status"; then
7416 rm -f conftest.
* libconftest.a
7419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7423 $as_echo "$lt_cv_ar_at_file" >&6; }
7425 if test no
= "$lt_cv_ar_at_file"; then
7428 archiver_list_spec
=$lt_cv_ar_at_file
7437 if test -n "$ac_tool_prefix"; then
7438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7439 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441 $as_echo_n "checking for $ac_word... " >&6; }
7442 if ${ac_cv_prog_STRIP+:} false
; then :
7443 $as_echo_n "(cached) " >&6
7445 if test -n "$STRIP"; then
7446 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7452 test -z "$as_dir" && as_dir
=.
7453 for ac_exec_ext
in '' $ac_executable_extensions; do
7454 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7455 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
7456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 STRIP
=$ac_cv_prog_STRIP
7466 if test -n "$STRIP"; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7468 $as_echo "$STRIP" >&6; }
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471 $as_echo "no" >&6; }
7476 if test -z "$ac_cv_prog_STRIP"; then
7478 # Extract the first word of "strip", so it can be a program name with args.
7479 set dummy strip
; ac_word
=$2
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481 $as_echo_n "checking for $ac_word... " >&6; }
7482 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
7483 $as_echo_n "(cached) " >&6
7485 if test -n "$ac_ct_STRIP"; then
7486 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7492 test -z "$as_dir" && as_dir
=.
7493 for ac_exec_ext
in '' $ac_executable_extensions; do
7494 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7495 ac_cv_prog_ac_ct_STRIP
="strip"
7496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7505 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7506 if test -n "$ac_ct_STRIP"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7508 $as_echo "$ac_ct_STRIP" >&6; }
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511 $as_echo "no" >&6; }
7514 if test "x$ac_ct_STRIP" = x
; then
7517 case $cross_compiling:$ac_tool_warned in
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7521 ac_tool_warned
=yes ;;
7526 STRIP
="$ac_cv_prog_STRIP"
7529 test -z "$STRIP" && STRIP
=:
7536 if test -n "$ac_tool_prefix"; then
7537 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7538 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if ${ac_cv_prog_RANLIB+:} false
; then :
7542 $as_echo_n "(cached) " >&6
7544 if test -n "$RANLIB"; then
7545 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7551 test -z "$as_dir" && as_dir
=.
7552 for ac_exec_ext
in '' $ac_executable_extensions; do
7553 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7554 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 RANLIB
=$ac_cv_prog_RANLIB
7565 if test -n "$RANLIB"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7567 $as_echo "$RANLIB" >&6; }
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7575 if test -z "$ac_cv_prog_RANLIB"; then
7576 ac_ct_RANLIB
=$RANLIB
7577 # Extract the first word of "ranlib", so it can be a program name with args.
7578 set dummy ranlib
; ac_word
=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7582 $as_echo_n "(cached) " >&6
7584 if test -n "$ac_ct_RANLIB"; then
7585 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7587 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7591 test -z "$as_dir" && as_dir
=.
7592 for ac_exec_ext
in '' $ac_executable_extensions; do
7593 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7594 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7605 if test -n "$ac_ct_RANLIB"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7607 $as_echo "$ac_ct_RANLIB" >&6; }
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7613 if test "x$ac_ct_RANLIB" = x
; then
7616 case $cross_compiling:$ac_tool_warned in
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620 ac_tool_warned
=yes ;;
7622 RANLIB
=$ac_ct_RANLIB
7625 RANLIB
="$ac_cv_prog_RANLIB"
7628 test -z "$RANLIB" && RANLIB
=:
7635 # Determine commands to create old-style static archives.
7636 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
7637 old_postinstall_cmds
='chmod 644 $oldlib'
7638 old_postuninstall_cmds
=
7640 if test -n "$RANLIB"; then
7643 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7646 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7649 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7654 lock_old_archive_extraction
=yes ;;
7656 lock_old_archive_extraction
=no
;;
7697 # If no C compiler was specified, use CC.
7700 # If no C compiler flags were specified, use CFLAGS.
7701 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7703 # Allow CC to be a program name with arguments.
7707 # Check for command to grab the raw symbol name followed by C symbol from nm.
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7709 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7710 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
7711 $as_echo_n "(cached) " >&6
7714 # These are sane defaults that work on at least a few old systems.
7715 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7717 # Character class describing NM global symbol codes.
7718 symcode
='[BCDEGRST]'
7720 # Regexp to match symbols that can be accessed directly from C.
7721 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
7723 # Define system-specific variables.
7728 cygwin
* | mingw
* | pw32
* | cegcc
*)
7729 symcode
='[ABCDGISTW]'
7732 if test ia64
= "$host_cpu"; then
7733 symcode
='[ABCDEGRST]'
7737 symcode
='[BCDEGRST]'
7740 symcode
='[BCDEGQRST]'
7751 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7759 # If we're using GNU nm, then use its standard symbol codes.
7760 case `$NM -V 2>&1` in
7761 *GNU
* |
*'with BFD'*)
7762 symcode
='[ABCDGIRSTW]' ;;
7765 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7766 # Gets list of data symbols to import.
7767 lt_cv_sys_global_symbol_to_import
="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7768 # Adjust the below global symbol transforms to fixup imported variables.
7769 lt_cdecl_hook
=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7770 lt_c_name_hook
=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7771 lt_c_name_lib_hook
="\
7772 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7773 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7775 # Disable hooks by default.
7776 lt_cv_sys_global_symbol_to_import
=
7782 # Transform an extracted symbol line into a proper C declaration.
7783 # Some systems (esp. on ia64) link data and code symbols differently,
7784 # so use this general approach.
7785 lt_cv_sys_global_symbol_to_cdecl
="sed -n"\
7787 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7788 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7790 # Transform an extracted symbol line into symbol name and symbol address
7791 lt_cv_sys_global_symbol_to_c_name_address
="sed -n"\
7793 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7794 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7796 # Transform an extracted symbol line into symbol name with lib prefix and
7798 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
="sed -n"\
7799 $lt_c_name_lib_hook\
7800 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7801 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7802 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7804 # Handle CRLF in mingw tool chain
7808 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7812 # Try without a prefix underscore, then with it.
7813 for ac_symprfx
in "" "_"; do
7815 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7816 symxfrm
="\\1 $ac_symprfx\\2 \\2"
7818 # Write the raw and C identifiers.
7819 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7820 # Fake it for dumpbin and say T for any non-static function,
7821 # D for any global variable and I for any imported variable.
7822 # Also find C++ and __fastcall symbols from MSVC++,
7823 # which start with @ or ?.
7824 lt_cv_sys_global_symbol_pipe
="$AWK '"\
7825 " {last_section=section; section=\$ 3};"\
7826 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7827 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7828 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7829 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7830 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7831 " \$ 0!~/External *\|/{next};"\
7832 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7833 " {if(hide[section]) next};"\
7834 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7835 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7836 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7837 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7838 " ' prfx=^$ac_symprfx"
7840 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7842 lt_cv_sys_global_symbol_pipe
="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7844 # Check to see that the pipe works correctly.
7848 cat > conftest.
$ac_ext <<_LT_EOF
7853 void nm_test_func(void);
7854 void nm_test_func(void){}
7858 int main(){nm_test_var='a';nm_test_func();return(0);}
7861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7862 (eval $ac_compile) 2>&5
7864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7865 test $ac_status = 0; }; then
7866 # Now try to grab the symbols.
7868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7869 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
7871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7872 test $ac_status = 0; } && test -s "$nlist"; then
7873 # Try sorting and uniquifying the output.
7874 if sort "$nlist" |
uniq > "$nlist"T
; then
7875 mv -f "$nlist"T
"$nlist"
7880 # Make sure that we snagged all the symbols we need.
7881 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
7882 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
7883 cat <<_LT_EOF > conftest.$ac_ext
7884 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7885 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7886 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7887 relocations are performed -- see ld's documentation on pseudo-relocs. */
7888 # define LT_DLSYM_CONST
7889 #elif defined __osf__
7890 /* This system does not cope well with relocations in const data. */
7891 # define LT_DLSYM_CONST
7893 # define LT_DLSYM_CONST const
7901 # Now generate the symbol file.
7902 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7904 cat <<_LT_EOF >> conftest.$ac_ext
7906 /* The mapping between symbol names and symbols. */
7907 LT_DLSYM_CONST struct {
7911 lt__PROGRAM__LTX_preloaded_symbols[] =
7913 { "@PROGRAM@", (void *) 0 },
7915 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
7916 cat <<\_LT_EOF
>> conftest.
$ac_ext
7920 /* This works around a problem
in FreeBSD linker
*/
7921 #ifdef FREEBSD_WORKAROUND
7922 static const void
*lt_preloaded_setup
() {
7923 return lt__PROGRAM__LTX_preloaded_symbols
;
7931 # Now try linking the two files.
7932 mv conftest.
$ac_objext conftstm.
$ac_objext
7933 lt_globsym_save_LIBS
=$LIBS
7934 lt_globsym_save_CFLAGS
=$CFLAGS
7935 LIBS
=conftstm.
$ac_objext
7936 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7938 (eval $ac_link) 2>&5
7940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7941 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
7944 LIBS
=$lt_globsym_save_LIBS
7945 CFLAGS
=$lt_globsym_save_CFLAGS
7947 echo "cannot find nm_test_func in $nlist" >&5
7950 echo "cannot find nm_test_var in $nlist" >&5
7953 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7956 echo "$progname: failed program was:" >&5
7957 cat conftest.
$ac_ext >&5
7959 rm -rf conftest
* conftst
*
7961 # Do not use the global_symbol_pipe unless it works.
7962 if test yes = "$pipe_works"; then
7965 lt_cv_sys_global_symbol_pipe
=
7971 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7972 lt_cv_sys_global_symbol_to_cdecl
=
7974 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7976 $as_echo "failed" >&6; }
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7979 $as_echo "ok" >&6; }
7982 # Response file support.
7983 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7984 nm_file_list_spec
='@'
7985 elif $NM --help 2>/dev
/null |
grep '[@]FILE' >/dev
/null
; then
7986 nm_file_list_spec
='@'
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8026 $as_echo_n "checking for sysroot... " >&6; }
8028 # Check whether --with-sysroot was given.
8029 if test "${with_sysroot+set}" = set; then :
8030 withval
=$with_sysroot;
8037 case $with_sysroot in #(
8039 if test yes = "$GCC"; then
8040 lt_sysroot
=`$CC --print-sysroot 2>/dev/null`
8044 lt_sysroot
=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8050 $as_echo "$with_sysroot" >&6; }
8051 as_fn_error $?
"The sysroot must be an absolute path." "$LINENO" 5
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8056 $as_echo "${lt_sysroot:-no}" >&6; }
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8063 $as_echo_n "checking for a working dd... " >&6; }
8064 if ${ac_cv_path_lt_DD+:} false
; then :
8065 $as_echo_n "(cached) " >&6
8067 printf 0123456789abcdef0123456789abcdef
>conftest.i
8068 cat conftest.i conftest.i
>conftest2.i
8070 if test -z "$lt_DD"; then
8071 ac_path_lt_DD_found
=false
8072 # Loop through the user's path and test for each of PROGNAME-LIST
8073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8077 test -z "$as_dir" && as_dir
=.
8078 for ac_prog
in dd; do
8079 for ac_exec_ext
in '' $ac_executable_extensions; do
8080 ac_path_lt_DD
="$as_dir/$ac_prog$ac_exec_ext"
8081 as_fn_executable_p
"$ac_path_lt_DD" ||
continue
8082 if "$ac_path_lt_DD" bs
=32 count
=1 <conftest2.i
>conftest.out
2>/dev
/null
; then
8083 cmp -s conftest.i conftest.out \
8084 && ac_cv_path_lt_DD
="$ac_path_lt_DD" ac_path_lt_DD_found
=:
8086 $ac_path_lt_DD_found && break 3
8091 if test -z "$ac_cv_path_lt_DD"; then
8095 ac_cv_path_lt_DD
=$lt_DD
8098 rm -f conftest.i conftest2.i conftest.out
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8101 $as_echo "$ac_cv_path_lt_DD" >&6; }
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8105 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8106 if ${lt_cv_truncate_bin+:} false
; then :
8107 $as_echo_n "(cached) " >&6
8109 printf 0123456789abcdef0123456789abcdef
>conftest.i
8110 cat conftest.i conftest.i
>conftest2.i
8112 if "$ac_cv_path_lt_DD" bs
=32 count
=1 <conftest2.i
>conftest.out
2>/dev
/null
; then
8113 cmp -s conftest.i conftest.out \
8114 && lt_cv_truncate_bin
="$ac_cv_path_lt_DD bs=4096 count=1"
8116 rm -f conftest.i conftest2.i conftest.out
8117 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin
="$SED -e 4q"
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8120 $as_echo "$lt_cv_truncate_bin" >&6; }
8128 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8131 for cc_temp
in $
*""; do
8133 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8134 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8139 func_cc_basename_result
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8142 # Check whether --enable-libtool-lock was given.
8143 if test "${enable_libtool_lock+set}" = set; then :
8144 enableval
=$enable_libtool_lock;
8147 test no
= "$enable_libtool_lock" || enable_libtool_lock
=yes
8149 # Some flags need to be propagated to the compiler or linker for good
8153 # Find out what ABI is being produced by ac_compile, and set mode
8154 # options accordingly.
8155 echo 'int i;' > conftest.
$ac_ext
8156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8157 (eval $ac_compile) 2>&5
8159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8160 test $ac_status = 0; }; then
8161 case `/usr/bin/file conftest.$ac_objext` in
8173 # Find out what ABI is being produced by ac_compile, and set linker
8174 # options accordingly.
8175 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
8176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8177 (eval $ac_compile) 2>&5
8179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8180 test $ac_status = 0; }; then
8181 if test yes = "$lt_cv_prog_gnu_ld"; then
8182 case `/usr/bin/file conftest.$ac_objext` in
8184 LD
="${LD-ld} -melf32bsmip"
8187 LD
="${LD-ld} -melf32bmipn32"
8190 LD
="${LD-ld} -melf64bmip"
8194 case `/usr/bin/file conftest.$ac_objext` in
8211 # Find out what ABI is being produced by ac_compile, and set linker
8212 # options accordingly.
8213 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
8214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8215 (eval $ac_compile) 2>&5
8217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8218 test $ac_status = 0; }; then
8220 case `/usr/bin/file conftest.$ac_objext` in
8228 case `/usr/bin/file conftest.$ac_objext` in
8230 emul
="${emul}btsmip"
8233 emul
="${emul}ltsmip"
8236 case `/usr/bin/file conftest.$ac_objext` in
8241 LD
="${LD-ld} -m $emul"
8246 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
8247 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
8248 # Find out what ABI is being produced by ac_compile, and set linker
8249 # options accordingly. Note that the listed cases only cover the
8250 # situations where additional linker options are needed (such as when
8251 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8252 # vice versa); the common cases where no linker options are needed do
8253 # not appear in the list.
8254 echo 'int i;' > conftest.
$ac_ext
8255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8256 (eval $ac_compile) 2>&5
8258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8259 test $ac_status = 0; }; then
8260 case `/usr/bin/file conftest.o` in
8263 x86_64-
*kfreebsd
*-gnu)
8264 LD
="${LD-ld} -m elf_i386_fbsd"
8267 case `/usr/bin/file conftest.o` in
8269 LD
="${LD-ld} -m elf32_x86_64"
8272 LD
="${LD-ld} -m elf_i386"
8276 powerpc64le-
*linux
*)
8277 LD
="${LD-ld} -m elf32lppclinux"
8280 LD
="${LD-ld} -m elf32ppclinux"
8283 LD
="${LD-ld} -m elf_s390"
8286 LD
="${LD-ld} -m elf32_sparc"
8292 x86_64-
*kfreebsd
*-gnu)
8293 LD
="${LD-ld} -m elf_x86_64_fbsd"
8296 LD
="${LD-ld} -m elf_x86_64"
8299 LD
="${LD-ld} -m elf64lppc"
8302 LD
="${LD-ld} -m elf64ppc"
8304 s390
*-*linux
*|s390
*-*tpf
*)
8305 LD
="${LD-ld} -m elf64_s390"
8308 LD
="${LD-ld} -m elf64_sparc"
8318 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8320 CFLAGS
="$CFLAGS -belf"
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8322 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8323 if ${lt_cv_cc_needs_belf+:} false
; then :
8324 $as_echo_n "(cached) " >&6
8327 ac_cpp
='$CPP $CPPFLAGS'
8328 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8329 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8330 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8333 /* end confdefs.h. */
8343 if ac_fn_c_try_link
"$LINENO"; then :
8344 lt_cv_cc_needs_belf
=yes
8346 lt_cv_cc_needs_belf
=no
8348 rm -f core conftest.err conftest.
$ac_objext \
8349 conftest
$ac_exeext conftest.
$ac_ext
8351 ac_cpp
='$CPP $CPPFLAGS'
8352 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8353 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8354 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8358 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8359 if test yes != "$lt_cv_cc_needs_belf"; then
8360 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8365 # Find out what ABI is being produced by ac_compile, and set linker
8366 # options accordingly.
8367 echo 'int i;' > conftest.
$ac_ext
8368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8369 (eval $ac_compile) 2>&5
8371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8372 test $ac_status = 0; }; then
8373 case `/usr/bin/file conftest.o` in
8375 case $lt_cv_prog_gnu_ld in
8378 i?
86-*-solaris*|x86_64-
*-solaris*)
8379 LD
="${LD-ld} -m elf_x86_64"
8382 LD
="${LD-ld} -m elf64_sparc"
8385 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8386 if ${LD-ld} -V |
grep _sol2
>/dev
/null
2>&1; then
8391 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
8403 need_locks
=$enable_libtool_lock
8405 if test -n "$ac_tool_prefix"; then
8406 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8407 set dummy
${ac_tool_prefix}mt
; ac_word
=$2
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8409 $as_echo_n "checking for $ac_word... " >&6; }
8410 if ${ac_cv_prog_MANIFEST_TOOL+:} false
; then :
8411 $as_echo_n "(cached) " >&6
8413 if test -n "$MANIFEST_TOOL"; then
8414 ac_cv_prog_MANIFEST_TOOL
="$MANIFEST_TOOL" # Let the user override the test.
8416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8420 test -z "$as_dir" && as_dir
=.
8421 for ac_exec_ext
in '' $ac_executable_extensions; do
8422 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8423 ac_cv_prog_MANIFEST_TOOL
="${ac_tool_prefix}mt"
8424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8433 MANIFEST_TOOL
=$ac_cv_prog_MANIFEST_TOOL
8434 if test -n "$MANIFEST_TOOL"; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8436 $as_echo "$MANIFEST_TOOL" >&6; }
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439 $as_echo "no" >&6; }
8444 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8445 ac_ct_MANIFEST_TOOL
=$MANIFEST_TOOL
8446 # Extract the first word of "mt", so it can be a program name with args.
8447 set dummy mt
; ac_word
=$2
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8449 $as_echo_n "checking for $ac_word... " >&6; }
8450 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false
; then :
8451 $as_echo_n "(cached) " >&6
8453 if test -n "$ac_ct_MANIFEST_TOOL"; then
8454 ac_cv_prog_ac_ct_MANIFEST_TOOL
="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8460 test -z "$as_dir" && as_dir
=.
8461 for ac_exec_ext
in '' $ac_executable_extensions; do
8462 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8463 ac_cv_prog_ac_ct_MANIFEST_TOOL
="mt"
8464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8473 ac_ct_MANIFEST_TOOL
=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8474 if test -n "$ac_ct_MANIFEST_TOOL"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8476 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8482 if test "x$ac_ct_MANIFEST_TOOL" = x
; then
8485 case $cross_compiling:$ac_tool_warned in
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8489 ac_tool_warned
=yes ;;
8491 MANIFEST_TOOL
=$ac_ct_MANIFEST_TOOL
8494 MANIFEST_TOOL
="$ac_cv_prog_MANIFEST_TOOL"
8497 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL
=mt
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8499 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8500 if ${lt_cv_path_mainfest_tool+:} false
; then :
8501 $as_echo_n "(cached) " >&6
8503 lt_cv_path_mainfest_tool
=no
8504 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8505 $MANIFEST_TOOL '-?' 2>conftest.err
> conftest.out
8506 cat conftest.err
>&5
8507 if $GREP 'Manifest Tool' conftest.out
> /dev
/null
; then
8508 lt_cv_path_mainfest_tool
=yes
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8513 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8514 if test yes != "$lt_cv_path_mainfest_tool"; then
8524 rhapsody
* | darwin
*)
8525 if test -n "$ac_tool_prefix"; then
8526 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8527 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8529 $as_echo_n "checking for $ac_word... " >&6; }
8530 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
8531 $as_echo_n "(cached) " >&6
8533 if test -n "$DSYMUTIL"; then
8534 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
8536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8540 test -z "$as_dir" && as_dir
=.
8541 for ac_exec_ext
in '' $ac_executable_extensions; do
8542 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8543 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
8544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8553 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
8554 if test -n "$DSYMUTIL"; then
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8556 $as_echo "$DSYMUTIL" >&6; }
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559 $as_echo "no" >&6; }
8564 if test -z "$ac_cv_prog_DSYMUTIL"; then
8565 ac_ct_DSYMUTIL
=$DSYMUTIL
8566 # Extract the first word of "dsymutil", so it can be a program name with args.
8567 set dummy dsymutil
; ac_word
=$2
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569 $as_echo_n "checking for $ac_word... " >&6; }
8570 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
8571 $as_echo_n "(cached) " >&6
8573 if test -n "$ac_ct_DSYMUTIL"; then
8574 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
8576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8580 test -z "$as_dir" && as_dir
=.
8581 for ac_exec_ext
in '' $ac_executable_extensions; do
8582 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8583 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
8584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8593 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
8594 if test -n "$ac_ct_DSYMUTIL"; then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8596 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599 $as_echo "no" >&6; }
8602 if test "x$ac_ct_DSYMUTIL" = x
; then
8605 case $cross_compiling:$ac_tool_warned in
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8609 ac_tool_warned
=yes ;;
8611 DSYMUTIL
=$ac_ct_DSYMUTIL
8614 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
8617 if test -n "$ac_tool_prefix"; then
8618 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8619 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 $as_echo_n "checking for $ac_word... " >&6; }
8622 if ${ac_cv_prog_NMEDIT+:} false
; then :
8623 $as_echo_n "(cached) " >&6
8625 if test -n "$NMEDIT"; then
8626 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
8628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8632 test -z "$as_dir" && as_dir
=.
8633 for ac_exec_ext
in '' $ac_executable_extensions; do
8634 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8635 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8645 NMEDIT
=$ac_cv_prog_NMEDIT
8646 if test -n "$NMEDIT"; then
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8648 $as_echo "$NMEDIT" >&6; }
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651 $as_echo "no" >&6; }
8656 if test -z "$ac_cv_prog_NMEDIT"; then
8657 ac_ct_NMEDIT
=$NMEDIT
8658 # Extract the first word of "nmedit", so it can be a program name with args.
8659 set dummy nmedit
; ac_word
=$2
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8661 $as_echo_n "checking for $ac_word... " >&6; }
8662 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
8663 $as_echo_n "(cached) " >&6
8665 if test -n "$ac_ct_NMEDIT"; then
8666 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
8668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8672 test -z "$as_dir" && as_dir
=.
8673 for ac_exec_ext
in '' $ac_executable_extensions; do
8674 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8675 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
8676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8685 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
8686 if test -n "$ac_ct_NMEDIT"; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8688 $as_echo "$ac_ct_NMEDIT" >&6; }
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691 $as_echo "no" >&6; }
8694 if test "x$ac_ct_NMEDIT" = x
; then
8697 case $cross_compiling:$ac_tool_warned in
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8701 ac_tool_warned
=yes ;;
8703 NMEDIT
=$ac_ct_NMEDIT
8706 NMEDIT
="$ac_cv_prog_NMEDIT"
8709 if test -n "$ac_tool_prefix"; then
8710 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8711 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8713 $as_echo_n "checking for $ac_word... " >&6; }
8714 if ${ac_cv_prog_LIPO+:} false
; then :
8715 $as_echo_n "(cached) " >&6
8717 if test -n "$LIPO"; then
8718 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
8720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8724 test -z "$as_dir" && as_dir
=.
8725 for ac_exec_ext
in '' $ac_executable_extensions; do
8726 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8727 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
8728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8737 LIPO
=$ac_cv_prog_LIPO
8738 if test -n "$LIPO"; then
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8740 $as_echo "$LIPO" >&6; }
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8743 $as_echo "no" >&6; }
8748 if test -z "$ac_cv_prog_LIPO"; then
8750 # Extract the first word of "lipo", so it can be a program name with args.
8751 set dummy lipo
; ac_word
=$2
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8753 $as_echo_n "checking for $ac_word... " >&6; }
8754 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
8755 $as_echo_n "(cached) " >&6
8757 if test -n "$ac_ct_LIPO"; then
8758 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
8760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8764 test -z "$as_dir" && as_dir
=.
8765 for ac_exec_ext
in '' $ac_executable_extensions; do
8766 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8767 ac_cv_prog_ac_ct_LIPO
="lipo"
8768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8777 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
8778 if test -n "$ac_ct_LIPO"; then
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8780 $as_echo "$ac_ct_LIPO" >&6; }
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8783 $as_echo "no" >&6; }
8786 if test "x$ac_ct_LIPO" = x
; then
8789 case $cross_compiling:$ac_tool_warned in
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8793 ac_tool_warned
=yes ;;
8798 LIPO
="$ac_cv_prog_LIPO"
8801 if test -n "$ac_tool_prefix"; then
8802 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8803 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805 $as_echo_n "checking for $ac_word... " >&6; }
8806 if ${ac_cv_prog_OTOOL+:} false
; then :
8807 $as_echo_n "(cached) " >&6
8809 if test -n "$OTOOL"; then
8810 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
8812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8816 test -z "$as_dir" && as_dir
=.
8817 for ac_exec_ext
in '' $ac_executable_extensions; do
8818 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8819 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8829 OTOOL
=$ac_cv_prog_OTOOL
8830 if test -n "$OTOOL"; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8832 $as_echo "$OTOOL" >&6; }
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835 $as_echo "no" >&6; }
8840 if test -z "$ac_cv_prog_OTOOL"; then
8842 # Extract the first word of "otool", so it can be a program name with args.
8843 set dummy otool
; ac_word
=$2
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8845 $as_echo_n "checking for $ac_word... " >&6; }
8846 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
8847 $as_echo_n "(cached) " >&6
8849 if test -n "$ac_ct_OTOOL"; then
8850 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
8852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8856 test -z "$as_dir" && as_dir
=.
8857 for ac_exec_ext
in '' $ac_executable_extensions; do
8858 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8859 ac_cv_prog_ac_ct_OTOOL
="otool"
8860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8869 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
8870 if test -n "$ac_ct_OTOOL"; then
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8872 $as_echo "$ac_ct_OTOOL" >&6; }
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8875 $as_echo "no" >&6; }
8878 if test "x$ac_ct_OTOOL" = x
; then
8881 case $cross_compiling:$ac_tool_warned in
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8885 ac_tool_warned
=yes ;;
8890 OTOOL
="$ac_cv_prog_OTOOL"
8893 if test -n "$ac_tool_prefix"; then
8894 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8895 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8897 $as_echo_n "checking for $ac_word... " >&6; }
8898 if ${ac_cv_prog_OTOOL64+:} false
; then :
8899 $as_echo_n "(cached) " >&6
8901 if test -n "$OTOOL64"; then
8902 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
8904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8908 test -z "$as_dir" && as_dir
=.
8909 for ac_exec_ext
in '' $ac_executable_extensions; do
8910 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8911 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
8912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8921 OTOOL64
=$ac_cv_prog_OTOOL64
8922 if test -n "$OTOOL64"; then
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8924 $as_echo "$OTOOL64" >&6; }
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8927 $as_echo "no" >&6; }
8932 if test -z "$ac_cv_prog_OTOOL64"; then
8933 ac_ct_OTOOL64
=$OTOOL64
8934 # Extract the first word of "otool64", so it can be a program name with args.
8935 set dummy otool64
; ac_word
=$2
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8937 $as_echo_n "checking for $ac_word... " >&6; }
8938 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
8939 $as_echo_n "(cached) " >&6
8941 if test -n "$ac_ct_OTOOL64"; then
8942 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
8944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8948 test -z "$as_dir" && as_dir
=.
8949 for ac_exec_ext
in '' $ac_executable_extensions; do
8950 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8951 ac_cv_prog_ac_ct_OTOOL64
="otool64"
8952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8961 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
8962 if test -n "$ac_ct_OTOOL64"; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8964 $as_echo "$ac_ct_OTOOL64" >&6; }
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8967 $as_echo "no" >&6; }
8970 if test "x$ac_ct_OTOOL64" = x
; then
8973 case $cross_compiling:$ac_tool_warned in
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8977 ac_tool_warned
=yes ;;
8979 OTOOL64
=$ac_ct_OTOOL64
8982 OTOOL64
="$ac_cv_prog_OTOOL64"
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9012 $as_echo_n "checking for -single_module linker flag... " >&6; }
9013 if ${lt_cv_apple_cc_single_mod+:} false
; then :
9014 $as_echo_n "(cached) " >&6
9016 lt_cv_apple_cc_single_mod
=no
9017 if test -z "$LT_MULTI_MODULE"; then
9018 # By default we will add the -single_module flag. You can override
9019 # by either setting the environment variable LT_MULTI_MODULE
9020 # non-empty at configure time, or by adding -multi_module to the
9022 rm -rf libconftest.dylib
*
9023 echo "int foo(void){return 1;}" > conftest.c
9024 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9025 -dynamiclib -Wl,-single_module conftest.c" >&5
9026 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9027 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
9029 # If there is a non-empty error log, and "single_module"
9030 # appears in it, assume the flag caused a linker warning
9031 if test -s conftest.err
&& $GREP single_module conftest.err
; then
9032 cat conftest.err
>&5
9033 # Otherwise, if the output was created with a 0 exit code from
9034 # the compiler, it worked.
9035 elif test -f libconftest.dylib
&& test 0 = "$_lt_result"; then
9036 lt_cv_apple_cc_single_mod
=yes
9038 cat conftest.err
>&5
9040 rm -rf libconftest.dylib
*
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9045 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9048 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9049 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
9050 $as_echo_n "(cached) " >&6
9052 lt_cv_ld_exported_symbols_list
=no
9053 save_LDFLAGS
=$LDFLAGS
9054 echo "_main" > conftest.sym
9055 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9067 if ac_fn_c_try_link
"$LINENO"; then :
9068 lt_cv_ld_exported_symbols_list
=yes
9070 lt_cv_ld_exported_symbols_list
=no
9072 rm -f core conftest.err conftest.
$ac_objext \
9073 conftest
$ac_exeext conftest.
$ac_ext
9074 LDFLAGS
=$save_LDFLAGS
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9078 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9081 $as_echo_n "checking for -force_load linker flag... " >&6; }
9082 if ${lt_cv_ld_force_load+:} false
; then :
9083 $as_echo_n "(cached) " >&6
9085 lt_cv_ld_force_load
=no
9086 cat > conftest.c
<< _LT_EOF
9087 int forced_loaded() { return 2;}
9089 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9090 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
9091 echo "$AR cru libconftest.a conftest.o" >&5
9092 $AR cru libconftest.a conftest.o
2>&5
9093 echo "$RANLIB libconftest.a" >&5
9094 $RANLIB libconftest.a
2>&5
9095 cat > conftest.c
<< _LT_EOF
9096 int main() { return 0;}
9098 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9099 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
9101 if test -s conftest.err
&& $GREP force_load conftest.err
; then
9102 cat conftest.err
>&5
9103 elif test -f conftest
&& test 0 = "$_lt_result" && $GREP forced_load conftest
>/dev
/null
2>&1; then
9104 lt_cv_ld_force_load
=yes
9106 cat conftest.err
>&5
9108 rm -f conftest.err libconftest.a conftest conftest.c
9109 rm -rf conftest.dSYM
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9113 $as_echo "$lt_cv_ld_force_load" >&6; }
9115 rhapsody
* | darwin1.
[012])
9116 _lt_dar_allow_undefined
='$wl-undefined ${wl}suppress' ;;
9118 _lt_dar_allow_undefined
='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9119 darwin
*) # darwin 5.x on
9120 # if running on 10.5 or later, the deployment target defaults
9121 # to the OS version, if on x86, and 10.4, the deployment
9122 # target defaults to 10.4. Don't you love it?
9123 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9124 10.0,*86*-darwin8*|
10.0,*-darwin[91]*)
9125 _lt_dar_allow_undefined
='$wl-undefined ${wl}dynamic_lookup' ;;
9127 _lt_dar_allow_undefined
='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9129 _lt_dar_allow_undefined
='$wl-undefined ${wl}dynamic_lookup' ;;
9133 if test yes = "$lt_cv_apple_cc_single_mod"; then
9134 _lt_dar_single_mod
='$single_module'
9136 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9137 _lt_dar_export_syms
=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9139 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9141 if test : != "$DSYMUTIL" && test no
= "$lt_cv_ld_force_load"; then
9142 _lt_dsymutil
='~$DSYMUTIL $lib || :'
9149 # func_munge_path_list VARIABLE PATH
9150 # -----------------------------------
9151 # VARIABLE is name of variable containing _space_ separated list of
9152 # directories to be munged by the contents of PATH, which is string
9155 # string "DIR[ DIR]" will be prepended to VARIABLE
9157 # string "DIR[ DIR]" will be appended to VARIABLE
9158 # "DIRP[:DIRP]::[DIRA:]DIRA"
9159 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9160 # "DIRA[ DIRA]" will be appended to VARIABLE
9162 # VARIABLE will be replaced by "DIR[ DIR]"
9163 func_munge_path_list
()
9169 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$
$1\"
9172 eval $1=\"\$
$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9175 eval $1=\"\$
$1\
`$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9176 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$
$1\"
9179 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9184 for ac_header
in dlfcn.h
9186 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9188 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
9189 cat >>confdefs.h
<<_ACEOF
9190 #define HAVE_DLFCN_H 1
9209 # Check whether --enable-shared was given.
9210 if test "${enable_shared+set}" = set; then :
9211 enableval
=$enable_shared; p
=${PACKAGE-default}
9213 yes) enable_shared
=yes ;;
9214 no
) enable_shared
=no
;;
9217 # Look at the argument we got. We use all the common list separators.
9218 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
9219 for pkg
in $enableval; do
9221 if test "X$pkg" = "X$p"; then
9240 # Check whether --enable-static was given.
9241 if test "${enable_static+set}" = set; then :
9242 enableval
=$enable_static; p
=${PACKAGE-default}
9244 yes) enable_static
=yes ;;
9245 no
) enable_static
=no
;;
9248 # Look at the argument we got. We use all the common list separators.
9249 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
9250 for pkg
in $enableval; do
9252 if test "X$pkg" = "X$p"; then
9272 # Check whether --with-pic was given.
9273 if test "${with_pic+set}" = set; then :
9274 withval
=$with_pic; lt_p
=${PACKAGE-default}
9276 yes|no
) pic_mode
=$withval ;;
9279 # Look at the argument we got. We use all the common list separators.
9280 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
9281 for lt_pkg
in $withval; do
9283 if test "X$lt_pkg" = "X$lt_p"; then
9301 # Check whether --enable-fast-install was given.
9302 if test "${enable_fast_install+set}" = set; then :
9303 enableval
=$enable_fast_install; p
=${PACKAGE-default}
9305 yes) enable_fast_install
=yes ;;
9306 no
) enable_fast_install
=no
;;
9308 enable_fast_install
=no
9309 # Look at the argument we got. We use all the common list separators.
9310 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
9311 for pkg
in $enableval; do
9313 if test "X$pkg" = "X$p"; then
9314 enable_fast_install
=yes
9321 enable_fast_install
=yes
9331 shared_archive_member_spec
=
9332 case $host,$enable_shared in
9333 power
*-*-aix[5-9]*,yes)
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9335 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9337 # Check whether --with-aix-soname was given.
9338 if test "${with_aix_soname+set}" = set; then :
9339 withval
=$with_aix_soname; case $withval in
9343 as_fn_error $?
"Unknown argument to --with-aix-soname" "$LINENO" 5
9346 lt_cv_with_aix_soname
=$with_aix_soname
9348 if ${lt_cv_with_aix_soname+:} false
; then :
9349 $as_echo_n "(cached) " >&6
9351 lt_cv_with_aix_soname
=aix
9354 with_aix_soname
=$lt_cv_with_aix_soname
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9358 $as_echo "$with_aix_soname" >&6; }
9359 if test aix
!= "$with_aix_soname"; then
9360 # For the AIX way of multilib, we name the shared archive member
9361 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9362 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9363 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9364 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9365 if test 64 = "${OBJECT_MODE-32}"; then
9366 shared_archive_member_spec
=shr_64
9368 shared_archive_member_spec
=shr
9386 # This can be used to rebuild libtool when needed
9387 LIBTOOL_DEPS
=$ltmain
9389 # Always use our own libtool.
9390 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
9421 test -z "$LN_S" && LN_S
="ln -s"
9436 if test -n "${ZSH_VERSION+set}"; then
9437 setopt NO_GLOB_SUBST
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9441 $as_echo_n "checking for objdir... " >&6; }
9442 if ${lt_cv_objdir+:} false
; then :
9443 $as_echo_n "(cached) " >&6
9445 rm -f .libs
2>/dev
/null
9446 mkdir .libs
2>/dev
/null
9447 if test -d .libs
; then
9450 # MS-DOS does not allow filenames that begin with a dot.
9453 rmdir .libs
2>/dev
/null
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9456 $as_echo "$lt_cv_objdir" >&6; }
9457 objdir
=$lt_cv_objdir
9463 cat >>confdefs.h
<<_ACEOF
9464 #define LT_OBJDIR "$lt_cv_objdir/"
9472 # AIX sometimes has problems with the GCC collect2 program. For some
9473 # reason, if we set the COLLECT_NAMES environment variable, the problems
9474 # vanish in a puff of smoke.
9475 if test set != "${COLLECT_NAMES+set}"; then
9477 export COLLECT_NAMES
9484 can_build_shared
=yes
9486 # All known linkers require a '.a' archive for static linking (except MSVC,
9487 # which needs '.lib').
9490 with_gnu_ld
=$lt_cv_prog_gnu_ld
9495 # Set sane defaults for various variables
9496 test -z "$CC" && CC
=cc
9497 test -z "$LTCC" && LTCC
=$CC
9498 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
9499 test -z "$LD" && LD
=ld
9500 test -z "$ac_objext" && ac_objext
=o
9502 func_cc_basename
$compiler
9503 cc_basename
=$func_cc_basename_result
9506 # Only perform the check for file, if the check method requires it
9507 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
9508 case $deplibs_check_method in
9510 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9512 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9513 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
9514 $as_echo_n "(cached) " >&6
9518 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
9521 lt_save_MAGIC_CMD
=$MAGIC_CMD
9522 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
9523 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
9524 for ac_dir
in $ac_dummy; do
9526 test -z "$ac_dir" && ac_dir
=.
9527 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9528 lt_cv_path_MAGIC_CMD
=$ac_dir/"${ac_tool_prefix}file"
9529 if test -n "$file_magic_test_file"; then
9530 case $deplibs_check_method in
9532 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9533 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
9534 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
9535 $EGREP "$file_magic_regex" > /dev
/null
; then
9540 *** Warning: the command libtool uses to detect shared libraries,
9541 *** $file_magic_cmd, produces output that libtool cannot recognize.
9542 *** The result is that libtool may fail to recognize shared libraries
9543 *** as such. This will affect the creation of libtool libraries that
9544 *** depend on shared libraries, but programs linked with such libtool
9545 *** libraries will work regardless of this problem. Nevertheless, you
9546 *** may want to report the problem to your system manager and/or to
9547 *** bug-libtool@gnu.org
9557 MAGIC_CMD
=$lt_save_MAGIC_CMD
9562 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
9563 if test -n "$MAGIC_CMD"; then
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9565 $as_echo "$MAGIC_CMD" >&6; }
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9568 $as_echo "no" >&6; }
9575 if test -z "$lt_cv_path_MAGIC_CMD"; then
9576 if test -n "$ac_tool_prefix"; then
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9578 $as_echo_n "checking for file... " >&6; }
9579 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
9580 $as_echo_n "(cached) " >&6
9584 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
9587 lt_save_MAGIC_CMD
=$MAGIC_CMD
9588 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
9589 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
9590 for ac_dir
in $ac_dummy; do
9592 test -z "$ac_dir" && ac_dir
=.
9593 if test -f "$ac_dir/file"; then
9594 lt_cv_path_MAGIC_CMD
=$ac_dir/"file"
9595 if test -n "$file_magic_test_file"; then
9596 case $deplibs_check_method in
9598 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9599 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
9600 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
9601 $EGREP "$file_magic_regex" > /dev
/null
; then
9606 *** Warning: the command libtool uses to detect shared libraries,
9607 *** $file_magic_cmd, produces output that libtool cannot recognize.
9608 *** The result is that libtool may fail to recognize shared libraries
9609 *** as such. This will affect the creation of libtool libraries that
9610 *** depend on shared libraries, but programs linked with such libtool
9611 *** libraries will work regardless of this problem. Nevertheless, you
9612 *** may want to report the problem to your system manager and/or to
9613 *** bug-libtool@gnu.org
9623 MAGIC_CMD
=$lt_save_MAGIC_CMD
9628 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
9629 if test -n "$MAGIC_CMD"; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9631 $as_echo "$MAGIC_CMD" >&6; }
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9634 $as_echo "no" >&6; }
9647 # Use C for the default configuration in the libtool script
9651 ac_cpp
='$CPP $CPPFLAGS'
9652 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9653 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9654 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9657 # Source file extension for C test sources.
9660 # Object file extension for compiled C test sources.
9664 # Code to be used in simple compile tests
9665 lt_simple_compile_test_code
="int some_variable = 0;"
9667 # Code to be used in simple link tests
9668 lt_simple_link_test_code
='int main(){return(0);}'
9676 # If no C compiler was specified, use CC.
9679 # If no C compiler flags were specified, use CFLAGS.
9680 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
9682 # Allow CC to be a program name with arguments.
9685 # Save the default compiler, since it gets overwritten when the other
9686 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9687 compiler_DEFAULT
=$CC
9689 # save warnings/boilerplate of simple test code
9690 ac_outfile
=conftest.
$ac_objext
9691 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
9692 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
9693 _lt_compiler_boilerplate
=`cat conftest.err`
9696 ac_outfile
=conftest.
$ac_objext
9697 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
9698 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
9699 _lt_linker_boilerplate
=`cat conftest.err`
9703 if test -n "$compiler"; then
9705 lt_prog_compiler_no_builtin_flag
=
9707 if test yes = "$GCC"; then
9708 case $cc_basename in
9710 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
9712 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9716 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9717 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
9718 $as_echo_n "(cached) " >&6
9720 lt_cv_prog_compiler_rtti_exceptions
=no
9721 ac_outfile
=conftest.
$ac_objext
9722 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9723 lt_compiler_flag
="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9724 # Insert the option either (1) after the last *FLAGS variable, or
9725 # (2) before a word containing "conftest.", or (3) at the end.
9726 # Note that $ac_compile itself does not contain backslashes and begins
9727 # with a dollar sign (not a hyphen), so the echo should work correctly.
9728 # The option is referenced via a variable to avoid confusing sed.
9729 lt_compile
=`echo "$ac_compile" | $SED \
9730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9732 -e 's:$: $lt_compiler_flag:'`
9733 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9734 (eval "$lt_compile" 2>conftest.err
)
9736 cat conftest.err
>&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 if (exit $ac_status) && test -s "$ac_outfile"; then
9739 # The compiler can only warn and ignore the option if not recognized
9740 # So say no if there are warnings other than the usual output.
9741 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
9742 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9743 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
9744 lt_cv_prog_compiler_rtti_exceptions
=yes
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9751 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9753 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9754 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9766 lt_prog_compiler_wl
=
9767 lt_prog_compiler_pic
=
9768 lt_prog_compiler_static
=
9771 if test yes = "$GCC"; then
9772 lt_prog_compiler_wl
='-Wl,'
9773 lt_prog_compiler_static
='-static'
9777 # All AIX code is PIC.
9778 if test ia64
= "$host_cpu"; then
9779 # AIX 5 now supports IA64 processor
9780 lt_prog_compiler_static
='-Bstatic'
9782 lt_prog_compiler_pic
='-fPIC'
9788 # see comment about AmigaOS4 .so support
9789 lt_prog_compiler_pic
='-fPIC'
9792 # FIXME: we need at least 68020 code to build shared libraries, but
9793 # adding the '-m68020' flag to GCC prevents building anything better,
9795 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
9800 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
9801 # PIC is the default for these OSes.
9804 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
9805 # This hack is so that the source file can tell whether it is being
9806 # built for inclusion in a dll (and should export symbols for example).
9807 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9808 # (--disable-auto-import) libraries
9809 lt_prog_compiler_pic
='-DDLL_EXPORT'
9812 lt_prog_compiler_static
='$wl-static'
9817 darwin
* | rhapsody
*)
9818 # PIC is the default on this platform
9819 # Common symbols not allowed in MH_DYLIB files
9820 lt_prog_compiler_pic
='-fno-common'
9824 # PIC is the default for Haiku.
9825 # The "-static" flag exists, but is broken.
9826 lt_prog_compiler_static
=
9830 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9831 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9832 # sets the default TLS model and affects inlining.
9838 lt_prog_compiler_pic
='-fPIC'
9844 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9845 # Instead, we relocate shared libraries at runtime.
9849 # Just because we use GCC doesn't mean we suddenly get shared libraries
9850 # on systems that don't support them.
9851 lt_prog_compiler_can_build_shared
=no
9856 # QNX uses GNU C++, but need to define -shared option too, otherwise
9858 lt_prog_compiler_pic
='-fPIC -shared'
9862 if test -d /usr
/nec
; then
9863 lt_prog_compiler_pic
=-Kconform_pic
9868 lt_prog_compiler_pic
='-fPIC'
9872 case $cc_basename in
9873 nvcc
*) # Cuda Compiler Driver 2.2
9874 lt_prog_compiler_wl
='-Xlinker '
9875 if test -n "$lt_prog_compiler_pic"; then
9876 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
9881 # PORTME Check for flag to pass linker flags through the system compiler.
9884 lt_prog_compiler_wl
='-Wl,'
9885 if test ia64
= "$host_cpu"; then
9886 # AIX 5 now supports IA64 processor
9887 lt_prog_compiler_static
='-Bstatic'
9889 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
9893 darwin
* | rhapsody
*)
9894 # PIC is the default on this platform
9895 # Common symbols not allowed in MH_DYLIB files
9896 lt_prog_compiler_pic
='-fno-common'
9897 case $cc_basename in
9899 # NAG Fortran compiler
9900 lt_prog_compiler_wl
='-Wl,-Wl,,'
9901 lt_prog_compiler_pic
='-PIC'
9902 lt_prog_compiler_static
='-Bstatic'
9907 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
9908 # This hack is so that the source file can tell whether it is being
9909 # built for inclusion in a dll (and should export symbols for example).
9910 lt_prog_compiler_pic
='-DDLL_EXPORT'
9913 lt_prog_compiler_static
='$wl-static'
9918 hpux9
* | hpux10
* | hpux11
*)
9919 lt_prog_compiler_wl
='-Wl,'
9920 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9927 lt_prog_compiler_pic
='+Z'
9930 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9931 lt_prog_compiler_static
='$wl-a ${wl}archive'
9934 irix5
* | irix6
* | nonstopux
*)
9935 lt_prog_compiler_wl
='-Wl,'
9936 # PIC (with -KPIC) is the default.
9937 lt_prog_compiler_static
='-non_shared'
9940 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
9941 case $cc_basename in
9942 # old Intel for x86_64, which still supported -KPIC.
9944 lt_prog_compiler_wl
='-Wl,'
9945 lt_prog_compiler_pic
='-KPIC'
9946 lt_prog_compiler_static
='-static'
9948 # icc used to be incompatible with GCC.
9949 # ICC 10 doesn't accept -KPIC any more.
9951 lt_prog_compiler_wl
='-Wl,'
9952 lt_prog_compiler_pic
='-fPIC'
9953 lt_prog_compiler_static
='-static'
9955 # Lahey Fortran 8.1.
9957 lt_prog_compiler_wl
='-Wl,'
9958 lt_prog_compiler_pic
='--shared'
9959 lt_prog_compiler_static
='--static'
9962 # NAG Fortran compiler
9963 lt_prog_compiler_wl
='-Wl,-Wl,,'
9964 lt_prog_compiler_pic
='-PIC'
9965 lt_prog_compiler_static
='-Bstatic'
9968 # Fabrice Bellard et al's Tiny C Compiler
9969 lt_prog_compiler_wl
='-Wl,'
9970 lt_prog_compiler_pic
='-fPIC'
9971 lt_prog_compiler_static
='-static'
9973 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9974 # Portland Group compilers (*not* the Pentium gcc compiler,
9975 # which looks to be a dead project)
9976 lt_prog_compiler_wl
='-Wl,'
9977 lt_prog_compiler_pic
='-fpic'
9978 lt_prog_compiler_static
='-Bstatic'
9981 lt_prog_compiler_wl
='-Wl,'
9982 # All Alpha code is PIC.
9983 lt_prog_compiler_static
='-non_shared'
9985 xl
* | bgxl
* | bgf
* | mpixl
*)
9986 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9987 lt_prog_compiler_wl
='-Wl,'
9988 lt_prog_compiler_pic
='-qpic'
9989 lt_prog_compiler_static
='-qstaticlink'
9992 case `$CC -V 2>&1 | sed 5q` in
9993 *Sun\ Ceres\ Fortran
* |
*Sun
*Fortran
*\
[1-7].
* |
*Sun
*Fortran
*\
8.
[0-3]*)
9994 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9995 lt_prog_compiler_pic
='-KPIC'
9996 lt_prog_compiler_static
='-Bstatic'
9997 lt_prog_compiler_wl
=''
9999 *Sun\ F
* |
*Sun
*Fortran
*)
10000 lt_prog_compiler_pic
='-KPIC'
10001 lt_prog_compiler_static
='-Bstatic'
10002 lt_prog_compiler_wl
='-Qoption ld '
10006 lt_prog_compiler_pic
='-KPIC'
10007 lt_prog_compiler_static
='-Bstatic'
10008 lt_prog_compiler_wl
='-Wl,'
10010 *Intel
*\
[CF
]*Compiler
*)
10011 lt_prog_compiler_wl
='-Wl,'
10012 lt_prog_compiler_pic
='-fPIC'
10013 lt_prog_compiler_static
='-static'
10016 lt_prog_compiler_wl
='-Wl,'
10017 lt_prog_compiler_pic
='-fpic'
10018 lt_prog_compiler_static
='-Bstatic'
10026 lt_prog_compiler_pic
='-KPIC'
10027 lt_prog_compiler_static
='-Bstatic'
10031 # QNX uses GNU C++, but need to define -shared option too, otherwise
10032 # it will coredump.
10033 lt_prog_compiler_pic
='-fPIC -shared'
10036 osf3
* | osf4
* | osf5
*)
10037 lt_prog_compiler_wl
='-Wl,'
10038 # All OSF/1 code is PIC.
10039 lt_prog_compiler_static
='-non_shared'
10043 lt_prog_compiler_static
='-non_shared'
10047 lt_prog_compiler_pic
='-KPIC'
10048 lt_prog_compiler_static
='-Bstatic'
10049 case $cc_basename in
10050 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
10051 lt_prog_compiler_wl
='-Qoption ld ';;
10053 lt_prog_compiler_wl
='-Wl,';;
10058 lt_prog_compiler_wl
='-Qoption ld '
10059 lt_prog_compiler_pic
='-PIC'
10060 lt_prog_compiler_static
='-Bstatic'
10063 sysv4 | sysv4.2uw2
* | sysv4.3
*)
10064 lt_prog_compiler_wl
='-Wl,'
10065 lt_prog_compiler_pic
='-KPIC'
10066 lt_prog_compiler_static
='-Bstatic'
10070 if test -d /usr
/nec
; then
10071 lt_prog_compiler_pic
='-Kconform_pic'
10072 lt_prog_compiler_static
='-Bstatic'
10076 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
10077 lt_prog_compiler_wl
='-Wl,'
10078 lt_prog_compiler_pic
='-KPIC'
10079 lt_prog_compiler_static
='-Bstatic'
10083 lt_prog_compiler_wl
='-Wl,'
10084 lt_prog_compiler_can_build_shared
=no
10088 lt_prog_compiler_pic
='-pic'
10089 lt_prog_compiler_static
='-Bstatic'
10093 lt_prog_compiler_can_build_shared
=no
10099 # For platforms that do not support PIC, -DPIC is meaningless:
10101 lt_prog_compiler_pic
=
10104 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10109 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10110 if ${lt_cv_prog_compiler_pic+:} false
; then :
10111 $as_echo_n "(cached) " >&6
10113 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10116 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10117 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
10120 # Check to make sure the PIC flag actually works.
10122 if test -n "$lt_prog_compiler_pic"; then
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10124 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10125 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
10126 $as_echo_n "(cached) " >&6
10128 lt_cv_prog_compiler_pic_works
=no
10129 ac_outfile
=conftest.
$ac_objext
10130 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10131 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10132 # Insert the option either (1) after the last *FLAGS variable, or
10133 # (2) before a word containing "conftest.", or (3) at the end.
10134 # Note that $ac_compile itself does not contain backslashes and begins
10135 # with a dollar sign (not a hyphen), so the echo should work correctly.
10136 # The option is referenced via a variable to avoid confusing sed.
10137 lt_compile
=`echo "$ac_compile" | $SED \
10138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10140 -e 's:$: $lt_compiler_flag:'`
10141 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10142 (eval "$lt_compile" 2>conftest.err
)
10144 cat conftest.err
>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 if (exit $ac_status) && test -s "$ac_outfile"; then
10147 # The compiler can only warn and ignore the option if not recognized
10148 # So say no if there are warnings other than the usual output.
10149 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
10150 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10151 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
10152 lt_cv_prog_compiler_pic_works
=yes
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10159 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10161 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10162 case $lt_prog_compiler_pic in
10164 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
10167 lt_prog_compiler_pic
=
10168 lt_prog_compiler_can_build_shared
=no
10184 # Check to make sure the static flag actually works.
10186 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10188 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10189 if ${lt_cv_prog_compiler_static_works+:} false
; then :
10190 $as_echo_n "(cached) " >&6
10192 lt_cv_prog_compiler_static_works
=no
10193 save_LDFLAGS
=$LDFLAGS
10194 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
10195 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10196 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10197 # The linker can only warn and ignore the option if not recognized
10198 # So say no if there are warnings
10199 if test -s conftest.err
; then
10200 # Append any errors to the config.log.
10201 cat conftest.err
1>&5
10202 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10203 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10204 if diff conftest.exp conftest.er2
>/dev
/null
; then
10205 lt_cv_prog_compiler_static_works
=yes
10208 lt_cv_prog_compiler_static_works
=yes
10212 LDFLAGS
=$save_LDFLAGS
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10216 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10218 if test yes = "$lt_cv_prog_compiler_static_works"; then
10221 lt_prog_compiler_static
=
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10231 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10232 if ${lt_cv_prog_compiler_c_o+:} false
; then :
10233 $as_echo_n "(cached) " >&6
10235 lt_cv_prog_compiler_c_o
=no
10236 $RM -r conftest
2>/dev
/null
10240 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10242 lt_compiler_flag
="-o out/conftest2.$ac_objext"
10243 # Insert the option either (1) after the last *FLAGS variable, or
10244 # (2) before a word containing "conftest.", or (3) at the end.
10245 # Note that $ac_compile itself does not contain backslashes and begins
10246 # with a dollar sign (not a hyphen), so the echo should work correctly.
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>out
/conftest.err
)
10254 cat out
/conftest.err
>&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
10258 # The compiler can only warn and ignore the option if not recognized
10259 # So say no if there are warnings
10260 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
10261 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
10262 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
10263 lt_cv_prog_compiler_c_o
=yes
10268 # SGI C++ compiler will create directory out/ii_files/ for
10269 # template instantiation
10270 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
10271 $RM out
/* && rmdir out
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10278 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10286 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10287 if ${lt_cv_prog_compiler_c_o+:} false
; then :
10288 $as_echo_n "(cached) " >&6
10290 lt_cv_prog_compiler_c_o
=no
10291 $RM -r conftest
2>/dev
/null
10295 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10297 lt_compiler_flag
="-o out/conftest2.$ac_objext"
10298 # Insert the option either (1) after the last *FLAGS variable, or
10299 # (2) before a word containing "conftest.", or (3) at the end.
10300 # Note that $ac_compile itself does not contain backslashes and begins
10301 # with a dollar sign (not a hyphen), so the echo should work correctly.
10302 lt_compile
=`echo "$ac_compile" | $SED \
10303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10305 -e 's:$: $lt_compiler_flag:'`
10306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10307 (eval "$lt_compile" 2>out
/conftest.err
)
10309 cat out
/conftest.err
>&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
10313 # The compiler can only warn and ignore the option if not recognized
10314 # So say no if there are warnings
10315 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
10316 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
10317 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
10318 lt_cv_prog_compiler_c_o
=yes
10323 # SGI C++ compiler will create directory out/ii_files/ for
10324 # template instantiation
10325 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
10326 $RM out
/* && rmdir out
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10333 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10338 hard_links
=nottested
10339 if test no
= "$lt_cv_prog_compiler_c_o" && test no
!= "$need_locks"; then
10340 # do not overwrite the value of need_locks provided by the user
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10342 $as_echo_n "checking if we can lock with hard links... " >&6; }
10345 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
10347 ln conftest.a conftest.b
2>&5 || hard_links
=no
10348 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10350 $as_echo "$hard_links" >&6; }
10351 if test no
= "$hard_links"; then
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10353 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10366 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10369 allow_undefined_flag
=
10370 always_export_symbols
=no
10372 archive_expsym_cmds
=
10373 compiler_needs_object
=no
10374 enable_shared_with_static_runtimes
=no
10375 export_dynamic_flag_spec
=
10376 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10377 hardcode_automatic
=no
10379 hardcode_direct_absolute
=no
10380 hardcode_libdir_flag_spec
=
10381 hardcode_libdir_separator
=
10382 hardcode_minus_L
=no
10383 hardcode_shlibpath_var
=unsupported
10385 link_all_deplibs
=unknown
10387 module_expsym_cmds
=
10388 old_archive_from_new_cmds
=
10389 old_archive_from_expsyms_cmds
=
10390 thread_safe_flag_spec
=
10391 whole_archive_flag_spec
=
10392 # include_expsyms should be a list of space-separated symbols to be *always*
10393 # included in the symbol list
10395 # exclude_expsyms can be an extended regexp of symbols to exclude
10396 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10397 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10398 # as well as any symbol that contains 'd'.
10399 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10400 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10401 # platforms (ab)use it in PIC code, but their linkers get confused if
10402 # the symbol is explicitly referenced. Since portable code cannot
10403 # rely on this symbol name, it's probably fine to never include it in
10404 # preloaded symbol tables.
10405 # Exclude shared library initialization/finalization symbols.
10406 extract_expsyms_cmds
=
10409 cygwin
* | mingw
* | pw32
* | cegcc
*)
10410 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10411 # When not using gcc, we currently assume that we are using
10412 # Microsoft Visual C++.
10413 if test yes != "$GCC"; then
10418 # we just hope/assume this is gcc and not c89 (= MSVC++)
10421 openbsd
* | bitrig
*)
10428 # On some targets, GNU ld is compatible enough with the native linker
10429 # that we're better off using the native interface for both.
10430 lt_use_gnu_ld_interface
=no
10431 if test yes = "$with_gnu_ld"; then
10434 # The AIX port of GNU ld has always aspired to compatibility
10435 # with the native linker. However, as the warning in the GNU ld
10436 # block says, versions before 2.19.5* couldn't really create working
10437 # shared libraries, regardless of the interface used.
10438 case `$LD -v 2>&1` in
10439 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
10440 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
10441 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
10443 lt_use_gnu_ld_interface
=yes
10448 lt_use_gnu_ld_interface
=yes
10453 if test yes = "$lt_use_gnu_ld_interface"; then
10454 # If archive_cmds runs LD, not CC, wlarc should be empty
10457 # Set some defaults for GNU ld with shared library support. These
10458 # are reset later if shared libraries are not supported. Putting them
10459 # here allows them to be overridden if necessary.
10460 runpath_var
=LD_RUN_PATH
10461 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10462 export_dynamic_flag_spec
='$wl--export-dynamic'
10463 # ancient GNU ld didn't support --whole-archive et. al.
10464 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
10465 whole_archive_flag_spec
=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10467 whole_archive_flag_spec
=
10469 supports_anon_versioning
=no
10470 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10471 *GNU\ gold
*) supports_anon_versioning
=yes ;;
10472 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
10473 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
10474 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
10475 *\
2.11.
*) ;; # other 2.11 versions
10476 *) supports_anon_versioning
=yes ;;
10479 # See if GNU ld supports shared libraries.
10482 # On AIX/PPC, the GNU linker is very broken
10483 if test ia64
!= "$host_cpu"; then
10487 *** Warning: the GNU linker, at least up to release 2.19, is reported
10488 *** to be unable to reliably create shared libraries on AIX.
10489 *** Therefore, libtool is disabling shared libraries support. If you
10490 *** really care for shared libraries, you may want to install binutils
10491 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10492 *** You will then need to restart the configuration process.
10501 # see comment about AmigaOS4 .so support
10502 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10503 archive_expsym_cmds
=''
10506 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)'
10507 hardcode_libdir_flag_spec
='-L$libdir'
10508 hardcode_minus_L
=yes
10514 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10515 allow_undefined_flag
=unsupported
10516 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10517 # support --undefined. This deserves some investigation. FIXME
10518 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10524 cygwin
* | mingw
* | pw32
* | cegcc
*)
10525 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10526 # as there is no search path for DLLs.
10527 hardcode_libdir_flag_spec
='-L$libdir'
10528 export_dynamic_flag_spec
='$wl--export-all-symbols'
10529 allow_undefined_flag
=unsupported
10530 always_export_symbols
=no
10531 enable_shared_with_static_runtimes
=yes
10532 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'
10533 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10535 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
10536 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10537 # If the export-symbols file already is a .def file, use it as
10538 # is; otherwise, prepend EXPORTS...
10539 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10540 cp $export_symbols $output_objdir/$soname.def;
10542 echo EXPORTS > $output_objdir/$soname.def;
10543 cat $export_symbols >> $output_objdir/$soname.def;
10545 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10552 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10553 link_all_deplibs
=yes
10557 hardcode_libdir_flag_spec
='-L$libdir'
10558 hardcode_minus_L
=yes
10559 allow_undefined_flag
=unsupported
10561 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10562 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10563 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10564 $ECHO EXPORTS >> $output_objdir/$libname.def~
10565 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10566 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10567 emximp -o $lib $output_objdir/$libname.def'
10568 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10569 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10570 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10571 $ECHO EXPORTS >> $output_objdir/$libname.def~
10572 prefix_cmds="$SED"~
10573 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10574 prefix_cmds="$prefix_cmds -e 1d";
10576 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10577 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10578 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10579 emximp -o $lib $output_objdir/$libname.def'
10580 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10581 enable_shared_with_static_runtimes
=yes
10586 hardcode_shlibpath_var
=no
10587 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10588 export_dynamic_flag_spec
='$wl-E'
10589 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10590 # Instead, shared libraries are loaded at an image base (0x10000000 by
10591 # default) and relocated if they conflict, which is a slow very memory
10592 # consuming and fragmenting process. To avoid this, we pick a random,
10593 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10594 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10595 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10596 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'
10599 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10601 if test linux-dietlibc
= "$host_os"; then
10602 case $cc_basename in
10603 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
10606 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
10607 && test no
= "$tmp_diet"
10609 tmp_addflag
=' $pic_flag'
10610 tmp_sharedflag
='-shared'
10611 case $cc_basename,$host_cpu in
10612 pgcc
*) # Portland Group C compiler
10613 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'
10614 tmp_addflag
=' $pic_flag'
10616 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
10617 # Portland Group f77 and f90 compilers
10618 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'
10619 tmp_addflag
=' $pic_flag -Mnomain' ;;
10620 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
10621 tmp_addflag
=' -i_dynamic' ;;
10622 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
10623 tmp_addflag
=' -i_dynamic -nofor_main' ;;
10624 ifc
* | ifort
*) # Intel Fortran compiler
10625 tmp_addflag
=' -nofor_main' ;;
10626 lf95
*) # Lahey Fortran 8.1
10627 whole_archive_flag_spec
=
10628 tmp_sharedflag
='--shared' ;;
10629 nagfor
*) # NAGFOR 5.3
10630 tmp_sharedflag
='-Wl,-shared' ;;
10631 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10632 tmp_sharedflag
='-qmkshrobj'
10634 nvcc
*) # Cuda Compiler Driver 2.2
10635 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'
10636 compiler_needs_object
=yes
10639 case `$CC -V 2>&1 | sed 5q` in
10640 *Sun\ C
*) # Sun C 5.9
10641 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'
10642 compiler_needs_object
=yes
10643 tmp_sharedflag
='-G' ;;
10644 *Sun\ F
*) # Sun Fortran 8.3
10645 tmp_sharedflag
='-G' ;;
10647 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10649 if test yes = "$supports_anon_versioning"; then
10650 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
10651 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10652 echo "local: *; };" >> $output_objdir/$libname.ver~
10653 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10656 case $cc_basename in
10658 export_dynamic_flag_spec
='-rdynamic'
10660 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
10661 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10662 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
10663 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10664 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10665 if test yes = "$supports_anon_versioning"; then
10666 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
10667 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10668 echo "local: *; };" >> $output_objdir/$libname.ver~
10669 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10679 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10680 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10683 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10684 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10689 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
10693 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10694 *** create shared libraries on Solaris systems. Therefore, libtool
10695 *** is disabling shared libraries support. We urge you to upgrade GNU
10696 *** binutils to release 2.9.1 or newer. Another option is to modify
10697 *** your PATH or compiler configuration so that the native linker is
10698 *** used, and then restart.
10701 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10702 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10703 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10709 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10710 case `$LD -v 2>&1` in
10711 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
10715 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10716 *** reliably create shared libraries on SCO systems. Therefore, libtool
10717 *** is disabling shared libraries support. We urge you to upgrade GNU
10718 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10719 *** your PATH or compiler configuration so that the native linker is
10720 *** used, and then restart.
10725 # For security reasons, it is highly recommended that you always
10726 # use absolute paths for naming shared libraries, and exclude the
10727 # DT_RUNPATH tag from executables and libraries. But doing so
10728 # requires that you compile everything twice, which is a pain.
10729 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10730 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10731 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10732 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10741 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10743 hardcode_direct
=yes
10744 hardcode_shlibpath_var
=no
10748 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10749 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10750 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10757 if test no
= "$ld_shlibs"; then
10759 hardcode_libdir_flag_spec
=
10760 export_dynamic_flag_spec
=
10761 whole_archive_flag_spec
=
10764 # PORTME fill in a description of your system's linker (not GNU ld)
10767 allow_undefined_flag
=unsupported
10768 always_export_symbols
=yes
10769 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'
10770 # Note: this linker hardcodes the directories in LIBPATH if there
10771 # are no directories specified by -L.
10772 hardcode_minus_L
=yes
10773 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10774 # Neither direct hardcoding nor static linking is supported with a
10776 hardcode_direct
=unsupported
10781 if test ia64
= "$host_cpu"; then
10782 # On IA64, the linker does run time linking by default, so we don't
10783 # have to do anything special.
10784 aix_use_runtimelinking
=no
10785 exp_sym_flag
='-Bexport'
10788 # If we're using GNU nm, then we don't want the "-C" option.
10789 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10790 # Without the "-l" option, or with the "-B" option, AIX nm treats
10791 # weak defined symbols like other global defined symbols, whereas
10792 # GNU nm marks them as "W".
10793 # While the 'weak' keyword is ignored in the Export File, we need
10794 # it in the Import File for the 'aix-soname' feature, so we have
10795 # to replace the "-B" option with "-P" for AIX nm.
10796 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
10797 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10799 export_symbols_cmds
='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10801 aix_use_runtimelinking
=no
10803 # Test if we are trying to use run time linking or normal
10804 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10805 # have runtime linking enabled, and use it for executables.
10806 # For shared libraries, we enable/disable runtime linking
10807 # depending on the kind of the shared library created -
10808 # when "with_aix_soname,aix_use_runtimelinking" is:
10809 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10810 # "aix,yes" lib.so shared, rtl:yes, for executables
10811 # lib.a static archive
10812 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10813 # lib.a(lib.so.V) shared, rtl:no, for executables
10814 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10815 # lib.a(lib.so.V) shared, rtl:no
10816 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10817 # lib.a static archive
10818 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
10819 for ld_flag
in $LDFLAGS; do
10820 if (test x-brtl
= "x$ld_flag" ||
test x-Wl
,-brtl = "x$ld_flag"); then
10821 aix_use_runtimelinking
=yes
10825 if test svr4
,no
= "$with_aix_soname,$aix_use_runtimelinking"; then
10826 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10827 # so we don't have lib.a shared libs to link our executables.
10828 # We have to force runtime linking in this case.
10829 aix_use_runtimelinking
=yes
10830 LDFLAGS
="$LDFLAGS -Wl,-brtl"
10835 exp_sym_flag
='-bexport'
10836 no_entry_flag
='-bnoentry'
10839 # When large executables or shared objects are built, AIX ld can
10840 # have problems creating the table of contents. If linking a library
10841 # or program results in "error TOC overflow" add -mminimal-toc to
10842 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10843 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10846 hardcode_direct
=yes
10847 hardcode_direct_absolute
=yes
10848 hardcode_libdir_separator
=':'
10849 link_all_deplibs
=yes
10850 file_list_spec
='$wl-f,'
10851 case $with_aix_soname,$aix_use_runtimelinking in
10852 aix
,*) ;; # traditional, no import file
10853 svr4
,* |
*,yes) # use import file
10854 # The Import File defines what to hardcode.
10856 hardcode_direct_absolute
=no
10860 if test yes = "$GCC"; then
10861 case $host_os in aix4.
[012]|aix4.
[012].
*)
10862 # We only want to do this on AIX 4.2 and lower, the check
10863 # below for broken collect2 doesn't work under 4.3+
10864 collect2name
=`$CC -print-prog-name=collect2`
10865 if test -f "$collect2name" &&
10866 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
10868 # We have reworked collect2
10871 # We have old collect2
10872 hardcode_direct
=unsupported
10873 # It fails to find uninstalled libraries when the uninstalled
10874 # path is not listed in the libpath. Setting hardcode_minus_L
10875 # to unsupported forces relinking
10876 hardcode_minus_L
=yes
10877 hardcode_libdir_flag_spec
='-L$libdir'
10878 hardcode_libdir_separator
=
10882 shared_flag
='-shared'
10883 if test yes = "$aix_use_runtimelinking"; then
10884 shared_flag
="$shared_flag "'$wl-G'
10886 # Need to ensure runtime linking is disabled for the traditional
10887 # shared library, or the linker may eventually find shared libraries
10888 # /with/ Import File - we do not want to mix them.
10889 shared_flag_aix
='-shared'
10890 shared_flag_svr4
='-shared $wl-G'
10893 if test ia64
= "$host_cpu"; then
10894 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10895 # chokes on -Wl,-G. The following line is correct:
10898 if test yes = "$aix_use_runtimelinking"; then
10899 shared_flag
='$wl-G'
10901 shared_flag
='$wl-bM:SRE'
10903 shared_flag_aix
='$wl-bM:SRE'
10904 shared_flag_svr4
='$wl-G'
10908 export_dynamic_flag_spec
='$wl-bexpall'
10909 # It seems that -bexpall does not export symbols beginning with
10910 # underscore (_), so it is better to generate a list of symbols to export.
10911 always_export_symbols
=yes
10912 if test aix
,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10913 # Warning - without using the other runtime loading flags (-brtl),
10914 # -berok will link without error, but may produce a broken library.
10915 allow_undefined_flag
='-berok'
10916 # Determine the default libpath from the value encoded in an
10917 # empty executable.
10918 if test set = "${lt_cv_aix_libpath+set}"; then
10919 aix_libpath
=$lt_cv_aix_libpath
10921 if ${lt_cv_aix_libpath_+:} false
; then :
10922 $as_echo_n "(cached) " >&6
10924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h. */
10935 if ac_fn_c_try_link
"$LINENO"; then :
10937 lt_aix_libpath_sed
='
10938 /Import File Strings/,/^$/ {
10940 s/^0 *\([^ ]*\) *$/\1/
10944 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10945 # Check for a 64-bit object if we didn't find anything.
10946 if test -z "$lt_cv_aix_libpath_"; then
10947 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10950 rm -f core conftest.err conftest.
$ac_objext \
10951 conftest
$ac_exeext conftest.
$ac_ext
10952 if test -z "$lt_cv_aix_libpath_"; then
10953 lt_cv_aix_libpath_
=/usr
/lib
:/lib
10958 aix_libpath
=$lt_cv_aix_libpath_
10961 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
10962 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\
$export_symbols' '$shared_flag
10964 if test ia64
= "$host_cpu"; then
10965 hardcode_libdir_flag_spec
='$wl-R $libdir:/usr/lib:/lib'
10966 allow_undefined_flag
="-z nodefs"
10967 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"
10969 # Determine the default libpath from the value encoded in an
10970 # empty executable.
10971 if test set = "${lt_cv_aix_libpath+set}"; then
10972 aix_libpath
=$lt_cv_aix_libpath
10974 if ${lt_cv_aix_libpath_+:} false
; then :
10975 $as_echo_n "(cached) " >&6
10977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h. */
10988 if ac_fn_c_try_link
"$LINENO"; then :
10990 lt_aix_libpath_sed
='
10991 /Import File Strings/,/^$/ {
10993 s/^0 *\([^ ]*\) *$/\1/
10997 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10998 # Check for a 64-bit object if we didn't find anything.
10999 if test -z "$lt_cv_aix_libpath_"; then
11000 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11003 rm -f core conftest.err conftest.
$ac_objext \
11004 conftest
$ac_exeext conftest.
$ac_ext
11005 if test -z "$lt_cv_aix_libpath_"; then
11006 lt_cv_aix_libpath_
=/usr
/lib
:/lib
11011 aix_libpath
=$lt_cv_aix_libpath_
11014 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
11015 # Warning - without using the other run time loading flags,
11016 # -berok will link without error, but may produce a broken library.
11017 no_undefined_flag
=' $wl-bernotok'
11018 allow_undefined_flag
=' $wl-berok'
11019 if test yes = "$with_gnu_ld"; then
11020 # We only use this code for GNU lds that support --whole-archive.
11021 whole_archive_flag_spec
='$wl--whole-archive$convenience $wl--no-whole-archive'
11023 # Exported symbols can be pulled into shared objects from archives
11024 whole_archive_flag_spec
='$convenience'
11026 archive_cmds_need_lc
=yes
11027 archive_expsym_cmds
='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11028 # -brtl affects multiple linker settings, -berok does not and is overridden later
11029 compiler_flags_filtered
='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11030 if test svr4
!= "$with_aix_soname"; then
11031 # This is similar to how AIX traditionally builds its shared libraries.
11032 archive_expsym_cmds
="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11034 if test aix
!= "$with_aix_soname"; then
11035 archive_expsym_cmds
="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11037 # used by -dlpreopen to get the symbols
11038 archive_expsym_cmds
="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11040 archive_expsym_cmds
="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11048 # see comment about AmigaOS4 .so support
11049 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11050 archive_expsym_cmds
=''
11053 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)'
11054 hardcode_libdir_flag_spec
='-L$libdir'
11055 hardcode_minus_L
=yes
11061 export_dynamic_flag_spec
=-rdynamic
11064 cygwin
* | mingw
* | pw32
* | cegcc
*)
11065 # When not using gcc, we currently assume that we are using
11066 # Microsoft Visual C++.
11067 # hardcode_libdir_flag_spec is actually meaningless, as there is
11068 # no search path for DLLs.
11069 case $cc_basename in
11072 hardcode_libdir_flag_spec
=' '
11073 allow_undefined_flag
=unsupported
11074 always_export_symbols
=yes
11076 # Tell ltmain to make .lib files, not .a files.
11078 # Tell ltmain to make .dll files, not .so files.
11080 # FIXME: Setting linknames here is a bad hack.
11081 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11082 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11083 cp "$export_symbols" "$output_objdir/$soname.def";
11084 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11086 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11088 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11090 # The linker will not automatically build a static lib if we build a DLL.
11091 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11092 enable_shared_with_static_runtimes
=yes
11093 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11094 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11096 old_postinstall_cmds
='chmod 644 $oldlib'
11097 postlink_cmds
='lt_outputfile="@OUTPUT@"~
11098 lt_tool_outputfile="@TOOL_OUTPUT@"~
11099 case $lt_outputfile in
11102 lt_outputfile=$lt_outputfile.exe
11103 lt_tool_outputfile=$lt_tool_outputfile.exe
11106 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11107 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11108 $RM "$lt_outputfile.manifest";
11112 # Assume MSVC wrapper
11113 hardcode_libdir_flag_spec
=' '
11114 allow_undefined_flag
=unsupported
11115 # Tell ltmain to make .lib files, not .a files.
11117 # Tell ltmain to make .dll files, not .so files.
11119 # FIXME: Setting linknames here is a bad hack.
11120 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11121 # The linker will automatically build a .lib file if we build a DLL.
11122 old_archive_from_new_cmds
='true'
11123 # FIXME: Should let the user specify the lib program.
11124 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
11125 enable_shared_with_static_runtimes
=yes
11130 darwin
* | rhapsody
*)
11133 archive_cmds_need_lc
=no
11135 hardcode_automatic
=yes
11136 hardcode_shlibpath_var
=unsupported
11137 if test yes = "$lt_cv_ld_force_load"; then
11138 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\"`'
11141 whole_archive_flag_spec
=''
11143 link_all_deplibs
=yes
11144 allow_undefined_flag
=$_lt_dar_allow_undefined
11145 case $cc_basename in
11146 ifort
*|nagfor
*) _lt_dar_can_shared
=yes ;;
11147 *) _lt_dar_can_shared
=$GCC ;;
11149 if test yes = "$_lt_dar_can_shared"; then
11150 output_verbose_link_cmd
=func_echo_all
11151 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11152 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11153 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"
11154 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"
11163 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11164 hardcode_libdir_flag_spec
='-L$libdir'
11165 hardcode_shlibpath_var
=no
11168 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11169 # support. Future versions do this automatically, but an explicit c++rt0.o
11170 # does not break anything, and helps significantly (at the cost of a little
11173 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11174 hardcode_libdir_flag_spec
='-R$libdir'
11175 hardcode_direct
=yes
11176 hardcode_shlibpath_var
=no
11179 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11181 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11182 hardcode_direct
=yes
11183 hardcode_minus_L
=yes
11184 hardcode_shlibpath_var
=no
11187 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11188 freebsd
* | dragonfly
*)
11189 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11190 hardcode_libdir_flag_spec
='-R$libdir'
11191 hardcode_direct
=yes
11192 hardcode_shlibpath_var
=no
11196 if test yes = "$GCC"; then
11197 archive_cmds
='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11199 archive_cmds
='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11201 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
11202 hardcode_libdir_separator
=:
11203 hardcode_direct
=yes
11205 # hardcode_minus_L: Not really in the search PATH,
11206 # but as the default location of the library.
11207 hardcode_minus_L
=yes
11208 export_dynamic_flag_spec
='$wl-E'
11212 if test yes,no
= "$GCC,$with_gnu_ld"; then
11213 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11215 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11217 if test no
= "$with_gnu_ld"; then
11218 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
11219 hardcode_libdir_separator
=:
11220 hardcode_direct
=yes
11221 hardcode_direct_absolute
=yes
11222 export_dynamic_flag_spec
='$wl-E'
11223 # hardcode_minus_L: Not really in the search PATH,
11224 # but as the default location of the library.
11225 hardcode_minus_L
=yes
11230 if test yes,no
= "$GCC,$with_gnu_ld"; then
11233 archive_cmds
='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11236 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11239 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11245 archive_cmds
='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11248 archive_cmds
='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11252 # Older versions of the 11.00 compiler do not understand -b yet
11253 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11255 $as_echo_n "checking if $CC understands -b... " >&6; }
11256 if ${lt_cv_prog_compiler__b+:} false
; then :
11257 $as_echo_n "(cached) " >&6
11259 lt_cv_prog_compiler__b
=no
11260 save_LDFLAGS
=$LDFLAGS
11261 LDFLAGS
="$LDFLAGS -b"
11262 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
11263 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
11264 # The linker can only warn and ignore the option if not recognized
11265 # So say no if there are warnings
11266 if test -s conftest.err
; then
11267 # Append any errors to the config.log.
11268 cat conftest.err
1>&5
11269 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
11270 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11271 if diff conftest.exp conftest.er2
>/dev
/null
; then
11272 lt_cv_prog_compiler__b
=yes
11275 lt_cv_prog_compiler__b
=yes
11279 LDFLAGS
=$save_LDFLAGS
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11283 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11285 if test yes = "$lt_cv_prog_compiler__b"; then
11286 archive_cmds
='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11288 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11294 if test no
= "$with_gnu_ld"; then
11295 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
11296 hardcode_libdir_separator
=:
11301 hardcode_shlibpath_var
=no
11304 hardcode_direct
=yes
11305 hardcode_direct_absolute
=yes
11306 export_dynamic_flag_spec
='$wl-E'
11308 # hardcode_minus_L: Not really in the search PATH,
11309 # but as the default location of the library.
11310 hardcode_minus_L
=yes
11316 irix5
* | irix6
* | nonstopux
*)
11317 if test yes = "$GCC"; then
11318 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'
11319 # Try to use the -exported_symbol ld option, if it does not
11320 # work, assume that -exports_file does not work either and
11321 # implicitly export all symbols.
11322 # This should be the same for all languages, so no per-tag cache variable.
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11324 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11325 if ${lt_cv_irix_exported_symbol+:} false
; then :
11326 $as_echo_n "(cached) " >&6
11328 save_LDFLAGS
=$LDFLAGS
11329 LDFLAGS
="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11332 int foo (void) { return 0; }
11334 if ac_fn_c_try_link
"$LINENO"; then :
11335 lt_cv_irix_exported_symbol
=yes
11337 lt_cv_irix_exported_symbol
=no
11339 rm -f core conftest.err conftest.
$ac_objext \
11340 conftest
$ac_exeext conftest.
$ac_ext
11341 LDFLAGS
=$save_LDFLAGS
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11344 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11345 if test yes = "$lt_cv_irix_exported_symbol"; then
11346 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'
11349 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'
11350 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'
11352 archive_cmds_need_lc
='no'
11353 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
11354 hardcode_libdir_separator
=:
11356 link_all_deplibs
=yes
11360 case $cc_basename in
11362 # Fabrice Bellard et al's Tiny C Compiler
11364 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11370 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11371 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11373 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11375 hardcode_libdir_flag_spec
='-R$libdir'
11376 hardcode_direct
=yes
11377 hardcode_shlibpath_var
=no
11381 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11382 hardcode_direct
=yes
11383 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
11384 hardcode_libdir_separator
=:
11385 hardcode_shlibpath_var
=no
11391 openbsd
* | bitrig
*)
11392 if test -f /usr
/libexec
/ld.so
; then
11393 hardcode_direct
=yes
11394 hardcode_shlibpath_var
=no
11395 hardcode_direct_absolute
=yes
11396 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11397 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11398 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11399 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
11400 export_dynamic_flag_spec
='$wl-E'
11402 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11403 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
11411 hardcode_libdir_flag_spec
='-L$libdir'
11412 hardcode_minus_L
=yes
11413 allow_undefined_flag
=unsupported
11415 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11416 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11417 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11418 $ECHO EXPORTS >> $output_objdir/$libname.def~
11419 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11420 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11421 emximp -o $lib $output_objdir/$libname.def'
11422 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11423 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11424 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11425 $ECHO EXPORTS >> $output_objdir/$libname.def~
11426 prefix_cmds="$SED"~
11427 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11428 prefix_cmds="$prefix_cmds -e 1d";
11430 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11431 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11432 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11433 emximp -o $lib $output_objdir/$libname.def'
11434 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11435 enable_shared_with_static_runtimes
=yes
11439 if test yes = "$GCC"; then
11440 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
11441 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'
11443 allow_undefined_flag
=' -expect_unresolved \*'
11444 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'
11446 archive_cmds_need_lc
='no'
11447 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
11448 hardcode_libdir_separator
=:
11451 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
11452 if test yes = "$GCC"; then
11453 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
11454 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'
11455 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
11457 allow_undefined_flag
=' -expect_unresolved \*'
11458 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'
11459 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~
11460 $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'
11462 # Both c and cxx compiler support -rpath directly
11463 hardcode_libdir_flag_spec
='-rpath $libdir'
11465 archive_cmds_need_lc
='no'
11466 hardcode_libdir_separator
=:
11470 no_undefined_flag
=' -z defs'
11471 if test yes = "$GCC"; then
11473 archive_cmds
='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11474 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11475 $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'
11477 case `$CC -V 2>&1` in
11480 archive_cmds
='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11481 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11482 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11486 archive_cmds
='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11487 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11488 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11492 hardcode_libdir_flag_spec
='-R$libdir'
11493 hardcode_shlibpath_var
=no
11495 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11497 # The compiler driver will combine and reorder linker options,
11498 # but understands '-z linker_flag'. GCC discards it without '$wl',
11499 # but is careful enough not to reorder.
11500 # Supported since Solaris 2.6 (maybe 2.5.1?)
11501 if test yes = "$GCC"; then
11502 whole_archive_flag_spec
='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11504 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
11508 link_all_deplibs
=yes
11512 if test sequent
= "$host_vendor"; then
11513 # Use $CC to link under sequent, because it throws in some extra .o
11514 # files that make .init and .fini sections work.
11515 archive_cmds
='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11517 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11519 hardcode_libdir_flag_spec
='-L$libdir'
11520 hardcode_direct
=yes
11521 hardcode_minus_L
=yes
11522 hardcode_shlibpath_var
=no
11526 case $host_vendor in
11528 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11529 hardcode_direct
=yes # is this really true???
11532 ## LD is ld it makes a PLAMLIB
11533 ## CC just makes a GrossModule.
11534 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11535 reload_cmds
='$CC -r -o $output$reload_objs'
11539 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11540 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
11543 runpath_var
='LD_RUN_PATH'
11544 hardcode_shlibpath_var
=no
11548 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11549 hardcode_shlibpath_var
=no
11550 export_dynamic_flag_spec
='-Bexport'
11554 if test -d /usr
/nec
; then
11555 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11556 hardcode_shlibpath_var
=no
11557 runpath_var
=LD_RUN_PATH
11558 hardcode_runpath_var
=yes
11563 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11564 no_undefined_flag
='$wl-z,text'
11565 archive_cmds_need_lc
=no
11566 hardcode_shlibpath_var
=no
11567 runpath_var
='LD_RUN_PATH'
11569 if test yes = "$GCC"; then
11570 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11571 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11573 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11574 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11578 sysv5
* | sco3.2v5
* | sco5v6
*)
11579 # Note: We CANNOT use -z defs as we might desire, because we do not
11580 # link with -lc, and that would cause any symbols used from libc to
11581 # always be unresolved, which means just about no library would
11582 # ever link correctly. If we're not using GNU ld we use -z text
11583 # though, which does catch some bad symbols but isn't as heavy-handed
11585 no_undefined_flag
='$wl-z,text'
11586 allow_undefined_flag
='$wl-z,nodefs'
11587 archive_cmds_need_lc
=no
11588 hardcode_shlibpath_var
=no
11589 hardcode_libdir_flag_spec
='$wl-R,$libdir'
11590 hardcode_libdir_separator
=':'
11591 link_all_deplibs
=yes
11592 export_dynamic_flag_spec
='$wl-Bexport'
11593 runpath_var
='LD_RUN_PATH'
11595 if test yes = "$GCC"; then
11596 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11597 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11599 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11600 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11605 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11606 hardcode_libdir_flag_spec
='-L$libdir'
11607 hardcode_shlibpath_var
=no
11615 if test sni
= "$host_vendor"; then
11617 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
11618 export_dynamic_flag_spec
='$wl-Blargedynsym'
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11625 $as_echo "$ld_shlibs" >&6; }
11626 test no
= "$ld_shlibs" && can_build_shared
=no
11628 with_gnu_ld
=$with_gnu_ld
11645 # Do we need to explicitly link libc?
11647 case "x$archive_cmds_need_lc" in
11649 # Assume -lc should be added
11650 archive_cmds_need_lc
=yes
11652 if test yes,yes = "$GCC,$enable_shared"; then
11653 case $archive_cmds in
11655 # FIXME: we may have to deal with multi-command sequences.
11658 # Test whether the compiler implicitly links with -lc since on some
11659 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11660 # to ld, don't add -lc before -lgcc.
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11662 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11663 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
11664 $as_echo_n "(cached) " >&6
11667 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11670 (eval $ac_compile) 2>&5
11672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11673 test $ac_status = 0; } 2>conftest.err
; then
11676 libobjs
=conftest.
$ac_objext
11678 wl
=$lt_prog_compiler_wl
11679 pic_flag
=$lt_prog_compiler_pic
11685 lt_save_allow_undefined_flag
=$allow_undefined_flag
11686 allow_undefined_flag
=
11687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11688 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
11690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11691 test $ac_status = 0; }
11693 lt_cv_archive_cmds_need_lc
=no
11695 lt_cv_archive_cmds_need_lc
=yes
11697 allow_undefined_flag
=$lt_save_allow_undefined_flag
11699 cat conftest.err
1>&5
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11705 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11706 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11865 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11867 if test yes = "$GCC"; then
11869 darwin
*) lt_awk_arg
='/^libraries:/,/LR/' ;;
11870 *) lt_awk_arg
='/^libraries:/' ;;
11873 mingw
* | cegcc
*) lt_sed_strip_eq
='s|=\([A-Za-z]:\)|\1|g' ;;
11874 *) lt_sed_strip_eq
='s|=/|/|g' ;;
11876 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11877 case $lt_search_path_spec in
11879 # if the path contains ";" then we assume it to be the separator
11880 # otherwise default to the standard path separator (i.e. ":") - it is
11881 # assumed that no part of a normal pathname contains ";" but that should
11882 # okay in the real world where ";" in dirpaths is itself problematic.
11883 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11886 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11889 # Ok, now we have the path, separated by spaces, we can step through it
11890 # and add multilib dir if necessary...
11891 lt_tmp_lt_search_path_spec
=
11892 lt_multi_os_dir
=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11893 # ...but if some path component already ends with the multilib dir we assume
11894 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11895 case "$lt_multi_os_dir; $lt_search_path_spec " in
11896 "/; "* |
"/.; "* |
"/./; "* |
*"$lt_multi_os_dir "* |
*"$lt_multi_os_dir/ "*)
11900 for lt_sys_path
in $lt_search_path_spec; do
11901 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11902 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11903 elif test -n "$lt_multi_os_dir"; then
11904 test -d "$lt_sys_path" && \
11905 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
11908 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11909 BEGIN {RS = " "; FS = "/|\n";} {
11912 for (lt_i = NF; lt_i > 0; lt_i--) {
11913 if ($lt_i != "" && $lt_i != ".") {
11914 if ($lt_i == "..") {
11917 if (lt_count == 0) {
11918 lt_foo = "/" $lt_i lt_foo;
11925 if (lt_foo != "") { lt_freq[lt_foo]++; }
11926 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11928 # AWK program above erroneously prepends '/' to C:/dos/paths
11931 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
11932 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11934 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11936 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11938 library_names_spec
=
11939 libname_spec
='lib$name'
11943 postuninstall_cmds
=
11947 shlibpath_overrides_runpath
=unknown
11949 dynamic_linker
="$host_os ld.so"
11950 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11951 need_lib_prefix
=unknown
11952 hardcode_into_libs
=no
11954 # when you set need_version to no, make sure it does not cause -set_version
11955 # flags to be left without arguments
11956 need_version
=unknown
11962 version_type
=linux
# correct to gnu/linux during the next big refactor
11963 library_names_spec
='$libname$release$shared_ext$versuffix $libname.a'
11964 shlibpath_var
=LIBPATH
11966 # AIX 3 has no versioning support, so we append a major version to the name.
11967 soname_spec
='$libname$release$shared_ext$major'
11971 version_type
=linux
# correct to gnu/linux during the next big refactor
11974 hardcode_into_libs
=yes
11975 if test ia64
= "$host_cpu"; then
11976 # AIX 5 supports IA64
11977 library_names_spec
='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11978 shlibpath_var
=LD_LIBRARY_PATH
11980 # With GCC up to 2.95.x, collect2 would create an import file
11981 # for dependence libraries. The import file would start with
11982 # the line '#! .'. This would cause the generated library to
11983 # depend on '.', always an invalid library. This was fixed in
11984 # development snapshots of GCC prior to 3.0.
11986 aix4 | aix4.
[01] | aix4.
[01].
*)
11987 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11989 echo '#endif'; } |
$CC -E - |
$GREP yes > /dev
/null
; then
11992 can_build_shared
=no
11996 # Using Import Files as archive members, it is possible to support
11997 # filename-based versioning of shared library archives on AIX. While
11998 # this would work for both with and without runtime linking, it will
11999 # prevent static linking of such archives. So we do filename-based
12000 # shared library versioning with .so extension only, which is used
12001 # when both runtime linking and shared linking is enabled.
12002 # Unfortunately, runtime linking may impact performance, so we do
12003 # not want this to be the default eventually. Also, we use the
12004 # versioned .so libs for executables only if there is the -brtl
12005 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12006 # To allow for filename-based versioning support, we need to create
12007 # libNAME.so.V as an archive file, containing:
12008 # *) an Import File, referring to the versioned filename of the
12009 # archive as well as the shared archive member, telling the
12010 # bitwidth (32 or 64) of that shared object, and providing the
12011 # list of exported symbols of that shared object, eventually
12012 # decorated with the 'weak' keyword
12013 # *) the shared object with the F_LOADONLY flag set, to really avoid
12014 # it being seen by the linker.
12015 # At run time we better use the real file rather than another symlink,
12016 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12018 case $with_aix_soname,$aix_use_runtimelinking in
12019 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12020 # soname into executable. Probably we can add versioning support to
12021 # collect2, so additional links can be useful in future.
12022 aix
,yes) # traditional libtool
12023 dynamic_linker
='AIX unversionable lib.so'
12024 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12025 # instead of lib<name>.a to let people know that these are not
12026 # typical AIX shared libraries.
12027 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12029 aix
,no
) # traditional AIX only
12030 dynamic_linker
='AIX lib.a(lib.so.V)'
12031 # We preserve .a as extension for shared libraries through AIX4.2
12032 # and later when we are not doing run time linking.
12033 library_names_spec
='$libname$release.a $libname.a'
12034 soname_spec
='$libname$release$shared_ext$major'
12036 svr4
,*) # full svr4 only
12037 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o)"
12038 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
12039 # We do not specify a path in Import Files, so LIBPATH fires.
12040 shlibpath_overrides_runpath
=yes
12042 *,yes) # both, prefer svr4
12043 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12044 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
12045 # unpreferred sharedlib libNAME.a needs extra handling
12046 postinstall_cmds
='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12047 postuninstall_cmds
='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12048 # We do not specify a path in Import Files, so LIBPATH fires.
12049 shlibpath_overrides_runpath
=yes
12051 *,no
) # both, prefer aix
12052 dynamic_linker
="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12053 library_names_spec
='$libname$release.a $libname.a'
12054 soname_spec
='$libname$release$shared_ext$major'
12055 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12056 postinstall_cmds
='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12057 postuninstall_cmds
='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12060 shlibpath_var
=LIBPATH
12067 # Since July 2007 AmigaOS4 officially supports .so libraries.
12068 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12069 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12072 library_names_spec
='$libname.ixlibrary $libname.a'
12073 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12074 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12080 library_names_spec
='$libname$shared_ext'
12081 dynamic_linker
="$host_os ld.so"
12082 shlibpath_var
=LIBRARY_PATH
12086 version_type
=linux
# correct to gnu/linux during the next big refactor
12088 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12089 soname_spec
='$libname$release$shared_ext$major'
12090 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12091 shlibpath_var
=LD_LIBRARY_PATH
12092 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12093 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12094 # the default ld.so.conf also contains /usr/contrib/lib and
12095 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12096 # libtool to hard-code these into programs
12099 cygwin
* | mingw
* | pw32
* | cegcc
*)
12100 version_type
=windows
12105 case $GCC,$cc_basename in
12108 library_names_spec
='$libname.dll.a'
12109 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12110 postinstall_cmds
='base_file=`basename \$file`~
12111 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12112 dldir=$destdir/`dirname \$dlpath`~
12113 test -d \$dldir || mkdir -p \$dldir~
12114 $install_prog $dir/$dlname \$dldir/$dlname~
12115 chmod a+x \$dldir/$dlname~
12116 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12117 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12119 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12120 dlpath=$dir/\$dldll~
12122 shlibpath_overrides_runpath
=yes
12126 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12127 soname_spec
='`echo $libname | sed -e 's
/^lib
/cyg
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
12129 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
12132 # MinGW DLLs use traditional 'lib' prefix
12133 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
12136 # pw32 DLLs use 'pw' prefix rather than 'lib'
12137 library_names_spec
='`echo $libname | sed -e 's
/^lib
/pw
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
12140 dynamic_linker
='Win32 ld.exe'
12145 libname_spec
='$name'
12146 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
12147 library_names_spec
='$libname.dll.lib'
12151 sys_lib_search_path_spec
=
12154 for lt_path
in $LIB
12157 # Let DOS variable expansion print the short 8.3 style file name.
12158 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12159 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
12162 # Convert to MSYS style.
12163 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12166 # Convert to unix form, then to dos form, then back to unix form
12167 # but this time dos style (no spaces!) so that the unix form looks
12168 # like /cygdrive/c/PROGRA~1:/cygdr...
12169 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
12170 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12171 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12174 sys_lib_search_path_spec
=$LIB
12175 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
12176 # It is most probably a Windows format PATH.
12177 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12179 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12181 # FIXME: find the short name or the path components, as spaces are
12182 # common. (e.g. "Program Files" -> "PROGRA~1")
12186 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12187 postinstall_cmds
='base_file=`basename \$file`~
12188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12189 dldir=$destdir/`dirname \$dlpath`~
12190 test -d \$dldir || mkdir -p \$dldir~
12191 $install_prog $dir/$dlname \$dldir/$dlname'
12192 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12193 dlpath=$dir/\$dldll~
12195 shlibpath_overrides_runpath
=yes
12196 dynamic_linker
='Win32 link.exe'
12200 # Assume MSVC wrapper
12201 library_names_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext $libname.lib'
12202 dynamic_linker
='Win32 ld.exe'
12205 # FIXME: first we should search . and the directory the executable is in
12209 darwin
* | rhapsody
*)
12210 dynamic_linker
="$host_os dyld"
12211 version_type
=darwin
12214 library_names_spec
='$libname$release$major$shared_ext $libname$shared_ext'
12215 soname_spec
='$libname$release$major$shared_ext'
12216 shlibpath_overrides_runpath
=yes
12217 shlibpath_var
=DYLD_LIBRARY_PATH
12218 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12220 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
12221 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12225 version_type
=linux
# correct to gnu/linux during the next big refactor
12228 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12229 soname_spec
='$libname$release$shared_ext$major'
12230 shlibpath_var
=LD_LIBRARY_PATH
12233 freebsd
* | dragonfly
*)
12234 # DragonFly does not have aout. When/if they implement a new
12235 # versioning mechanism, adjust this.
12236 if test -x /usr
/bin
/objformat
; then
12237 objformat
=`/usr/bin/objformat`
12240 freebsd
[23].
*) objformat
=aout
;;
12241 *) objformat
=elf
;;
12244 version_type
=freebsd-
$objformat
12245 case $version_type in
12247 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12248 soname_spec
='$libname$release$shared_ext$major'
12253 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12257 shlibpath_var
=LD_LIBRARY_PATH
12260 shlibpath_overrides_runpath
=yes
12262 freebsd3.
[01]* | freebsdelf3.
[01]*)
12263 shlibpath_overrides_runpath
=yes
12264 hardcode_into_libs
=yes
12266 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12267 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12268 shlibpath_overrides_runpath
=no
12269 hardcode_into_libs
=yes
12271 *) # from 4.6 on, and DragonFly
12272 shlibpath_overrides_runpath
=yes
12273 hardcode_into_libs
=yes
12279 version_type
=linux
# correct to gnu/linux during the next big refactor
12282 dynamic_linker
="$host_os runtime_loader"
12283 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12284 soname_spec
='$libname$release$shared_ext$major'
12285 shlibpath_var
=LIBRARY_PATH
12286 shlibpath_overrides_runpath
=no
12287 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12288 hardcode_into_libs
=yes
12291 hpux9
* | hpux10
* | hpux11
*)
12292 # Give a soname corresponding to the major version so that dld.sl refuses to
12293 # link against other versions.
12300 hardcode_into_libs
=yes
12301 dynamic_linker
="$host_os dld.so"
12302 shlibpath_var
=LD_LIBRARY_PATH
12303 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12304 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12305 soname_spec
='$libname$release$shared_ext$major'
12306 if test 32 = "$HPUX_IA64_MODE"; then
12307 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12308 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux32
12310 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12311 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux64
12316 hardcode_into_libs
=yes
12317 dynamic_linker
="$host_os dld.sl"
12318 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12319 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12320 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12321 soname_spec
='$libname$release$shared_ext$major'
12322 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12323 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12327 dynamic_linker
="$host_os dld.sl"
12328 shlibpath_var
=SHLIB_PATH
12329 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12330 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12331 soname_spec
='$libname$release$shared_ext$major'
12334 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12335 postinstall_cmds
='chmod 555 $lib'
12336 # or fails outright, so override atomically:
12337 install_override_mode
=555
12341 version_type
=linux
# correct to gnu/linux during the next big refactor
12344 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12345 soname_spec
='$libname$release$shared_ext$major'
12346 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
12347 shlibpath_var
=LD_LIBRARY_PATH
12348 shlibpath_overrides_runpath
=no
12349 hardcode_into_libs
=yes
12352 irix5
* | irix6
* | nonstopux
*)
12354 nonstopux
*) version_type
=nonstopux
;;
12356 if test yes = "$lt_cv_prog_gnu_ld"; then
12357 version_type
=linux
# correct to gnu/linux during the next big refactor
12364 soname_spec
='$libname$release$shared_ext$major'
12365 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12367 irix5
* | nonstopux
*)
12368 libsuff
= shlibsuff
=
12371 case $LD in # libtool.m4 will add one of these switches to LD
12372 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12373 libsuff
= shlibsuff
= libmagic
=32-bit;;
12374 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12375 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12376 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12377 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12378 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12382 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12383 shlibpath_overrides_runpath
=no
12384 sys_lib_search_path_spec
="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12385 sys_lib_dlsearch_path_spec
="/usr/lib$libsuff /lib$libsuff"
12386 hardcode_into_libs
=yes
12389 # No shared lib support for Linux oldld, aout, or coff.
12390 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12395 version_type
=none
# Android doesn't support versioned libraries.
12398 library_names_spec
='$libname$release$shared_ext'
12399 soname_spec
='$libname$release$shared_ext'
12401 shlibpath_var
=LD_LIBRARY_PATH
12402 shlibpath_overrides_runpath
=yes
12404 # This implies no fast_install, which is unacceptable.
12405 # Some rework will be needed to allow for fast_install
12406 # before this can be enabled.
12407 hardcode_into_libs
=yes
12409 dynamic_linker
='Android linker'
12410 # Don't embed -rpath directories since the linker doesn't support them.
12411 hardcode_libdir_flag_spec
='-L$libdir'
12414 # This must be glibc/ELF.
12415 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
12416 version_type
=linux
# correct to gnu/linux during the next big refactor
12419 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12420 soname_spec
='$libname$release$shared_ext$major'
12421 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12422 shlibpath_var
=LD_LIBRARY_PATH
12423 shlibpath_overrides_runpath
=no
12425 # Some binutils ld are patched to set DT_RUNPATH
12426 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
12427 $as_echo_n "(cached) " >&6
12429 lt_cv_shlibpath_overrides_runpath
=no
12430 save_LDFLAGS
=$LDFLAGS
12431 save_libdir
=$libdir
12432 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12433 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12445 if ac_fn_c_try_link
"$LINENO"; then :
12446 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
12447 lt_cv_shlibpath_overrides_runpath
=yes
12450 rm -f core conftest.err conftest.
$ac_objext \
12451 conftest
$ac_exeext conftest.
$ac_ext
12452 LDFLAGS
=$save_LDFLAGS
12453 libdir
=$save_libdir
12457 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
12459 # This implies no fast_install, which is unacceptable.
12460 # Some rework will be needed to allow for fast_install
12461 # before this can be enabled.
12462 hardcode_into_libs
=yes
12464 # Ideally, we could use ldconfig to report *all* directores which are
12465 # searched for libraries, however this is still not possible. Aside from not
12466 # being certain /sbin/ldconfig is available, command
12467 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12468 # even though it is searched at run-time. Try to do the best guess by
12469 # appending ld.so.conf contents (and includes) to the search path.
12470 if test -f /etc
/ld.so.conf
; then
12471 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' ' '`
12472 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
12475 # We used to test for /lib/ld.so.1 and disable shared libraries on
12476 # powerpc, because MkLinux only supported shared libraries with the
12477 # GNU dynamic linker. Since this was broken with cross compilers,
12478 # most powerpc-linux boxes support dynamic linking these days and
12479 # people can always --disable-shared, the test was removed, and we
12480 # assume the GNU/Linux dynamic linker is in use.
12481 dynamic_linker
='GNU/Linux ld.so'
12488 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12489 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12490 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12491 dynamic_linker
='NetBSD (a.out) ld.so'
12493 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12494 soname_spec
='$libname$release$shared_ext$major'
12495 dynamic_linker
='NetBSD ld.elf_so'
12497 shlibpath_var
=LD_LIBRARY_PATH
12498 shlibpath_overrides_runpath
=yes
12499 hardcode_into_libs
=yes
12503 version_type
=linux
# correct to gnu/linux during the next big refactor
12504 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12505 shlibpath_var
=LD_LIBRARY_PATH
12506 shlibpath_overrides_runpath
=yes
12513 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12514 soname_spec
='$libname$release$shared_ext$major'
12515 shlibpath_var
=LD_LIBRARY_PATH
12516 shlibpath_overrides_runpath
=no
12517 hardcode_into_libs
=yes
12518 dynamic_linker
='ldqnx.so'
12521 openbsd
* | bitrig
*)
12523 sys_lib_dlsearch_path_spec
=/usr
/lib
12525 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12530 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12531 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12532 shlibpath_var
=LD_LIBRARY_PATH
12533 shlibpath_overrides_runpath
=yes
12537 libname_spec
='$name'
12538 version_type
=windows
12542 # OS/2 can only load a DLL with a base name of 8 characters or less.
12543 soname_spec
='`test -n "$os2dllname" && libname="$os2dllname";
12544 v=$($ECHO $release$versuffix | tr -d .-);
12545 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12546 $ECHO $n$v`$shared_ext'
12547 library_names_spec
='${libname}_dll.$libext'
12548 dynamic_linker
='OS/2 ld.exe'
12549 shlibpath_var
=BEGINLIBPATH
12550 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
12551 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12552 postinstall_cmds
='base_file=`basename \$file`~
12553 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12554 dldir=$destdir/`dirname \$dlpath`~
12555 test -d \$dldir || mkdir -p \$dldir~
12556 $install_prog $dir/$dlname \$dldir/$dlname~
12557 chmod a+x \$dldir/$dlname~
12558 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12559 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12561 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12562 dlpath=$dir/\$dldll~
12566 osf3
* | osf4
* | osf5
*)
12570 soname_spec
='$libname$release$shared_ext$major'
12571 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12572 shlibpath_var
=LD_LIBRARY_PATH
12573 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12574 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12582 version_type
=linux
# correct to gnu/linux during the next big refactor
12585 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12586 soname_spec
='$libname$release$shared_ext$major'
12587 shlibpath_var
=LD_LIBRARY_PATH
12588 shlibpath_overrides_runpath
=yes
12589 hardcode_into_libs
=yes
12590 # ldd complains unless libraries are executable
12591 postinstall_cmds
='chmod +x $lib'
12596 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12597 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12598 shlibpath_var
=LD_LIBRARY_PATH
12599 shlibpath_overrides_runpath
=yes
12600 if test yes = "$with_gnu_ld"; then
12607 version_type
=linux
# correct to gnu/linux during the next big refactor
12608 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12609 soname_spec
='$libname$release$shared_ext$major'
12610 shlibpath_var
=LD_LIBRARY_PATH
12611 case $host_vendor in
12613 shlibpath_overrides_runpath
=no
12615 runpath_var
=LD_RUN_PATH
12623 shlibpath_overrides_runpath
=no
12624 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12630 if test -d /usr
/nec
; then
12631 version_type
=linux
# correct to gnu/linux during the next big refactor
12632 library_names_spec
='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12633 soname_spec
='$libname$shared_ext.$major'
12634 shlibpath_var
=LD_LIBRARY_PATH
12638 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
12642 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12643 soname_spec
='$libname$release$shared_ext$major'
12644 shlibpath_var
=LD_LIBRARY_PATH
12645 shlibpath_overrides_runpath
=yes
12646 hardcode_into_libs
=yes
12647 if test yes = "$with_gnu_ld"; then
12648 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12650 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
12653 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
12657 sys_lib_dlsearch_path_spec
='/usr/lib'
12661 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12662 version_type
=linux
# correct to gnu/linux during the next big refactor
12665 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12666 shlibpath_var
=LD_LIBRARY_PATH
12667 shlibpath_overrides_runpath
=no
12668 hardcode_into_libs
=yes
12672 version_type
=linux
# correct to gnu/linux during the next big refactor
12673 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12674 soname_spec
='$libname$release$shared_ext$major'
12675 shlibpath_var
=LD_LIBRARY_PATH
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12683 $as_echo "$dynamic_linker" >&6; }
12684 test no
= "$dynamic_linker" && can_build_shared
=no
12686 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
12687 if test yes = "$GCC"; then
12688 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12691 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12692 sys_lib_search_path_spec
=$lt_cv_sys_lib_search_path_spec
12695 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12696 sys_lib_dlsearch_path_spec
=$lt_cv_sys_lib_dlsearch_path_spec
12699 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12700 configure_time_dlsearch_path
=$sys_lib_dlsearch_path_spec
12702 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12703 func_munge_path_list sys_lib_dlsearch_path_spec
"$LT_SYS_LIBRARY_PATH"
12705 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12706 configure_time_lt_sys_library_path
=$LT_SYS_LIBRARY_PATH
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12805 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12807 if test -n "$hardcode_libdir_flag_spec" ||
12808 test -n "$runpath_var" ||
12809 test yes = "$hardcode_automatic"; then
12811 # We can hardcode non-existent directories.
12812 if test no
!= "$hardcode_direct" &&
12813 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12814 # have to relink, otherwise we might link with an installed library
12815 # when we should be linking with a yet-to-be-installed one
12816 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12817 test no
!= "$hardcode_minus_L"; then
12818 # Linking always hardcodes the temporary library directory.
12819 hardcode_action
=relink
12821 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12822 hardcode_action
=immediate
12825 # We cannot hardcode anything, or else we can only hardcode existing
12827 hardcode_action
=unsupported
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12830 $as_echo "$hardcode_action" >&6; }
12832 if test relink
= "$hardcode_action" ||
12833 test yes = "$inherit_rpath"; then
12834 # Fast installation is not supported
12835 enable_fast_install
=no
12836 elif test yes = "$shlibpath_overrides_runpath" ||
12837 test no
= "$enable_shared"; then
12838 # Fast installation is not necessary
12839 enable_fast_install
=needless
12847 if test yes != "$enable_dlopen"; then
12848 enable_dlopen
=unknown
12849 enable_dlopen_self
=unknown
12850 enable_dlopen_self_static
=unknown
12857 lt_cv_dlopen
=load_add_on
12859 lt_cv_dlopen_self
=yes
12862 mingw
* | pw32
* | cegcc
*)
12863 lt_cv_dlopen
=LoadLibrary
12868 lt_cv_dlopen
=dlopen
12873 # if libdl is installed we need to link against it
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12875 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12876 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12877 $as_echo_n "(cached) " >&6
12879 ac_check_lib_save_LIBS
=$LIBS
12881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12882 /* end confdefs.h. */
12884 /* Override any GCC internal prototype to avoid an error.
12885 Use char because int might match the return type of a GCC
12886 builtin and then its argument prototype would still apply. */
12899 if ac_fn_c_try_link
"$LINENO"; then :
12900 ac_cv_lib_dl_dlopen
=yes
12902 ac_cv_lib_dl_dlopen
=no
12904 rm -f core conftest.err conftest.
$ac_objext \
12905 conftest
$ac_exeext conftest.
$ac_ext
12906 LIBS
=$ac_check_lib_save_LIBS
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12909 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12910 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12911 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
12916 lt_cv_dlopen_self
=yes
12923 # Don't try to run any link tests for TPF. We know it's impossible
12924 # because TPF is a cross-compiler, and we know how we open DSOs.
12925 lt_cv_dlopen
=dlopen
12927 lt_cv_dlopen_self
=no
12931 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
12932 if test "x$ac_cv_func_shl_load" = xyes
; then :
12933 lt_cv_dlopen
=shl_load
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12936 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12937 if ${ac_cv_lib_dld_shl_load+:} false
; then :
12938 $as_echo_n "(cached) " >&6
12940 ac_check_lib_save_LIBS
=$LIBS
12942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h. */
12945 /* Override any GCC internal prototype to avoid an error.
12946 Use char because int might match the return type of a GCC
12947 builtin and then its argument prototype would still apply. */
12955 return shl_load ();
12960 if ac_fn_c_try_link
"$LINENO"; then :
12961 ac_cv_lib_dld_shl_load
=yes
12963 ac_cv_lib_dld_shl_load
=no
12965 rm -f core conftest.err conftest.
$ac_objext \
12966 conftest
$ac_exeext conftest.
$ac_ext
12967 LIBS
=$ac_check_lib_save_LIBS
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12970 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12971 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
12972 lt_cv_dlopen
=shl_load lt_cv_dlopen_libs
=-ldld
12974 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
12975 if test "x$ac_cv_func_dlopen" = xyes
; then :
12976 lt_cv_dlopen
=dlopen
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12979 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12980 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12981 $as_echo_n "(cached) " >&6
12983 ac_check_lib_save_LIBS
=$LIBS
12985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12986 /* end confdefs.h. */
12988 /* Override any GCC internal prototype to avoid an error.
12989 Use char because int might match the return type of a GCC
12990 builtin and then its argument prototype would still apply. */
13003 if ac_fn_c_try_link
"$LINENO"; then :
13004 ac_cv_lib_dl_dlopen
=yes
13006 ac_cv_lib_dl_dlopen
=no
13008 rm -f core conftest.err conftest.
$ac_objext \
13009 conftest
$ac_exeext conftest.
$ac_ext
13010 LIBS
=$ac_check_lib_save_LIBS
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13013 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13014 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
13015 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13018 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13019 if ${ac_cv_lib_svld_dlopen+:} false
; then :
13020 $as_echo_n "(cached) " >&6
13022 ac_check_lib_save_LIBS
=$LIBS
13023 LIBS
="-lsvld $LIBS"
13024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13025 /* end confdefs.h. */
13027 /* Override any GCC internal prototype to avoid an error.
13028 Use char because int might match the return type of a GCC
13029 builtin and then its argument prototype would still apply. */
13042 if ac_fn_c_try_link
"$LINENO"; then :
13043 ac_cv_lib_svld_dlopen
=yes
13045 ac_cv_lib_svld_dlopen
=no
13047 rm -f core conftest.err conftest.
$ac_objext \
13048 conftest
$ac_exeext conftest.
$ac_ext
13049 LIBS
=$ac_check_lib_save_LIBS
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13052 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13053 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
13054 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-lsvld
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13057 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13058 if ${ac_cv_lib_dld_dld_link+:} false
; then :
13059 $as_echo_n "(cached) " >&6
13061 ac_check_lib_save_LIBS
=$LIBS
13063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13066 /* Override any GCC internal prototype to avoid an error.
13067 Use char because int might match the return type of a GCC
13068 builtin and then its argument prototype would still apply. */
13076 return dld_link ();
13081 if ac_fn_c_try_link
"$LINENO"; then :
13082 ac_cv_lib_dld_dld_link
=yes
13084 ac_cv_lib_dld_dld_link
=no
13086 rm -f core conftest.err conftest.
$ac_objext \
13087 conftest
$ac_exeext conftest.
$ac_ext
13088 LIBS
=$ac_check_lib_save_LIBS
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13091 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13092 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
13093 lt_cv_dlopen
=dld_link lt_cv_dlopen_libs
=-ldld
13114 if test no
= "$lt_cv_dlopen"; then
13120 case $lt_cv_dlopen in
13122 save_CPPFLAGS
=$CPPFLAGS
13123 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
13125 save_LDFLAGS
=$LDFLAGS
13126 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
13129 LIBS
="$lt_cv_dlopen_libs $LIBS"
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13132 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13133 if ${lt_cv_dlopen_self+:} false
; then :
13134 $as_echo_n "(cached) " >&6
13136 if test yes = "$cross_compiling"; then :
13137 lt_cv_dlopen_self
=cross
13139 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13140 lt_status
=$lt_dlunknown
13141 cat > conftest.
$ac_ext <<_LT_EOF
13142 #line $LINENO "configure"
13143 #include "confdefs.h"
13152 # define LT_DLGLOBAL RTLD_GLOBAL
13155 # define LT_DLGLOBAL DL_GLOBAL
13157 # define LT_DLGLOBAL 0
13161 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13162 find out it does not work in some platform. */
13163 #ifndef LT_DLLAZY_OR_NOW
13165 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13168 # define LT_DLLAZY_OR_NOW DL_LAZY
13171 # define LT_DLLAZY_OR_NOW RTLD_NOW
13174 # define LT_DLLAZY_OR_NOW DL_NOW
13176 # define LT_DLLAZY_OR_NOW 0
13183 /* When -fvisibility=hidden is used, assume the code has been annotated
13184 correspondingly for the symbols needed. */
13185 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13186 int fnord () __attribute__((visibility("default")));
13189 int fnord () { return 42; }
13192 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13193 int status = $lt_dlunknown;
13197 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13200 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13201 else puts (dlerror ());
13203 /* dlclose (self); */
13211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13212 (eval $ac_link) 2>&5
13214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13215 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
13216 (.
/conftest
; exit; ) >&5 2>/dev
/null
13218 case x
$lt_status in
13219 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
13220 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
13221 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
13224 # compilation failed
13225 lt_cv_dlopen_self
=no
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13233 $as_echo "$lt_cv_dlopen_self" >&6; }
13235 if test yes = "$lt_cv_dlopen_self"; then
13236 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13238 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13239 if ${lt_cv_dlopen_self_static+:} false
; then :
13240 $as_echo_n "(cached) " >&6
13242 if test yes = "$cross_compiling"; then :
13243 lt_cv_dlopen_self_static
=cross
13245 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13246 lt_status
=$lt_dlunknown
13247 cat > conftest.
$ac_ext <<_LT_EOF
13248 #line $LINENO "configure"
13249 #include "confdefs.h"
13258 # define LT_DLGLOBAL RTLD_GLOBAL
13261 # define LT_DLGLOBAL DL_GLOBAL
13263 # define LT_DLGLOBAL 0
13267 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13268 find out it does not work in some platform. */
13269 #ifndef LT_DLLAZY_OR_NOW
13271 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13274 # define LT_DLLAZY_OR_NOW DL_LAZY
13277 # define LT_DLLAZY_OR_NOW RTLD_NOW
13280 # define LT_DLLAZY_OR_NOW DL_NOW
13282 # define LT_DLLAZY_OR_NOW 0
13289 /* When -fvisibility=hidden is used, assume the code has been annotated
13290 correspondingly for the symbols needed. */
13291 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13292 int fnord () __attribute__((visibility("default")));
13295 int fnord () { return 42; }
13298 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13299 int status = $lt_dlunknown;
13303 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13306 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13307 else puts (dlerror ());
13309 /* dlclose (self); */
13317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13318 (eval $ac_link) 2>&5
13320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13321 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
13322 (.
/conftest
; exit; ) >&5 2>/dev
/null
13324 case x
$lt_status in
13325 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
13326 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
13327 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
13330 # compilation failed
13331 lt_cv_dlopen_self_static
=no
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13339 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13342 CPPFLAGS
=$save_CPPFLAGS
13343 LDFLAGS
=$save_LDFLAGS
13348 case $lt_cv_dlopen_self in
13349 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
13350 *) enable_dlopen_self
=unknown
;;
13353 case $lt_cv_dlopen_self_static in
13354 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
13355 *) enable_dlopen_self_static
=unknown
;;
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13378 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13379 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
13380 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
13381 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13383 $as_echo "yes" >&6; }
13385 # FIXME - insert some real tests, host_os isn't really good enough
13388 if test -n "$STRIP"; then
13389 striplib
="$STRIP -x"
13390 old_striplib
="$STRIP -S"
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13392 $as_echo "yes" >&6; }
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395 $as_echo "no" >&6; }
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400 $as_echo "no" >&6; }
13416 # Report what library types will actually be built
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13418 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13420 $as_echo "$can_build_shared" >&6; }
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13423 $as_echo_n "checking whether to build shared libraries... " >&6; }
13424 test no
= "$can_build_shared" && enable_shared
=no
13426 # On AIX, shared libraries and static libraries use the same namespace, and
13427 # are all built from PIC.
13430 test yes = "$enable_shared" && enable_static
=no
13431 if test -n "$RANLIB"; then
13432 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13433 postinstall_cmds
='$RANLIB $lib'
13438 if test ia64
!= "$host_cpu"; then
13439 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13440 yes,aix
,yes) ;; # shared object as lib.so file only
13441 yes,svr4
,*) ;; # shared object as lib.so archive member only
13442 yes,*) enable_static
=no
;; # shared object in lib.a archive as well
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13448 $as_echo "$enable_shared" >&6; }
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13451 $as_echo_n "checking whether to build static libraries... " >&6; }
13452 # Make sure either enable_shared or enable_static is yes.
13453 test yes = "$enable_shared" || enable_static
=yes
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13455 $as_echo "$enable_static" >&6; }
13462 ac_cpp
='$CPP $CPPFLAGS'
13463 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13464 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13465 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13483 ac_config_commands
="$ac_config_commands libtool"
13488 # Only expand once:
13492 # Select memory manager depending on user input.
13493 # If no "-enable-maxmem", use jmemnobs
13494 MEMORYMGR
='jmemnobs'
13496 # Check whether --enable-maxmem was given.
13497 if test "${enable_maxmem+set}" = set; then :
13498 enableval
=$enable_maxmem; MAXMEM
="$enableval"
13501 if test "x$MAXMEM" = xyes
; then
13504 if test "x$MAXMEM" != xno
; then
13505 if test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then
13506 as_fn_error $?
"non-numeric argument to --enable-maxmem" "$LINENO" 5
13508 DEFAULTMAXMEM
=`expr $MAXMEM \* 1048576`
13510 cat >>confdefs.h
<<_ACEOF
13511 #define DEFAULT_MAX_MEM ${DEFAULTMAXMEM}
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'tmpfile()'" >&5
13515 $as_echo_n "checking for 'tmpfile()'... " >&6; }
13516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13517 /* end confdefs.h. */
13522 FILE * tfile = tmpfile();
13527 if ac_fn_c_try_link
"$LINENO"; then :
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13529 $as_echo "yes" >&6; }
13530 MEMORYMGR
='jmemansi'
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533 $as_echo "no" >&6; }
13534 MEMORYMGR
='jmemname'
13536 # Test for the need to remove temporary files using a signal handler
13537 # (for cjpeg/djpeg)
13539 $as_echo "#define NEED_SIGNAL_CATCHER 1" >>confdefs.h
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'mktemp()'" >&5
13542 $as_echo_n "checking for 'mktemp()'... " >&6; }
13543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h. */
13549 char fname[80]; mktemp(fname);
13554 if ac_fn_c_try_link
"$LINENO"; then :
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13556 $as_echo "yes" >&6; }
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13559 $as_echo "no" >&6; }
13561 $as_echo "#define NO_MKTEMP 1" >>confdefs.h
13564 rm -f core conftest.err conftest.
$ac_objext \
13565 conftest
$ac_exeext conftest.
$ac_ext
13567 rm -f core conftest.err conftest.
$ac_objext \
13568 conftest
$ac_exeext conftest.
$ac_ext
13572 # Extract the library version IDs from jpeglib.h.
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libjpeg version number" >&5
13574 $as_echo_n "checking libjpeg version number... " >&6; }
13575 major
=`sed -ne 's/^#define JPEG_LIB_VERSION_MAJOR *\([0-9][0-9]*\).*$/\1/p' $srcdir/jpeglib.h`
13576 minor
=`sed -ne 's/^#define JPEG_LIB_VERSION_MINOR *\([0-9][0-9]*\).*$/\1/p' $srcdir/jpeglib.h`
13577 JPEG_LIB_VERSION
=`expr $major + $minor`:0:$minor
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JPEG_LIB_VERSION" >&5
13580 $as_echo "$JPEG_LIB_VERSION" >&6; }
13582 ac_config_files
="$ac_config_files Makefile"
13584 cat >confcache
<<\_ACEOF
13585 # This file is a shell script that caches the results of configure
13586 # tests run on this system so they can be shared between configure
13587 # scripts and configure runs, see configure's option --config-cache.
13588 # It is not useful on other systems. If it contains results you don't
13589 # want to keep, you may remove or edit it.
13591 # config.status only pays attention to the cache file if you give it
13592 # the --recheck option to rerun configure.
13594 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13595 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13596 # following values.
13600 # The following way of writing the cache mishandles newlines in values,
13601 # but we know of no workaround that is simple, portable, and efficient.
13602 # So, we kill variables containing newlines.
13603 # Ultrix sh set writes to stderr and can't be redirected directly,
13604 # and sets the high bit in the cache file unless we assign to the vars.
13606 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13607 eval ac_val
=\$
$ac_var
13611 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13612 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13615 _ | IFS | as_nl
) ;; #(
13616 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
13617 *) { eval $ac_var=; unset $ac_var;} ;;
13623 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13624 *${as_nl}ac_space
=\
*)
13625 # `set' does not quote correctly, so add quotes: double-quote
13626 # substitution turns \\\\ into \\, and sed turns \\ into \.
13629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13632 # `set' quotes correctly as required by POSIX, so do not add quotes.
13633 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13642 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13644 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13646 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
13647 if test -w "$cache_file"; then
13648 if test "x$cache_file" != "x/dev/null"; then
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13650 $as_echo "$as_me: updating cache $cache_file" >&6;}
13651 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
13652 cat confcache
>"$cache_file"
13654 case $cache_file in #(
13656 mv -f confcache
"$cache_file"$$
&&
13657 mv -f "$cache_file"$$
"$cache_file" ;; #(
13659 mv -f confcache
"$cache_file" ;;
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13665 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13670 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13671 # Let make expand exec_prefix.
13672 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13674 DEFS
=-DHAVE_CONFIG_H
13679 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13680 # 1. Remove the extension, and $U if already installed.
13681 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
13682 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
13683 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13684 # will be set to the directory where LIBOBJS objects are built.
13685 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13686 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
13688 LIBOBJS
=$ac_libobjs
13690 LTLIBOBJS
=$ac_ltlibobjs
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13694 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13695 if test -n "$am_sleep_pid"; then
13696 # Hide warnings about reused PIDs.
13697 wait $am_sleep_pid 2>/dev
/null
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13700 $as_echo "done" >&6; }
13701 if test -n "$EXEEXT"; then
13703 am__EXEEXT_FALSE
='#'
13705 am__EXEEXT_TRUE
='#'
13709 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13710 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
13711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13713 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13714 as_fn_error $?
"conditional \"AMDEP\" was never defined.
13715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13717 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13718 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
13719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13721 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
13722 as_fn_error $?
"conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
13723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13726 : "${CONFIG_STATUS=./config.status}"
13728 ac_clean_files_save
=$ac_clean_files
13729 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13731 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13733 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13735 # Generated by $as_me.
13736 # Run this file to recreate the current configuration.
13737 # Compiler output produced by configure, useful for debugging
13738 # configure, is in config.log if it exists.
13741 ac_cs_recheck=false
13744 SHELL=\${CONFIG_SHELL-$SHELL}
13747 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
13748 ## -------------------- ##
13749 ## M4sh Initialization. ##
13750 ## -------------------- ##
13752 # Be more Bourne compatible
13753 DUALCASE
=1; export DUALCASE
# for MKS sh
13754 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
13757 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13758 # is contrary to our usage. Disable this feature.
13759 alias -g '${1+"$@"}'='"$@"'
13760 setopt NO_GLOB_SUBST
13762 case `(set -o) 2>/dev/null` in #(
13774 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13775 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13776 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13777 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13778 # Prefer a ksh shell builtin over an external printf program on Solaris,
13779 # but without wasting forks for bash or zsh.
13780 if test -z "$BASH_VERSION$ZSH_VERSION" \
13781 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13782 as_echo='print
-r --'
13783 as_echo_n='print
-rn --'
13784 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13785 as_echo='printf %s
\n'
13786 as_echo_n='printf %s
'
13788 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13789 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
13790 as_echo_n='/usr
/ucb
/echo -n'
13792 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13793 as_echo_n_body='eval
13797 expr "X$arg" : "X\\(.*\\)$as_nl";
13798 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13800 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
13802 export as_echo_n_body
13803 as_echo_n='sh
-c $as_echo_n_body as_echo
'
13805 export as_echo_body
13806 as_echo='sh
-c $as_echo_body as_echo
'
13809 # The user is always right.
13810 if test "${PATH_SEPARATOR+set}" != set; then
13812 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13813 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13820 # We need space, tab and new line, in precisely that order. Quoting is
13821 # there to prevent editors from complaining about space-tab.
13822 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13823 # splitting by setting IFS to empty value.)
13826 # Find who we are. Look in the path if we contain no directory separator.
13829 *[\\/]* ) as_myself=$0 ;;
13830 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13831 for as_dir in $PATH
13834 test -z "$as_dir" && as_dir=.
13835 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13841 # We did not find ourselves, most probably we were run as `sh COMMAND'
13842 # in which case we are not to be found in the path.
13843 if test "x$as_myself" = x
; then
13846 if test ! -f "$as_myself"; then
13847 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13851 # Unset variables that we do not need and which cause bugs (e.g. in
13852 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13853 # suppresses any "Segmentation fault" message there. '((' could
13854 # trigger a bug in pdksh 5.2.14.
13855 for as_var
in BASH_ENV ENV MAIL MAILPATH
13856 do eval test x\
${$as_var+set} = xset \
13857 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
13870 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
13873 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13874 # ----------------------------------------
13875 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13876 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13877 # script with STATUS, using 1 if that was 0.
13880 as_status
=$1; test $as_status -eq 0 && as_status
=1
13882 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
13883 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13885 $as_echo "$as_me: error: $2" >&2
13886 as_fn_exit
$as_status
13890 # as_fn_set_status STATUS
13891 # -----------------------
13892 # Set $? to STATUS, without forking.
13893 as_fn_set_status
()
13896 } # as_fn_set_status
13898 # as_fn_exit STATUS
13899 # -----------------
13900 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13904 as_fn_set_status
$1
13910 # Portably unset VAR.
13913 { eval $1=; unset $1;}
13915 as_unset
=as_fn_unset
13916 # as_fn_append VAR VALUE
13917 # ----------------------
13918 # Append the text in VALUE to the end of the definition contained in VAR. Take
13919 # advantage of any shell optimizations that allow amortized linear growth over
13920 # repeated appends, instead of the typical quadratic growth present in naive
13922 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
13923 eval 'as_fn_append ()
13934 # as_fn_arith ARG...
13935 # ------------------
13936 # Perform arithmetic evaluation on the ARGs, and store the result in the
13937 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13938 # must be portable across $(()) and expr.
13939 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
13940 eval 'as_fn_arith ()
13947 as_val
=`expr "$@" || test $? -eq 1`
13952 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13953 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13959 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13960 as_basename
=basename
13965 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
13971 as_me
=`$as_basename -- "$0" ||
13972 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13973 X"$0" : 'X\(//\)$' \| \
13974 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13976 sed '/^.*\/\([^/][^/]*\)\/*$/{
13990 # Avoid depending upon Character Ranges.
13991 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13992 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13993 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13994 as_cr_digits
='0123456789'
13995 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13997 ECHO_C
= ECHO_N
= ECHO_T
=
13998 case `echo -n x` in #(((((
14000 case `echo 'xy\c'` in
14001 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14003 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14010 rm -f conf$$ conf$$.exe conf$$.
file
14011 if test -d conf$$.dir
; then
14012 rm -f conf$$.dir
/conf$$.
file
14015 mkdir conf$$.dir
2>/dev
/null
14017 if (echo >conf$$.
file) 2>/dev
/null
; then
14018 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14020 # ... but there are two gotchas:
14021 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14022 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14023 # In both cases, we have to default to `cp -pR'.
14024 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14026 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14034 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14035 rmdir conf$$.dir
2>/dev
/null
14040 # Create "$as_dir" as a directory, including parents if necessary.
14045 -*) as_dir
=.
/$as_dir;;
14047 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
14051 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14052 *) as_qdir
=$as_dir;;
14054 as_dirs
="'$as_qdir' $as_dirs"
14055 as_dir
=`$as_dirname -- "$as_dir" ||
14056 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14057 X"$as_dir" : 'X\(//\)[^/]' \| \
14058 X"$as_dir" : 'X\(//\)$' \| \
14059 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14060 $as_echo X"$as_dir" |
14061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14065 /^X\(\/\/\)[^/].*/{
14078 test -d "$as_dir" && break
14080 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14081 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
14085 if mkdir
-p .
2>/dev
/null
; then
14086 as_mkdir_p
='mkdir -p "$as_dir"'
14088 test -d .
/-p && rmdir .
/-p
14093 # as_fn_executable_p FILE
14094 # -----------------------
14095 # Test if FILE is an executable regular file.
14096 as_fn_executable_p
()
14098 test -f "$1" && test -x "$1"
14099 } # as_fn_executable_p
14100 as_test_x
='test -x'
14101 as_executable_p
=as_fn_executable_p
14103 # Sed expression to map a string onto a valid CPP name.
14104 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14106 # Sed expression to map a string onto a valid variable name.
14107 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14111 ## ----------------------------------- ##
14112 ## Main body of $CONFIG_STATUS script. ##
14113 ## ----------------------------------- ##
14115 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14118 # Save the log message, to keep $0 and so on meaningful, and to
14119 # report actual input values of CONFIG_FILES etc. instead of their
14120 # values after options handling.
14122 This file was extended by libjpeg $as_me 9.2.0, which was
14123 generated by GNU Autoconf 2.69. Invocation command line was
14125 CONFIG_FILES = $CONFIG_FILES
14126 CONFIG_HEADERS = $CONFIG_HEADERS
14127 CONFIG_LINKS = $CONFIG_LINKS
14128 CONFIG_COMMANDS = $CONFIG_COMMANDS
14131 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14136 case $ac_config_files in *"
14137 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
14140 case $ac_config_headers in *"
14141 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
14145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14146 # Files that config.status was made for.
14147 config_files="$ac_config_files"
14148 config_headers="$ac_config_headers"
14149 config_commands="$ac_config_commands"
14153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14155 \`$as_me' instantiates files and other configuration actions
14156 from templates according to the current configuration. Unless the files
14157 and actions are specified as TAGs, all are instantiated by default.
14159 Usage: $0 [OPTION]... [TAG]...
14161 -h, --help print this help, then exit
14162 -V, --version print version number and configuration settings, then exit
14163 --config print configuration, then exit
14164 -q, --quiet, --silent
14165 do not print progress messages
14166 -d, --debug don't remove temporary files
14167 --recheck update $as_me by reconfiguring in the same conditions
14168 --file=FILE[:TEMPLATE]
14169 instantiate the configuration file FILE
14170 --header=FILE[:TEMPLATE]
14171 instantiate the configuration header FILE
14173 Configuration files:
14176 Configuration headers:
14179 Configuration commands:
14182 Report bugs to the package provider."
14185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14186 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14188 libjpeg config.status 9.2.0
14189 configured by $0, generated by GNU Autoconf 2.69,
14190 with options \\"\$ac_cs_config\\"
14192 Copyright (C) 2012 Free Software Foundation, Inc.
14193 This config.status script is free software; the Free Software Foundation
14194 gives unlimited permission to copy, distribute and modify it."
14201 test -n "\$AWK" || AWK=awk
14204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14205 # The default lists apply if the user does not specify any file.
14211 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14212 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14216 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14228 # Handling of the options.
14229 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14231 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14232 $as_echo "$ac_cs_version"; exit ;;
14233 --config |
--confi |
--conf |
--con |
--co |
--c )
14234 $as_echo "$ac_cs_config"; exit ;;
14235 --debug |
--debu |
--deb |
--de |
--d |
-d )
14237 --file |
--fil |
--fi |
--f )
14240 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14241 '') as_fn_error $?
"missing file argument" ;;
14243 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14244 ac_need_defaults
=false
;;
14245 --header |
--heade |
--head |
--hea )
14248 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14250 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14251 ac_need_defaults
=false
;;
14253 # Conflict between --help and --header
14254 as_fn_error $?
"ambiguous option: \`$1'
14255 Try \`$0 --help' for more information.";;
14256 --help |
--hel |
-h )
14257 $as_echo "$ac_cs_usage"; exit ;;
14258 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14259 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14262 # This is an error.
14263 -*) as_fn_error $?
"unrecognized option: \`$1'
14264 Try \`$0 --help' for more information." ;;
14266 *) as_fn_append ac_config_targets
" $1"
14267 ac_need_defaults
=false
;;
14273 ac_configure_extra_args
=
14275 if $ac_cs_silent; then
14277 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14282 if \$ac_cs_recheck; then
14283 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14285 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14286 CONFIG_SHELL='$SHELL'
14287 export CONFIG_SHELL
14292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14296 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14297 ## Running $as_me. ##
14303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14307 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14310 # The HP-UX ksh and POSIX shell print the target directory to stdout
14311 # if CDPATH is set.
14312 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14314 sed_quote_subst='$sed_quote_subst'
14315 double_quote_subst='$double_quote_subst'
14316 delay_variable_subst='$delay_variable_subst'
14317 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14318 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14319 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14320 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14321 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14322 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14323 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14324 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14325 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14326 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14327 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14328 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14329 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14330 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14331 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14332 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14333 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14334 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14335 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14336 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14337 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14338 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14339 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14340 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14341 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14342 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14343 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14344 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14345 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14346 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14347 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14348 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14349 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14350 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14351 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14352 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14353 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14354 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14355 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14356 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14357 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14358 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14359 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14360 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14361 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14362 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14363 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14364 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14365 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14366 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14367 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14368 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14369 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14370 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14371 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14372 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14373 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14374 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14375 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14376 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"`'
14377 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14378 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14379 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14380 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14381 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14382 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14383 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14384 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14385 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14386 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14387 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14388 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14389 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14390 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14391 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14392 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14393 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14394 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14395 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14396 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14397 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14398 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14399 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14400 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14401 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14402 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14403 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14404 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14405 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14406 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14407 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14408 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14409 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14410 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14411 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14412 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14413 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14414 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14415 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14416 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14417 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14418 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14419 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14420 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14421 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14422 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14423 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14424 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14425 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14426 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14427 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14428 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14429 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14430 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14431 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14432 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14433 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14434 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14435 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14436 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14437 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14438 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14439 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14440 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14441 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14442 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14443 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14444 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14445 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14446 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14447 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14448 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14449 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14450 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14451 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14452 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14455 LTCFLAGS='$LTCFLAGS'
14456 compiler='$compiler_DEFAULT'
14458 # A function that is used when there is no print builtin or printf.
14459 func_fallback_echo ()
14461 eval 'cat <<_LTECHO_EOF
14466 # Quote evaled strings.
14483 deplibs_check_method \
14487 sharedlib_from_linklib_cmd \
14490 archiver_list_spec \
14496 lt_cv_sys_global_symbol_pipe \
14497 lt_cv_sys_global_symbol_to_cdecl \
14498 lt_cv_sys_global_symbol_to_import \
14499 lt_cv_sys_global_symbol_to_c_name_address \
14500 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14501 lt_cv_nm_interface \
14502 nm_file_list_spec \
14503 lt_cv_truncate_bin \
14504 lt_prog_compiler_no_builtin_flag \
14505 lt_prog_compiler_pic \
14506 lt_prog_compiler_wl \
14507 lt_prog_compiler_static \
14508 lt_cv_prog_compiler_c_o \
14517 export_dynamic_flag_spec \
14518 whole_archive_flag_spec \
14519 compiler_needs_object \
14521 allow_undefined_flag \
14522 no_undefined_flag \
14523 hardcode_libdir_flag_spec \
14524 hardcode_libdir_separator \
14528 variables_saved_for_relink \
14530 library_names_spec \
14532 install_override_mode \
14536 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14537 *[\\\\\\\`\\"\\\$]*)
14538 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14541 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14546 # Double-quote double-evaled strings.
14547 for var in reload_cmds \
14548 old_postinstall_cmds \
14549 old_postuninstall_cmds \
14551 extract_expsyms_cmds \
14552 old_archive_from_new_cmds \
14553 old_archive_from_expsyms_cmds \
14555 archive_expsym_cmds \
14557 module_expsym_cmds \
14558 export_symbols_cmds \
14562 postuninstall_cmds \
14564 sys_lib_search_path_spec \
14565 configure_time_dlsearch_path \
14566 configure_time_lt_sys_library_path; do
14567 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14568 *[\\\\\\\`\\"\\\$]*)
14569 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14572 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14577 ac_aux_dir='$ac_aux_dir'
14579 # See if we are running on zsh, and set the options that allow our
14580 # commands through without removal of \ escapes INIT.
14581 if test -n "\${ZSH_VERSION+set}"; then
14582 setopt NO_GLOB_SUBST
14596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14598 # Handling of arguments.
14599 for ac_config_target
in $ac_config_targets
14601 case $ac_config_target in
14602 "jconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS jconfig.h:jconfig.cfg" ;;
14603 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
14604 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
14605 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14607 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14612 # If the user did not use the arguments to specify the items to instantiate,
14613 # then the envvar interface is used. Set only those that are not.
14614 # We use the long form for the default assignment because of an extremely
14615 # bizarre bug on SunOS 4.1.3.
14616 if $ac_need_defaults; then
14617 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14618 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14619 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14622 # Have a temporary directory for convenience. Make it in the build tree
14623 # simply because there is no reason against having it here, and in addition,
14624 # creating and moving files from /tmp can sometimes cause problems.
14625 # Hook for its removal unless debugging.
14626 # Note that there is a small window in which the directory will not be cleaned:
14627 # after its creation but before its name has been assigned to `$tmp'.
14631 trap 'exit_status=$?
14632 : "${ac_tmp:=$tmp}"
14633 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14635 trap 'as_fn_exit 1' 1 2 13 15
14637 # Create a (secure) tmp directory for tmp files.
14640 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14644 tmp
=.
/conf$$
-$RANDOM
14645 (umask 077 && mkdir
"$tmp")
14646 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
14649 # Set up the scripts for CONFIG_FILES section.
14650 # No need to generate them if there are no CONFIG_FILES.
14651 # This happens for instance with `./config.status config.h'.
14652 if test -n "$CONFIG_FILES"; then
14655 ac_cr
=`echo X | tr X '\015'`
14656 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14657 # But we know of no other shell where ac_cr would be empty at this
14658 # point, so we can use a bashism as a fallback.
14659 if test "x$ac_cr" = x
; then
14660 eval ac_cr
=\$
\'\\r
\'
14662 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14663 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14666 ac_cs_awk_cr
=$ac_cr
14669 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14674 echo "cat >conf$$subs.awk <<_ACEOF" &&
14675 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14677 } >conf$$subs.sh ||
14678 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14679 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14681 for ac_last_try in false false false false false :; do
14682 . ./conf$$subs.sh ||
14683 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14685 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
14686 if test $ac_delim_n = $ac_delim_num; then
14688 elif $ac_last_try; then
14689 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14691 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14694 rm -f conf$$subs.sh
14696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14697 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
14701 s/^/S["/; s
/!.
*/"]=/
14711 s/\(.\{148\}\)..*/\1/
14713 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
14718 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14725 s/\(.\{148\}\)..*/\1/
14727 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
14731 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14736 ' <conf$$subs.awk | sed '
14741 ' >>$CONFIG_STATUS || ac_write_fail=1
14742 rm -f conf$$subs.awk
14743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14745 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
14746 for (key in S) S_is_set[key] = 1
14752 nfields = split(line, field, "@
")
14754 len = length(field[1])
14755 for (i = 2; i < nfields; i++) {
14757 keylen = length(key)
14758 if (S_is_set[key]) {
14760 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14761 len += length(value) + length(field[++i])
14772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14773 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14774 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
14777 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
14778 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
14781 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14782 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
14783 # trailing colons and then remove the whole line if VPATH becomes empty
14784 # (actually we leave an empty line to preserve line numbers).
14785 if test "x
$srcdir" = x.; then
14786 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14805 fi # test -n "$CONFIG_FILES"
14807 # Set up the scripts for CONFIG_HEADERS section.
14808 # No need to generate them if there are no CONFIG_HEADERS.
14809 # This happens for instance with `./config.status Makefile'.
14810 if test -n "$CONFIG_HEADERS"; then
14811 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
14815 # Transform confdefs.h into an awk script `defines.awk', embedded as
14816 # here-document in config.status, that substitutes the proper values into
14817 # config.h.in to produce config.h.
14819 # Create a delimiter string that does not exist in confdefs.h, to ease
14820 # handling of long lines.
14822 for ac_last_try in false false :; do
14823 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
14824 if test -z "$ac_tt"; then
14826 elif $ac_last_try; then
14827 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
14829 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14833 # For the awk script, D is an array of macro values keyed by name,
14834 # likewise P contains macro parameters if any. Preserve backslash
14835 # newline sequences.
14837 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14839 s/.\{148\}/&'"$ac_delim"'/g
14842 s/^[ ]*#[ ]*define[ ][ ]*/ /
14849 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
14851 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
14855 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
14856 D["\
1"]=" \
3\\\\\\n
"\\/p
14858 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
14863 s/.\{148\}/&'"$ac_delim"'/g
14868 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
14871 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
14873 ' <confdefs.h | sed '
14874 s/'"$ac_delim"'/"\\\
14875 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14878 for (key in D) D_is_set[key] = 1
14881 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14883 split(line, arg, " ")
14884 if (arg[1] == "#") {
14888 defundef
= substr
(arg
[1], 2)
14891 split(mac1
, mac2
, "(") #)
14893 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
14894 if (D_is_set
[macro
]) {
14895 # Preserve the white space surrounding the "#".
14896 print prefix
"define", macro P
[macro
] D
[macro
]
14899 # Replace #undef with comments. This is necessary, for example,
14900 # in the case of _POSIX_SOURCE, which is predefined and required
14901 # on some systems where configure will not decide to define it.
14902 if (defundef
== "undef") {
14903 print
"/*", prefix defundef
, macro
, "*/"
14911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14912 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
14913 fi # test -n "$CONFIG_HEADERS"
14916 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14921 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14923 case $ac_mode$ac_tag in
14925 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
14926 :[FH
]-) ac_tag
=-:-;;
14927 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14944 -) ac_f
="$ac_tmp/stdin";;
14945 *) # Look for the file first in the build tree, then in the source tree
14946 # (if the path is not absolute). The absolute path cannot be DOS-style,
14947 # because $ac_f cannot contain `:'.
14951 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14953 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14955 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14956 as_fn_append ac_file_inputs
" '$ac_f'"
14959 # Let's still pretend it is `configure' which instantiates (i.e., don't
14960 # use $as_me), people would be surprised to read:
14961 # /* config.h. Generated by config.status. */
14962 configure_input
='Generated from '`
14963 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14965 if test x
"$ac_file" != x-
; then
14966 configure_input
="$ac_file. $configure_input"
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14968 $as_echo "$as_me: creating $ac_file" >&6;}
14970 # Neutralize special characters interpreted by sed in replacement strings.
14971 case $configure_input in #(
14972 *\
&* |
*\|
* |
*\\* )
14973 ac_sed_conf_input
=`$as_echo "$configure_input" |
14974 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14975 *) ac_sed_conf_input
=$configure_input;;
14979 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
14980 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
14985 ac_dir
=`$as_dirname -- "$ac_file" ||
14986 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14987 X"$ac_file" : 'X\(//\)[^/]' \| \
14988 X"$ac_file" : 'X\(//\)$' \| \
14989 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14990 $as_echo X"$ac_file" |
14991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14995 /^X\(\/\/\)[^/].*/{
15008 as_dir
="$ac_dir"; as_fn_mkdir_p
15012 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15014 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15015 # A ".." for each directory in $ac_dir_suffix.
15016 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15017 case $ac_top_builddir_sub in
15018 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15019 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15022 ac_abs_top_builddir
=$ac_pwd
15023 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15024 # for backward compatibility:
15025 ac_top_builddir
=$ac_top_build_prefix
15028 .
) # We are building in place.
15030 ac_top_srcdir
=$ac_top_builddir_sub
15031 ac_abs_top_srcdir
=$ac_pwd ;;
15032 [\\/]* | ?
:[\\/]* ) # Absolute name.
15033 ac_srcdir
=$srcdir$ac_dir_suffix;
15034 ac_top_srcdir
=$srcdir
15035 ac_abs_top_srcdir
=$srcdir ;;
15036 *) # Relative name.
15037 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15038 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15039 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15041 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15051 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15052 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15054 ac_MKDIR_P
=$MKDIR_P
15056 [\\/$
]* | ?
:[\\/]* ) ;;
15057 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
15061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15062 # If the template does not know about datarootdir, expand it.
15063 # FIXME: This hack should be removed a few years after 2.60.
15064 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15075 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15076 *datarootdir
*) ac_datarootdir_seen
=yes;;
15077 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15079 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15082 ac_datarootdir_hack='
15083 s&@datadir@&$datadir&g
15084 s&@docdir@&$docdir&g
15085 s&@infodir@&$infodir&g
15086 s&@localedir@&$localedir&g
15087 s&@mandir@&$mandir&g
15088 s&\\\${datarootdir}&$datarootdir&g' ;;
15092 # Neutralize VPATH when `$srcdir' = `.'.
15093 # Shell code in configure.ac might set extrasub.
15094 # FIXME: do we really want to maintain this feature?
15095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15096 ac_sed_extra="$ac_vpsub
15099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15101 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15102 s|@configure_input@|
$ac_sed_conf_input|
;t t
15103 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15104 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15105 s
&@srcdir@
&$ac_srcdir&;t t
15106 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15107 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15108 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15109 s
&@builddir@
&$ac_builddir&;t t
15110 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15111 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15112 s
&@INSTALL@
&$ac_INSTALL&;t t
15113 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
15114 $ac_datarootdir_hack
15116 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
15117 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
15119 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15120 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
15121 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15122 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15124 which seems to be undefined. Please make sure it is defined" >&5
15125 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15126 which seems to be undefined. Please make sure it is defined" >&2;}
15128 rm -f "$ac_tmp/stdin"
15130 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15131 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15133 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15139 if test x"$ac_file" != x-; then
15141 $as_echo "/* $configure_input */" \
15142 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15143 } >"$ac_tmp/config.h" \
15144 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15145 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15147 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15150 mv "$ac_tmp/config.h" "$ac_file" \
15151 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15154 $as_echo "/* $configure_input */" \
15155 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15156 || as_fn_error $? "could not create -" "$LINENO" 5
15158 # Compute "$ac_file"'s index
in $config_headers.
15161 for _am_header
in $config_headers :; do
15162 case $_am_header in
15163 $_am_arg |
$_am_arg:* )
15166 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
15169 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15170 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15171 X"$_am_arg" : 'X\(//\)[^/]' \| \
15172 X"$_am_arg" : 'X\(//\)$' \| \
15173 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15174 $as_echo X"$_am_arg" |
15175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15179 /^X\(\/\/\)[^/].*/{
15191 s/.*/./; q'`/stamp-h
$_am_stamp_count
15194 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15195 $as_echo "$as_me: executing $ac_file commands" >&6;}
15200 case $ac_file$ac_mode in
15201 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
15202 # Older Autoconf quotes --file arguments for eval, but not when files
15203 # are listed without --file. Let's play safe and only enable the eval
15204 # if we detect the quoting.
15205 case $CONFIG_FILES in
15206 *\'*) eval set x
"$CONFIG_FILES" ;;
15207 *) set x
$CONFIG_FILES ;;
15212 # Strip MF so we end up with the name of the file.
15213 mf
=`echo "$mf" | sed -e 's/:.*$//'`
15214 # Check whether this is an Automake generated Makefile or not.
15215 # We used to match only the files named 'Makefile.in', but
15216 # some people rename them; so instead we look at the file content.
15217 # Grep'ing the first line is not enough: some people post-process
15218 # each Makefile.in and add a new line on top of each file to say so.
15219 # Grep'ing the whole file is not good either: AIX grep has a line
15220 # limit of 2048, but all sed's we know have understand at least 4000.
15221 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
15222 dirpart
=`$as_dirname -- "$mf" ||
15223 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15224 X"$mf" : 'X\(//\)[^/]' \| \
15225 X"$mf" : 'X\(//\)$' \| \
15226 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15232 /^X\(\/\/\)[^/].*/{
15248 # Extract the definition of DEPDIR, am__include, and am__quote
15249 # from the Makefile without running 'make'.
15250 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
15251 test -z "$DEPDIR" && continue
15252 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
15253 test -z "$am__include" && continue
15254 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
15255 # Find all dependency output files, they are included files with
15256 # $(DEPDIR) in their names. We invoke sed twice because it is the
15257 # simplest approach to changing $(DEPDIR) to its actual value in the
15259 for file in `sed -n "
15260 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15261 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15262 # Make sure the directory exists.
15263 test -f "$dirpart/$file" && continue
15264 fdir
=`$as_dirname -- "$file" ||
15265 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15266 X"$file" : 'X\(//\)[^/]' \| \
15267 X"$file" : 'X\(//\)$' \| \
15268 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15269 $as_echo X"$file" |
15270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15274 /^X\(\/\/\)[^/].*/{
15287 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
15288 # echo "creating $dirpart/$file"
15289 echo '# dummy' > "$dirpart/$file"
15296 # See if we are running on zsh, and set the options that allow our
15297 # commands through without removal of \ escapes.
15298 if test -n "${ZSH_VERSION+set}"; then
15299 setopt NO_GLOB_SUBST
15303 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15306 cat <<_LT_EOF >> "$cfgfile"
15308 # Generated automatically by $as_me ($PACKAGE) $VERSION
15309 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15310 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15312 # Provide generalized library-building support services.
15313 # Written by Gordon Matzigkeit, 1996
15315 # Copyright (C) 2014 Free Software Foundation, Inc.
15316 # This is free software; see the source for copying conditions. There is NO
15317 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15319 # GNU Libtool is free software; you can redistribute it and/or modify
15320 # it under the terms of the GNU General Public License as published by
15321 # the Free Software Foundation; either version 2 of of the License, or
15322 # (at your option) any later version.
15324 # As a special exception to the GNU General Public License, if you
15325 # distribute this file as part of a program or library that is built
15326 # using GNU Libtool, you may include this file under the same
15327 # distribution terms that you use for the rest of that program.
15329 # GNU Libtool is distributed in the hope that it will be useful, but
15330 # WITHOUT ANY WARRANTY; without even the implied warranty of
15331 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15332 # GNU General Public License for more details.
15334 # You should have received a copy of the GNU General Public License
15335 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15338 # The names of the tagged configurations supported by this script.
15341 # Configured defaults for sys_lib_dlsearch_path munging.
15342 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15344 # ### BEGIN LIBTOOL CONFIG
15346 # Assembler program.
15349 # DLL creation program.
15350 DLLTOOL=$lt_DLLTOOL
15352 # Object dumper program.
15353 OBJDUMP=$lt_OBJDUMP
15355 # Which release of libtool.m4 was used?
15356 macro_version=$macro_version
15357 macro_revision=$macro_revision
15359 # Whether or not to build shared libraries.
15360 build_libtool_libs=$enable_shared
15362 # Whether or not to build static libraries.
15363 build_old_libs=$enable_static
15365 # What type of objects to build.
15368 # Whether or not to optimize for fast installation.
15369 fast_install=$enable_fast_install
15371 # Shared archive member basename,for filename based shared library versioning on AIX.
15372 shared_archive_member_spec=$shared_archive_member_spec
15374 # Shell to use when invoking shell scripts.
15377 # An echo program that protects backslashes.
15380 # The PATH separator for the build system.
15381 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15384 host_alias=$host_alias
15388 # The build system.
15389 build_alias=$build_alias
15393 # A sed program that does not truncate output.
15396 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15397 Xsed="\$SED -e 1s/^X//"
15399 # A grep program that handles long lines.
15405 # A literal string matcher.
15408 # A BSD- or MS-compatible name lister.
15411 # Whether we need soft or hard links.
15414 # What is the maximum length of a command?
15415 max_cmd_len=$max_cmd_len
15417 # Object file suffix (normally "o").
15420 # Executable file suffix (normally "").
15423 # whether the shell understands "unset".
15426 # turn spaces into newlines.
15429 # turn newlines into spaces.
15432 # convert \$build file names to \$host format.
15433 to_host_file_cmd=$lt_cv_to_host_file_cmd
15435 # convert \$build files to toolchain format.
15436 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15438 # Method to check whether dependent libraries are shared objects.
15439 deplibs_check_method=$lt_deplibs_check_method
15441 # Command to use when deplibs_check_method = "file_magic".
15442 file_magic_cmd=$lt_file_magic_cmd
15444 # How to find potential files when deplibs_check_method = "file_magic".
15445 file_magic_glob=$lt_file_magic_glob
15447 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15448 want_nocaseglob=$lt_want_nocaseglob
15450 # Command to associate shared and link libraries.
15451 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15456 # Flags to create an archive.
15457 AR_FLAGS=$lt_AR_FLAGS
15459 # How to feed a file listing to the archiver.
15460 archiver_list_spec=$lt_archiver_list_spec
15462 # A symbol stripping program.
15465 # Commands used to install an old-style archive.
15467 old_postinstall_cmds=$lt_old_postinstall_cmds
15468 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15470 # Whether to use a lock for old archive extraction.
15471 lock_old_archive_extraction=$lock_old_archive_extraction
15476 # LTCC compiler flags.
15477 LTCFLAGS=$lt_CFLAGS
15479 # Take the output of nm and produce a listing of raw symbols and C names.
15480 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15482 # Transform the output of nm in a proper C declaration.
15483 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15485 # Transform the output of nm into a list of symbols to manually relocate.
15486 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15488 # Transform the output of nm in a C name address pair.
15489 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15491 # Transform the output of nm in a C name address pair when lib prefix is needed.
15492 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15494 # The name lister interface.
15495 nm_interface=$lt_lt_cv_nm_interface
15497 # Specify filename containing input files for \$NM.
15498 nm_file_list_spec=$lt_nm_file_list_spec
15500 # The root where to search for dependent libraries,and where our libraries should be installed.
15501 lt_sysroot=$lt_sysroot
15503 # Command to truncate a binary pipe.
15504 lt_truncate_bin=$lt_lt_cv_truncate_bin
15506 # The name of the directory that contains temporary libtool files.
15509 # Used to examine libraries when file_magic_cmd begins with "file".
15510 MAGIC_CMD=$MAGIC_CMD
15512 # Must we lock files when doing compilation?
15513 need_locks=$lt_need_locks
15516 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15518 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15519 DSYMUTIL=$lt_DSYMUTIL
15521 # Tool to change global to local symbols on Mac OS X.
15524 # Tool to manipulate fat objects and archives on Mac OS X.
15527 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15530 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15531 OTOOL64=$lt_OTOOL64
15533 # Old archive suffix (normally "a").
15536 # Shared library suffix (normally ".so").
15537 shrext_cmds=$lt_shrext_cmds
15539 # The commands to extract the exported symbol list from a shared archive.
15540 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15542 # Variables whose values should be saved in libtool wrapper scripts and
15543 # restored at link time.
15544 variables_saved_for_relink=$lt_variables_saved_for_relink
15546 # Do we need the "lib" prefix for modules?
15547 need_lib_prefix=$need_lib_prefix
15549 # Do we need a version for libraries?
15550 need_version=$need_version
15552 # Library versioning type.
15553 version_type=$version_type
15555 # Shared library runtime path variable.
15556 runpath_var=$runpath_var
15558 # Shared library path variable.
15559 shlibpath_var=$shlibpath_var
15561 # Is shlibpath searched before the hard-coded library search path?
15562 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15564 # Format of library name prefix.
15565 libname_spec=$lt_libname_spec
15567 # List of archive names. First name is the real one, the rest are links.
15568 # The last name is the one that the linker finds with -lNAME
15569 library_names_spec=$lt_library_names_spec
15571 # The coded name of the library, if different from the real name.
15572 soname_spec=$lt_soname_spec
15574 # Permission mode override for installation of shared libraries.
15575 install_override_mode=$lt_install_override_mode
15577 # Command to use after installation of a shared archive.
15578 postinstall_cmds=$lt_postinstall_cmds
15580 # Command to use after uninstallation of a shared archive.
15581 postuninstall_cmds=$lt_postuninstall_cmds
15583 # Commands used to finish a libtool library installation in a directory.
15584 finish_cmds=$lt_finish_cmds
15586 # As "finish_cmds", except a single script fragment to be evaled but
15588 finish_eval=$lt_finish_eval
15590 # Whether we should hardcode library paths into libraries.
15591 hardcode_into_libs=$hardcode_into_libs
15593 # Compile-time system search path for libraries.
15594 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15596 # Detected run-time system search path for libraries.
15597 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15599 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15600 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15602 # Whether dlopen is supported.
15603 dlopen_support=$enable_dlopen
15605 # Whether dlopen of programs is supported.
15606 dlopen_self=$enable_dlopen_self
15608 # Whether dlopen of statically linked programs is supported.
15609 dlopen_self_static=$enable_dlopen_self_static
15611 # Commands to strip libraries.
15612 old_striplib=$lt_old_striplib
15613 striplib=$lt_striplib
15616 # The linker used to build libraries.
15619 # How to create reloadable object files.
15620 reload_flag=$lt_reload_flag
15621 reload_cmds=$lt_reload_cmds
15623 # Commands used to build an old-style archive.
15624 old_archive_cmds=$lt_old_archive_cmds
15626 # A language specific compiler.
15629 # Is the compiler the GNU compiler?
15632 # Compiler flag to turn off builtin functions.
15633 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15635 # Additional compiler flags for building library objects.
15636 pic_flag=$lt_lt_prog_compiler_pic
15638 # How to pass a linker flag through the compiler.
15639 wl=$lt_lt_prog_compiler_wl
15641 # Compiler flag to prevent dynamic linking.
15642 link_static_flag=$lt_lt_prog_compiler_static
15644 # Does compiler simultaneously support -c and -o options?
15645 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15647 # Whether or not to add -lc for building shared libraries.
15648 build_libtool_need_lc=$archive_cmds_need_lc
15650 # Whether or not to disallow shared libs when runtime libs are static.
15651 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15653 # Compiler flag to allow reflexive dlopens.
15654 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15656 # Compiler flag to generate shared objects directly from archives.
15657 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15659 # Whether the compiler copes with passing no objects directly.
15660 compiler_needs_object=$lt_compiler_needs_object
15662 # Create an old-style archive from a shared archive.
15663 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15665 # Create a temporary old-style archive to link instead of a shared archive.
15666 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15668 # Commands used to build a shared archive.
15669 archive_cmds=$lt_archive_cmds
15670 archive_expsym_cmds=$lt_archive_expsym_cmds
15672 # Commands used to build a loadable module if different from building
15673 # a shared archive.
15674 module_cmds=$lt_module_cmds
15675 module_expsym_cmds=$lt_module_expsym_cmds
15677 # Whether we are building with GNU ld or not.
15678 with_gnu_ld=$lt_with_gnu_ld
15680 # Flag that allows shared libraries with undefined symbols to be built.
15681 allow_undefined_flag=$lt_allow_undefined_flag
15683 # Flag that enforces no undefined symbols.
15684 no_undefined_flag=$lt_no_undefined_flag
15686 # Flag to hardcode \$libdir into a binary during linking.
15687 # This must work even if \$libdir does not exist
15688 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15690 # Whether we need a single "-rpath" flag with a separated argument.
15691 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15693 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15694 # DIR into the resulting binary.
15695 hardcode_direct=$hardcode_direct
15697 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15698 # DIR into the resulting binary and the resulting library dependency is
15699 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15700 # library is relocated.
15701 hardcode_direct_absolute=$hardcode_direct_absolute
15703 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15704 # into the resulting binary.
15705 hardcode_minus_L=$hardcode_minus_L
15707 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15708 # into the resulting binary.
15709 hardcode_shlibpath_var=$hardcode_shlibpath_var
15711 # Set to "yes" if building a shared library automatically hardcodes DIR
15712 # into the library and all subsequent libraries and executables linked
15714 hardcode_automatic=$hardcode_automatic
15716 # Set to yes if linker adds runtime paths of dependent libraries
15717 # to runtime path list.
15718 inherit_rpath=$inherit_rpath
15720 # Whether libtool must link a program against all its dependency libraries.
15721 link_all_deplibs=$link_all_deplibs
15723 # Set to "yes" if exported symbols are required.
15724 always_export_symbols=$always_export_symbols
15726 # The commands to list exported symbols.
15727 export_symbols_cmds=$lt_export_symbols_cmds
15729 # Symbols that should not be listed in the preloaded symbols.
15730 exclude_expsyms=$lt_exclude_expsyms
15732 # Symbols that must always be exported.
15733 include_expsyms=$lt_include_expsyms
15735 # Commands necessary for linking programs (against libraries) with templates.
15736 prelink_cmds=$lt_prelink_cmds
15738 # Commands necessary for finishing linking programs.
15739 postlink_cmds=$lt_postlink_cmds
15741 # Specify filename containing input files.
15742 file_list_spec=$lt_file_list_spec
15744 # How to hardcode a shared library path into an executable.
15745 hardcode_action=$hardcode_action
15747 # ### END LIBTOOL CONFIG
15751 cat <<'_LT_EOF' >> "$cfgfile"
15753 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15755 # func_munge_path_list VARIABLE PATH
15756 # -----------------------------------
15757 # VARIABLE is name of variable containing _space_ separated list of
15758 # directories to be munged by the contents of PATH, which is string
15761 # string "DIR[ DIR]" will be prepended to VARIABLE
15763 # string "DIR[ DIR]" will be appended to VARIABLE
15764 # "DIRP[:DIRP]::[DIRA:]DIRA"
15765 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15766 # "DIRA[ DIRA]" will be appended to VARIABLE
15768 # VARIABLE will be replaced by "DIR[ DIR]"
15769 func_munge_path_list ()
15775 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15778 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15781 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15782 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15785 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15791 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15792 func_cc_basename ()
15794 for cc_temp in $*""; do
15796 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15797 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15802 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15806 # ### END FUNCTIONS SHARED WITH CONFIGURE
15812 cat <<\_LT_EOF
>> "$cfgfile"
15813 # AIX sometimes has problems with the GCC collect2 program. For some
15814 # reason, if we set the COLLECT_NAMES environment variable, the problems
15815 # vanish in a puff of smoke.
15816 if test set != "${COLLECT_NAMES+set}"; then
15818 export COLLECT_NAMES
15825 ltmain
=$ac_aux_dir/ltmain.sh
15828 # We use sed instead of cat because bash on DJGPP gets confused if
15829 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15830 # text mode, it properly converts lines to CR/LF. This bash problem
15831 # is reportedly fixed, but why not run on old versions too?
15832 sed '$q' "$ltmain" >> "$cfgfile" \
15833 ||
(rm -f "$cfgfile"; exit 1)
15835 mv -f "$cfgfile" "$ofile" ||
15836 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15847 ac_clean_files
=$ac_clean_files_save
15849 test $ac_write_fail = 0 ||
15850 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
15853 # configure is writing to config.log, and then calls config.status.
15854 # config.status does its own redirection, appending to config.log.
15855 # Unfortunately, on DOS this fails, as config.log is still kept open
15856 # by configure, so config.status won't be able to write to it; its
15857 # output is simply discarded. So we exec the FD to /dev/null,
15858 # effectively closing config.log, so it can be properly (re)opened and
15859 # appended to by config.status. When coming back to configure, we
15860 # need to make the FD available again.
15861 if test "$no_create" != yes; then
15863 ac_config_status_args
=
15864 test "$silent" = yes &&
15865 ac_config_status_args
="$ac_config_status_args --quiet"
15867 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15869 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15870 # would make configure fail if this is the last instruction.
15871 $ac_cs_success || as_fn_exit
1
15873 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15875 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}