2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.69 for xf86-video-openchrome 0.3.3.
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome>.
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
27
case `(set -o) 2>/dev/null` in #(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
94
*[\\/]* ) as_myself=$0 ;;
95
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99
test -z "$as_dir" && as_dir=.
100
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
107
# in which case we are not to be found in the path.
108
if test "x$as_myself" = x; then
111
if test ! -f "$as_myself"; then
112
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116
# Unset variables that we do not need and which cause bugs (e.g. in
117
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118
# suppresses any "Segmentation fault" message there. '((' could
119
# trigger a bug in pdksh 5.2.14.
120
for as_var in BASH_ENV ENV MAIL MAILPATH
121
do eval test x\${$as_var+set} = xset \
122
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
# Use a proper internal environment variable to ensure we don't fall
138
# into an infinite loop, continuously re-executing ourselves.
139
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
_as_can_reexec=no; export _as_can_reexec;
141
# We cannot yet assume a decent shell, so we have to provide a
142
# neutralization value for shells without unset; and this also
143
# works around shells that cannot unset nonexistent variables.
144
# Preserve -v and -x to the replacement shell.
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149
*v*x* | *x*v* ) as_opts=-vx ;;
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
# Admittedly, this is quite paranoid, since all the known shells bail
156
# out after a failed `exec'.
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160
# We don't want this to propagate to other subprocesses.
161
{ _as_can_reexec=; unset _as_can_reexec;}
162
if test "x$CONFIG_SHELL" = x; then
163
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167
# is contrary to our usage. Disable this feature.
168
alias -g '\${1+\"\$@\"}'='\"\$@\"'
171
case \`(set -o) 2>/dev/null\` in #(
179
as_required="as_fn_return () { (exit \$1); }
180
as_fn_success () { as_fn_return 0; }
181
as_fn_failure () { as_fn_return 1; }
182
as_fn_ret_success () { return 0; }
183
as_fn_ret_failure () { return 1; }
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
exitcode=1; echo positional parameters were not saved.
195
test x\$exitcode = x0 || exit 1
197
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206
PATH=/empty FPATH=/empty; export PATH FPATH
207
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209
test \$(( 1 + 1 )) = 2 || exit 1"
210
if (eval "$as_required") 2>/dev/null; then :
215
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223
test -z "$as_dir" && as_dir=.
227
for as_base in sh bash ksh sh5; do
228
# Try only shells that exist, to save several forks.
229
as_shell=$as_dir/$as_base
230
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232
CONFIG_SHELL=$as_shell as_have_required=yes
233
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243
CONFIG_SHELL=$SHELL as_have_required=yes
248
if test "x$CONFIG_SHELL" != x; then :
250
# We cannot yet assume a decent shell, so we have to provide a
251
# neutralization value for shells without unset; and this also
252
# works around shells that cannot unset nonexistent variables.
253
# Preserve -v and -x to the replacement shell.
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258
*v*x* | *x*v* ) as_opts=-vx ;;
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264
# Admittedly, this is quite paranoid, since all the known shells bail
265
# out after a failed `exec'.
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270
if test x$as_have_required = xno; then :
271
$as_echo "$0: This script requires a shell more modern than all"
272
$as_echo "$0: the shells that I found on your system."
273
if test x${ZSH_VERSION+set} = xset ; then
274
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
277
$as_echo "$0: Please tell bug-autoconf@gnu.org and
278
$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome
279
$0: about your system, including any error possibly output
280
$0: before this message. Then install a modern shell, or
281
$0: manually run the script under such a shell if you do
288
SHELL=${CONFIG_SHELL-/bin/sh}
290
# Unset more variables known to interfere with behavior of common tools.
291
CLICOLOR_FORCE= GREP_OPTIONS=
292
unset CLICOLOR_FORCE GREP_OPTIONS
294
## --------------------- ##
295
## M4sh Shell Functions. ##
296
## --------------------- ##
299
# Portably unset VAR.
302
{ eval $1=; unset $1;}
306
# as_fn_set_status STATUS
307
# -----------------------
308
# Set $? to STATUS, without forking.
316
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326
# Create "$as_dir" as a directory, including parents if necessary.
331
-*) as_dir=./$as_dir;;
333
test -d "$as_dir" || eval $as_mkdir_p || {
337
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340
as_dirs="'$as_qdir' $as_dirs"
341
as_dir=`$as_dirname -- "$as_dir" ||
342
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343
X"$as_dir" : 'X\(//\)[^/]' \| \
344
X"$as_dir" : 'X\(//\)$' \| \
345
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346
$as_echo X"$as_dir" |
347
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364
test -d "$as_dir" && break
366
test -z "$as_dirs" || eval "mkdir $as_dirs"
367
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372
# as_fn_executable_p FILE
373
# -----------------------
374
# Test if FILE is an executable regular file.
375
as_fn_executable_p ()
377
test -f "$1" && test -x "$1"
378
} # as_fn_executable_p
379
# as_fn_append VAR VALUE
380
# ----------------------
381
# Append the text in VALUE to the end of the definition contained in VAR. Take
382
# advantage of any shell optimizations that allow amortized linear growth over
383
# repeated appends, instead of the typical quadratic growth present in naive
385
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386
eval 'as_fn_append ()
399
# Perform arithmetic evaluation on the ARGs, and store the result in the
400
# global $as_val. Take advantage of shells that can avoid forks. The arguments
401
# must be portable across $(()) and expr.
402
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410
as_val=`expr "$@" || test $? -eq 1`
415
# as_fn_error STATUS ERROR [LINENO LOG_FD]
416
# ----------------------------------------
417
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419
# script with STATUS, using 1 if that was 0.
422
as_status=$1; test $as_status -eq 0 && as_status=1
424
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427
$as_echo "$as_me: error: $2" >&2
428
as_fn_exit $as_status
431
if expr a : '\(a\)' >/dev/null 2>&1 &&
432
test "X`expr 00001 : '.*\(...\)'`" = X001; then
438
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450
as_me=`$as_basename -- "$0" ||
451
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452
X"$0" : 'X\(//\)$' \| \
453
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455
sed '/^.*\/\([^/][^/]*\)\/*$/{
469
# Avoid depending upon Character Ranges.
470
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473
as_cr_digits='0123456789'
474
as_cr_alnum=$as_cr_Letters$as_cr_digits
477
as_lineno_1=$LINENO as_lineno_1a=$LINENO
478
as_lineno_2=$LINENO as_lineno_2a=$LINENO
479
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497
chmod +x "$as_me.lineno" ||
498
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501
# already done that, so ensure we don't try to do so again and fall
502
# in an infinite loop. This has already happened in practice.
503
_as_can_reexec=no; export _as_can_reexec
504
# Don't try to exec as it changes $[0], causing all sort of problems
505
# (the dirname of $[0] is not the place where we might find the
506
# original and so on. Autoconf is especially sensitive to this).
508
# Exit status is that of the last command.
512
ECHO_C= ECHO_N= ECHO_T=
513
case `echo -n x` in #(((((
515
case `echo 'xy\c'` in
516
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
518
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525
rm -f conf$$ conf$$.exe conf$$.file
526
if test -d conf$$.dir; then
527
rm -f conf$$.dir/conf$$.file
530
mkdir conf$$.dir 2>/dev/null
532
if (echo >conf$$.file) 2>/dev/null; then
533
if ln -s conf$$.file conf$$ 2>/dev/null; then
535
# ... but there are two gotchas:
536
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538
# In both cases, we have to default to `cp -pR'.
539
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541
elif ln conf$$.file conf$$ 2>/dev/null; then
549
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550
rmdir conf$$.dir 2>/dev/null
552
if mkdir -p . 2>/dev/null; then
553
as_mkdir_p='mkdir -p "$as_dir"'
555
test -d ./-p && rmdir ./-p
560
as_executable_p=as_fn_executable_p
562
# Sed expression to map a string onto a valid CPP name.
563
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
# Sed expression to map a string onto a valid variable name.
566
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
SHELL=${CONFIG_SHELL-/bin/sh}
571
test -n "$DJDIR" || exec 7<&0 </dev/null
575
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576
# so uname gets run too.
577
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
ac_default_prefix=/usr/local
584
ac_config_libobj_dir=.
591
# Identity of this package.
592
PACKAGE_NAME='xf86-video-openchrome'
593
PACKAGE_TARNAME='xf86-video-openchrome'
594
PACKAGE_VERSION='0.3.3'
595
PACKAGE_STRING='xf86-video-openchrome 0.3.3'
596
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome'
599
ac_unique_file="Makefile.am"
600
# Factoring default headers for most tests.
601
ac_includes_default="\
603
#ifdef HAVE_SYS_TYPES_H
604
# include <sys/types.h>
606
#ifdef HAVE_SYS_STAT_H
607
# include <sys/stat.h>
613
# ifdef HAVE_STDLIB_H
618
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623
#ifdef HAVE_STRINGS_H
624
# include <strings.h>
626
#ifdef HAVE_INTTYPES_H
627
# include <inttypes.h>
636
ac_subst_vars='am__EXEEXT_FALSE
674
HAVE_XEXTPROTO_71_FALSE
675
HAVE_XEXTPROTO_71_TRUE
731
MAINTAINER_MODE_FALSE
741
INSTALL_STRIP_PROGRAM
783
program_transform_name
796
enable_option_checking
797
enable_maintainer_mode
802
enable_dependency_tracking
813
ac_precious_vars='build_alias
839
# Initialize some variables set by options.
841
ac_init_version=false
842
ac_unrecognized_opts=
844
# The variables have the same names as the options, with
845
# dashes changed to underlines.
853
program_transform_name=s,x,x,
861
# Installation directory options.
862
# These are left unexpanded so users can "make install exec_prefix=/foo"
863
# and all the variables that are supposed to be based on exec_prefix
864
# by default will actually change.
865
# Use braces instead of parens because sh, perl, etc. also accept them.
866
# (The list follows the same order as the GNU Coding Standards.)
867
bindir='${exec_prefix}/bin'
868
sbindir='${exec_prefix}/sbin'
869
libexecdir='${exec_prefix}/libexec'
870
datarootdir='${prefix}/share'
871
datadir='${datarootdir}'
872
sysconfdir='${prefix}/etc'
873
sharedstatedir='${prefix}/com'
874
localstatedir='${prefix}/var'
875
includedir='${prefix}/include'
876
oldincludedir='/usr/include'
877
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878
infodir='${datarootdir}/info'
883
libdir='${exec_prefix}/lib'
884
localedir='${datarootdir}/locale'
885
mandir='${datarootdir}/man'
891
# If the previous option needs an argument, assign it.
892
if test -n "$ac_prev"; then
893
eval $ac_prev=\$ac_option
899
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904
# Accept the important Cygnus configure options, so we can diagnose typos.
906
case $ac_dashdash$ac_option in
910
-bindir | --bindir | --bindi | --bind | --bin | --bi)
912
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915
-build | --build | --buil | --bui | --bu)
916
ac_prev=build_alias ;;
917
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
918
build_alias=$ac_optarg ;;
920
-cache-file | --cache-file | --cache-fil | --cache-fi \
921
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922
ac_prev=cache_file ;;
923
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925
cache_file=$ac_optarg ;;
928
cache_file=config.cache ;;
930
-datadir | --datadir | --datadi | --datad)
932
-datadir=* | --datadir=* | --datadi=* | --datad=*)
933
datadir=$ac_optarg ;;
935
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936
| --dataroo | --dataro | --datar)
937
ac_prev=datarootdir ;;
938
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940
datarootdir=$ac_optarg ;;
942
-disable-* | --disable-*)
943
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944
# Reject names that are not valid shell variable names.
945
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946
as_fn_error $? "invalid feature name: $ac_useropt"
947
ac_useropt_orig=$ac_useropt
948
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949
case $ac_user_opts in
953
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954
ac_unrecognized_sep=', ';;
956
eval enable_$ac_useropt=no ;;
958
-docdir | --docdir | --docdi | --doc | --do)
960
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968
-enable-* | --enable-*)
969
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970
# Reject names that are not valid shell variable names.
971
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972
as_fn_error $? "invalid feature name: $ac_useropt"
973
ac_useropt_orig=$ac_useropt
974
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975
case $ac_user_opts in
979
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980
ac_unrecognized_sep=', ';;
982
eval enable_$ac_useropt=\$ac_optarg ;;
984
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986
| --exec | --exe | --ex)
987
ac_prev=exec_prefix ;;
988
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990
| --exec=* | --exe=* | --ex=*)
991
exec_prefix=$ac_optarg ;;
993
-gas | --gas | --ga | --g)
994
# Obsolete; use --with-gas.
997
-help | --help | --hel | --he | -h)
999
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000
ac_init_help=recursive ;;
1001
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002
ac_init_help=short ;;
1004
-host | --host | --hos | --ho)
1005
ac_prev=host_alias ;;
1006
-host=* | --host=* | --hos=* | --ho=*)
1007
host_alias=$ac_optarg ;;
1009
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013
htmldir=$ac_optarg ;;
1015
-includedir | --includedir | --includedi | --included | --include \
1016
| --includ | --inclu | --incl | --inc)
1017
ac_prev=includedir ;;
1018
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019
| --includ=* | --inclu=* | --incl=* | --inc=*)
1020
includedir=$ac_optarg ;;
1022
-infodir | --infodir | --infodi | --infod | --info | --inf)
1024
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025
infodir=$ac_optarg ;;
1027
-libdir | --libdir | --libdi | --libd)
1029
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1030
libdir=$ac_optarg ;;
1032
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033
| --libexe | --libex | --libe)
1034
ac_prev=libexecdir ;;
1035
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036
| --libexe=* | --libex=* | --libe=*)
1037
libexecdir=$ac_optarg ;;
1039
-localedir | --localedir | --localedi | --localed | --locale)
1040
ac_prev=localedir ;;
1041
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042
localedir=$ac_optarg ;;
1044
-localstatedir | --localstatedir | --localstatedi | --localstated \
1045
| --localstate | --localstat | --localsta | --localst | --locals)
1046
ac_prev=localstatedir ;;
1047
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049
localstatedir=$ac_optarg ;;
1051
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054
mandir=$ac_optarg ;;
1056
-nfp | --nfp | --nf)
1057
# Obsolete; use --without-fp.
1060
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061
| --no-cr | --no-c | -n)
1064
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070
| --oldin | --oldi | --old | --ol | --o)
1071
ac_prev=oldincludedir ;;
1072
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075
oldincludedir=$ac_optarg ;;
1077
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080
prefix=$ac_optarg ;;
1082
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1083
| --program-pre | --program-pr | --program-p)
1084
ac_prev=program_prefix ;;
1085
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1086
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087
program_prefix=$ac_optarg ;;
1089
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1090
| --program-suf | --program-su | --program-s)
1091
ac_prev=program_suffix ;;
1092
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1093
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094
program_suffix=$ac_optarg ;;
1096
-program-transform-name | --program-transform-name \
1097
| --program-transform-nam | --program-transform-na \
1098
| --program-transform-n | --program-transform- \
1099
| --program-transform | --program-transfor \
1100
| --program-transfo | --program-transf \
1101
| --program-trans | --program-tran \
1102
| --progr-tra | --program-tr | --program-t)
1103
ac_prev=program_transform_name ;;
1104
-program-transform-name=* | --program-transform-name=* \
1105
| --program-transform-nam=* | --program-transform-na=* \
1106
| --program-transform-n=* | --program-transform-=* \
1107
| --program-transform=* | --program-transfor=* \
1108
| --program-transfo=* | --program-transf=* \
1109
| --program-trans=* | --program-tran=* \
1110
| --progr-tra=* | --program-tr=* | --program-t=*)
1111
program_transform_name=$ac_optarg ;;
1113
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116
pdfdir=$ac_optarg ;;
1118
-psdir | --psdir | --psdi | --psd | --ps)
1120
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124
| -silent | --silent | --silen | --sile | --sil)
1127
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131
sbindir=$ac_optarg ;;
1133
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1134
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135
| --sharedst | --shareds | --shared | --share | --shar \
1137
ac_prev=sharedstatedir ;;
1138
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142
sharedstatedir=$ac_optarg ;;
1144
-site | --site | --sit)
1146
-site=* | --site=* | --sit=*)
1149
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152
srcdir=$ac_optarg ;;
1154
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155
| --syscon | --sysco | --sysc | --sys | --sy)
1156
ac_prev=sysconfdir ;;
1157
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159
sysconfdir=$ac_optarg ;;
1161
-target | --target | --targe | --targ | --tar | --ta | --t)
1162
ac_prev=target_alias ;;
1163
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164
target_alias=$ac_optarg ;;
1166
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1169
-version | --version | --versio | --versi | --vers | -V)
1170
ac_init_version=: ;;
1173
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174
# Reject names that are not valid shell variable names.
1175
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176
as_fn_error $? "invalid package name: $ac_useropt"
1177
ac_useropt_orig=$ac_useropt
1178
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179
case $ac_user_opts in
1183
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184
ac_unrecognized_sep=', ';;
1186
eval with_$ac_useropt=\$ac_optarg ;;
1188
-without-* | --without-*)
1189
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190
# Reject names that are not valid shell variable names.
1191
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192
as_fn_error $? "invalid package name: $ac_useropt"
1193
ac_useropt_orig=$ac_useropt
1194
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195
case $ac_user_opts in
1199
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200
ac_unrecognized_sep=', ';;
1202
eval with_$ac_useropt=no ;;
1205
# Obsolete; use --with-x.
1208
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209
| --x-incl | --x-inc | --x-in | --x-i)
1210
ac_prev=x_includes ;;
1211
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213
x_includes=$ac_optarg ;;
1215
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1216
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217
ac_prev=x_libraries ;;
1218
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220
x_libraries=$ac_optarg ;;
1222
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1223
Try \`$0 --help' for more information"
1227
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228
# Reject names that are not valid shell variable names.
1229
case $ac_envvar in #(
1230
'' | [0-9]* | *[!_$as_cr_alnum]* )
1231
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1233
eval $ac_envvar=\$ac_optarg
1234
export $ac_envvar ;;
1237
# FIXME: should be removed in autoconf 3.0.
1238
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247
if test -n "$ac_prev"; then
1248
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249
as_fn_error $? "missing argument to $ac_option"
1252
if test -n "$ac_unrecognized_opts"; then
1253
case $enable_option_checking in
1255
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1256
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260
# Check all directory arguments for consistency.
1261
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262
datadir sysconfdir sharedstatedir localstatedir includedir \
1263
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264
libdir localedir mandir
1266
eval ac_val=\$$ac_var
1267
# Remove trailing slashes.
1270
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271
eval $ac_var=\$ac_val;;
1273
# Be sure to have absolute directory names.
1275
[\\/$]* | ?:[\\/]* ) continue;;
1276
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1281
# There might be people who depend on the old broken behavior: `$host'
1282
# used to hold the argument of --host etc.
1283
# FIXME: To remove some day.
1286
target=$target_alias
1288
# FIXME: To remove some day.
1289
if test "x$host_alias" != x; then
1290
if test "x$build_alias" = x; then
1291
cross_compiling=maybe
1292
elif test "x$build_alias" != "x$host_alias"; then
1298
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
test "$silent" = yes && exec 6>/dev/null
1303
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304
ac_ls_di=`ls -di .` &&
1305
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306
as_fn_error $? "working directory cannot be determined"
1307
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308
as_fn_error $? "pwd does not report name of working directory"
1311
# Find the source files, if location was not specified.
1312
if test -z "$srcdir"; then
1313
ac_srcdir_defaulted=yes
1314
# Try the directory containing this script, then the parent directory.
1315
ac_confdir=`$as_dirname -- "$as_myself" ||
1316
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317
X"$as_myself" : 'X\(//\)[^/]' \| \
1318
X"$as_myself" : 'X\(//\)$' \| \
1319
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320
$as_echo X"$as_myself" |
1321
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339
if test ! -r "$srcdir/$ac_unique_file"; then
1343
ac_srcdir_defaulted=no
1345
if test ! -r "$srcdir/$ac_unique_file"; then
1346
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353
# When building in place, set srcdir=.
1354
if test "$ac_abs_confdir" = "$ac_pwd"; then
1357
# Remove unnecessary trailing slashes from srcdir.
1358
# Double slashes in file names in object file debugging info
1359
# mess up M-x gdb in Emacs.
1361
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363
for ac_var in $ac_precious_vars; do
1364
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365
eval ac_env_${ac_var}_value=\$${ac_var}
1366
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371
# Report the --help message.
1373
if test "$ac_init_help" = "long"; then
1374
# Omit some internal or obsolete options to make the list less imposing.
1375
# This message is too long to be a string in the A/UX 3.1 sh.
1377
\`configure' configures xf86-video-openchrome 0.3.3 to adapt to many kinds of systems.
1379
Usage: $0 [OPTION]... [VAR=VALUE]...
1381
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382
VAR=VALUE. See below for descriptions of some of the useful variables.
1384
Defaults for the options are specified in brackets.
1387
-h, --help display this help and exit
1388
--help=short display options specific to this package
1389
--help=recursive display the short help of all the included packages
1390
-V, --version display version information and exit
1391
-q, --quiet, --silent do not print \`checking ...' messages
1392
--cache-file=FILE cache test results in FILE [disabled]
1393
-C, --config-cache alias for \`--cache-file=config.cache'
1394
-n, --no-create do not create output files
1395
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1397
Installation directories:
1398
--prefix=PREFIX install architecture-independent files in PREFIX
1399
[$ac_default_prefix]
1400
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1403
By default, \`make install' will install all the files in
1404
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406
for instance \`--prefix=\$HOME'.
1408
For better control, use the options below.
1410
Fine tuning of the installation directories:
1411
--bindir=DIR user executables [EPREFIX/bin]
1412
--sbindir=DIR system admin executables [EPREFIX/sbin]
1413
--libexecdir=DIR program executables [EPREFIX/libexec]
1414
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417
--libdir=DIR object code libraries [EPREFIX/lib]
1418
--includedir=DIR C header files [PREFIX/include]
1419
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1420
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422
--infodir=DIR info documentation [DATAROOTDIR/info]
1423
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424
--mandir=DIR man documentation [DATAROOTDIR/man]
1425
--docdir=DIR documentation root
1426
[DATAROOTDIR/doc/xf86-video-openchrome]
1427
--htmldir=DIR html documentation [DOCDIR]
1428
--dvidir=DIR dvi documentation [DOCDIR]
1429
--pdfdir=DIR pdf documentation [DOCDIR]
1430
--psdir=DIR ps documentation [DOCDIR]
1436
--program-prefix=PREFIX prepend PREFIX to installed program names
1437
--program-suffix=SUFFIX append SUFFIX to installed program names
1438
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1441
--build=BUILD configure for building on BUILD [guessed]
1442
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1446
if test -n "$ac_init_help"; then
1447
case $ac_init_help in
1448
short | recursive ) echo "Configuration of xf86-video-openchrome 0.3.3:";;
1453
--disable-option-checking ignore unrecognized --enable/--with options
1454
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456
--enable-maintainer-mode
1457
enable make rules and dependencies not useful (and
1458
sometimes confusing) to the casual installer
1459
--enable-static[=PKGS] build static libraries [default=no]
1460
--enable-shared[=PKGS] build shared libraries [default=yes]
1461
--enable-fast-install[=PKGS]
1462
optimize for fast installation [default=yes]
1463
--enable-dependency-tracking
1464
do not reject slow dependency extractors
1465
--disable-dependency-tracking
1466
speeds up one-time build
1467
--disable-libtool-lock avoid locking (might break parallel builds)
1468
--disable-largefile omit support for large files
1469
--enable-debug Enable debugging support [[default=no]]
1470
--enable-xv-debug Enable XVideo debugging support [[default=no]]
1471
--enable-viaregtool Enable build of registers dumper tool [[default=no]]
1474
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1475
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1476
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1478
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1479
--with-sysroot=DIR Search for dependent libraries within DIR
1480
(or the compiler's sysroot if not specified).
1481
--with-xorg-module-dir=DIR
1482
Default xorg module directory
1483
[[default=$libdir/xorg/modules]]
1484
--with-release-version=STRING
1485
Use release version string in package name
1487
Some influential environment variables:
1488
CC C compiler command
1489
CFLAGS C compiler flags
1490
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491
nonstandard directory <lib dir>
1492
LIBS libraries to pass to the linker, e.g. -l<library>
1493
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1494
you have headers in a nonstandard directory <include dir>
1496
PKG_CONFIG path to pkg-config utility
1498
directories to add to pkg-config's search path
1500
path overriding pkg-config's built-in search path
1501
XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1502
XORG_LIBS linker flags for XORG, overriding pkg-config
1503
XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1504
XEXT_LIBS linker flags for XEXT, overriding pkg-config
1506
C compiler flags for PCIACCESS, overriding pkg-config
1508
linker flags for PCIACCESS, overriding pkg-config
1509
DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1510
DRI_LIBS linker flags for DRI, overriding pkg-config
1512
C compiler flags for LIBUDEV, overriding pkg-config
1514
linker flags for LIBUDEV, overriding pkg-config
1515
XVMC_CFLAGS C compiler flags for XVMC, overriding pkg-config
1516
XVMC_LIBS linker flags for XVMC, overriding pkg-config
1518
Use these variables to override the choices made by `configure' or to help
1519
it to find libraries and programs with nonstandard names/locations.
1521
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome>.
1526
if test "$ac_init_help" = "recursive"; then
1527
# If there are subdirs, report their specific --help.
1528
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1529
test -d "$ac_dir" ||
1530
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1535
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1538
# A ".." for each directory in $ac_dir_suffix.
1539
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1540
case $ac_top_builddir_sub in
1541
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545
ac_abs_top_builddir=$ac_pwd
1546
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1547
# for backward compatibility:
1548
ac_top_builddir=$ac_top_build_prefix
1551
.) # We are building in place.
1553
ac_top_srcdir=$ac_top_builddir_sub
1554
ac_abs_top_srcdir=$ac_pwd ;;
1555
[\\/]* | ?:[\\/]* ) # Absolute name.
1556
ac_srcdir=$srcdir$ac_dir_suffix;
1557
ac_top_srcdir=$srcdir
1558
ac_abs_top_srcdir=$srcdir ;;
1560
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1561
ac_top_srcdir=$ac_top_build_prefix$srcdir
1562
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1564
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1566
cd "$ac_dir" || { ac_status=$?; continue; }
1567
# Check for guested configure.
1568
if test -f "$ac_srcdir/configure.gnu"; then
1570
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571
elif test -f "$ac_srcdir/configure"; then
1573
$SHELL "$ac_srcdir/configure" --help=recursive
1575
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1577
cd "$ac_pwd" || { ac_status=$?; break; }
1581
test -n "$ac_init_help" && exit $ac_status
1582
if $ac_init_version; then
1584
xf86-video-openchrome configure 0.3.3
1585
generated by GNU Autoconf 2.69
1587
Copyright (C) 2012 Free Software Foundation, Inc.
1588
This configure script is free software; the Free Software Foundation
1589
gives unlimited permission to copy, distribute and modify it.
1594
## ------------------------ ##
1595
## Autoconf initialization. ##
1596
## ------------------------ ##
1598
# ac_fn_c_try_compile LINENO
1599
# --------------------------
1600
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1601
ac_fn_c_try_compile ()
1603
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604
rm -f conftest.$ac_objext
1605
if { { ac_try="$ac_compile"
1607
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608
*) ac_try_echo=$ac_try;;
1610
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611
$as_echo "$ac_try_echo"; } >&5
1612
(eval "$ac_compile") 2>conftest.err
1614
if test -s conftest.err; then
1615
grep -v '^ *+' conftest.err >conftest.er1
1616
cat conftest.er1 >&5
1617
mv -f conftest.er1 conftest.err
1619
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620
test $ac_status = 0; } && {
1621
test -z "$ac_c_werror_flag" ||
1622
test ! -s conftest.err
1623
} && test -s conftest.$ac_objext; then :
1626
$as_echo "$as_me: failed program was:" >&5
1627
sed 's/^/| /' conftest.$ac_ext >&5
1631
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632
as_fn_set_status $ac_retval
1634
} # ac_fn_c_try_compile
1636
# ac_fn_c_try_link LINENO
1637
# -----------------------
1638
# Try to link conftest.$ac_ext, and return whether this succeeded.
1641
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642
rm -f conftest.$ac_objext conftest$ac_exeext
1643
if { { ac_try="$ac_link"
1645
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646
*) ac_try_echo=$ac_try;;
1648
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649
$as_echo "$ac_try_echo"; } >&5
1650
(eval "$ac_link") 2>conftest.err
1652
if test -s conftest.err; then
1653
grep -v '^ *+' conftest.err >conftest.er1
1654
cat conftest.er1 >&5
1655
mv -f conftest.er1 conftest.err
1657
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658
test $ac_status = 0; } && {
1659
test -z "$ac_c_werror_flag" ||
1660
test ! -s conftest.err
1661
} && test -s conftest$ac_exeext && {
1662
test "$cross_compiling" = yes ||
1663
test -x conftest$ac_exeext
1667
$as_echo "$as_me: failed program was:" >&5
1668
sed 's/^/| /' conftest.$ac_ext >&5
1672
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1673
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1674
# interfere with the next link command; also delete a directory that is
1675
# left behind by Apple's compiler. We do this before executing the actions.
1676
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1677
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678
as_fn_set_status $ac_retval
1680
} # ac_fn_c_try_link
1682
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1683
# -------------------------------------------------------
1684
# Tests whether HEADER exists and can be compiled using the include files in
1685
# INCLUDES, setting the cache variable VAR accordingly.
1686
ac_fn_c_check_header_compile ()
1688
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690
$as_echo_n "checking for $2... " >&6; }
1691
if eval \${$3+:} false; then :
1692
$as_echo_n "(cached) " >&6
1694
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695
/* end confdefs.h. */
1699
if ac_fn_c_try_compile "$LINENO"; then :
1704
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708
$as_echo "$ac_res" >&6; }
1709
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711
} # ac_fn_c_check_header_compile
1713
# ac_fn_c_try_cpp LINENO
1714
# ----------------------
1715
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719
if { { ac_try="$ac_cpp conftest.$ac_ext"
1721
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722
*) ac_try_echo=$ac_try;;
1724
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725
$as_echo "$ac_try_echo"; } >&5
1726
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1728
if test -s conftest.err; then
1729
grep -v '^ *+' conftest.err >conftest.er1
1730
cat conftest.er1 >&5
1731
mv -f conftest.er1 conftest.err
1733
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734
test $ac_status = 0; } > conftest.i && {
1735
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1736
test ! -s conftest.err
1740
$as_echo "$as_me: failed program was:" >&5
1741
sed 's/^/| /' conftest.$ac_ext >&5
1745
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746
as_fn_set_status $ac_retval
1750
# ac_fn_c_try_run LINENO
1751
# ----------------------
1752
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1753
# that executables *can* be run.
1756
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757
if { { ac_try="$ac_link"
1759
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760
*) ac_try_echo=$ac_try;;
1762
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763
$as_echo "$ac_try_echo"; } >&5
1764
(eval "$ac_link") 2>&5
1766
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1768
{ { case "(($ac_try" in
1769
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770
*) ac_try_echo=$ac_try;;
1772
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773
$as_echo "$ac_try_echo"; } >&5
1774
(eval "$ac_try") 2>&5
1776
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777
test $ac_status = 0; }; }; then :
1780
$as_echo "$as_me: program exited with status $ac_status" >&5
1781
$as_echo "$as_me: failed program was:" >&5
1782
sed 's/^/| /' conftest.$ac_ext >&5
1784
ac_retval=$ac_status
1786
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
as_fn_set_status $ac_retval
1792
# ac_fn_c_check_func LINENO FUNC VAR
1793
# ----------------------------------
1794
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1795
ac_fn_c_check_func ()
1797
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799
$as_echo_n "checking for $2... " >&6; }
1800
if eval \${$3+:} false; then :
1801
$as_echo_n "(cached) " >&6
1803
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804
/* end confdefs.h. */
1805
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1807
#define $2 innocuous_$2
1809
/* System header to define __stub macros and hopefully few prototypes,
1810
which can conflict with char $2 (); below.
1811
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1812
<limits.h> exists even on freestanding compilers. */
1815
# include <limits.h>
1817
# include <assert.h>
1822
/* Override any GCC internal prototype to avoid an error.
1823
Use char because int might match the return type of a GCC
1824
builtin and then its argument prototype would still apply. */
1829
/* The GNU C library defines this for functions which it implements
1830
to always fail with ENOSYS. Some functions are actually named
1831
something starting with __ and the normal name is an alias. */
1832
#if defined __stub_$2 || defined __stub___$2
1844
if ac_fn_c_try_link "$LINENO"; then :
1849
rm -f core conftest.err conftest.$ac_objext \
1850
conftest$ac_exeext conftest.$ac_ext
1853
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854
$as_echo "$ac_res" >&6; }
1855
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
} # ac_fn_c_check_func
1859
# ac_fn_c_check_header_preproc LINENO HEADER VAR
1860
# ----------------------------------------------
1861
# Tests whether HEADER is present, setting the cache variable VAR accordingly.
1862
ac_fn_c_check_header_preproc ()
1864
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866
$as_echo_n "checking for $2... " >&6; }
1867
if eval \${$3+:} false; then :
1868
$as_echo_n "(cached) " >&6
1870
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871
/* end confdefs.h. */
1874
if ac_fn_c_try_cpp "$LINENO"; then :
1879
rm -f conftest.err conftest.i conftest.$ac_ext
1882
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883
$as_echo "$ac_res" >&6; }
1884
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886
} # ac_fn_c_check_header_preproc
1888
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1889
# -------------------------------------------------------
1890
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1891
# the include files in INCLUDES and setting the cache variable VAR
1893
ac_fn_c_check_header_mongrel ()
1895
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896
if eval \${$3+:} false; then :
1897
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898
$as_echo_n "checking for $2... " >&6; }
1899
if eval \${$3+:} false; then :
1900
$as_echo_n "(cached) " >&6
1903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904
$as_echo "$ac_res" >&6; }
1906
# Is the header compilable?
1907
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1908
$as_echo_n "checking $2 usability... " >&6; }
1909
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910
/* end confdefs.h. */
1914
if ac_fn_c_try_compile "$LINENO"; then :
1915
ac_header_compiler=yes
1917
ac_header_compiler=no
1919
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1921
$as_echo "$ac_header_compiler" >&6; }
1923
# Is the header present?
1924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1925
$as_echo_n "checking $2 presence... " >&6; }
1926
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927
/* end confdefs.h. */
1930
if ac_fn_c_try_cpp "$LINENO"; then :
1931
ac_header_preproc=yes
1933
ac_header_preproc=no
1935
rm -f conftest.err conftest.i conftest.$ac_ext
1936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1937
$as_echo "$ac_header_preproc" >&6; }
1939
# So? What about this header?
1940
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1942
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1943
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1944
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1945
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1948
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1949
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1950
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1951
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1952
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1953
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1954
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1955
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1956
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1958
( $as_echo "## -------------------------------------------------------------------------------------------------- ##
1959
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome ##
1960
## -------------------------------------------------------------------------------------------------- ##"
1961
) | sed "s/^/$as_me: WARNING: /" >&2
1964
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965
$as_echo_n "checking for $2... " >&6; }
1966
if eval \${$3+:} false; then :
1967
$as_echo_n "(cached) " >&6
1969
eval "$3=\$ac_header_compiler"
1972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973
$as_echo "$ac_res" >&6; }
1975
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977
} # ac_fn_c_check_header_mongrel
1978
cat >config.log <<_ACEOF
1979
This file contains any messages produced by compilers while
1980
running configure, to aid debugging if configure makes a mistake.
1982
It was created by xf86-video-openchrome $as_me 0.3.3, which was
1983
generated by GNU Autoconf 2.69. Invocation command line was
1995
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1996
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1997
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1998
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1999
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2001
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2002
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2004
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2005
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2006
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2007
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2008
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2009
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2010
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2014
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018
test -z "$as_dir" && as_dir=.
2019
$as_echo "PATH: $as_dir"
2035
# Keep a trace of the command line.
2036
# Strip out --no-create and --no-recursion so they do not pile up.
2037
# Strip out --silent because we don't want to record it for future runs.
2038
# Also quote any args containing shell meta-characters.
2039
# Make two passes to allow for proper duplicate-argument suppression.
2043
ac_must_keep_next=false
2049
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2050
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2051
| -silent | --silent | --silen | --sile | --sil)
2054
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2057
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2059
as_fn_append ac_configure_args1 " '$ac_arg'"
2060
if test $ac_must_keep_next = true; then
2061
ac_must_keep_next=false # Got value, back to normal.
2064
*=* | --config-cache | -C | -disable-* | --disable-* \
2065
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2066
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2067
| -with-* | --with-* | -without-* | --without-* | --x)
2068
case "$ac_configure_args0 " in
2069
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2072
-* ) ac_must_keep_next=true ;;
2075
as_fn_append ac_configure_args " '$ac_arg'"
2080
{ ac_configure_args0=; unset ac_configure_args0;}
2081
{ ac_configure_args1=; unset ac_configure_args1;}
2083
# When interrupted or exit'd, cleanup temporary files, and complete
2084
# config.log. We remove comments because anyway the quotes in there
2085
# would cause problems or look ugly.
2086
# WARNING: Use '\'' to represent an apostrophe within the trap.
2087
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2088
trap 'exit_status=$?
2089
# Save into config.log some information that might help in debugging.
2093
$as_echo "## ---------------- ##
2094
## Cache variables. ##
2095
## ---------------- ##"
2097
# The following way of writing the cache mishandles newlines in values,
2099
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2100
eval ac_val=\$$ac_var
2104
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2105
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2108
_ | IFS | as_nl) ;; #(
2109
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2110
*) { eval $ac_var=; unset $ac_var;} ;;
2115
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2116
*${as_nl}ac_space=\ *)
2118
"s/'\''/'\''\\\\'\'''\''/g;
2119
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2122
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2129
$as_echo "## ----------------- ##
2130
## Output variables. ##
2131
## ----------------- ##"
2133
for ac_var in $ac_subst_vars
2135
eval ac_val=\$$ac_var
2137
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2139
$as_echo "$ac_var='\''$ac_val'\''"
2143
if test -n "$ac_subst_files"; then
2144
$as_echo "## ------------------- ##
2145
## File substitutions. ##
2146
## ------------------- ##"
2148
for ac_var in $ac_subst_files
2150
eval ac_val=\$$ac_var
2152
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2154
$as_echo "$ac_var='\''$ac_val'\''"
2159
if test -s confdefs.h; then
2160
$as_echo "## ----------- ##
2167
test "$ac_signal" != 0 &&
2168
$as_echo "$as_me: caught signal $ac_signal"
2169
$as_echo "$as_me: exit $exit_status"
2171
rm -f core *.core core.conftest.* &&
2172
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2175
for ac_signal in 1 2 13 15; do
2176
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2180
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2181
rm -f -r conftest* confdefs.h
2183
$as_echo "/* confdefs.h */" > confdefs.h
2185
# Predefined preprocessor variables.
2187
cat >>confdefs.h <<_ACEOF
2188
#define PACKAGE_NAME "$PACKAGE_NAME"
2191
cat >>confdefs.h <<_ACEOF
2192
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2195
cat >>confdefs.h <<_ACEOF
2196
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2199
cat >>confdefs.h <<_ACEOF
2200
#define PACKAGE_STRING "$PACKAGE_STRING"
2203
cat >>confdefs.h <<_ACEOF
2204
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2207
cat >>confdefs.h <<_ACEOF
2208
#define PACKAGE_URL "$PACKAGE_URL"
2212
# Let the site file select an alternate cache file if it wants to.
2213
# Prefer an explicitly selected file to automatically selected ones.
2216
if test -n "$CONFIG_SITE"; then
2217
# We do not want a PATH search for config.site.
2218
case $CONFIG_SITE in #((
2219
-*) ac_site_file1=./$CONFIG_SITE;;
2220
*/*) ac_site_file1=$CONFIG_SITE;;
2221
*) ac_site_file1=./$CONFIG_SITE;;
2223
elif test "x$prefix" != xNONE; then
2224
ac_site_file1=$prefix/share/config.site
2225
ac_site_file2=$prefix/etc/config.site
2227
ac_site_file1=$ac_default_prefix/share/config.site
2228
ac_site_file2=$ac_default_prefix/etc/config.site
2230
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2232
test "x$ac_site_file" = xNONE && continue
2233
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2234
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2235
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2236
sed 's/^/| /' "$ac_site_file" >&5
2238
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2239
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2240
as_fn_error $? "failed to load site script $ac_site_file
2241
See \`config.log' for more details" "$LINENO" 5; }
2245
if test -r "$cache_file"; then
2246
# Some versions of bash will fail to source /dev/null (special files
2247
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2248
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2249
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2250
$as_echo "$as_me: loading cache $cache_file" >&6;}
2252
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2253
*) . "./$cache_file";;
2257
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2258
$as_echo "$as_me: creating cache $cache_file" >&6;}
2262
# Check that the precious variables saved in the cache have kept the same
2264
ac_cache_corrupted=false
2265
for ac_var in $ac_precious_vars; do
2266
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2267
eval ac_new_set=\$ac_env_${ac_var}_set
2268
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2269
eval ac_new_val=\$ac_env_${ac_var}_value
2270
case $ac_old_set,$ac_new_set in
2272
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2273
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2274
ac_cache_corrupted=: ;;
2276
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2277
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2278
ac_cache_corrupted=: ;;
2281
if test "x$ac_old_val" != "x$ac_new_val"; then
2282
# differences in whitespace do not lead to failure.
2283
ac_old_val_w=`echo x $ac_old_val`
2284
ac_new_val_w=`echo x $ac_new_val`
2285
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2286
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2287
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2288
ac_cache_corrupted=:
2290
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2291
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2292
eval $ac_var=\$ac_old_val
2294
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2295
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2296
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2297
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2300
# Pass precious variables to config.status.
2301
if test "$ac_new_set" = set; then
2303
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2304
*) ac_arg=$ac_var=$ac_new_val ;;
2306
case " $ac_configure_args " in
2307
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2308
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2312
if $ac_cache_corrupted; then
2313
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2314
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2315
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2316
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2317
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2319
## -------------------- ##
2320
## Main body of script. ##
2321
## -------------------- ##
2324
ac_cpp='$CPP $CPPFLAGS'
2325
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2326
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2327
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2332
cat >>confdefs.h <<_ACEOF
2333
#define VIA_MAJOR_VERSION $(echo $PACKAGE_VERSION | sed -e 's/^\([0-9]*\)\.[0-9]*\.[0-9]*/\1/')
2337
cat >>confdefs.h <<_ACEOF
2338
#define VIA_MINOR_VERSION $(echo $PACKAGE_VERSION | sed -e 's/^[0-9]*\.\([0-9]*\)\.[0-9]*/\1/')
2342
cat >>confdefs.h <<_ACEOF
2343
#define VIA_PATCHLEVEL $(echo $PACKAGE_VERSION | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)/\1/')
2348
ac_config_headers="$ac_config_headers config.h"
2351
for ac_dir in . "$srcdir"/.; do
2352
if test -f "$ac_dir/install-sh"; then
2354
ac_install_sh="$ac_aux_dir/install-sh -c"
2356
elif test -f "$ac_dir/install.sh"; then
2358
ac_install_sh="$ac_aux_dir/install.sh -c"
2360
elif test -f "$ac_dir/shtool"; then
2362
ac_install_sh="$ac_aux_dir/shtool install -c"
2366
if test -z "$ac_aux_dir"; then
2367
as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2370
# These three variables are undocumented and unsupported,
2371
# and are intended to be withdrawn in a future Autoconf release.
2372
# They can cause serious problems if a builder's source tree is in a directory
2373
# whose full name contains unusual characters.
2374
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2375
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2376
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2380
am__api_version='1.12'
2382
# Find a good install program. We prefer a C program (faster),
2383
# so one script is as good as another. But avoid the broken or
2384
# incompatible versions:
2385
# SysV /etc/install, /usr/sbin/install
2386
# SunOS /usr/etc/install
2387
# IRIX /sbin/install
2389
# AmigaOS /C/install, which installs bootblocks on floppy discs
2390
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2391
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2392
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2393
# OS/2's system install, which has a completely different semantic
2394
# ./install, which can be erroneously created by make from ./install.sh.
2395
# Reject install programs that cannot install multiple files.
2396
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2397
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2398
if test -z "$INSTALL"; then
2399
if ${ac_cv_path_install+:} false; then :
2400
$as_echo_n "(cached) " >&6
2402
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406
test -z "$as_dir" && as_dir=.
2407
# Account for people who put trailing slashes in PATH elements.
2408
case $as_dir/ in #((
2409
./ | .// | /[cC]/* | \
2410
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2411
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2414
# OSF1 and SCO ODT 3.0 have their own names for install.
2415
# Don't use installbsd from OSF since it installs stuff as root
2417
for ac_prog in ginstall scoinst install; do
2418
for ac_exec_ext in '' $ac_executable_extensions; do
2419
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2420
if test $ac_prog = install &&
2421
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2422
# AIX install. It has an incompatible calling convention.
2424
elif test $ac_prog = install &&
2425
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2426
# program-specific install script used by HP pwplus--don't use.
2429
rm -rf conftest.one conftest.two conftest.dir
2430
echo one > conftest.one
2431
echo two > conftest.two
2433
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2434
test -s conftest.one && test -s conftest.two &&
2435
test -s conftest.dir/conftest.one &&
2436
test -s conftest.dir/conftest.two
2438
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2451
rm -rf conftest.one conftest.two conftest.dir
2454
if test "${ac_cv_path_install+set}" = set; then
2455
INSTALL=$ac_cv_path_install
2457
# As a last resort, use the slow shell script. Don't cache a
2458
# value for INSTALL within a source directory, because that will
2459
# break other packages using the cache if that directory is
2460
# removed, or if the value is a relative name.
2461
INSTALL=$ac_install_sh
2464
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2465
$as_echo "$INSTALL" >&6; }
2467
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2468
# It thinks the first close brace ends the variable substitution.
2469
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2471
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2473
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2475
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2476
$as_echo_n "checking whether build environment is sane... " >&6; }
2477
# Reject unsafe characters in $srcdir or the absolute working directory
2478
# name. Accept space and tab only in the latter.
2482
*[\\\"\#\$\&\'\`$am_lf]*)
2483
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2486
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2487
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2490
# Do 'set' in a subshell so we don't clobber the current shell's
2491
# arguments. Must try -L first in case configure is actually a
2492
# symlink; some systems play weird games with the mod time of symlinks
2493
# (eg FreeBSD returns the mod time of the symlink's containing
2497
for am_try in 1 2; do
2498
echo "timestamp, slept: $am_has_slept" > conftest.file
2499
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2500
if test "$*" = "X"; then
2502
set X `ls -t "$srcdir/configure" conftest.file`
2504
if test "$*" != "X $srcdir/configure conftest.file" \
2505
&& test "$*" != "X conftest.file $srcdir/configure"; then
2507
# If neither matched, then we have a broken ls. This can happen
2508
# if, for instance, CONFIG_SHELL is bash and it inherits a
2509
# broken ls alias from the environment. This has actually
2510
# happened. Such a system could not be considered "sane".
2511
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2512
alias in your environment" "$LINENO" 5
2514
if test "$2" = conftest.file || test $am_try -eq 2; then
2521
test "$2" = conftest.file
2527
as_fn_error $? "newly created file is older than distributed files!
2528
Check your system clock" "$LINENO" 5
2530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2531
$as_echo "yes" >&6; }
2532
# If we didn't sleep, we still need to ensure time stamps of config.status and
2533
# generated files are strictly newer.
2535
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2542
test "$program_prefix" != NONE &&
2543
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2544
# Use a double $ so make ignores it.
2545
test "$program_suffix" != NONE &&
2546
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2547
# Double any \ or $.
2548
# By default was `s,x,x', remove it if useless.
2549
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2550
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2552
# expand $ac_aux_dir to an absolute path
2553
am_aux_dir=`cd $ac_aux_dir && pwd`
2555
if test x"${MISSING+set}" != xset; then
2558
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2560
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2563
# Use eval to expand $SHELL
2564
if eval "$MISSING --run true"; then
2565
am_missing_run="$MISSING --run "
2568
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2569
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2572
if test x"${install_sh}" != xset; then
2575
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2577
install_sh="\${SHELL} $am_aux_dir/install-sh"
2581
# Installed binaries are usually stripped using 'strip' when the user
2582
# run "make install-strip". However 'strip' might not be the right
2583
# tool to use in cross-compilation environments, therefore Automake
2584
# will honor the 'STRIP' environment variable to overrule this program.
2585
if test "$cross_compiling" != no; then
2586
if test -n "$ac_tool_prefix"; then
2587
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2588
set dummy ${ac_tool_prefix}strip; ac_word=$2
2589
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590
$as_echo_n "checking for $ac_word... " >&6; }
2591
if ${ac_cv_prog_STRIP+:} false; then :
2592
$as_echo_n "(cached) " >&6
2594
if test -n "$STRIP"; then
2595
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2597
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601
test -z "$as_dir" && as_dir=.
2602
for ac_exec_ext in '' $ac_executable_extensions; do
2603
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2604
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2605
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2614
STRIP=$ac_cv_prog_STRIP
2615
if test -n "$STRIP"; then
2616
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2617
$as_echo "$STRIP" >&6; }
2619
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620
$as_echo "no" >&6; }
2625
if test -z "$ac_cv_prog_STRIP"; then
2627
# Extract the first word of "strip", so it can be a program name with args.
2628
set dummy strip; ac_word=$2
2629
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2630
$as_echo_n "checking for $ac_word... " >&6; }
2631
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2632
$as_echo_n "(cached) " >&6
2634
if test -n "$ac_ct_STRIP"; then
2635
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2637
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641
test -z "$as_dir" && as_dir=.
2642
for ac_exec_ext in '' $ac_executable_extensions; do
2643
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2644
ac_cv_prog_ac_ct_STRIP="strip"
2645
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2655
if test -n "$ac_ct_STRIP"; then
2656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2657
$as_echo "$ac_ct_STRIP" >&6; }
2659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660
$as_echo "no" >&6; }
2663
if test "x$ac_ct_STRIP" = x; then
2666
case $cross_compiling:$ac_tool_warned in
2668
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2669
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2670
ac_tool_warned=yes ;;
2675
STRIP="$ac_cv_prog_STRIP"
2679
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2682
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2683
if test -z "$MKDIR_P"; then
2684
if ${ac_cv_path_mkdir+:} false; then :
2685
$as_echo_n "(cached) " >&6
2687
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2691
test -z "$as_dir" && as_dir=.
2692
for ac_prog in mkdir gmkdir; do
2693
for ac_exec_ext in '' $ac_executable_extensions; do
2694
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2695
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2696
'mkdir (GNU coreutils) '* | \
2697
'mkdir (coreutils) '* | \
2698
'mkdir (fileutils) '4.1*)
2699
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2709
test -d ./--version && rmdir ./--version
2710
if test "${ac_cv_path_mkdir+set}" = set; then
2711
MKDIR_P="$ac_cv_path_mkdir -p"
2713
# As a last resort, use the slow shell script. Don't cache a
2714
# value for MKDIR_P within a source directory, because that will
2715
# break other packages using the cache if that directory is
2716
# removed, or if the value is a relative name.
2717
MKDIR_P="$ac_install_sh -d"
2720
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2721
$as_echo "$MKDIR_P" >&6; }
2723
for ac_prog in gawk mawk nawk awk
2725
# Extract the first word of "$ac_prog", so it can be a program name with args.
2726
set dummy $ac_prog; ac_word=$2
2727
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728
$as_echo_n "checking for $ac_word... " >&6; }
2729
if ${ac_cv_prog_AWK+:} false; then :
2730
$as_echo_n "(cached) " >&6
2732
if test -n "$AWK"; then
2733
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2735
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739
test -z "$as_dir" && as_dir=.
2740
for ac_exec_ext in '' $ac_executable_extensions; do
2741
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742
ac_cv_prog_AWK="$ac_prog"
2743
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753
if test -n "$AWK"; then
2754
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2755
$as_echo "$AWK" >&6; }
2757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758
$as_echo "no" >&6; }
2762
test -n "$AWK" && break
2765
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2766
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2768
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2769
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2770
$as_echo_n "(cached) " >&6
2772
cat >conftest.make <<\_ACEOF
2775
@echo '@@@%%%=$(MAKE)=@@@%%%'
2777
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2778
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2780
eval ac_cv_prog_make_${ac_make}_set=yes;;
2782
eval ac_cv_prog_make_${ac_make}_set=no;;
2786
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2788
$as_echo "yes" >&6; }
2791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792
$as_echo "no" >&6; }
2793
SET_MAKE="MAKE=${MAKE-make}"
2796
rm -rf .tst 2>/dev/null
2797
mkdir .tst 2>/dev/null
2798
if test -d .tst; then
2803
rmdir .tst 2>/dev/null
2805
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2806
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2807
# is not polluted with repeated "-I."
2808
am__isrc=' -I$(srcdir)'
2809
# test to see if srcdir already configured
2810
if test -f $srcdir/config.status; then
2811
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2815
# test whether we have cygpath
2816
if test -z "$CYGPATH_W"; then
2817
if (cygpath --version) >/dev/null 2>/dev/null; then
2818
CYGPATH_W='cygpath -w'
2825
# Define the identity of the package.
2826
PACKAGE='xf86-video-openchrome'
2830
cat >>confdefs.h <<_ACEOF
2831
#define PACKAGE "$PACKAGE"
2835
cat >>confdefs.h <<_ACEOF
2836
#define VERSION "$VERSION"
2839
# Some tools Automake needs.
2841
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2844
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2847
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2850
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2853
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2855
# For better backward compatibility. To be removed once Automake 1.9.x
2856
# dies out for good. For more background, see:
2857
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2858
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2859
mkdir_p='$(MKDIR_P)'
2861
# We need awk for the "check" target. The system "awk" is bad on
2863
# Always define AMTAR for backward compatibility. Yes, it's still used
2864
# in the wild :-( We should find a proper way to deprecate it ...
2867
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2874
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2875
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2876
# Check whether --enable-maintainer-mode was given.
2877
if test "${enable_maintainer_mode+set}" = set; then :
2878
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2880
USE_MAINTAINER_MODE=no
2883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2884
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2885
if test $USE_MAINTAINER_MODE = yes; then
2886
MAINTAINER_MODE_TRUE=
2887
MAINTAINER_MODE_FALSE='#'
2889
MAINTAINER_MODE_TRUE='#'
2890
MAINTAINER_MODE_FALSE=
2893
MAINT=$MAINTAINER_MODE_TRUE
2897
# Initialize libtool
2898
# Check whether --enable-static was given.
2899
if test "${enable_static+set}" = set; then :
2900
enableval=$enable_static; p=${PACKAGE-default}
2902
yes) enable_static=yes ;;
2903
no) enable_static=no ;;
2906
# Look at the argument we got. We use all the common list separators.
2907
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2908
for pkg in $enableval; do
2910
if test "X$pkg" = "X$p"; then
2931
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2932
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2937
macro_version='2.4.2'
2938
macro_revision='1.3337'
2952
ltmain="$ac_aux_dir/ltmain.sh"
2954
# Make sure we can run config.sub.
2955
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2956
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2958
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2959
$as_echo_n "checking build system type... " >&6; }
2960
if ${ac_cv_build+:} false; then :
2961
$as_echo_n "(cached) " >&6
2963
ac_build_alias=$build_alias
2964
test "x$ac_build_alias" = x &&
2965
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2966
test "x$ac_build_alias" = x &&
2967
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2968
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2969
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2973
$as_echo "$ac_cv_build" >&6; }
2974
case $ac_cv_build in
2976
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2979
ac_save_IFS=$IFS; IFS='-'
2985
# Remember, the first character of IFS is used to create $*,
2986
# except with old shells:
2989
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2993
$as_echo_n "checking host system type... " >&6; }
2994
if ${ac_cv_host+:} false; then :
2995
$as_echo_n "(cached) " >&6
2997
if test "x$host_alias" = x; then
2998
ac_cv_host=$ac_cv_build
3000
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3001
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3006
$as_echo "$ac_cv_host" >&6; }
3009
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3012
ac_save_IFS=$IFS; IFS='-'
3018
# Remember, the first character of IFS is used to create $*,
3019
# except with old shells:
3022
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3025
# Backslashify metacharacters that are still active within
3026
# double-quoted strings.
3027
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3029
# Same as above, but do not quote variable references.
3030
double_quote_subst='s/\(["`\\]\)/\\\1/g'
3032
# Sed substitution to delay expansion of an escaped shell variable in a
3033
# double_quote_subst'ed string.
3034
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3036
# Sed substitution to delay expansion of an escaped single quote.
3037
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3039
# Sed substitution to avoid accidental globbing in evaled expressions
3040
no_glob_subst='s/\*/\\\*/g'
3042
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3043
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3044
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3046
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3047
$as_echo_n "checking how to print strings... " >&6; }
3048
# Test print first, because it will be a builtin if present.
3049
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3050
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3052
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3055
# Use this function as a fallback that always works.
3056
func_fallback_echo ()
3058
eval 'cat <<_LTECHO_EOF
3062
ECHO='func_fallback_echo'
3065
# func_echo_all arg...
3066
# Invoke $ECHO with all args, space-separated.
3073
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3074
$as_echo "printf" >&6; } ;;
3075
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3076
$as_echo "print -r" >&6; } ;;
3077
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3078
$as_echo "cat" >&6; } ;;
3094
DEPDIR="${am__leading_dot}deps"
3096
ac_config_commands="$ac_config_commands depfiles"
3099
am_make=${MAKE-make}
3100
cat > confinc << 'END'
3102
@echo this is the am__doit target
3105
# If we don't find an include directive, just comment out the code.
3106
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3107
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3111
# First try GNU make style include.
3112
echo "include confinc" > confmf
3113
# Ignore all kinds of additional output from 'make'.
3114
case `$am_make -s -f confmf 2> /dev/null` in #(
3115
*the\ am__doit\ target*)
3121
# Now try BSD make style include.
3122
if test "$am__include" = "#"; then
3123
echo '.include "confinc"' > confmf
3124
case `$am_make -s -f confmf 2> /dev/null` in #(
3125
*the\ am__doit\ target*)
3126
am__include=.include
3134
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3135
$as_echo "$_am_result" >&6; }
3136
rm -f confinc confmf
3138
# Check whether --enable-dependency-tracking was given.
3139
if test "${enable_dependency_tracking+set}" = set; then :
3140
enableval=$enable_dependency_tracking;
3143
if test "x$enable_dependency_tracking" != xno; then
3144
am_depcomp="$ac_aux_dir/depcomp"
3148
if test "x$enable_dependency_tracking" != xno; then
3158
ac_cpp='$CPP $CPPFLAGS'
3159
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3162
if test -n "$ac_tool_prefix"; then
3163
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3164
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3165
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166
$as_echo_n "checking for $ac_word... " >&6; }
3167
if ${ac_cv_prog_CC+:} false; then :
3168
$as_echo_n "(cached) " >&6
3170
if test -n "$CC"; then
3171
ac_cv_prog_CC="$CC" # Let the user override the test.
3173
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177
test -z "$as_dir" && as_dir=.
3178
for ac_exec_ext in '' $ac_executable_extensions; do
3179
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3181
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191
if test -n "$CC"; then
3192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193
$as_echo "$CC" >&6; }
3195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196
$as_echo "no" >&6; }
3201
if test -z "$ac_cv_prog_CC"; then
3203
# Extract the first word of "gcc", so it can be a program name with args.
3204
set dummy gcc; ac_word=$2
3205
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206
$as_echo_n "checking for $ac_word... " >&6; }
3207
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3208
$as_echo_n "(cached) " >&6
3210
if test -n "$ac_ct_CC"; then
3211
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217
test -z "$as_dir" && as_dir=.
3218
for ac_exec_ext in '' $ac_executable_extensions; do
3219
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220
ac_cv_prog_ac_ct_CC="gcc"
3221
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3231
if test -n "$ac_ct_CC"; then
3232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3233
$as_echo "$ac_ct_CC" >&6; }
3235
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236
$as_echo "no" >&6; }
3239
if test "x$ac_ct_CC" = x; then
3242
case $cross_compiling:$ac_tool_warned in
3244
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3245
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3246
ac_tool_warned=yes ;;
3254
if test -z "$CC"; then
3255
if test -n "$ac_tool_prefix"; then
3256
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3257
set dummy ${ac_tool_prefix}cc; ac_word=$2
3258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259
$as_echo_n "checking for $ac_word... " >&6; }
3260
if ${ac_cv_prog_CC+:} false; then :
3261
$as_echo_n "(cached) " >&6
3263
if test -n "$CC"; then
3264
ac_cv_prog_CC="$CC" # Let the user override the test.
3266
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270
test -z "$as_dir" && as_dir=.
3271
for ac_exec_ext in '' $ac_executable_extensions; do
3272
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273
ac_cv_prog_CC="${ac_tool_prefix}cc"
3274
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284
if test -n "$CC"; then
3285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3286
$as_echo "$CC" >&6; }
3288
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289
$as_echo "no" >&6; }
3295
if test -z "$CC"; then
3296
# Extract the first word of "cc", so it can be a program name with args.
3297
set dummy cc; ac_word=$2
3298
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299
$as_echo_n "checking for $ac_word... " >&6; }
3300
if ${ac_cv_prog_CC+:} false; then :
3301
$as_echo_n "(cached) " >&6
3303
if test -n "$CC"; then
3304
ac_cv_prog_CC="$CC" # Let the user override the test.
3307
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311
test -z "$as_dir" && as_dir=.
3312
for ac_exec_ext in '' $ac_executable_extensions; do
3313
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3315
ac_prog_rejected=yes
3319
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326
if test $ac_prog_rejected = yes; then
3327
# We found a bogon in the path, so make sure we never use it.
3328
set dummy $ac_cv_prog_CC
3330
if test $# != 0; then
3331
# We chose a different compiler from the bogus one.
3332
# However, it has the same basename, so the bogon will be chosen
3333
# first if we set CC to just the basename; use the full file name.
3335
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3341
if test -n "$CC"; then
3342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3343
$as_echo "$CC" >&6; }
3345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346
$as_echo "no" >&6; }
3351
if test -z "$CC"; then
3352
if test -n "$ac_tool_prefix"; then
3353
for ac_prog in cl.exe
3355
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3356
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358
$as_echo_n "checking for $ac_word... " >&6; }
3359
if ${ac_cv_prog_CC+:} false; then :
3360
$as_echo_n "(cached) " >&6
3362
if test -n "$CC"; then
3363
ac_cv_prog_CC="$CC" # Let the user override the test.
3365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369
test -z "$as_dir" && as_dir=.
3370
for ac_exec_ext in '' $ac_executable_extensions; do
3371
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3373
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383
if test -n "$CC"; then
3384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3385
$as_echo "$CC" >&6; }
3387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388
$as_echo "no" >&6; }
3392
test -n "$CC" && break
3395
if test -z "$CC"; then
3397
for ac_prog in cl.exe
3399
# Extract the first word of "$ac_prog", so it can be a program name with args.
3400
set dummy $ac_prog; ac_word=$2
3401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402
$as_echo_n "checking for $ac_word... " >&6; }
3403
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3404
$as_echo_n "(cached) " >&6
3406
if test -n "$ac_ct_CC"; then
3407
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413
test -z "$as_dir" && as_dir=.
3414
for ac_exec_ext in '' $ac_executable_extensions; do
3415
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3416
ac_cv_prog_ac_ct_CC="$ac_prog"
3417
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3427
if test -n "$ac_ct_CC"; then
3428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3429
$as_echo "$ac_ct_CC" >&6; }
3431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432
$as_echo "no" >&6; }
3436
test -n "$ac_ct_CC" && break
3439
if test "x$ac_ct_CC" = x; then
3442
case $cross_compiling:$ac_tool_warned in
3444
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3445
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3446
ac_tool_warned=yes ;;
3455
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457
as_fn_error $? "no acceptable C compiler found in \$PATH
3458
See \`config.log' for more details" "$LINENO" 5; }
3460
# Provide some information about the compiler.
3461
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3464
for ac_option in --version -v -V -qversion; do
3465
{ { ac_try="$ac_compiler $ac_option >&5"
3467
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468
*) ac_try_echo=$ac_try;;
3470
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471
$as_echo "$ac_try_echo"; } >&5
3472
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3474
if test -s conftest.err; then
3476
... rest of stderr output deleted ...
3477
10q' conftest.err >conftest.er1
3478
cat conftest.er1 >&5
3480
rm -f conftest.er1 conftest.err
3481
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482
test $ac_status = 0; }
3485
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486
/* end confdefs.h. */
3496
ac_clean_files_save=$ac_clean_files
3497
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3498
# Try to create an executable without -o first, disregard a.out.
3499
# It will help us diagnose broken compilers, and finding out an intuition
3501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3502
$as_echo_n "checking whether the C compiler works... " >&6; }
3503
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3505
# The possible output files:
3506
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3509
for ac_file in $ac_files
3512
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3513
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3518
if { { ac_try="$ac_link_default"
3520
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521
*) ac_try_echo=$ac_try;;
3523
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524
$as_echo "$ac_try_echo"; } >&5
3525
(eval "$ac_link_default") 2>&5
3527
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528
test $ac_status = 0; }; then :
3529
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3530
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3531
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3532
# so that the user can short-circuit this test for compilers unknown to
3534
for ac_file in $ac_files ''
3536
test -f "$ac_file" || continue
3538
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3541
# We found the default executable, but exeext='' is most
3545
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3547
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3549
# We set ac_cv_exeext here because the later test for it is not
3550
# safe: cross compilers may not add the suffix if given an `-o'
3551
# argument, so we may need to know it at that point already.
3552
# Even if this section looks crufty: it has the advantage of
3559
test "$ac_cv_exeext" = no && ac_cv_exeext=
3564
if test -z "$ac_file"; then :
3565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566
$as_echo "no" >&6; }
3567
$as_echo "$as_me: failed program was:" >&5
3568
sed 's/^/| /' conftest.$ac_ext >&5
3570
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572
as_fn_error 77 "C compiler cannot create executables
3573
See \`config.log' for more details" "$LINENO" 5; }
3575
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3576
$as_echo "yes" >&6; }
3578
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3579
$as_echo_n "checking for C compiler default output file name... " >&6; }
3580
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3581
$as_echo "$ac_file" >&6; }
3582
ac_exeext=$ac_cv_exeext
3584
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3585
ac_clean_files=$ac_clean_files_save
3586
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3587
$as_echo_n "checking for suffix of executables... " >&6; }
3588
if { { ac_try="$ac_link"
3590
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591
*) ac_try_echo=$ac_try;;
3593
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594
$as_echo "$ac_try_echo"; } >&5
3595
(eval "$ac_link") 2>&5
3597
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598
test $ac_status = 0; }; then :
3599
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3600
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3601
# work properly (i.e., refer to `conftest.exe'), while it won't with
3603
for ac_file in conftest.exe conftest conftest.*; do
3604
test -f "$ac_file" || continue
3606
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3607
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3613
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3614
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3615
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3616
See \`config.log' for more details" "$LINENO" 5; }
3618
rm -f conftest conftest$ac_cv_exeext
3619
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3620
$as_echo "$ac_cv_exeext" >&6; }
3622
rm -f conftest.$ac_ext
3623
EXEEXT=$ac_cv_exeext
3625
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626
/* end confdefs.h. */
3631
FILE *f = fopen ("conftest.out", "w");
3632
return ferror (f) || fclose (f) != 0;
3638
ac_clean_files="$ac_clean_files conftest.out"
3639
# Check that the compiler produces executables we can run. If not, either
3640
# the compiler is broken, or we cross compile.
3641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3642
$as_echo_n "checking whether we are cross compiling... " >&6; }
3643
if test "$cross_compiling" != yes; then
3644
{ { ac_try="$ac_link"
3646
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647
*) ac_try_echo=$ac_try;;
3649
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650
$as_echo "$ac_try_echo"; } >&5
3651
(eval "$ac_link") 2>&5
3653
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654
test $ac_status = 0; }
3655
if { ac_try='./conftest$ac_cv_exeext'
3656
{ { case "(($ac_try" in
3657
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658
*) ac_try_echo=$ac_try;;
3660
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3661
$as_echo "$ac_try_echo"; } >&5
3662
(eval "$ac_try") 2>&5
3664
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3665
test $ac_status = 0; }; }; then
3668
if test "$cross_compiling" = maybe; then
3671
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3672
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3673
as_fn_error $? "cannot run C compiled programs.
3674
If you meant to cross compile, use \`--host'.
3675
See \`config.log' for more details" "$LINENO" 5; }
3679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3680
$as_echo "$cross_compiling" >&6; }
3682
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3683
ac_clean_files=$ac_clean_files_save
3684
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3685
$as_echo_n "checking for suffix of object files... " >&6; }
3686
if ${ac_cv_objext+:} false; then :
3687
$as_echo_n "(cached) " >&6
3689
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690
/* end confdefs.h. */
3700
rm -f conftest.o conftest.obj
3701
if { { ac_try="$ac_compile"
3703
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704
*) ac_try_echo=$ac_try;;
3706
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3707
$as_echo "$ac_try_echo"; } >&5
3708
(eval "$ac_compile") 2>&5
3710
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3711
test $ac_status = 0; }; then :
3712
for ac_file in conftest.o conftest.obj conftest.*; do
3713
test -f "$ac_file" || continue;
3715
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3716
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3721
$as_echo "$as_me: failed program was:" >&5
3722
sed 's/^/| /' conftest.$ac_ext >&5
3724
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3725
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3726
as_fn_error $? "cannot compute suffix of object files: cannot compile
3727
See \`config.log' for more details" "$LINENO" 5; }
3729
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3732
$as_echo "$ac_cv_objext" >&6; }
3733
OBJEXT=$ac_cv_objext
3735
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3736
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3737
if ${ac_cv_c_compiler_gnu+:} false; then :
3738
$as_echo_n "(cached) " >&6
3740
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741
/* end confdefs.h. */
3754
if ac_fn_c_try_compile "$LINENO"; then :
3759
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3764
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3765
if test $ac_compiler_gnu = yes; then
3770
ac_test_CFLAGS=${CFLAGS+set}
3771
ac_save_CFLAGS=$CFLAGS
3772
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3773
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3774
if ${ac_cv_prog_cc_g+:} false; then :
3775
$as_echo_n "(cached) " >&6
3777
ac_save_c_werror_flag=$ac_c_werror_flag
3778
ac_c_werror_flag=yes
3781
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782
/* end confdefs.h. */
3792
if ac_fn_c_try_compile "$LINENO"; then :
3796
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797
/* end confdefs.h. */
3807
if ac_fn_c_try_compile "$LINENO"; then :
3810
ac_c_werror_flag=$ac_save_c_werror_flag
3812
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813
/* end confdefs.h. */
3823
if ac_fn_c_try_compile "$LINENO"; then :
3826
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831
ac_c_werror_flag=$ac_save_c_werror_flag
3833
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3834
$as_echo "$ac_cv_prog_cc_g" >&6; }
3835
if test "$ac_test_CFLAGS" = set; then
3836
CFLAGS=$ac_save_CFLAGS
3837
elif test $ac_cv_prog_cc_g = yes; then
3838
if test "$GCC" = yes; then
3844
if test "$GCC" = yes; then
3850
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3851
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3852
if ${ac_cv_prog_cc_c89+:} false; then :
3853
$as_echo_n "(cached) " >&6
3855
ac_cv_prog_cc_c89=no
3857
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858
/* end confdefs.h. */
3862
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3863
struct buf { int x; };
3864
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3865
static char *e (p, i)
3871
static char *f (char * (*g) (char **, int), char **p, ...)
3876
s = g (p, va_arg (v,int));
3881
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3882
function prototypes and stuff, but not '\xHH' hex character constants.
3883
These don't provoke an error unfortunately, instead are silently treated
3884
as 'x'. The following induces an error, until -std is added to get
3885
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3886
array size at least. It's necessary to write '\x00'==0 to get something
3887
that's true only with -std. */
3888
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3890
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3891
inside strings and character constants. */
3893
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3895
int test (int i, double x);
3896
struct s1 {int (*f) (int a);};
3897
struct s2 {int (*f) (double a);};
3898
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3904
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3909
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3910
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3912
CC="$ac_save_CC $ac_arg"
3913
if ac_fn_c_try_compile "$LINENO"; then :
3914
ac_cv_prog_cc_c89=$ac_arg
3916
rm -f core conftest.err conftest.$ac_objext
3917
test "x$ac_cv_prog_cc_c89" != "xno" && break
3919
rm -f conftest.$ac_ext
3924
case "x$ac_cv_prog_cc_c89" in
3926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3927
$as_echo "none needed" >&6; } ;;
3929
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3930
$as_echo "unsupported" >&6; } ;;
3932
CC="$CC $ac_cv_prog_cc_c89"
3933
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3934
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3936
if test "x$ac_cv_prog_cc_c89" != xno; then :
3941
ac_cpp='$CPP $CPPFLAGS'
3942
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3943
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3944
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946
depcc="$CC" am_compiler_list=
3948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3949
$as_echo_n "checking dependency style of $depcc... " >&6; }
3950
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3951
$as_echo_n "(cached) " >&6
3953
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3954
# We make a subdir and do the tests there. Otherwise we can end up
3955
# making bogus files that we don't know about and never remove. For
3956
# instance it was reported that on HP-UX the gcc test will end up
3957
# making a dummy file named 'D' -- because '-MD' means "put the output
3961
# Copy depcomp to subdir because otherwise we won't find it if we're
3962
# using a relative directory.
3963
cp "$am_depcomp" conftest.dir
3965
# We will build objects and dependencies in a subdirectory because
3966
# it helps to detect inapplicable dependency modes. For instance
3967
# both Tru64's cc and ICC support -MD to output dependencies as a
3968
# side effect of compilation, but ICC will put the dependencies in
3969
# the current directory while Tru64 will put them in the object
3973
am_cv_CC_dependencies_compiler_type=none
3974
if test "$am_compiler_list" = ""; then
3975
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3978
case " $depcc " in #(
3979
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3982
for depmode in $am_compiler_list; do
3983
# Setup a source with many dependencies, because some compilers
3984
# like to wrap large dependency lists on column 80 (with \), and
3985
# we should not choose a depcomp mode which is confused by this.
3987
# We need to recreate these files for each test, as the compiler may
3988
# overwrite some of them when testing with obscure command lines.
3989
# This happens at least with the AIX C compiler.
3991
for i in 1 2 3 4 5 6; do
3992
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3993
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3994
# Solaris 10 /bin/sh.
3995
echo '/* dummy */' > sub/conftst$i.h
3997
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3999
# We check with '-c' and '-o' for the sake of the "dashmstdout"
4000
# mode. It turns out that the SunPro C++ compiler does not properly
4001
# handle '-M -o', and we need to detect this. Also, some Intel
4002
# versions had trouble with output in subdirs.
4003
am__obj=sub/conftest.${OBJEXT-o}
4004
am__minus_obj="-o $am__obj"
4007
# This depmode causes a compiler race in universal mode.
4008
test "$am__universal" = false || continue
4011
# After this tag, mechanisms are not by side-effect, so they'll
4012
# only be used when explicitly requested.
4013
if test "x$enable_dependency_tracking" = xyes; then
4019
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4020
# This compiler won't grok '-c -o', but also, the minuso test has
4021
# not run yet. These depmodes are late enough in the game, and
4022
# so weak that their functioning should not be impacted.
4023
am__obj=conftest.${OBJEXT-o}
4028
if depmode=$depmode \
4029
source=sub/conftest.c object=$am__obj \
4030
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4031
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4032
>/dev/null 2>conftest.err &&
4033
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4034
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4035
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4036
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4037
# icc doesn't choke on unknown options, it will just issue warnings
4038
# or remarks (even with -Werror). So we grep stderr for any message
4039
# that says an option was ignored or not supported.
4040
# When given -MP, icc 7.0 and 7.1 complain thusly:
4041
# icc: Command line warning: ignoring option '-M'; no argument required
4042
# The diagnosis changed in icc 8.0:
4043
# icc: Command line remark: option '-MP' not supported
4044
if (grep 'ignoring option' conftest.err ||
4045
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4046
am_cv_CC_dependencies_compiler_type=$depmode
4055
am_cv_CC_dependencies_compiler_type=none
4059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4060
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4061
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4064
test "x$enable_dependency_tracking" != xno \
4065
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4067
am__fastdepCC_FALSE='#'
4069
am__fastdepCC_TRUE='#'
4070
am__fastdepCC_FALSE=
4074
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4075
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4076
if ${ac_cv_path_SED+:} false; then :
4077
$as_echo_n "(cached) " >&6
4079
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4080
for ac_i in 1 2 3 4 5 6 7; do
4081
ac_script="$ac_script$as_nl$ac_script"
4083
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4084
{ ac_script=; unset ac_script;}
4085
if test -z "$SED"; then
4086
ac_path_SED_found=false
4087
# Loop through the user's path and test for each of PROGNAME-LIST
4088
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092
test -z "$as_dir" && as_dir=.
4093
for ac_prog in sed gsed; do
4094
for ac_exec_ext in '' $ac_executable_extensions; do
4095
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4096
as_fn_executable_p "$ac_path_SED" || continue
4097
# Check for GNU ac_path_SED and select it if it is found.
4098
# Check for GNU $ac_path_SED
4099
case `"$ac_path_SED" --version 2>&1` in
4101
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4104
$as_echo_n 0123456789 >"conftest.in"
4107
cat "conftest.in" "conftest.in" >"conftest.tmp"
4108
mv "conftest.tmp" "conftest.in"
4109
cp "conftest.in" "conftest.nl"
4110
$as_echo '' >> "conftest.nl"
4111
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4112
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4113
as_fn_arith $ac_count + 1 && ac_count=$as_val
4114
if test $ac_count -gt ${ac_path_SED_max-0}; then
4115
# Best one so far, save it but keep looking for a better one
4116
ac_cv_path_SED="$ac_path_SED"
4117
ac_path_SED_max=$ac_count
4119
# 10*(2^10) chars as input seems more than enough
4120
test $ac_count -gt 10 && break
4122
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4125
$ac_path_SED_found && break 3
4130
if test -z "$ac_cv_path_SED"; then
4131
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4138
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4139
$as_echo "$ac_cv_path_SED" >&6; }
4140
SED="$ac_cv_path_SED"
4143
test -z "$SED" && SED=sed
4144
Xsed="$SED -e 1s/^X//"
4156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4157
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4158
if ${ac_cv_path_GREP+:} false; then :
4159
$as_echo_n "(cached) " >&6
4161
if test -z "$GREP"; then
4162
ac_path_GREP_found=false
4163
# Loop through the user's path and test for each of PROGNAME-LIST
4164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4168
test -z "$as_dir" && as_dir=.
4169
for ac_prog in grep ggrep; do
4170
for ac_exec_ext in '' $ac_executable_extensions; do
4171
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4172
as_fn_executable_p "$ac_path_GREP" || continue
4173
# Check for GNU ac_path_GREP and select it if it is found.
4174
# Check for GNU $ac_path_GREP
4175
case `"$ac_path_GREP" --version 2>&1` in
4177
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4180
$as_echo_n 0123456789 >"conftest.in"
4183
cat "conftest.in" "conftest.in" >"conftest.tmp"
4184
mv "conftest.tmp" "conftest.in"
4185
cp "conftest.in" "conftest.nl"
4186
$as_echo 'GREP' >> "conftest.nl"
4187
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4188
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4189
as_fn_arith $ac_count + 1 && ac_count=$as_val
4190
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4191
# Best one so far, save it but keep looking for a better one
4192
ac_cv_path_GREP="$ac_path_GREP"
4193
ac_path_GREP_max=$ac_count
4195
# 10*(2^10) chars as input seems more than enough
4196
test $ac_count -gt 10 && break
4198
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4201
$ac_path_GREP_found && break 3
4206
if test -z "$ac_cv_path_GREP"; then
4207
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4210
ac_cv_path_GREP=$GREP
4214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4215
$as_echo "$ac_cv_path_GREP" >&6; }
4216
GREP="$ac_cv_path_GREP"
4219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4220
$as_echo_n "checking for egrep... " >&6; }
4221
if ${ac_cv_path_EGREP+:} false; then :
4222
$as_echo_n "(cached) " >&6
4224
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4225
then ac_cv_path_EGREP="$GREP -E"
4227
if test -z "$EGREP"; then
4228
ac_path_EGREP_found=false
4229
# Loop through the user's path and test for each of PROGNAME-LIST
4230
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4234
test -z "$as_dir" && as_dir=.
4235
for ac_prog in egrep; do
4236
for ac_exec_ext in '' $ac_executable_extensions; do
4237
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4238
as_fn_executable_p "$ac_path_EGREP" || continue
4239
# Check for GNU ac_path_EGREP and select it if it is found.
4240
# Check for GNU $ac_path_EGREP
4241
case `"$ac_path_EGREP" --version 2>&1` in
4243
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4246
$as_echo_n 0123456789 >"conftest.in"
4249
cat "conftest.in" "conftest.in" >"conftest.tmp"
4250
mv "conftest.tmp" "conftest.in"
4251
cp "conftest.in" "conftest.nl"
4252
$as_echo 'EGREP' >> "conftest.nl"
4253
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4254
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4255
as_fn_arith $ac_count + 1 && ac_count=$as_val
4256
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4257
# Best one so far, save it but keep looking for a better one
4258
ac_cv_path_EGREP="$ac_path_EGREP"
4259
ac_path_EGREP_max=$ac_count
4261
# 10*(2^10) chars as input seems more than enough
4262
test $ac_count -gt 10 && break
4264
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4267
$ac_path_EGREP_found && break 3
4272
if test -z "$ac_cv_path_EGREP"; then
4273
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4276
ac_cv_path_EGREP=$EGREP
4281
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4282
$as_echo "$ac_cv_path_EGREP" >&6; }
4283
EGREP="$ac_cv_path_EGREP"
4286
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4287
$as_echo_n "checking for fgrep... " >&6; }
4288
if ${ac_cv_path_FGREP+:} false; then :
4289
$as_echo_n "(cached) " >&6
4291
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4292
then ac_cv_path_FGREP="$GREP -F"
4294
if test -z "$FGREP"; then
4295
ac_path_FGREP_found=false
4296
# Loop through the user's path and test for each of PROGNAME-LIST
4297
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4301
test -z "$as_dir" && as_dir=.
4302
for ac_prog in fgrep; do
4303
for ac_exec_ext in '' $ac_executable_extensions; do
4304
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4305
as_fn_executable_p "$ac_path_FGREP" || continue
4306
# Check for GNU ac_path_FGREP and select it if it is found.
4307
# Check for GNU $ac_path_FGREP
4308
case `"$ac_path_FGREP" --version 2>&1` in
4310
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4313
$as_echo_n 0123456789 >"conftest.in"
4316
cat "conftest.in" "conftest.in" >"conftest.tmp"
4317
mv "conftest.tmp" "conftest.in"
4318
cp "conftest.in" "conftest.nl"
4319
$as_echo 'FGREP' >> "conftest.nl"
4320
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4321
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4322
as_fn_arith $ac_count + 1 && ac_count=$as_val
4323
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4324
# Best one so far, save it but keep looking for a better one
4325
ac_cv_path_FGREP="$ac_path_FGREP"
4326
ac_path_FGREP_max=$ac_count
4328
# 10*(2^10) chars as input seems more than enough
4329
test $ac_count -gt 10 && break
4331
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4334
$ac_path_FGREP_found && break 3
4339
if test -z "$ac_cv_path_FGREP"; then
4340
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4343
ac_cv_path_FGREP=$FGREP
4348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4349
$as_echo "$ac_cv_path_FGREP" >&6; }
4350
FGREP="$ac_cv_path_FGREP"
4353
test -z "$GREP" && GREP=grep
4373
# Check whether --with-gnu-ld was given.
4374
if test "${with_gnu_ld+set}" = set; then :
4375
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4381
if test "$GCC" = yes; then
4382
# Check if gcc -print-prog-name=ld gives a path.
4383
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4384
$as_echo_n "checking for ld used by $CC... " >&6; }
4387
# gcc leaves a trailing carriage return which upsets mingw
4388
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4390
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4393
# Accept absolute paths.
4395
re_direlt='/[^/][^/]*/\.\./'
4396
# Canonicalize the pathname of ld
4397
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4398
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4399
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4401
test -z "$LD" && LD="$ac_prog"
4404
# If it fails, then pretend we aren't using GCC.
4408
# If it is relative, then search for the first ld in PATH.
4412
elif test "$with_gnu_ld" = yes; then
4413
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4414
$as_echo_n "checking for GNU ld... " >&6; }
4416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4417
$as_echo_n "checking for non-GNU ld... " >&6; }
4419
if ${lt_cv_path_LD+:} false; then :
4420
$as_echo_n "(cached) " >&6
4422
if test -z "$LD"; then
4423
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4424
for ac_dir in $PATH; do
4426
test -z "$ac_dir" && ac_dir=.
4427
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4428
lt_cv_path_LD="$ac_dir/$ac_prog"
4429
# Check to see if the program is GNU ld. I'd rather use --version,
4430
# but apparently some variants of GNU ld only accept -v.
4431
# Break only if it was the GNU/non-GNU ld that we prefer.
4432
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4433
*GNU* | *'with BFD'*)
4434
test "$with_gnu_ld" != no && break
4437
test "$with_gnu_ld" != yes && break
4444
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4449
if test -n "$LD"; then
4450
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4451
$as_echo "$LD" >&6; }
4453
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454
$as_echo "no" >&6; }
4456
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4458
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4459
if ${lt_cv_prog_gnu_ld+:} false; then :
4460
$as_echo_n "(cached) " >&6
4462
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4463
case `$LD -v 2>&1 </dev/null` in
4464
*GNU* | *'with BFD'*)
4465
lt_cv_prog_gnu_ld=yes
4468
lt_cv_prog_gnu_ld=no
4472
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4473
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4474
with_gnu_ld=$lt_cv_prog_gnu_ld
4484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4485
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4486
if ${lt_cv_path_NM+:} false; then :
4487
$as_echo_n "(cached) " >&6
4489
if test -n "$NM"; then
4490
# Let the user override the test.
4493
lt_nm_to_check="${ac_tool_prefix}nm"
4494
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4495
lt_nm_to_check="$lt_nm_to_check nm"
4497
for lt_tmp_nm in $lt_nm_to_check; do
4498
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4499
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4501
test -z "$ac_dir" && ac_dir=.
4502
tmp_nm="$ac_dir/$lt_tmp_nm"
4503
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4504
# Check to see if the nm accepts a BSD-compat flag.
4505
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4506
# nm: unknown option "B" ignored
4507
# Tru64's nm complains that /dev/null is an invalid object file
4508
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4509
*/dev/null* | *'Invalid file or object type'*)
4510
lt_cv_path_NM="$tmp_nm -B"
4514
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4516
lt_cv_path_NM="$tmp_nm -p"
4520
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4521
continue # so that we can try to find one that supports BSD flags
4530
: ${lt_cv_path_NM=no}
4533
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4534
$as_echo "$lt_cv_path_NM" >&6; }
4535
if test "$lt_cv_path_NM" != "no"; then
4538
# Didn't find any BSD compatible name lister, look for dumpbin.
4539
if test -n "$DUMPBIN"; then :
4540
# Let the user override the test.
4542
if test -n "$ac_tool_prefix"; then
4543
for ac_prog in dumpbin "link -dump"
4545
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4546
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4547
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548
$as_echo_n "checking for $ac_word... " >&6; }
4549
if ${ac_cv_prog_DUMPBIN+:} false; then :
4550
$as_echo_n "(cached) " >&6
4552
if test -n "$DUMPBIN"; then
4553
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4555
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559
test -z "$as_dir" && as_dir=.
4560
for ac_exec_ext in '' $ac_executable_extensions; do
4561
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4563
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572
DUMPBIN=$ac_cv_prog_DUMPBIN
4573
if test -n "$DUMPBIN"; then
4574
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4575
$as_echo "$DUMPBIN" >&6; }
4577
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578
$as_echo "no" >&6; }
4582
test -n "$DUMPBIN" && break
4585
if test -z "$DUMPBIN"; then
4586
ac_ct_DUMPBIN=$DUMPBIN
4587
for ac_prog in dumpbin "link -dump"
4589
# Extract the first word of "$ac_prog", so it can be a program name with args.
4590
set dummy $ac_prog; ac_word=$2
4591
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592
$as_echo_n "checking for $ac_word... " >&6; }
4593
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4594
$as_echo_n "(cached) " >&6
4596
if test -n "$ac_ct_DUMPBIN"; then
4597
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4599
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603
test -z "$as_dir" && as_dir=.
4604
for ac_exec_ext in '' $ac_executable_extensions; do
4605
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4606
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4607
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4617
if test -n "$ac_ct_DUMPBIN"; then
4618
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4619
$as_echo "$ac_ct_DUMPBIN" >&6; }
4621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622
$as_echo "no" >&6; }
4626
test -n "$ac_ct_DUMPBIN" && break
4629
if test "x$ac_ct_DUMPBIN" = x; then
4632
case $cross_compiling:$ac_tool_warned in
4634
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636
ac_tool_warned=yes ;;
4638
DUMPBIN=$ac_ct_DUMPBIN
4642
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4644
DUMPBIN="$DUMPBIN -symbols"
4652
if test "$DUMPBIN" != ":"; then
4656
test -z "$NM" && NM=nm
4663
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4664
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4665
if ${lt_cv_nm_interface+:} false; then :
4666
$as_echo_n "(cached) " >&6
4668
lt_cv_nm_interface="BSD nm"
4669
echo "int some_variable = 0;" > conftest.$ac_ext
4670
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4671
(eval "$ac_compile" 2>conftest.err)
4672
cat conftest.err >&5
4673
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4674
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4675
cat conftest.err >&5
4676
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
4677
cat conftest.out >&5
4678
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4679
lt_cv_nm_interface="MS dumpbin"
4683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4684
$as_echo "$lt_cv_nm_interface" >&6; }
4686
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4687
$as_echo_n "checking whether ln -s works... " >&6; }
4689
if test "$LN_S" = "ln -s"; then
4690
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4691
$as_echo "yes" >&6; }
4693
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4694
$as_echo "no, using $LN_S" >&6; }
4697
# find the maximum length of command line arguments
4698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4699
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4700
if ${lt_cv_sys_max_cmd_len+:} false; then :
4701
$as_echo_n "(cached) " >&6
4708
# On DJGPP, this test can blow up pretty badly due to problems in libc
4709
# (any single argument exceeding 2000 bytes causes a buffer overrun
4710
# during glob expansion). Even if it were fixed, the result of this
4711
# check would be larger than it should be.
4712
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4716
# Under GNU Hurd, this test is not required because there is
4717
# no limit to the length of command line arguments.
4718
# Libtool will interpret -1 as no limit whatsoever
4719
lt_cv_sys_max_cmd_len=-1;
4722
cygwin* | mingw* | cegcc*)
4723
# On Win9x/ME, this test blows up -- it succeeds, but takes
4724
# about 5 minutes as the teststring grows exponentially.
4725
# Worse, since 9x/ME are not pre-emptively multitasking,
4726
# you end up with a "frozen" computer, even though with patience
4727
# the test eventually succeeds (with a max line length of 256k).
4728
# Instead, let's just punt: use the minimum linelength reported by
4729
# all of the supported platforms: 8192 (on NT/2K/XP).
4730
lt_cv_sys_max_cmd_len=8192;
4734
# On MiNT this can take a long time and run out of memory.
4735
lt_cv_sys_max_cmd_len=8192;
4739
# On AmigaOS with pdksh, this test takes hours, literally.
4740
# So we just punt and use a minimum line length of 8192.
4741
lt_cv_sys_max_cmd_len=8192;
4744
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4745
# This has been around since 386BSD, at least. Likely further.
4746
if test -x /sbin/sysctl; then
4747
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4748
elif test -x /usr/sbin/sysctl; then
4749
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4751
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4753
# And add a safety zone
4754
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4755
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4759
# We know the value 262144 and hardcode it with a safety zone (like BSD)
4760
lt_cv_sys_max_cmd_len=196608
4764
# The test takes a long time on OS/2.
4765
lt_cv_sys_max_cmd_len=8192
4769
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4770
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4771
# nice to cause kernel panics so lets avoid the loop below.
4772
# First set a reasonable default.
4773
lt_cv_sys_max_cmd_len=16384
4775
if test -x /sbin/sysconfig; then
4776
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4777
*1*) lt_cv_sys_max_cmd_len=-1 ;;
4782
lt_cv_sys_max_cmd_len=102400
4784
sysv5* | sco5v6* | sysv4.2uw2*)
4785
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4786
if test -n "$kargmax"; then
4787
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4789
lt_cv_sys_max_cmd_len=32768
4793
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4794
if test -n "$lt_cv_sys_max_cmd_len"; then
4795
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4796
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4798
# Make teststring a little bigger before we do anything with it.
4799
# a 1K string should be a reasonable start.
4800
for i in 1 2 3 4 5 6 7 8 ; do
4801
teststring=$teststring$teststring
4803
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4804
# If test is not a shell built-in, we'll probably end up computing a
4805
# maximum length that is only half of the actual maximum length, but
4807
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4808
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
4809
test $i != 17 # 1/2 MB should be enough
4812
teststring=$teststring$teststring
4814
# Only check the string length outside the loop.
4815
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4817
# Add a significant safety factor because C++ compilers can tack on
4818
# massive amounts of additional arguments before passing them to the
4819
# linker. It appears as though 1/2 is a usable value.
4820
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4827
if test -n $lt_cv_sys_max_cmd_len ; then
4828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4829
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4831
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4832
$as_echo "none" >&6; }
4834
max_cmd_len=$lt_cv_sys_max_cmd_len
4845
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4846
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4847
# Try some XSI features
4850
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4852
&& eval 'test $(( 1 + 1 )) -eq 2 \
4853
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4856
$as_echo "$xsi_shell" >&6; }
4859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4860
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4862
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4864
&& lt_shell_append=yes
4865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4866
$as_echo "$lt_shell_append" >&6; }
4869
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4879
# test EBCDIC or ASCII
4880
case `echo X|tr X '\101'` in
4881
A) # ASCII based system
4882
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4883
lt_SP2NL='tr \040 \012'
4884
lt_NL2SP='tr \015\012 \040\040'
4886
*) # EBCDIC based system
4887
lt_SP2NL='tr \100 \n'
4888
lt_NL2SP='tr \r\n \100\100'
4900
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4901
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4902
if ${lt_cv_to_host_file_cmd+:} false; then :
4903
$as_echo_n "(cached) " >&6
4908
*-*-mingw* ) # actually msys
4909
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4912
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4914
* ) # otherwise, assume *nix
4915
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4921
*-*-mingw* ) # actually msys
4922
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4925
lt_cv_to_host_file_cmd=func_convert_file_noop
4927
* ) # otherwise, assume *nix
4928
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4932
* ) # unhandled hosts (and "normal" native builds)
4933
lt_cv_to_host_file_cmd=func_convert_file_noop
4939
to_host_file_cmd=$lt_cv_to_host_file_cmd
4940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4941
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4947
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4948
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4949
if ${lt_cv_to_tool_file_cmd+:} false; then :
4950
$as_echo_n "(cached) " >&6
4952
#assume ordinary cross tools, or native build.
4953
lt_cv_to_tool_file_cmd=func_convert_file_noop
4957
*-*-mingw* ) # actually msys
4958
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4966
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4967
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4968
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4975
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4976
if ${lt_cv_ld_reload_flag+:} false; then :
4977
$as_echo_n "(cached) " >&6
4979
lt_cv_ld_reload_flag='-r'
4981
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4982
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4983
reload_flag=$lt_cv_ld_reload_flag
4984
case $reload_flag in
4986
*) reload_flag=" $reload_flag" ;;
4988
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4990
cygwin* | mingw* | pw32* | cegcc*)
4991
if test "$GCC" != yes; then
4996
if test "$GCC" = yes; then
4997
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4999
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5012
if test -n "$ac_tool_prefix"; then
5013
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5014
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5015
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016
$as_echo_n "checking for $ac_word... " >&6; }
5017
if ${ac_cv_prog_OBJDUMP+:} false; then :
5018
$as_echo_n "(cached) " >&6
5020
if test -n "$OBJDUMP"; then
5021
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5023
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027
test -z "$as_dir" && as_dir=.
5028
for ac_exec_ext in '' $ac_executable_extensions; do
5029
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5031
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040
OBJDUMP=$ac_cv_prog_OBJDUMP
5041
if test -n "$OBJDUMP"; then
5042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5043
$as_echo "$OBJDUMP" >&6; }
5045
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046
$as_echo "no" >&6; }
5051
if test -z "$ac_cv_prog_OBJDUMP"; then
5052
ac_ct_OBJDUMP=$OBJDUMP
5053
# Extract the first word of "objdump", so it can be a program name with args.
5054
set dummy objdump; ac_word=$2
5055
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056
$as_echo_n "checking for $ac_word... " >&6; }
5057
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5058
$as_echo_n "(cached) " >&6
5060
if test -n "$ac_ct_OBJDUMP"; then
5061
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5063
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067
test -z "$as_dir" && as_dir=.
5068
for ac_exec_ext in '' $ac_executable_extensions; do
5069
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5071
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5081
if test -n "$ac_ct_OBJDUMP"; then
5082
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5083
$as_echo "$ac_ct_OBJDUMP" >&6; }
5085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086
$as_echo "no" >&6; }
5089
if test "x$ac_ct_OBJDUMP" = x; then
5092
case $cross_compiling:$ac_tool_warned in
5094
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5095
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5096
ac_tool_warned=yes ;;
5098
OBJDUMP=$ac_ct_OBJDUMP
5101
OBJDUMP="$ac_cv_prog_OBJDUMP"
5104
test -z "$OBJDUMP" && OBJDUMP=objdump
5114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5115
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5116
if ${lt_cv_deplibs_check_method+:} false; then :
5117
$as_echo_n "(cached) " >&6
5119
lt_cv_file_magic_cmd='$MAGIC_CMD'
5120
lt_cv_file_magic_test_file=
5121
lt_cv_deplibs_check_method='unknown'
5122
# Need to set the preceding variable on all platforms that support
5123
# interlibrary dependencies.
5124
# 'none' -- dependencies not supported.
5125
# `unknown' -- same as none, but documents that we really don't know.
5126
# 'pass_all' -- all dependencies passed with no checks.
5127
# 'test_compile' -- check by making test program.
5128
# 'file_magic [[regex]]' -- check by looking for files in library path
5129
# which responds to the $file_magic_cmd with a given extended regex.
5130
# If you have `file' or equivalent on your system and you're not sure
5131
# whether `pass_all' will *always* work, you probably want this one.
5135
lt_cv_deplibs_check_method=pass_all
5139
lt_cv_deplibs_check_method=pass_all
5143
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5144
lt_cv_file_magic_cmd='/usr/bin/file -L'
5145
lt_cv_file_magic_test_file=/shlib/libc.so
5149
# func_win32_libid is a shell function defined in ltmain.sh
5150
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5151
lt_cv_file_magic_cmd='func_win32_libid'
5155
# Base MSYS/MinGW do not provide the 'file' command needed by
5156
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5157
# unless we find 'file', for example because we are cross-compiling.
5158
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5159
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5160
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5161
lt_cv_file_magic_cmd='func_win32_libid'
5163
# Keep this pattern in sync with the one in func_win32_libid.
5164
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5165
lt_cv_file_magic_cmd='$OBJDUMP -f'
5170
# use the weaker test based on 'objdump'. See mingw*.
5171
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5172
lt_cv_file_magic_cmd='$OBJDUMP -f'
5175
darwin* | rhapsody*)
5176
lt_cv_deplibs_check_method=pass_all
5179
freebsd* | dragonfly*)
5180
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5183
# Not sure whether the presence of OpenBSD here was a mistake.
5184
# Let's accept both of them until this is cleared up.
5185
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5186
lt_cv_file_magic_cmd=/usr/bin/file
5187
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5191
lt_cv_deplibs_check_method=pass_all
5196
lt_cv_deplibs_check_method=pass_all
5200
lt_cv_deplibs_check_method=pass_all
5203
hpux10.20* | hpux11*)
5204
lt_cv_file_magic_cmd=/usr/bin/file
5207
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5208
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5211
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]'
5212
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5215
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5216
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5222
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5223
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5226
irix5* | irix6* | nonstopux*)
5228
*-32|*"-32 ") libmagic=32-bit;;
5229
*-n32|*"-n32 ") libmagic=N32;;
5230
*-64|*"-64 ") libmagic=64-bit;;
5231
*) libmagic=never-match;;
5233
lt_cv_deplibs_check_method=pass_all
5236
# This must be glibc/ELF.
5237
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5238
lt_cv_deplibs_check_method=pass_all
5242
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5243
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5245
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5250
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5251
lt_cv_file_magic_cmd=/usr/bin/file
5252
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5256
lt_cv_deplibs_check_method=pass_all
5260
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5261
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5263
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5267
osf3* | osf4* | osf5*)
5268
lt_cv_deplibs_check_method=pass_all
5272
lt_cv_deplibs_check_method=pass_all
5276
lt_cv_deplibs_check_method=pass_all
5279
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5280
lt_cv_deplibs_check_method=pass_all
5284
case $host_vendor in
5286
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]'
5287
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5290
lt_cv_deplibs_check_method=pass_all
5293
lt_cv_file_magic_cmd='/bin/file'
5294
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5297
lt_cv_file_magic_cmd='/bin/file'
5298
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5299
lt_cv_file_magic_test_file=/lib/libc.so
5302
lt_cv_deplibs_check_method=pass_all
5305
lt_cv_deplibs_check_method=pass_all
5311
lt_cv_deplibs_check_method=pass_all
5316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5317
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5321
if test "$build" = "$host"; then
5324
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5327
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5333
file_magic_cmd=$lt_cv_file_magic_cmd
5334
deplibs_check_method=$lt_cv_deplibs_check_method
5335
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5358
if test -n "$ac_tool_prefix"; then
5359
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5360
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5362
$as_echo_n "checking for $ac_word... " >&6; }
5363
if ${ac_cv_prog_DLLTOOL+:} false; then :
5364
$as_echo_n "(cached) " >&6
5366
if test -n "$DLLTOOL"; then
5367
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5369
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373
test -z "$as_dir" && as_dir=.
5374
for ac_exec_ext in '' $ac_executable_extensions; do
5375
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5377
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5386
DLLTOOL=$ac_cv_prog_DLLTOOL
5387
if test -n "$DLLTOOL"; then
5388
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5389
$as_echo "$DLLTOOL" >&6; }
5391
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392
$as_echo "no" >&6; }
5397
if test -z "$ac_cv_prog_DLLTOOL"; then
5398
ac_ct_DLLTOOL=$DLLTOOL
5399
# Extract the first word of "dlltool", so it can be a program name with args.
5400
set dummy dlltool; ac_word=$2
5401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402
$as_echo_n "checking for $ac_word... " >&6; }
5403
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5404
$as_echo_n "(cached) " >&6
5406
if test -n "$ac_ct_DLLTOOL"; then
5407
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413
test -z "$as_dir" && as_dir=.
5414
for ac_exec_ext in '' $ac_executable_extensions; do
5415
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5417
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5427
if test -n "$ac_ct_DLLTOOL"; then
5428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5429
$as_echo "$ac_ct_DLLTOOL" >&6; }
5431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432
$as_echo "no" >&6; }
5435
if test "x$ac_ct_DLLTOOL" = x; then
5438
case $cross_compiling:$ac_tool_warned in
5440
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5441
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5442
ac_tool_warned=yes ;;
5444
DLLTOOL=$ac_ct_DLLTOOL
5447
DLLTOOL="$ac_cv_prog_DLLTOOL"
5450
test -z "$DLLTOOL" && DLLTOOL=dlltool
5461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5462
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5463
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5464
$as_echo_n "(cached) " >&6
5466
lt_cv_sharedlib_from_linklib_cmd='unknown'
5469
cygwin* | mingw* | pw32* | cegcc*)
5470
# two different shell functions defined in ltmain.sh
5471
# decide which to use based on capabilities of $DLLTOOL
5472
case `$DLLTOOL --help 2>&1` in
5473
*--identify-strict*)
5474
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5477
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5482
# fallback: assume linklib IS sharedlib
5483
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5489
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5490
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5491
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5500
if test -n "$ac_tool_prefix"; then
5503
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5504
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506
$as_echo_n "checking for $ac_word... " >&6; }
5507
if ${ac_cv_prog_AR+:} false; then :
5508
$as_echo_n "(cached) " >&6
5510
if test -n "$AR"; then
5511
ac_cv_prog_AR="$AR" # Let the user override the test.
5513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517
test -z "$as_dir" && as_dir=.
5518
for ac_exec_ext in '' $ac_executable_extensions; do
5519
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5521
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531
if test -n "$AR"; then
5532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5533
$as_echo "$AR" >&6; }
5535
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536
$as_echo "no" >&6; }
5540
test -n "$AR" && break
5543
if test -z "$AR"; then
5547
# Extract the first word of "$ac_prog", so it can be a program name with args.
5548
set dummy $ac_prog; ac_word=$2
5549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550
$as_echo_n "checking for $ac_word... " >&6; }
5551
if ${ac_cv_prog_ac_ct_AR+:} false; then :
5552
$as_echo_n "(cached) " >&6
5554
if test -n "$ac_ct_AR"; then
5555
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5557
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561
test -z "$as_dir" && as_dir=.
5562
for ac_exec_ext in '' $ac_executable_extensions; do
5563
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564
ac_cv_prog_ac_ct_AR="$ac_prog"
5565
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5575
if test -n "$ac_ct_AR"; then
5576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5577
$as_echo "$ac_ct_AR" >&6; }
5579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580
$as_echo "no" >&6; }
5584
test -n "$ac_ct_AR" && break
5587
if test "x$ac_ct_AR" = x; then
5590
case $cross_compiling:$ac_tool_warned in
5592
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5593
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5594
ac_tool_warned=yes ;;
5613
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5614
$as_echo_n "checking for archiver @FILE support... " >&6; }
5615
if ${lt_cv_ar_at_file+:} false; then :
5616
$as_echo_n "(cached) " >&6
5619
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620
/* end confdefs.h. */
5630
if ac_fn_c_try_compile "$LINENO"; then :
5631
echo conftest.$ac_objext > conftest.lst
5632
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5633
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5634
(eval $lt_ar_try) 2>&5
5636
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5637
test $ac_status = 0; }
5638
if test "$ac_status" -eq 0; then
5639
# Ensure the archiver fails upon bogus file names.
5640
rm -f conftest.$ac_objext libconftest.a
5641
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5642
(eval $lt_ar_try) 2>&5
5644
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5645
test $ac_status = 0; }
5646
if test "$ac_status" -ne 0; then
5650
rm -f conftest.* libconftest.a
5653
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5657
$as_echo "$lt_cv_ar_at_file" >&6; }
5659
if test "x$lt_cv_ar_at_file" = xno; then
5662
archiver_list_spec=$lt_cv_ar_at_file
5671
if test -n "$ac_tool_prefix"; then
5672
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5673
set dummy ${ac_tool_prefix}strip; ac_word=$2
5674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675
$as_echo_n "checking for $ac_word... " >&6; }
5676
if ${ac_cv_prog_STRIP+:} false; then :
5677
$as_echo_n "(cached) " >&6
5679
if test -n "$STRIP"; then
5680
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686
test -z "$as_dir" && as_dir=.
5687
for ac_exec_ext in '' $ac_executable_extensions; do
5688
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5689
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5690
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699
STRIP=$ac_cv_prog_STRIP
5700
if test -n "$STRIP"; then
5701
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5702
$as_echo "$STRIP" >&6; }
5704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705
$as_echo "no" >&6; }
5710
if test -z "$ac_cv_prog_STRIP"; then
5712
# Extract the first word of "strip", so it can be a program name with args.
5713
set dummy strip; ac_word=$2
5714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715
$as_echo_n "checking for $ac_word... " >&6; }
5716
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5717
$as_echo_n "(cached) " >&6
5719
if test -n "$ac_ct_STRIP"; then
5720
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726
test -z "$as_dir" && as_dir=.
5727
for ac_exec_ext in '' $ac_executable_extensions; do
5728
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729
ac_cv_prog_ac_ct_STRIP="strip"
5730
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5740
if test -n "$ac_ct_STRIP"; then
5741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5742
$as_echo "$ac_ct_STRIP" >&6; }
5744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745
$as_echo "no" >&6; }
5748
if test "x$ac_ct_STRIP" = x; then
5751
case $cross_compiling:$ac_tool_warned in
5753
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5754
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5755
ac_tool_warned=yes ;;
5760
STRIP="$ac_cv_prog_STRIP"
5763
test -z "$STRIP" && STRIP=:
5770
if test -n "$ac_tool_prefix"; then
5771
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5772
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5774
$as_echo_n "checking for $ac_word... " >&6; }
5775
if ${ac_cv_prog_RANLIB+:} false; then :
5776
$as_echo_n "(cached) " >&6
5778
if test -n "$RANLIB"; then
5779
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5781
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785
test -z "$as_dir" && as_dir=.
5786
for ac_exec_ext in '' $ac_executable_extensions; do
5787
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5788
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5789
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5798
RANLIB=$ac_cv_prog_RANLIB
5799
if test -n "$RANLIB"; then
5800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5801
$as_echo "$RANLIB" >&6; }
5803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804
$as_echo "no" >&6; }
5809
if test -z "$ac_cv_prog_RANLIB"; then
5810
ac_ct_RANLIB=$RANLIB
5811
# Extract the first word of "ranlib", so it can be a program name with args.
5812
set dummy ranlib; ac_word=$2
5813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814
$as_echo_n "checking for $ac_word... " >&6; }
5815
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5816
$as_echo_n "(cached) " >&6
5818
if test -n "$ac_ct_RANLIB"; then
5819
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5821
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825
test -z "$as_dir" && as_dir=.
5826
for ac_exec_ext in '' $ac_executable_extensions; do
5827
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828
ac_cv_prog_ac_ct_RANLIB="ranlib"
5829
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5839
if test -n "$ac_ct_RANLIB"; then
5840
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5841
$as_echo "$ac_ct_RANLIB" >&6; }
5843
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844
$as_echo "no" >&6; }
5847
if test "x$ac_ct_RANLIB" = x; then
5850
case $cross_compiling:$ac_tool_warned in
5852
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5853
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5854
ac_tool_warned=yes ;;
5856
RANLIB=$ac_ct_RANLIB
5859
RANLIB="$ac_cv_prog_RANLIB"
5862
test -z "$RANLIB" && RANLIB=:
5869
# Determine commands to create old-style static archives.
5870
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5871
old_postinstall_cmds='chmod 644 $oldlib'
5872
old_postuninstall_cmds=
5874
if test -n "$RANLIB"; then
5877
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5880
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5883
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5888
lock_old_archive_extraction=yes ;;
5890
lock_old_archive_extraction=no ;;
5931
# If no C compiler was specified, use CC.
5934
# If no C compiler flags were specified, use CFLAGS.
5935
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5937
# Allow CC to be a program name with arguments.
5941
# Check for command to grab the raw symbol name followed by C symbol from nm.
5942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5943
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5944
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5945
$as_echo_n "(cached) " >&6
5948
# These are sane defaults that work on at least a few old systems.
5949
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5951
# Character class describing NM global symbol codes.
5952
symcode='[BCDEGRST]'
5954
# Regexp to match symbols that can be accessed directly from C.
5955
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5957
# Define system-specific variables.
5962
cygwin* | mingw* | pw32* | cegcc*)
5963
symcode='[ABCDGISTW]'
5966
if test "$host_cpu" = ia64; then
5967
symcode='[ABCDEGRST]'
5971
symcode='[BCDEGRST]'
5974
symcode='[BCDEGQRST]'
5985
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5993
# If we're using GNU nm, then use its standard symbol codes.
5994
case `$NM -V 2>&1` in
5995
*GNU* | *'with BFD'*)
5996
symcode='[ABCDGIRSTW]' ;;
5999
# Transform an extracted symbol line into a proper C declaration.
6000
# Some systems (esp. on ia64) link data and code symbols differently,
6001
# so use this general approach.
6002
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6004
# Transform an extracted symbol line into symbol name and symbol address
6005
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6006
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6008
# Handle CRLF in mingw tool chain
6012
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6016
# Try without a prefix underscore, then with it.
6017
for ac_symprfx in "" "_"; do
6019
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6020
symxfrm="\\1 $ac_symprfx\\2 \\2"
6022
# Write the raw and C identifiers.
6023
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6024
# Fake it for dumpbin and say T for any non-static function
6025
# and D for any global variable.
6026
# Also find C++ and __fastcall symbols from MSVC++,
6027
# which start with @ or ?.
6028
lt_cv_sys_global_symbol_pipe="$AWK '"\
6029
" {last_section=section; section=\$ 3};"\
6030
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6031
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6032
" \$ 0!~/External *\|/{next};"\
6033
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6034
" {if(hide[section]) next};"\
6035
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6036
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6037
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6038
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6039
" ' prfx=^$ac_symprfx"
6041
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6043
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6045
# Check to see that the pipe works correctly.
6049
cat > conftest.$ac_ext <<_LT_EOF
6054
void nm_test_func(void);
6055
void nm_test_func(void){}
6059
int main(){nm_test_var='a';nm_test_func();return(0);}
6062
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6063
(eval $ac_compile) 2>&5
6065
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6066
test $ac_status = 0; }; then
6067
# Now try to grab the symbols.
6069
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6070
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6072
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6073
test $ac_status = 0; } && test -s "$nlist"; then
6074
# Try sorting and uniquifying the output.
6075
if sort "$nlist" | uniq > "$nlist"T; then
6076
mv -f "$nlist"T "$nlist"
6081
# Make sure that we snagged all the symbols we need.
6082
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6083
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6084
cat <<_LT_EOF > conftest.$ac_ext
6085
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6086
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6087
/* DATA imports from DLLs on WIN32 con't be const, because runtime
6088
relocations are performed -- see ld's documentation on pseudo-relocs. */
6089
# define LT_DLSYM_CONST
6090
#elif defined(__osf__)
6091
/* This system does not cope well with relocations in const data. */
6092
# define LT_DLSYM_CONST
6094
# define LT_DLSYM_CONST const
6102
# Now generate the symbol file.
6103
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6105
cat <<_LT_EOF >> conftest.$ac_ext
6107
/* The mapping between symbol names and symbols. */
6108
LT_DLSYM_CONST struct {
6112
lt__PROGRAM__LTX_preloaded_symbols[] =
6114
{ "@PROGRAM@", (void *) 0 },
6116
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6117
cat <<\_LT_EOF >> conftest.$ac_ext
6121
/* This works around a problem in FreeBSD linker */
6122
#ifdef FREEBSD_WORKAROUND
6123
static const void *lt_preloaded_setup() {
6124
return lt__PROGRAM__LTX_preloaded_symbols;
6132
# Now try linking the two files.
6133
mv conftest.$ac_objext conftstm.$ac_objext
6134
lt_globsym_save_LIBS=$LIBS
6135
lt_globsym_save_CFLAGS=$CFLAGS
6136
LIBS="conftstm.$ac_objext"
6137
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6138
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6139
(eval $ac_link) 2>&5
6141
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6142
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6145
LIBS=$lt_globsym_save_LIBS
6146
CFLAGS=$lt_globsym_save_CFLAGS
6148
echo "cannot find nm_test_func in $nlist" >&5
6151
echo "cannot find nm_test_var in $nlist" >&5
6154
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6157
echo "$progname: failed program was:" >&5
6158
cat conftest.$ac_ext >&5
6160
rm -rf conftest* conftst*
6162
# Do not use the global_symbol_pipe unless it works.
6163
if test "$pipe_works" = yes; then
6166
lt_cv_sys_global_symbol_pipe=
6172
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6173
lt_cv_sys_global_symbol_to_cdecl=
6175
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6177
$as_echo "failed" >&6; }
6179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6180
$as_echo "ok" >&6; }
6183
# Response file support.
6184
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6185
nm_file_list_spec='@'
6186
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6187
nm_file_list_spec='@'
6216
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6217
$as_echo_n "checking for sysroot... " >&6; }
6219
# Check whether --with-sysroot was given.
6220
if test "${with_sysroot+set}" = set; then :
6221
withval=$with_sysroot;
6228
case ${with_sysroot} in #(
6230
if test "$GCC" = yes; then
6231
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6235
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6241
$as_echo "${with_sysroot}" >&6; }
6242
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6246
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6247
$as_echo "${lt_sysroot:-no}" >&6; }
6253
# Check whether --enable-libtool-lock was given.
6254
if test "${enable_libtool_lock+set}" = set; then :
6255
enableval=$enable_libtool_lock;
6258
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6260
# Some flags need to be propagated to the compiler or linker for good
6264
# Find out which ABI we are using.
6265
echo 'int i;' > conftest.$ac_ext
6266
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6267
(eval $ac_compile) 2>&5
6269
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6270
test $ac_status = 0; }; then
6271
case `/usr/bin/file conftest.$ac_objext` in
6283
# Find out which ABI we are using.
6284
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6285
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6286
(eval $ac_compile) 2>&5
6288
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6289
test $ac_status = 0; }; then
6290
if test "$lt_cv_prog_gnu_ld" = yes; then
6291
case `/usr/bin/file conftest.$ac_objext` in
6293
LD="${LD-ld} -melf32bsmip"
6296
LD="${LD-ld} -melf32bmipn32"
6299
LD="${LD-ld} -melf64bmip"
6303
case `/usr/bin/file conftest.$ac_objext` in
6319
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6320
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6321
# Find out which ABI we are using.
6322
echo 'int i;' > conftest.$ac_ext
6323
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6324
(eval $ac_compile) 2>&5
6326
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6327
test $ac_status = 0; }; then
6328
case `/usr/bin/file conftest.o` in
6331
x86_64-*kfreebsd*-gnu)
6332
LD="${LD-ld} -m elf_i386_fbsd"
6335
LD="${LD-ld} -m elf_i386"
6337
ppc64-*linux*|powerpc64-*linux*)
6338
LD="${LD-ld} -m elf32ppclinux"
6341
LD="${LD-ld} -m elf_s390"
6344
LD="${LD-ld} -m elf32_sparc"
6350
x86_64-*kfreebsd*-gnu)
6351
LD="${LD-ld} -m elf_x86_64_fbsd"
6354
LD="${LD-ld} -m elf_x86_64"
6356
ppc*-*linux*|powerpc*-*linux*)
6357
LD="${LD-ld} -m elf64ppc"
6359
s390*-*linux*|s390*-*tpf*)
6360
LD="${LD-ld} -m elf64_s390"
6363
LD="${LD-ld} -m elf64_sparc"
6373
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6374
SAVE_CFLAGS="$CFLAGS"
6375
CFLAGS="$CFLAGS -belf"
6376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6377
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6378
if ${lt_cv_cc_needs_belf+:} false; then :
6379
$as_echo_n "(cached) " >&6
6382
ac_cpp='$CPP $CPPFLAGS'
6383
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6384
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6385
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6387
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388
/* end confdefs.h. */
6398
if ac_fn_c_try_link "$LINENO"; then :
6399
lt_cv_cc_needs_belf=yes
6401
lt_cv_cc_needs_belf=no
6403
rm -f core conftest.err conftest.$ac_objext \
6404
conftest$ac_exeext conftest.$ac_ext
6406
ac_cpp='$CPP $CPPFLAGS'
6407
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6408
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6409
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6412
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6413
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6414
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6415
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6416
CFLAGS="$SAVE_CFLAGS"
6420
# Find out which ABI we are using.
6421
echo 'int i;' > conftest.$ac_ext
6422
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6423
(eval $ac_compile) 2>&5
6425
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6426
test $ac_status = 0; }; then
6427
case `/usr/bin/file conftest.o` in
6429
case $lt_cv_prog_gnu_ld in
6433
LD="${LD-ld} -m elf_x86_64"
6436
LD="${LD-ld} -m elf64_sparc"
6439
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6440
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6445
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6457
need_locks="$enable_libtool_lock"
6459
if test -n "$ac_tool_prefix"; then
6460
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6461
set dummy ${ac_tool_prefix}mt; ac_word=$2
6462
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463
$as_echo_n "checking for $ac_word... " >&6; }
6464
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6465
$as_echo_n "(cached) " >&6
6467
if test -n "$MANIFEST_TOOL"; then
6468
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474
test -z "$as_dir" && as_dir=.
6475
for ac_exec_ext in '' $ac_executable_extensions; do
6476
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6477
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6478
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6487
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6488
if test -n "$MANIFEST_TOOL"; then
6489
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6490
$as_echo "$MANIFEST_TOOL" >&6; }
6492
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493
$as_echo "no" >&6; }
6498
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6499
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6500
# Extract the first word of "mt", so it can be a program name with args.
6501
set dummy mt; ac_word=$2
6502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503
$as_echo_n "checking for $ac_word... " >&6; }
6504
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6505
$as_echo_n "(cached) " >&6
6507
if test -n "$ac_ct_MANIFEST_TOOL"; then
6508
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6510
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514
test -z "$as_dir" && as_dir=.
6515
for ac_exec_ext in '' $ac_executable_extensions; do
6516
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6518
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6528
if test -n "$ac_ct_MANIFEST_TOOL"; then
6529
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6530
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533
$as_echo "no" >&6; }
6536
if test "x$ac_ct_MANIFEST_TOOL" = x; then
6539
case $cross_compiling:$ac_tool_warned in
6541
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6542
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6543
ac_tool_warned=yes ;;
6545
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6548
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6551
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6552
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6553
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6554
if ${lt_cv_path_mainfest_tool+:} false; then :
6555
$as_echo_n "(cached) " >&6
6557
lt_cv_path_mainfest_tool=no
6558
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6559
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6560
cat conftest.err >&5
6561
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6562
lt_cv_path_mainfest_tool=yes
6566
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6567
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6568
if test "x$lt_cv_path_mainfest_tool" != xyes; then
6578
rhapsody* | darwin*)
6579
if test -n "$ac_tool_prefix"; then
6580
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6581
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583
$as_echo_n "checking for $ac_word... " >&6; }
6584
if ${ac_cv_prog_DSYMUTIL+:} false; then :
6585
$as_echo_n "(cached) " >&6
6587
if test -n "$DSYMUTIL"; then
6588
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6590
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594
test -z "$as_dir" && as_dir=.
6595
for ac_exec_ext in '' $ac_executable_extensions; do
6596
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6597
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6598
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6608
if test -n "$DSYMUTIL"; then
6609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6610
$as_echo "$DSYMUTIL" >&6; }
6612
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613
$as_echo "no" >&6; }
6618
if test -z "$ac_cv_prog_DSYMUTIL"; then
6619
ac_ct_DSYMUTIL=$DSYMUTIL
6620
# Extract the first word of "dsymutil", so it can be a program name with args.
6621
set dummy dsymutil; ac_word=$2
6622
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623
$as_echo_n "checking for $ac_word... " >&6; }
6624
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6625
$as_echo_n "(cached) " >&6
6627
if test -n "$ac_ct_DSYMUTIL"; then
6628
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6630
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634
test -z "$as_dir" && as_dir=.
6635
for ac_exec_ext in '' $ac_executable_extensions; do
6636
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6637
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6638
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6648
if test -n "$ac_ct_DSYMUTIL"; then
6649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6650
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653
$as_echo "no" >&6; }
6656
if test "x$ac_ct_DSYMUTIL" = x; then
6659
case $cross_compiling:$ac_tool_warned in
6661
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6662
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6663
ac_tool_warned=yes ;;
6665
DSYMUTIL=$ac_ct_DSYMUTIL
6668
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6671
if test -n "$ac_tool_prefix"; then
6672
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6673
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675
$as_echo_n "checking for $ac_word... " >&6; }
6676
if ${ac_cv_prog_NMEDIT+:} false; then :
6677
$as_echo_n "(cached) " >&6
6679
if test -n "$NMEDIT"; then
6680
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686
test -z "$as_dir" && as_dir=.
6687
for ac_exec_ext in '' $ac_executable_extensions; do
6688
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6689
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6690
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699
NMEDIT=$ac_cv_prog_NMEDIT
6700
if test -n "$NMEDIT"; then
6701
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6702
$as_echo "$NMEDIT" >&6; }
6704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705
$as_echo "no" >&6; }
6710
if test -z "$ac_cv_prog_NMEDIT"; then
6711
ac_ct_NMEDIT=$NMEDIT
6712
# Extract the first word of "nmedit", so it can be a program name with args.
6713
set dummy nmedit; ac_word=$2
6714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715
$as_echo_n "checking for $ac_word... " >&6; }
6716
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6717
$as_echo_n "(cached) " >&6
6719
if test -n "$ac_ct_NMEDIT"; then
6720
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726
test -z "$as_dir" && as_dir=.
6727
for ac_exec_ext in '' $ac_executable_extensions; do
6728
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6730
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6740
if test -n "$ac_ct_NMEDIT"; then
6741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6742
$as_echo "$ac_ct_NMEDIT" >&6; }
6744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745
$as_echo "no" >&6; }
6748
if test "x$ac_ct_NMEDIT" = x; then
6751
case $cross_compiling:$ac_tool_warned in
6753
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6754
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6755
ac_tool_warned=yes ;;
6757
NMEDIT=$ac_ct_NMEDIT
6760
NMEDIT="$ac_cv_prog_NMEDIT"
6763
if test -n "$ac_tool_prefix"; then
6764
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6765
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767
$as_echo_n "checking for $ac_word... " >&6; }
6768
if ${ac_cv_prog_LIPO+:} false; then :
6769
$as_echo_n "(cached) " >&6
6771
if test -n "$LIPO"; then
6772
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6774
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778
test -z "$as_dir" && as_dir=.
6779
for ac_exec_ext in '' $ac_executable_extensions; do
6780
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6781
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6782
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791
LIPO=$ac_cv_prog_LIPO
6792
if test -n "$LIPO"; then
6793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6794
$as_echo "$LIPO" >&6; }
6796
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797
$as_echo "no" >&6; }
6802
if test -z "$ac_cv_prog_LIPO"; then
6804
# Extract the first word of "lipo", so it can be a program name with args.
6805
set dummy lipo; ac_word=$2
6806
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6807
$as_echo_n "checking for $ac_word... " >&6; }
6808
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6809
$as_echo_n "(cached) " >&6
6811
if test -n "$ac_ct_LIPO"; then
6812
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6814
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818
test -z "$as_dir" && as_dir=.
6819
for ac_exec_ext in '' $ac_executable_extensions; do
6820
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6821
ac_cv_prog_ac_ct_LIPO="lipo"
6822
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6832
if test -n "$ac_ct_LIPO"; then
6833
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6834
$as_echo "$ac_ct_LIPO" >&6; }
6836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837
$as_echo "no" >&6; }
6840
if test "x$ac_ct_LIPO" = x; then
6843
case $cross_compiling:$ac_tool_warned in
6845
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6846
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6847
ac_tool_warned=yes ;;
6852
LIPO="$ac_cv_prog_LIPO"
6855
if test -n "$ac_tool_prefix"; then
6856
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6857
set dummy ${ac_tool_prefix}otool; ac_word=$2
6858
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859
$as_echo_n "checking for $ac_word... " >&6; }
6860
if ${ac_cv_prog_OTOOL+:} false; then :
6861
$as_echo_n "(cached) " >&6
6863
if test -n "$OTOOL"; then
6864
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6866
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870
test -z "$as_dir" && as_dir=.
6871
for ac_exec_ext in '' $ac_executable_extensions; do
6872
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6873
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6874
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883
OTOOL=$ac_cv_prog_OTOOL
6884
if test -n "$OTOOL"; then
6885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6886
$as_echo "$OTOOL" >&6; }
6888
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889
$as_echo "no" >&6; }
6894
if test -z "$ac_cv_prog_OTOOL"; then
6896
# Extract the first word of "otool", so it can be a program name with args.
6897
set dummy otool; ac_word=$2
6898
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899
$as_echo_n "checking for $ac_word... " >&6; }
6900
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6901
$as_echo_n "(cached) " >&6
6903
if test -n "$ac_ct_OTOOL"; then
6904
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6906
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910
test -z "$as_dir" && as_dir=.
6911
for ac_exec_ext in '' $ac_executable_extensions; do
6912
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913
ac_cv_prog_ac_ct_OTOOL="otool"
6914
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6924
if test -n "$ac_ct_OTOOL"; then
6925
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6926
$as_echo "$ac_ct_OTOOL" >&6; }
6928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929
$as_echo "no" >&6; }
6932
if test "x$ac_ct_OTOOL" = x; then
6935
case $cross_compiling:$ac_tool_warned in
6937
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6938
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6939
ac_tool_warned=yes ;;
6944
OTOOL="$ac_cv_prog_OTOOL"
6947
if test -n "$ac_tool_prefix"; then
6948
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6949
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951
$as_echo_n "checking for $ac_word... " >&6; }
6952
if ${ac_cv_prog_OTOOL64+:} false; then :
6953
$as_echo_n "(cached) " >&6
6955
if test -n "$OTOOL64"; then
6956
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6958
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962
test -z "$as_dir" && as_dir=.
6963
for ac_exec_ext in '' $ac_executable_extensions; do
6964
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6965
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6966
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975
OTOOL64=$ac_cv_prog_OTOOL64
6976
if test -n "$OTOOL64"; then
6977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6978
$as_echo "$OTOOL64" >&6; }
6980
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981
$as_echo "no" >&6; }
6986
if test -z "$ac_cv_prog_OTOOL64"; then
6987
ac_ct_OTOOL64=$OTOOL64
6988
# Extract the first word of "otool64", so it can be a program name with args.
6989
set dummy otool64; ac_word=$2
6990
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991
$as_echo_n "checking for $ac_word... " >&6; }
6992
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6993
$as_echo_n "(cached) " >&6
6995
if test -n "$ac_ct_OTOOL64"; then
6996
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6998
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002
test -z "$as_dir" && as_dir=.
7003
for ac_exec_ext in '' $ac_executable_extensions; do
7004
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7005
ac_cv_prog_ac_ct_OTOOL64="otool64"
7006
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7016
if test -n "$ac_ct_OTOOL64"; then
7017
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7018
$as_echo "$ac_ct_OTOOL64" >&6; }
7020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021
$as_echo "no" >&6; }
7024
if test "x$ac_ct_OTOOL64" = x; then
7027
case $cross_compiling:$ac_tool_warned in
7029
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7030
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7031
ac_tool_warned=yes ;;
7033
OTOOL64=$ac_ct_OTOOL64
7036
OTOOL64="$ac_cv_prog_OTOOL64"
7065
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7066
$as_echo_n "checking for -single_module linker flag... " >&6; }
7067
if ${lt_cv_apple_cc_single_mod+:} false; then :
7068
$as_echo_n "(cached) " >&6
7070
lt_cv_apple_cc_single_mod=no
7071
if test -z "${LT_MULTI_MODULE}"; then
7072
# By default we will add the -single_module flag. You can override
7073
# by either setting the environment variable LT_MULTI_MODULE
7074
# non-empty at configure time, or by adding -multi_module to the
7076
rm -rf libconftest.dylib*
7077
echo "int foo(void){return 1;}" > conftest.c
7078
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7079
-dynamiclib -Wl,-single_module conftest.c" >&5
7080
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7081
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7083
# If there is a non-empty error log, and "single_module"
7084
# appears in it, assume the flag caused a linker warning
7085
if test -s conftest.err && $GREP single_module conftest.err; then
7086
cat conftest.err >&5
7087
# Otherwise, if the output was created with a 0 exit code from
7088
# the compiler, it worked.
7089
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7090
lt_cv_apple_cc_single_mod=yes
7092
cat conftest.err >&5
7094
rm -rf libconftest.dylib*
7098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7099
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7102
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7103
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7104
$as_echo_n "(cached) " >&6
7106
lt_cv_ld_exported_symbols_list=no
7107
save_LDFLAGS=$LDFLAGS
7108
echo "_main" > conftest.sym
7109
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7110
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111
/* end confdefs.h. */
7121
if ac_fn_c_try_link "$LINENO"; then :
7122
lt_cv_ld_exported_symbols_list=yes
7124
lt_cv_ld_exported_symbols_list=no
7126
rm -f core conftest.err conftest.$ac_objext \
7127
conftest$ac_exeext conftest.$ac_ext
7128
LDFLAGS="$save_LDFLAGS"
7131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7132
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7134
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7135
$as_echo_n "checking for -force_load linker flag... " >&6; }
7136
if ${lt_cv_ld_force_load+:} false; then :
7137
$as_echo_n "(cached) " >&6
7139
lt_cv_ld_force_load=no
7140
cat > conftest.c << _LT_EOF
7141
int forced_loaded() { return 2;}
7143
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7144
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7145
echo "$AR cru libconftest.a conftest.o" >&5
7146
$AR cru libconftest.a conftest.o 2>&5
7147
echo "$RANLIB libconftest.a" >&5
7148
$RANLIB libconftest.a 2>&5
7149
cat > conftest.c << _LT_EOF
7150
int main() { return 0;}
7152
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7153
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7155
if test -s conftest.err && $GREP force_load conftest.err; then
7156
cat conftest.err >&5
7157
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7158
lt_cv_ld_force_load=yes
7160
cat conftest.err >&5
7162
rm -f conftest.err libconftest.a conftest conftest.c
7163
rm -rf conftest.dSYM
7166
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7167
$as_echo "$lt_cv_ld_force_load" >&6; }
7169
rhapsody* | darwin1.[012])
7170
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7172
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7173
darwin*) # darwin 5.x on
7174
# if running on 10.5 or later, the deployment target defaults
7175
# to the OS version, if on x86, and 10.4, the deployment
7176
# target defaults to 10.4. Don't you love it?
7177
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7178
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7179
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7181
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7183
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7187
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7188
_lt_dar_single_mod='$single_module'
7190
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7191
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7193
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7195
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7196
_lt_dsymutil='~$DSYMUTIL $lib || :'
7204
ac_cpp='$CPP $CPPFLAGS'
7205
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7206
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7207
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7208
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7209
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7210
# On Suns, sometimes $CPP names a directory.
7211
if test -n "$CPP" && test -d "$CPP"; then
7214
if test -z "$CPP"; then
7215
if ${ac_cv_prog_CPP+:} false; then :
7216
$as_echo_n "(cached) " >&6
7218
# Double quotes because CPP needs to be expanded
7219
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7222
for ac_c_preproc_warn_flag in '' yes
7224
# Use a header file that comes with gcc, so configuring glibc
7225
# with a fresh cross-compiler works.
7226
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7227
# <limits.h> exists even on freestanding compilers.
7228
# On the NeXT, cc -E runs the code through the compiler's parser,
7229
# not just through cpp. "Syntax error" is here to catch this case.
7230
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231
/* end confdefs.h. */
7233
# include <limits.h>
7235
# include <assert.h>
7239
if ac_fn_c_try_cpp "$LINENO"; then :
7242
# Broken: fails on valid input.
7245
rm -f conftest.err conftest.i conftest.$ac_ext
7247
# OK, works on sane cases. Now check whether nonexistent headers
7248
# can be detected and how.
7249
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250
/* end confdefs.h. */
7251
#include <ac_nonexistent.h>
7253
if ac_fn_c_try_cpp "$LINENO"; then :
7254
# Broken: success on invalid input.
7257
# Passes both tests.
7261
rm -f conftest.err conftest.i conftest.$ac_ext
7264
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7265
rm -f conftest.i conftest.err conftest.$ac_ext
7266
if $ac_preproc_ok; then :
7278
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7279
$as_echo "$CPP" >&6; }
7281
for ac_c_preproc_warn_flag in '' yes
7283
# Use a header file that comes with gcc, so configuring glibc
7284
# with a fresh cross-compiler works.
7285
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7286
# <limits.h> exists even on freestanding compilers.
7287
# On the NeXT, cc -E runs the code through the compiler's parser,
7288
# not just through cpp. "Syntax error" is here to catch this case.
7289
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290
/* end confdefs.h. */
7292
# include <limits.h>
7294
# include <assert.h>
7298
if ac_fn_c_try_cpp "$LINENO"; then :
7301
# Broken: fails on valid input.
7304
rm -f conftest.err conftest.i conftest.$ac_ext
7306
# OK, works on sane cases. Now check whether nonexistent headers
7307
# can be detected and how.
7308
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309
/* end confdefs.h. */
7310
#include <ac_nonexistent.h>
7312
if ac_fn_c_try_cpp "$LINENO"; then :
7313
# Broken: success on invalid input.
7316
# Passes both tests.
7320
rm -f conftest.err conftest.i conftest.$ac_ext
7323
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7324
rm -f conftest.i conftest.err conftest.$ac_ext
7325
if $ac_preproc_ok; then :
7328
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7329
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7330
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7331
See \`config.log' for more details" "$LINENO" 5; }
7335
ac_cpp='$CPP $CPPFLAGS'
7336
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7337
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7338
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7342
$as_echo_n "checking for ANSI C header files... " >&6; }
7343
if ${ac_cv_header_stdc+:} false; then :
7344
$as_echo_n "(cached) " >&6
7346
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347
/* end confdefs.h. */
7361
if ac_fn_c_try_compile "$LINENO"; then :
7362
ac_cv_header_stdc=yes
7364
ac_cv_header_stdc=no
7366
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7368
if test $ac_cv_header_stdc = yes; then
7369
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7370
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371
/* end confdefs.h. */
7375
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7376
$EGREP "memchr" >/dev/null 2>&1; then :
7379
ac_cv_header_stdc=no
7385
if test $ac_cv_header_stdc = yes; then
7386
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7387
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388
/* end confdefs.h. */
7392
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7393
$EGREP "free" >/dev/null 2>&1; then :
7396
ac_cv_header_stdc=no
7402
if test $ac_cv_header_stdc = yes; then
7403
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7404
if test "$cross_compiling" = yes; then :
7407
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408
/* end confdefs.h. */
7411
#if ((' ' & 0x0FF) == 0x020)
7412
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7413
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7415
# define ISLOWER(c) \
7416
(('a' <= (c) && (c) <= 'i') \
7417
|| ('j' <= (c) && (c) <= 'r') \
7418
|| ('s' <= (c) && (c) <= 'z'))
7419
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7422
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7427
for (i = 0; i < 256; i++)
7428
if (XOR (islower (i), ISLOWER (i))
7429
|| toupper (i) != TOUPPER (i))
7434
if ac_fn_c_try_run "$LINENO"; then :
7437
ac_cv_header_stdc=no
7439
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7440
conftest.$ac_objext conftest.beam conftest.$ac_ext
7445
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7446
$as_echo "$ac_cv_header_stdc" >&6; }
7447
if test $ac_cv_header_stdc = yes; then
7449
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7453
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7454
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7455
inttypes.h stdint.h unistd.h
7457
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7458
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7460
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7461
cat >>confdefs.h <<_ACEOF
7462
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7470
for ac_header in dlfcn.h
7472
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7474
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7475
cat >>confdefs.h <<_ACEOF
7476
#define HAVE_DLFCN_H 1
7497
# Check whether --enable-shared was given.
7498
if test "${enable_shared+set}" = set; then :
7499
enableval=$enable_shared; p=${PACKAGE-default}
7501
yes) enable_shared=yes ;;
7502
no) enable_shared=no ;;
7505
# Look at the argument we got. We use all the common list separators.
7506
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7507
for pkg in $enableval; do
7509
if test "X$pkg" = "X$p"; then
7530
# Check whether --with-pic was given.
7531
if test "${with_pic+set}" = set; then :
7532
withval=$with_pic; lt_p=${PACKAGE-default}
7534
yes|no) pic_mode=$withval ;;
7537
# Look at the argument we got. We use all the common list separators.
7538
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7539
for lt_pkg in $withval; do
7541
if test "X$lt_pkg" = "X$lt_p"; then
7553
test -z "$pic_mode" && pic_mode=default
7561
# Check whether --enable-fast-install was given.
7562
if test "${enable_fast_install+set}" = set; then :
7563
enableval=$enable_fast_install; p=${PACKAGE-default}
7565
yes) enable_fast_install=yes ;;
7566
no) enable_fast_install=no ;;
7568
enable_fast_install=no
7569
# Look at the argument we got. We use all the common list separators.
7570
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7571
for pkg in $enableval; do
7573
if test "X$pkg" = "X$p"; then
7574
enable_fast_install=yes
7581
enable_fast_install=yes
7594
# This can be used to rebuild libtool when needed
7595
LIBTOOL_DEPS="$ltmain"
7597
# Always use our own libtool.
7598
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7629
test -z "$LN_S" && LN_S="ln -s"
7644
if test -n "${ZSH_VERSION+set}" ; then
7645
setopt NO_GLOB_SUBST
7648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7649
$as_echo_n "checking for objdir... " >&6; }
7650
if ${lt_cv_objdir+:} false; then :
7651
$as_echo_n "(cached) " >&6
7653
rm -f .libs 2>/dev/null
7654
mkdir .libs 2>/dev/null
7655
if test -d .libs; then
7658
# MS-DOS does not allow filenames that begin with a dot.
7661
rmdir .libs 2>/dev/null
7663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7664
$as_echo "$lt_cv_objdir" >&6; }
7665
objdir=$lt_cv_objdir
7671
cat >>confdefs.h <<_ACEOF
7672
#define LT_OBJDIR "$lt_cv_objdir/"
7680
# AIX sometimes has problems with the GCC collect2 program. For some
7681
# reason, if we set the COLLECT_NAMES environment variable, the problems
7682
# vanish in a puff of smoke.
7683
if test "X${COLLECT_NAMES+set}" != Xset; then
7685
export COLLECT_NAMES
7692
can_build_shared=yes
7694
# All known linkers require a `.a' archive for static linking (except MSVC,
7695
# which needs '.lib').
7698
with_gnu_ld="$lt_cv_prog_gnu_ld"
7701
old_CFLAGS="$CFLAGS"
7703
# Set sane defaults for various variables
7704
test -z "$CC" && CC=cc
7705
test -z "$LTCC" && LTCC=$CC
7706
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7707
test -z "$LD" && LD=ld
7708
test -z "$ac_objext" && ac_objext=o
7710
for cc_temp in $compiler""; do
7712
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7713
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7718
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7721
# Only perform the check for file, if the check method requires it
7722
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7723
case $deplibs_check_method in
7725
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7726
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7727
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7728
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7729
$as_echo_n "(cached) " >&6
7733
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7736
lt_save_MAGIC_CMD="$MAGIC_CMD"
7737
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7738
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7739
for ac_dir in $ac_dummy; do
7741
test -z "$ac_dir" && ac_dir=.
7742
if test -f $ac_dir/${ac_tool_prefix}file; then
7743
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7744
if test -n "$file_magic_test_file"; then
7745
case $deplibs_check_method in
7747
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7748
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7749
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7750
$EGREP "$file_magic_regex" > /dev/null; then
7755
*** Warning: the command libtool uses to detect shared libraries,
7756
*** $file_magic_cmd, produces output that libtool cannot recognize.
7757
*** The result is that libtool may fail to recognize shared libraries
7758
*** as such. This will affect the creation of libtool libraries that
7759
*** depend on shared libraries, but programs linked with such libtool
7760
*** libraries will work regardless of this problem. Nevertheless, you
7761
*** may want to report the problem to your system manager and/or to
7762
*** bug-libtool@gnu.org
7772
MAGIC_CMD="$lt_save_MAGIC_CMD"
7777
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7778
if test -n "$MAGIC_CMD"; then
7779
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7780
$as_echo "$MAGIC_CMD" >&6; }
7782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783
$as_echo "no" >&6; }
7790
if test -z "$lt_cv_path_MAGIC_CMD"; then
7791
if test -n "$ac_tool_prefix"; then
7792
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7793
$as_echo_n "checking for file... " >&6; }
7794
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7795
$as_echo_n "(cached) " >&6
7799
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7802
lt_save_MAGIC_CMD="$MAGIC_CMD"
7803
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7804
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7805
for ac_dir in $ac_dummy; do
7807
test -z "$ac_dir" && ac_dir=.
7808
if test -f $ac_dir/file; then
7809
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7810
if test -n "$file_magic_test_file"; then
7811
case $deplibs_check_method in
7813
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7814
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7815
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7816
$EGREP "$file_magic_regex" > /dev/null; then
7821
*** Warning: the command libtool uses to detect shared libraries,
7822
*** $file_magic_cmd, produces output that libtool cannot recognize.
7823
*** The result is that libtool may fail to recognize shared libraries
7824
*** as such. This will affect the creation of libtool libraries that
7825
*** depend on shared libraries, but programs linked with such libtool
7826
*** libraries will work regardless of this problem. Nevertheless, you
7827
*** may want to report the problem to your system manager and/or to
7828
*** bug-libtool@gnu.org
7838
MAGIC_CMD="$lt_save_MAGIC_CMD"
7843
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7844
if test -n "$MAGIC_CMD"; then
7845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7846
$as_echo "$MAGIC_CMD" >&6; }
7848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849
$as_echo "no" >&6; }
7862
# Use C for the default configuration in the libtool script
7866
ac_cpp='$CPP $CPPFLAGS'
7867
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7868
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7869
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7872
# Source file extension for C test sources.
7875
# Object file extension for compiled C test sources.
7879
# Code to be used in simple compile tests
7880
lt_simple_compile_test_code="int some_variable = 0;"
7882
# Code to be used in simple link tests
7883
lt_simple_link_test_code='int main(){return(0);}'
7891
# If no C compiler was specified, use CC.
7894
# If no C compiler flags were specified, use CFLAGS.
7895
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7897
# Allow CC to be a program name with arguments.
7900
# Save the default compiler, since it gets overwritten when the other
7901
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7902
compiler_DEFAULT=$CC
7904
# save warnings/boilerplate of simple test code
7905
ac_outfile=conftest.$ac_objext
7906
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7907
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7908
_lt_compiler_boilerplate=`cat conftest.err`
7911
ac_outfile=conftest.$ac_objext
7912
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7913
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7914
_lt_linker_boilerplate=`cat conftest.err`
7918
if test -n "$compiler"; then
7920
lt_prog_compiler_no_builtin_flag=
7922
if test "$GCC" = yes; then
7923
case $cc_basename in
7925
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7927
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7930
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7931
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7932
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7933
$as_echo_n "(cached) " >&6
7935
lt_cv_prog_compiler_rtti_exceptions=no
7936
ac_outfile=conftest.$ac_objext
7937
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7938
lt_compiler_flag="-fno-rtti -fno-exceptions"
7939
# Insert the option either (1) after the last *FLAGS variable, or
7940
# (2) before a word containing "conftest.", or (3) at the end.
7941
# Note that $ac_compile itself does not contain backslashes and begins
7942
# with a dollar sign (not a hyphen), so the echo should work correctly.
7943
# The option is referenced via a variable to avoid confusing sed.
7944
lt_compile=`echo "$ac_compile" | $SED \
7945
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7946
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7947
-e 's:$: $lt_compiler_flag:'`
7948
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7949
(eval "$lt_compile" 2>conftest.err)
7951
cat conftest.err >&5
7952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953
if (exit $ac_status) && test -s "$ac_outfile"; then
7954
# The compiler can only warn and ignore the option if not recognized
7955
# So say no if there are warnings other than the usual output.
7956
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7957
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7958
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7959
lt_cv_prog_compiler_rtti_exceptions=yes
7965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7966
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7968
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7969
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7981
lt_prog_compiler_wl=
7982
lt_prog_compiler_pic=
7983
lt_prog_compiler_static=
7986
if test "$GCC" = yes; then
7987
lt_prog_compiler_wl='-Wl,'
7988
lt_prog_compiler_static='-static'
7992
# All AIX code is PIC.
7993
if test "$host_cpu" = ia64; then
7994
# AIX 5 now supports IA64 processor
7995
lt_prog_compiler_static='-Bstatic'
8002
# see comment about AmigaOS4 .so support
8003
lt_prog_compiler_pic='-fPIC'
8006
# FIXME: we need at least 68020 code to build shared libraries, but
8007
# adding the `-m68020' flag to GCC prevents building anything better,
8009
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8014
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8015
# PIC is the default for these OSes.
8018
mingw* | cygwin* | pw32* | os2* | cegcc*)
8019
# This hack is so that the source file can tell whether it is being
8020
# built for inclusion in a dll (and should export symbols for example).
8021
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8022
# (--disable-auto-import) libraries
8023
lt_prog_compiler_pic='-DDLL_EXPORT'
8026
darwin* | rhapsody*)
8027
# PIC is the default on this platform
8028
# Common symbols not allowed in MH_DYLIB files
8029
lt_prog_compiler_pic='-fno-common'
8033
# PIC is the default for Haiku.
8034
# The "-static" flag exists, but is broken.
8035
lt_prog_compiler_static=
8039
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8040
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8041
# sets the default TLS model and affects inlining.
8047
lt_prog_compiler_pic='-fPIC'
8053
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8054
# Instead, we relocate shared libraries at runtime.
8058
# Just because we use GCC doesn't mean we suddenly get shared libraries
8059
# on systems that don't support them.
8060
lt_prog_compiler_can_build_shared=no
8065
# QNX uses GNU C++, but need to define -shared option too, otherwise
8067
lt_prog_compiler_pic='-fPIC -shared'
8071
if test -d /usr/nec; then
8072
lt_prog_compiler_pic=-Kconform_pic
8077
lt_prog_compiler_pic='-fPIC'
8081
case $cc_basename in
8082
nvcc*) # Cuda Compiler Driver 2.2
8083
lt_prog_compiler_wl='-Xlinker '
8084
if test -n "$lt_prog_compiler_pic"; then
8085
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8090
# PORTME Check for flag to pass linker flags through the system compiler.
8093
lt_prog_compiler_wl='-Wl,'
8094
if test "$host_cpu" = ia64; then
8095
# AIX 5 now supports IA64 processor
8096
lt_prog_compiler_static='-Bstatic'
8098
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8102
mingw* | cygwin* | pw32* | os2* | cegcc*)
8103
# This hack is so that the source file can tell whether it is being
8104
# built for inclusion in a dll (and should export symbols for example).
8105
lt_prog_compiler_pic='-DDLL_EXPORT'
8108
hpux9* | hpux10* | hpux11*)
8109
lt_prog_compiler_wl='-Wl,'
8110
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8117
lt_prog_compiler_pic='+Z'
8120
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8121
lt_prog_compiler_static='${wl}-a ${wl}archive'
8124
irix5* | irix6* | nonstopux*)
8125
lt_prog_compiler_wl='-Wl,'
8126
# PIC (with -KPIC) is the default.
8127
lt_prog_compiler_static='-non_shared'
8130
linux* | k*bsd*-gnu | kopensolaris*-gnu)
8131
case $cc_basename in
8132
# old Intel for x86_64 which still supported -KPIC.
8134
lt_prog_compiler_wl='-Wl,'
8135
lt_prog_compiler_pic='-KPIC'
8136
lt_prog_compiler_static='-static'
8138
# icc used to be incompatible with GCC.
8139
# ICC 10 doesn't accept -KPIC any more.
8141
lt_prog_compiler_wl='-Wl,'
8142
lt_prog_compiler_pic='-fPIC'
8143
lt_prog_compiler_static='-static'
8145
# Lahey Fortran 8.1.
8147
lt_prog_compiler_wl='-Wl,'
8148
lt_prog_compiler_pic='--shared'
8149
lt_prog_compiler_static='--static'
8152
# NAG Fortran compiler
8153
lt_prog_compiler_wl='-Wl,-Wl,,'
8154
lt_prog_compiler_pic='-PIC'
8155
lt_prog_compiler_static='-Bstatic'
8157
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8158
# Portland Group compilers (*not* the Pentium gcc compiler,
8159
# which looks to be a dead project)
8160
lt_prog_compiler_wl='-Wl,'
8161
lt_prog_compiler_pic='-fpic'
8162
lt_prog_compiler_static='-Bstatic'
8165
lt_prog_compiler_wl='-Wl,'
8166
# All Alpha code is PIC.
8167
lt_prog_compiler_static='-non_shared'
8169
xl* | bgxl* | bgf* | mpixl*)
8170
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8171
lt_prog_compiler_wl='-Wl,'
8172
lt_prog_compiler_pic='-qpic'
8173
lt_prog_compiler_static='-qstaticlink'
8176
case `$CC -V 2>&1 | sed 5q` in
8177
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8178
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8179
lt_prog_compiler_pic='-KPIC'
8180
lt_prog_compiler_static='-Bstatic'
8181
lt_prog_compiler_wl=''
8183
*Sun\ F* | *Sun*Fortran*)
8184
lt_prog_compiler_pic='-KPIC'
8185
lt_prog_compiler_static='-Bstatic'
8186
lt_prog_compiler_wl='-Qoption ld '
8190
lt_prog_compiler_pic='-KPIC'
8191
lt_prog_compiler_static='-Bstatic'
8192
lt_prog_compiler_wl='-Wl,'
8194
*Intel*\ [CF]*Compiler*)
8195
lt_prog_compiler_wl='-Wl,'
8196
lt_prog_compiler_pic='-fPIC'
8197
lt_prog_compiler_static='-static'
8200
lt_prog_compiler_wl='-Wl,'
8201
lt_prog_compiler_pic='-fpic'
8202
lt_prog_compiler_static='-Bstatic'
8210
lt_prog_compiler_pic='-KPIC'
8211
lt_prog_compiler_static='-Bstatic'
8215
# QNX uses GNU C++, but need to define -shared option too, otherwise
8217
lt_prog_compiler_pic='-fPIC -shared'
8220
osf3* | osf4* | osf5*)
8221
lt_prog_compiler_wl='-Wl,'
8222
# All OSF/1 code is PIC.
8223
lt_prog_compiler_static='-non_shared'
8227
lt_prog_compiler_static='-non_shared'
8231
lt_prog_compiler_pic='-KPIC'
8232
lt_prog_compiler_static='-Bstatic'
8233
case $cc_basename in
8234
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8235
lt_prog_compiler_wl='-Qoption ld ';;
8237
lt_prog_compiler_wl='-Wl,';;
8242
lt_prog_compiler_wl='-Qoption ld '
8243
lt_prog_compiler_pic='-PIC'
8244
lt_prog_compiler_static='-Bstatic'
8247
sysv4 | sysv4.2uw2* | sysv4.3*)
8248
lt_prog_compiler_wl='-Wl,'
8249
lt_prog_compiler_pic='-KPIC'
8250
lt_prog_compiler_static='-Bstatic'
8254
if test -d /usr/nec ;then
8255
lt_prog_compiler_pic='-Kconform_pic'
8256
lt_prog_compiler_static='-Bstatic'
8260
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8261
lt_prog_compiler_wl='-Wl,'
8262
lt_prog_compiler_pic='-KPIC'
8263
lt_prog_compiler_static='-Bstatic'
8267
lt_prog_compiler_wl='-Wl,'
8268
lt_prog_compiler_can_build_shared=no
8272
lt_prog_compiler_pic='-pic'
8273
lt_prog_compiler_static='-Bstatic'
8277
lt_prog_compiler_can_build_shared=no
8283
# For platforms which do not support PIC, -DPIC is meaningless:
8285
lt_prog_compiler_pic=
8288
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8293
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8294
if ${lt_cv_prog_compiler_pic+:} false; then :
8295
$as_echo_n "(cached) " >&6
8297
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8300
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8301
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8304
# Check to make sure the PIC flag actually works.
8306
if test -n "$lt_prog_compiler_pic"; then
8307
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8308
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8309
if ${lt_cv_prog_compiler_pic_works+:} false; then :
8310
$as_echo_n "(cached) " >&6
8312
lt_cv_prog_compiler_pic_works=no
8313
ac_outfile=conftest.$ac_objext
8314
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8315
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8316
# Insert the option either (1) after the last *FLAGS variable, or
8317
# (2) before a word containing "conftest.", or (3) at the end.
8318
# Note that $ac_compile itself does not contain backslashes and begins
8319
# with a dollar sign (not a hyphen), so the echo should work correctly.
8320
# The option is referenced via a variable to avoid confusing sed.
8321
lt_compile=`echo "$ac_compile" | $SED \
8322
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8323
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8324
-e 's:$: $lt_compiler_flag:'`
8325
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8326
(eval "$lt_compile" 2>conftest.err)
8328
cat conftest.err >&5
8329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330
if (exit $ac_status) && test -s "$ac_outfile"; then
8331
# The compiler can only warn and ignore the option if not recognized
8332
# So say no if there are warnings other than the usual output.
8333
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8334
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8335
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8336
lt_cv_prog_compiler_pic_works=yes
8342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8343
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8345
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8346
case $lt_prog_compiler_pic in
8348
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8351
lt_prog_compiler_pic=
8352
lt_prog_compiler_can_build_shared=no
8368
# Check to make sure the static flag actually works.
8370
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8372
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8373
if ${lt_cv_prog_compiler_static_works+:} false; then :
8374
$as_echo_n "(cached) " >&6
8376
lt_cv_prog_compiler_static_works=no
8377
save_LDFLAGS="$LDFLAGS"
8378
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8379
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8380
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8381
# The linker can only warn and ignore the option if not recognized
8382
# So say no if there are warnings
8383
if test -s conftest.err; then
8384
# Append any errors to the config.log.
8385
cat conftest.err 1>&5
8386
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8387
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8388
if diff conftest.exp conftest.er2 >/dev/null; then
8389
lt_cv_prog_compiler_static_works=yes
8392
lt_cv_prog_compiler_static_works=yes
8396
LDFLAGS="$save_LDFLAGS"
8399
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8400
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8402
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8405
lt_prog_compiler_static=
8414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8415
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8416
if ${lt_cv_prog_compiler_c_o+:} false; then :
8417
$as_echo_n "(cached) " >&6
8419
lt_cv_prog_compiler_c_o=no
8420
$RM -r conftest 2>/dev/null
8424
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8426
lt_compiler_flag="-o out/conftest2.$ac_objext"
8427
# Insert the option either (1) after the last *FLAGS variable, or
8428
# (2) before a word containing "conftest.", or (3) at the end.
8429
# Note that $ac_compile itself does not contain backslashes and begins
8430
# with a dollar sign (not a hyphen), so the echo should work correctly.
8431
lt_compile=`echo "$ac_compile" | $SED \
8432
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8433
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8434
-e 's:$: $lt_compiler_flag:'`
8435
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8436
(eval "$lt_compile" 2>out/conftest.err)
8438
cat out/conftest.err >&5
8439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8442
# The compiler can only warn and ignore the option if not recognized
8443
# So say no if there are warnings
8444
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8445
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8446
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8447
lt_cv_prog_compiler_c_o=yes
8452
# SGI C++ compiler will create directory out/ii_files/ for
8453
# template instantiation
8454
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8455
$RM out/* && rmdir out
8461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8462
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8469
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8470
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8471
if ${lt_cv_prog_compiler_c_o+:} false; then :
8472
$as_echo_n "(cached) " >&6
8474
lt_cv_prog_compiler_c_o=no
8475
$RM -r conftest 2>/dev/null
8479
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8481
lt_compiler_flag="-o out/conftest2.$ac_objext"
8482
# Insert the option either (1) after the last *FLAGS variable, or
8483
# (2) before a word containing "conftest.", or (3) at the end.
8484
# Note that $ac_compile itself does not contain backslashes and begins
8485
# with a dollar sign (not a hyphen), so the echo should work correctly.
8486
lt_compile=`echo "$ac_compile" | $SED \
8487
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8488
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8489
-e 's:$: $lt_compiler_flag:'`
8490
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8491
(eval "$lt_compile" 2>out/conftest.err)
8493
cat out/conftest.err >&5
8494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8497
# The compiler can only warn and ignore the option if not recognized
8498
# So say no if there are warnings
8499
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8500
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8501
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8502
lt_cv_prog_compiler_c_o=yes
8507
# SGI C++ compiler will create directory out/ii_files/ for
8508
# template instantiation
8509
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8510
$RM out/* && rmdir out
8516
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8517
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8522
hard_links="nottested"
8523
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8524
# do not overwrite the value of need_locks provided by the user
8525
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8526
$as_echo_n "checking if we can lock with hard links... " >&6; }
8529
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8531
ln conftest.a conftest.b 2>&5 || hard_links=no
8532
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8533
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8534
$as_echo "$hard_links" >&6; }
8535
if test "$hard_links" = no; then
8536
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8537
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8550
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8553
allow_undefined_flag=
8554
always_export_symbols=no
8556
archive_expsym_cmds=
8557
compiler_needs_object=no
8558
enable_shared_with_static_runtimes=no
8559
export_dynamic_flag_spec=
8560
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8561
hardcode_automatic=no
8563
hardcode_direct_absolute=no
8564
hardcode_libdir_flag_spec=
8565
hardcode_libdir_separator=
8567
hardcode_shlibpath_var=unsupported
8569
link_all_deplibs=unknown
8572
old_archive_from_new_cmds=
8573
old_archive_from_expsyms_cmds=
8574
thread_safe_flag_spec=
8575
whole_archive_flag_spec=
8576
# include_expsyms should be a list of space-separated symbols to be *always*
8577
# included in the symbol list
8579
# exclude_expsyms can be an extended regexp of symbols to exclude
8580
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8581
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8582
# as well as any symbol that contains `d'.
8583
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8584
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8585
# platforms (ab)use it in PIC code, but their linkers get confused if
8586
# the symbol is explicitly referenced. Since portable code cannot
8587
# rely on this symbol name, it's probably fine to never include it in
8588
# preloaded symbol tables.
8589
# Exclude shared library initialization/finalization symbols.
8590
extract_expsyms_cmds=
8593
cygwin* | mingw* | pw32* | cegcc*)
8594
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8595
# When not using gcc, we currently assume that we are using
8596
# Microsoft Visual C++.
8597
if test "$GCC" != yes; then
8602
# we just hope/assume this is gcc and not c89 (= MSVC++)
8612
# On some targets, GNU ld is compatible enough with the native linker
8613
# that we're better off using the native interface for both.
8614
lt_use_gnu_ld_interface=no
8615
if test "$with_gnu_ld" = yes; then
8618
# The AIX port of GNU ld has always aspired to compatibility
8619
# with the native linker. However, as the warning in the GNU ld
8620
# block says, versions before 2.19.5* couldn't really create working
8621
# shared libraries, regardless of the interface used.
8622
case `$LD -v 2>&1` in
8623
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8624
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8625
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
8627
lt_use_gnu_ld_interface=yes
8632
lt_use_gnu_ld_interface=yes
8637
if test "$lt_use_gnu_ld_interface" = yes; then
8638
# If archive_cmds runs LD, not CC, wlarc should be empty
8641
# Set some defaults for GNU ld with shared library support. These
8642
# are reset later if shared libraries are not supported. Putting them
8643
# here allows them to be overridden if necessary.
8644
runpath_var=LD_RUN_PATH
8645
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8646
export_dynamic_flag_spec='${wl}--export-dynamic'
8647
# ancient GNU ld didn't support --whole-archive et. al.
8648
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8649
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8651
whole_archive_flag_spec=
8653
supports_anon_versioning=no
8654
case `$LD -v 2>&1` in
8655
*GNU\ gold*) supports_anon_versioning=yes ;;
8656
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8657
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8658
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8659
*\ 2.11.*) ;; # other 2.11 versions
8660
*) supports_anon_versioning=yes ;;
8663
# See if GNU ld supports shared libraries.
8666
# On AIX/PPC, the GNU linker is very broken
8667
if test "$host_cpu" != ia64; then
8671
*** Warning: the GNU linker, at least up to release 2.19, is reported
8672
*** to be unable to reliably create shared libraries on AIX.
8673
*** Therefore, libtool is disabling shared libraries support. If you
8674
*** really care for shared libraries, you may want to install binutils
8675
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8676
*** You will then need to restart the configuration process.
8685
# see comment about AmigaOS4 .so support
8686
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8687
archive_expsym_cmds=''
8690
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)'
8691
hardcode_libdir_flag_spec='-L$libdir'
8692
hardcode_minus_L=yes
8698
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8699
allow_undefined_flag=unsupported
8700
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8701
# support --undefined. This deserves some investigation. FIXME
8702
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8708
cygwin* | mingw* | pw32* | cegcc*)
8709
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8710
# as there is no search path for DLLs.
8711
hardcode_libdir_flag_spec='-L$libdir'
8712
export_dynamic_flag_spec='${wl}--export-all-symbols'
8713
allow_undefined_flag=unsupported
8714
always_export_symbols=no
8715
enable_shared_with_static_runtimes=yes
8716
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'
8717
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8719
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8720
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8721
# If the export-symbols file already is a .def file (1st line
8722
# is EXPORTS), use it as is; otherwise, prepend...
8723
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8724
cp $export_symbols $output_objdir/$soname.def;
8726
echo EXPORTS > $output_objdir/$soname.def;
8727
cat $export_symbols >> $output_objdir/$soname.def;
8729
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8736
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8737
link_all_deplibs=yes
8742
hardcode_shlibpath_var=no
8743
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8744
export_dynamic_flag_spec='${wl}-E'
8745
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8746
# Instead, shared libraries are loaded at an image base (0x10000000 by
8747
# default) and relocated if they conflict, which is a slow very memory
8748
# consuming and fragmenting process. To avoid this, we pick a random,
8749
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8750
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8751
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8752
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'
8755
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8757
if test "$host_os" = linux-dietlibc; then
8758
case $cc_basename in
8759
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8762
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8763
&& test "$tmp_diet" = no
8765
tmp_addflag=' $pic_flag'
8766
tmp_sharedflag='-shared'
8767
case $cc_basename,$host_cpu in
8768
pgcc*) # Portland Group C compiler
8769
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'
8770
tmp_addflag=' $pic_flag'
8772
pgf77* | pgf90* | pgf95* | pgfortran*)
8773
# Portland Group f77 and f90 compilers
8774
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'
8775
tmp_addflag=' $pic_flag -Mnomain' ;;
8776
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8777
tmp_addflag=' -i_dynamic' ;;
8778
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8779
tmp_addflag=' -i_dynamic -nofor_main' ;;
8780
ifc* | ifort*) # Intel Fortran compiler
8781
tmp_addflag=' -nofor_main' ;;
8782
lf95*) # Lahey Fortran 8.1
8783
whole_archive_flag_spec=
8784
tmp_sharedflag='--shared' ;;
8785
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8786
tmp_sharedflag='-qmkshrobj'
8788
nvcc*) # Cuda Compiler Driver 2.2
8789
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'
8790
compiler_needs_object=yes
8793
case `$CC -V 2>&1 | sed 5q` in
8794
*Sun\ C*) # Sun C 5.9
8795
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'
8796
compiler_needs_object=yes
8797
tmp_sharedflag='-G' ;;
8798
*Sun\ F*) # Sun Fortran 8.3
8799
tmp_sharedflag='-G' ;;
8801
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8803
if test "x$supports_anon_versioning" = xyes; then
8804
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8805
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8806
echo "local: *; };" >> $output_objdir/$libname.ver~
8807
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8810
case $cc_basename in
8811
xlf* | bgf* | bgxlf* | mpixlf*)
8812
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8813
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8814
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8815
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8816
if test "x$supports_anon_versioning" = xyes; then
8817
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8818
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8819
echo "local: *; };" >> $output_objdir/$libname.ver~
8820
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8830
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8831
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8834
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8835
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8840
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8844
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8845
*** create shared libraries on Solaris systems. Therefore, libtool
8846
*** is disabling shared libraries support. We urge you to upgrade GNU
8847
*** binutils to release 2.9.1 or newer. Another option is to modify
8848
*** your PATH or compiler configuration so that the native linker is
8849
*** used, and then restart.
8852
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8853
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8854
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8860
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8861
case `$LD -v 2>&1` in
8862
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8866
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8867
*** reliably create shared libraries on SCO systems. Therefore, libtool
8868
*** is disabling shared libraries support. We urge you to upgrade GNU
8869
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8870
*** your PATH or compiler configuration so that the native linker is
8871
*** used, and then restart.
8876
# For security reasons, it is highly recommended that you always
8877
# use absolute paths for naming shared libraries, and exclude the
8878
# DT_RUNPATH tag from executables and libraries. But doing so
8879
# requires that you compile everything twice, which is a pain.
8880
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8881
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8882
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8883
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8892
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8895
hardcode_shlibpath_var=no
8899
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8900
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8901
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8908
if test "$ld_shlibs" = no; then
8910
hardcode_libdir_flag_spec=
8911
export_dynamic_flag_spec=
8912
whole_archive_flag_spec=
8915
# PORTME fill in a description of your system's linker (not GNU ld)
8918
allow_undefined_flag=unsupported
8919
always_export_symbols=yes
8920
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'
8921
# Note: this linker hardcodes the directories in LIBPATH if there
8922
# are no directories specified by -L.
8923
hardcode_minus_L=yes
8924
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8925
# Neither direct hardcoding nor static linking is supported with a
8927
hardcode_direct=unsupported
8932
if test "$host_cpu" = ia64; then
8933
# On IA64, the linker does run time linking by default, so we don't
8934
# have to do anything special.
8935
aix_use_runtimelinking=no
8936
exp_sym_flag='-Bexport'
8939
# If we're using GNU nm, then we don't want the "-C" option.
8940
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8941
# Also, AIX nm treats weak defined symbols like other global
8942
# defined symbols, whereas GNU nm marks them as "W".
8943
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8944
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8946
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8948
aix_use_runtimelinking=no
8950
# Test if we are trying to use run time linking or normal
8951
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8952
# need to do runtime linking.
8953
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8954
for ld_flag in $LDFLAGS; do
8955
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8956
aix_use_runtimelinking=yes
8963
exp_sym_flag='-bexport'
8964
no_entry_flag='-bnoentry'
8967
# When large executables or shared objects are built, AIX ld can
8968
# have problems creating the table of contents. If linking a library
8969
# or program results in "error TOC overflow" add -mminimal-toc to
8970
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8971
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8975
hardcode_direct_absolute=yes
8976
hardcode_libdir_separator=':'
8977
link_all_deplibs=yes
8978
file_list_spec='${wl}-f,'
8980
if test "$GCC" = yes; then
8981
case $host_os in aix4.[012]|aix4.[012].*)
8982
# We only want to do this on AIX 4.2 and lower, the check
8983
# below for broken collect2 doesn't work under 4.3+
8984
collect2name=`${CC} -print-prog-name=collect2`
8985
if test -f "$collect2name" &&
8986
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8988
# We have reworked collect2
8991
# We have old collect2
8992
hardcode_direct=unsupported
8993
# It fails to find uninstalled libraries when the uninstalled
8994
# path is not listed in the libpath. Setting hardcode_minus_L
8995
# to unsupported forces relinking
8996
hardcode_minus_L=yes
8997
hardcode_libdir_flag_spec='-L$libdir'
8998
hardcode_libdir_separator=
9002
shared_flag='-shared'
9003
if test "$aix_use_runtimelinking" = yes; then
9004
shared_flag="$shared_flag "'${wl}-G'
9008
if test "$host_cpu" = ia64; then
9009
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9010
# chokes on -Wl,-G. The following line is correct:
9013
if test "$aix_use_runtimelinking" = yes; then
9014
shared_flag='${wl}-G'
9016
shared_flag='${wl}-bM:SRE'
9021
export_dynamic_flag_spec='${wl}-bexpall'
9022
# It seems that -bexpall does not export symbols beginning with
9023
# underscore (_), so it is better to generate a list of symbols to export.
9024
always_export_symbols=yes
9025
if test "$aix_use_runtimelinking" = yes; then
9026
# Warning - without using the other runtime loading flags (-brtl),
9027
# -berok will link without error, but may produce a broken library.
9028
allow_undefined_flag='-berok'
9029
# Determine the default libpath from the value encoded in an
9031
if test "${lt_cv_aix_libpath+set}" = set; then
9032
aix_libpath=$lt_cv_aix_libpath
9034
if ${lt_cv_aix_libpath_+:} false; then :
9035
$as_echo_n "(cached) " >&6
9037
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038
/* end confdefs.h. */
9048
if ac_fn_c_try_link "$LINENO"; then :
9050
lt_aix_libpath_sed='
9051
/Import File Strings/,/^$/ {
9053
s/^0 *\([^ ]*\) *$/\1/
9057
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9058
# Check for a 64-bit object if we didn't find anything.
9059
if test -z "$lt_cv_aix_libpath_"; then
9060
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9063
rm -f core conftest.err conftest.$ac_objext \
9064
conftest$ac_exeext conftest.$ac_ext
9065
if test -z "$lt_cv_aix_libpath_"; then
9066
lt_cv_aix_libpath_="/usr/lib:/lib"
9071
aix_libpath=$lt_cv_aix_libpath_
9074
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9075
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9077
if test "$host_cpu" = ia64; then
9078
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9079
allow_undefined_flag="-z nodefs"
9080
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"
9082
# Determine the default libpath from the value encoded in an
9084
if test "${lt_cv_aix_libpath+set}" = set; then
9085
aix_libpath=$lt_cv_aix_libpath
9087
if ${lt_cv_aix_libpath_+:} false; then :
9088
$as_echo_n "(cached) " >&6
9090
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091
/* end confdefs.h. */
9101
if ac_fn_c_try_link "$LINENO"; then :
9103
lt_aix_libpath_sed='
9104
/Import File Strings/,/^$/ {
9106
s/^0 *\([^ ]*\) *$/\1/
9110
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9111
# Check for a 64-bit object if we didn't find anything.
9112
if test -z "$lt_cv_aix_libpath_"; then
9113
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9116
rm -f core conftest.err conftest.$ac_objext \
9117
conftest$ac_exeext conftest.$ac_ext
9118
if test -z "$lt_cv_aix_libpath_"; then
9119
lt_cv_aix_libpath_="/usr/lib:/lib"
9124
aix_libpath=$lt_cv_aix_libpath_
9127
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9128
# Warning - without using the other run time loading flags,
9129
# -berok will link without error, but may produce a broken library.
9130
no_undefined_flag=' ${wl}-bernotok'
9131
allow_undefined_flag=' ${wl}-berok'
9132
if test "$with_gnu_ld" = yes; then
9133
# We only use this code for GNU lds that support --whole-archive.
9134
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9136
# Exported symbols can be pulled into shared objects from archives
9137
whole_archive_flag_spec='$convenience'
9139
archive_cmds_need_lc=yes
9140
# This is similar to how AIX traditionally builds its shared libraries.
9141
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9149
# see comment about AmigaOS4 .so support
9150
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9151
archive_expsym_cmds=''
9154
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)'
9155
hardcode_libdir_flag_spec='-L$libdir'
9156
hardcode_minus_L=yes
9162
export_dynamic_flag_spec=-rdynamic
9165
cygwin* | mingw* | pw32* | cegcc*)
9166
# When not using gcc, we currently assume that we are using
9167
# Microsoft Visual C++.
9168
# hardcode_libdir_flag_spec is actually meaningless, as there is
9169
# no search path for DLLs.
9170
case $cc_basename in
9173
hardcode_libdir_flag_spec=' '
9174
allow_undefined_flag=unsupported
9175
always_export_symbols=yes
9177
# Tell ltmain to make .lib files, not .a files.
9179
# Tell ltmain to make .dll files, not .so files.
9181
# FIXME: Setting linknames here is a bad hack.
9182
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9183
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9184
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9186
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9188
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9190
# The linker will not automatically build a static lib if we build a DLL.
9191
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9192
enable_shared_with_static_runtimes=yes
9193
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9194
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9196
old_postinstall_cmds='chmod 644 $oldlib'
9197
postlink_cmds='lt_outputfile="@OUTPUT@"~
9198
lt_tool_outputfile="@TOOL_OUTPUT@"~
9199
case $lt_outputfile in
9202
lt_outputfile="$lt_outputfile.exe"
9203
lt_tool_outputfile="$lt_tool_outputfile.exe"
9206
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9207
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9208
$RM "$lt_outputfile.manifest";
9212
# Assume MSVC wrapper
9213
hardcode_libdir_flag_spec=' '
9214
allow_undefined_flag=unsupported
9215
# Tell ltmain to make .lib files, not .a files.
9217
# Tell ltmain to make .dll files, not .so files.
9219
# FIXME: Setting linknames here is a bad hack.
9220
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9221
# The linker will automatically build a .lib file if we build a DLL.
9222
old_archive_from_new_cmds='true'
9223
# FIXME: Should let the user specify the lib program.
9224
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9225
enable_shared_with_static_runtimes=yes
9230
darwin* | rhapsody*)
9233
archive_cmds_need_lc=no
9235
hardcode_automatic=yes
9236
hardcode_shlibpath_var=unsupported
9237
if test "$lt_cv_ld_force_load" = "yes"; then
9238
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\"`'
9241
whole_archive_flag_spec=''
9243
link_all_deplibs=yes
9244
allow_undefined_flag="$_lt_dar_allow_undefined"
9245
case $cc_basename in
9246
ifort*) _lt_dar_can_shared=yes ;;
9247
*) _lt_dar_can_shared=$GCC ;;
9249
if test "$_lt_dar_can_shared" = "yes"; then
9250
output_verbose_link_cmd=func_echo_all
9251
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9252
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9253
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}"
9254
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}"
9263
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9264
hardcode_libdir_flag_spec='-L$libdir'
9265
hardcode_shlibpath_var=no
9268
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9269
# support. Future versions do this automatically, but an explicit c++rt0.o
9270
# does not break anything, and helps significantly (at the cost of a little
9273
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9274
hardcode_libdir_flag_spec='-R$libdir'
9276
hardcode_shlibpath_var=no
9279
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9281
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9283
hardcode_minus_L=yes
9284
hardcode_shlibpath_var=no
9287
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9288
freebsd* | dragonfly*)
9289
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9290
hardcode_libdir_flag_spec='-R$libdir'
9292
hardcode_shlibpath_var=no
9296
if test "$GCC" = yes; then
9297
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9299
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9301
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9302
hardcode_libdir_separator=:
9305
# hardcode_minus_L: Not really in the search PATH,
9306
# but as the default location of the library.
9307
hardcode_minus_L=yes
9308
export_dynamic_flag_spec='${wl}-E'
9312
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9313
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9315
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9317
if test "$with_gnu_ld" = no; then
9318
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9319
hardcode_libdir_separator=:
9321
hardcode_direct_absolute=yes
9322
export_dynamic_flag_spec='${wl}-E'
9323
# hardcode_minus_L: Not really in the search PATH,
9324
# but as the default location of the library.
9325
hardcode_minus_L=yes
9330
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9333
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9336
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9339
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9345
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9348
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9352
# Older versions of the 11.00 compiler do not understand -b yet
9353
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9354
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9355
$as_echo_n "checking if $CC understands -b... " >&6; }
9356
if ${lt_cv_prog_compiler__b+:} false; then :
9357
$as_echo_n "(cached) " >&6
9359
lt_cv_prog_compiler__b=no
9360
save_LDFLAGS="$LDFLAGS"
9361
LDFLAGS="$LDFLAGS -b"
9362
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9363
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9364
# The linker can only warn and ignore the option if not recognized
9365
# So say no if there are warnings
9366
if test -s conftest.err; then
9367
# Append any errors to the config.log.
9368
cat conftest.err 1>&5
9369
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9370
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9371
if diff conftest.exp conftest.er2 >/dev/null; then
9372
lt_cv_prog_compiler__b=yes
9375
lt_cv_prog_compiler__b=yes
9379
LDFLAGS="$save_LDFLAGS"
9382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9383
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9385
if test x"$lt_cv_prog_compiler__b" = xyes; then
9386
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9388
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9394
if test "$with_gnu_ld" = no; then
9395
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9396
hardcode_libdir_separator=:
9401
hardcode_shlibpath_var=no
9405
hardcode_direct_absolute=yes
9406
export_dynamic_flag_spec='${wl}-E'
9408
# hardcode_minus_L: Not really in the search PATH,
9409
# but as the default location of the library.
9410
hardcode_minus_L=yes
9416
irix5* | irix6* | nonstopux*)
9417
if test "$GCC" = yes; then
9418
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'
9419
# Try to use the -exported_symbol ld option, if it does not
9420
# work, assume that -exports_file does not work either and
9421
# implicitly export all symbols.
9422
# This should be the same for all languages, so no per-tag cache variable.
9423
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9424
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9425
if ${lt_cv_irix_exported_symbol+:} false; then :
9426
$as_echo_n "(cached) " >&6
9428
save_LDFLAGS="$LDFLAGS"
9429
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9430
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431
/* end confdefs.h. */
9432
int foo (void) { return 0; }
9434
if ac_fn_c_try_link "$LINENO"; then :
9435
lt_cv_irix_exported_symbol=yes
9437
lt_cv_irix_exported_symbol=no
9439
rm -f core conftest.err conftest.$ac_objext \
9440
conftest$ac_exeext conftest.$ac_ext
9441
LDFLAGS="$save_LDFLAGS"
9443
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9444
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9445
if test "$lt_cv_irix_exported_symbol" = yes; then
9446
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'
9449
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'
9450
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'
9452
archive_cmds_need_lc='no'
9453
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9454
hardcode_libdir_separator=:
9456
link_all_deplibs=yes
9460
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9461
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9463
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9465
hardcode_libdir_flag_spec='-R$libdir'
9467
hardcode_shlibpath_var=no
9471
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9474
hardcode_libdir_separator=:
9475
hardcode_shlibpath_var=no
9482
if test -f /usr/libexec/ld.so; then
9484
hardcode_shlibpath_var=no
9485
hardcode_direct_absolute=yes
9486
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9487
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9488
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9489
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9490
export_dynamic_flag_spec='${wl}-E'
9493
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9494
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9495
hardcode_libdir_flag_spec='-R$libdir'
9498
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9499
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9509
hardcode_libdir_flag_spec='-L$libdir'
9510
hardcode_minus_L=yes
9511
allow_undefined_flag=unsupported
9512
archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9513
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9517
if test "$GCC" = yes; then
9518
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9519
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'
9521
allow_undefined_flag=' -expect_unresolved \*'
9522
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'
9524
archive_cmds_need_lc='no'
9525
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9526
hardcode_libdir_separator=:
9529
osf4* | osf5*) # as osf3* with the addition of -msym flag
9530
if test "$GCC" = yes; then
9531
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9532
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'
9533
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9535
allow_undefined_flag=' -expect_unresolved \*'
9536
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'
9537
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~
9538
$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'
9540
# Both c and cxx compiler support -rpath directly
9541
hardcode_libdir_flag_spec='-rpath $libdir'
9543
archive_cmds_need_lc='no'
9544
hardcode_libdir_separator=:
9548
no_undefined_flag=' -z defs'
9549
if test "$GCC" = yes; then
9551
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9552
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9553
$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'
9555
case `$CC -V 2>&1` in
9558
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9559
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9560
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9564
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9565
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9566
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9570
hardcode_libdir_flag_spec='-R$libdir'
9571
hardcode_shlibpath_var=no
9573
solaris2.[0-5] | solaris2.[0-5].*) ;;
9575
# The compiler driver will combine and reorder linker options,
9576
# but understands `-z linker_flag'. GCC discards it without `$wl',
9577
# but is careful enough not to reorder.
9578
# Supported since Solaris 2.6 (maybe 2.5.1?)
9579
if test "$GCC" = yes; then
9580
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9582
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9586
link_all_deplibs=yes
9590
if test "x$host_vendor" = xsequent; then
9591
# Use $CC to link under sequent, because it throws in some extra .o
9592
# files that make .init and .fini sections work.
9593
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9595
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9597
hardcode_libdir_flag_spec='-L$libdir'
9599
hardcode_minus_L=yes
9600
hardcode_shlibpath_var=no
9604
case $host_vendor in
9606
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9607
hardcode_direct=yes # is this really true???
9610
## LD is ld it makes a PLAMLIB
9611
## CC just makes a GrossModule.
9612
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9613
reload_cmds='$CC -r -o $output$reload_objs'
9617
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9618
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9621
runpath_var='LD_RUN_PATH'
9622
hardcode_shlibpath_var=no
9626
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9627
hardcode_shlibpath_var=no
9628
export_dynamic_flag_spec='-Bexport'
9632
if test -d /usr/nec; then
9633
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9634
hardcode_shlibpath_var=no
9635
runpath_var=LD_RUN_PATH
9636
hardcode_runpath_var=yes
9641
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9642
no_undefined_flag='${wl}-z,text'
9643
archive_cmds_need_lc=no
9644
hardcode_shlibpath_var=no
9645
runpath_var='LD_RUN_PATH'
9647
if test "$GCC" = yes; then
9648
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9649
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9651
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9652
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9656
sysv5* | sco3.2v5* | sco5v6*)
9657
# Note: We can NOT use -z defs as we might desire, because we do not
9658
# link with -lc, and that would cause any symbols used from libc to
9659
# always be unresolved, which means just about no library would
9660
# ever link correctly. If we're not using GNU ld we use -z text
9661
# though, which does catch some bad symbols but isn't as heavy-handed
9663
no_undefined_flag='${wl}-z,text'
9664
allow_undefined_flag='${wl}-z,nodefs'
9665
archive_cmds_need_lc=no
9666
hardcode_shlibpath_var=no
9667
hardcode_libdir_flag_spec='${wl}-R,$libdir'
9668
hardcode_libdir_separator=':'
9669
link_all_deplibs=yes
9670
export_dynamic_flag_spec='${wl}-Bexport'
9671
runpath_var='LD_RUN_PATH'
9673
if test "$GCC" = yes; then
9674
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9675
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9677
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9678
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9683
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9684
hardcode_libdir_flag_spec='-L$libdir'
9685
hardcode_shlibpath_var=no
9693
if test x$host_vendor = xsni; then
9695
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9696
export_dynamic_flag_spec='${wl}-Blargedynsym'
9702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9703
$as_echo "$ld_shlibs" >&6; }
9704
test "$ld_shlibs" = no && can_build_shared=no
9706
with_gnu_ld=$with_gnu_ld
9723
# Do we need to explicitly link libc?
9725
case "x$archive_cmds_need_lc" in
9727
# Assume -lc should be added
9728
archive_cmds_need_lc=yes
9730
if test "$enable_shared" = yes && test "$GCC" = yes; then
9731
case $archive_cmds in
9733
# FIXME: we may have to deal with multi-command sequences.
9736
# Test whether the compiler implicitly links with -lc since on some
9737
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9738
# to ld, don't add -lc before -lgcc.
9739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9740
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9741
if ${lt_cv_archive_cmds_need_lc+:} false; then :
9742
$as_echo_n "(cached) " >&6
9745
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9747
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9748
(eval $ac_compile) 2>&5
9750
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9751
test $ac_status = 0; } 2>conftest.err; then
9754
libobjs=conftest.$ac_objext
9756
wl=$lt_prog_compiler_wl
9757
pic_flag=$lt_prog_compiler_pic
9763
lt_save_allow_undefined_flag=$allow_undefined_flag
9764
allow_undefined_flag=
9765
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9766
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9768
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9769
test $ac_status = 0; }
9771
lt_cv_archive_cmds_need_lc=no
9773
lt_cv_archive_cmds_need_lc=yes
9775
allow_undefined_flag=$lt_save_allow_undefined_flag
9777
cat conftest.err 1>&5
9782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9783
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9784
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9943
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9945
if test "$GCC" = yes; then
9947
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9948
*) lt_awk_arg="/^libraries:/" ;;
9951
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9952
*) lt_sed_strip_eq="s,=/,/,g" ;;
9954
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9955
case $lt_search_path_spec in
9957
# if the path contains ";" then we assume it to be the separator
9958
# otherwise default to the standard path separator (i.e. ":") - it is
9959
# assumed that no part of a normal pathname contains ";" but that should
9960
# okay in the real world where ";" in dirpaths is itself problematic.
9961
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9964
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9967
# Ok, now we have the path, separated by spaces, we can step through it
9968
# and add multilib dir if necessary.
9969
lt_tmp_lt_search_path_spec=
9970
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9971
for lt_sys_path in $lt_search_path_spec; do
9972
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9973
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9975
test -d "$lt_sys_path" && \
9976
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9979
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9980
BEGIN {RS=" "; FS="/|\n";} {
9983
for (lt_i = NF; lt_i > 0; lt_i--) {
9984
if ($lt_i != "" && $lt_i != ".") {
9985
if ($lt_i == "..") {
9988
if (lt_count == 0) {
9989
lt_foo="/" $lt_i lt_foo;
9996
if (lt_foo != "") { lt_freq[lt_foo]++; }
9997
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9999
# AWK program above erroneously prepends '/' to C:/dos/paths
10002
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10003
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
10005
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10007
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10009
library_names_spec=
10010
libname_spec='lib$name'
10014
postuninstall_cmds=
10018
shlibpath_overrides_runpath=unknown
10020
dynamic_linker="$host_os ld.so"
10021
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10022
need_lib_prefix=unknown
10023
hardcode_into_libs=no
10025
# when you set need_version to no, make sure it does not cause -set_version
10026
# flags to be left without arguments
10027
need_version=unknown
10031
version_type=linux # correct to gnu/linux during the next big refactor
10032
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10033
shlibpath_var=LIBPATH
10035
# AIX 3 has no versioning support, so we append a major version to the name.
10036
soname_spec='${libname}${release}${shared_ext}$major'
10040
version_type=linux # correct to gnu/linux during the next big refactor
10043
hardcode_into_libs=yes
10044
if test "$host_cpu" = ia64; then
10045
# AIX 5 supports IA64
10046
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10047
shlibpath_var=LD_LIBRARY_PATH
10049
# With GCC up to 2.95.x, collect2 would create an import file
10050
# for dependence libraries. The import file would start with
10051
# the line `#! .'. This would cause the generated library to
10052
# depend on `.', always an invalid library. This was fixed in
10053
# development snapshots of GCC prior to 3.0.
10055
aix4 | aix4.[01] | aix4.[01].*)
10056
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10058
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10061
can_build_shared=no
10065
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10066
# soname into executable. Probably we can add versioning support to
10067
# collect2, so additional links can be useful in future.
10068
if test "$aix_use_runtimelinking" = yes; then
10069
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10070
# instead of lib<name>.a to let people know that these are not
10071
# typical AIX shared libraries.
10072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074
# We preserve .a as extension for shared libraries through AIX4.2
10075
# and later when we are not doing run time linking.
10076
library_names_spec='${libname}${release}.a $libname.a'
10077
soname_spec='${libname}${release}${shared_ext}$major'
10079
shlibpath_var=LIBPATH
10086
# Since July 2007 AmigaOS4 officially supports .so libraries.
10087
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10088
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091
library_names_spec='$libname.ixlibrary $libname.a'
10092
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10093
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10099
library_names_spec='${libname}${shared_ext}'
10100
dynamic_linker="$host_os ld.so"
10101
shlibpath_var=LIBRARY_PATH
10105
version_type=linux # correct to gnu/linux during the next big refactor
10107
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10108
soname_spec='${libname}${release}${shared_ext}$major'
10109
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10110
shlibpath_var=LD_LIBRARY_PATH
10111
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10112
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10113
# the default ld.so.conf also contains /usr/contrib/lib and
10114
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10115
# libtool to hard-code these into programs
10118
cygwin* | mingw* | pw32* | cegcc*)
10119
version_type=windows
10124
case $GCC,$cc_basename in
10127
library_names_spec='$libname.dll.a'
10128
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10129
postinstall_cmds='base_file=`basename \${file}`~
10130
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10131
dldir=$destdir/`dirname \$dlpath`~
10132
test -d \$dldir || mkdir -p \$dldir~
10133
$install_prog $dir/$dlname \$dldir/$dlname~
10134
chmod a+x \$dldir/$dlname~
10135
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10136
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10138
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10139
dlpath=$dir/\$dldll~
10141
shlibpath_overrides_runpath=yes
10145
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10146
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10148
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10151
# MinGW DLLs use traditional 'lib' prefix
10152
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10155
# pw32 DLLs use 'pw' prefix rather than 'lib'
10156
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10159
dynamic_linker='Win32 ld.exe'
10164
libname_spec='$name'
10165
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10166
library_names_spec='${libname}.dll.lib'
10170
sys_lib_search_path_spec=
10173
for lt_path in $LIB
10176
# Let DOS variable expansion print the short 8.3 style file name.
10177
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10178
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10181
# Convert to MSYS style.
10182
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10185
# Convert to unix form, then to dos form, then back to unix form
10186
# but this time dos style (no spaces!) so that the unix form looks
10187
# like /cygdrive/c/PROGRA~1:/cygdr...
10188
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10189
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10190
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10193
sys_lib_search_path_spec="$LIB"
10194
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10195
# It is most probably a Windows format PATH.
10196
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10198
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10200
# FIXME: find the short name or the path components, as spaces are
10201
# common. (e.g. "Program Files" -> "PROGRA~1")
10205
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10206
postinstall_cmds='base_file=`basename \${file}`~
10207
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10208
dldir=$destdir/`dirname \$dlpath`~
10209
test -d \$dldir || mkdir -p \$dldir~
10210
$install_prog $dir/$dlname \$dldir/$dlname'
10211
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10212
dlpath=$dir/\$dldll~
10214
shlibpath_overrides_runpath=yes
10215
dynamic_linker='Win32 link.exe'
10219
# Assume MSVC wrapper
10220
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10221
dynamic_linker='Win32 ld.exe'
10224
# FIXME: first we should search . and the directory the executable is in
10228
darwin* | rhapsody*)
10229
dynamic_linker="$host_os dyld"
10230
version_type=darwin
10233
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10234
soname_spec='${libname}${release}${major}$shared_ext'
10235
shlibpath_overrides_runpath=yes
10236
shlibpath_var=DYLD_LIBRARY_PATH
10237
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10239
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10240
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10244
version_type=linux # correct to gnu/linux during the next big refactor
10247
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10248
soname_spec='${libname}${release}${shared_ext}$major'
10249
shlibpath_var=LD_LIBRARY_PATH
10252
freebsd* | dragonfly*)
10253
# DragonFly does not have aout. When/if they implement a new
10254
# versioning mechanism, adjust this.
10255
if test -x /usr/bin/objformat; then
10256
objformat=`/usr/bin/objformat`
10259
freebsd[23].*) objformat=aout ;;
10260
*) objformat=elf ;;
10263
version_type=freebsd-$objformat
10264
case $version_type in
10266
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10271
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10275
shlibpath_var=LD_LIBRARY_PATH
10278
shlibpath_overrides_runpath=yes
10280
freebsd3.[01]* | freebsdelf3.[01]*)
10281
shlibpath_overrides_runpath=yes
10282
hardcode_into_libs=yes
10284
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10285
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10286
shlibpath_overrides_runpath=no
10287
hardcode_into_libs=yes
10289
*) # from 4.6 on, and DragonFly
10290
shlibpath_overrides_runpath=yes
10291
hardcode_into_libs=yes
10297
version_type=linux # correct to gnu/linux during the next big refactor
10300
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10301
soname_spec='${libname}${release}${shared_ext}$major'
10302
shlibpath_var=LD_LIBRARY_PATH
10303
shlibpath_overrides_runpath=no
10304
hardcode_into_libs=yes
10308
version_type=linux # correct to gnu/linux during the next big refactor
10311
dynamic_linker="$host_os runtime_loader"
10312
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10313
soname_spec='${libname}${release}${shared_ext}$major'
10314
shlibpath_var=LIBRARY_PATH
10315
shlibpath_overrides_runpath=yes
10316
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10317
hardcode_into_libs=yes
10320
hpux9* | hpux10* | hpux11*)
10321
# Give a soname corresponding to the major version so that dld.sl refuses to
10322
# link against other versions.
10329
hardcode_into_libs=yes
10330
dynamic_linker="$host_os dld.so"
10331
shlibpath_var=LD_LIBRARY_PATH
10332
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10333
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334
soname_spec='${libname}${release}${shared_ext}$major'
10335
if test "X$HPUX_IA64_MODE" = X32; then
10336
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10338
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10340
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10344
hardcode_into_libs=yes
10345
dynamic_linker="$host_os dld.sl"
10346
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10347
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10348
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349
soname_spec='${libname}${release}${shared_ext}$major'
10350
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10351
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10355
dynamic_linker="$host_os dld.sl"
10356
shlibpath_var=SHLIB_PATH
10357
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10358
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359
soname_spec='${libname}${release}${shared_ext}$major'
10362
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10363
postinstall_cmds='chmod 555 $lib'
10364
# or fails outright, so override atomically:
10365
install_override_mode=555
10369
version_type=linux # correct to gnu/linux during the next big refactor
10372
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10373
soname_spec='${libname}${release}${shared_ext}$major'
10374
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10375
shlibpath_var=LD_LIBRARY_PATH
10376
shlibpath_overrides_runpath=no
10377
hardcode_into_libs=yes
10380
irix5* | irix6* | nonstopux*)
10382
nonstopux*) version_type=nonstopux ;;
10384
if test "$lt_cv_prog_gnu_ld" = yes; then
10385
version_type=linux # correct to gnu/linux during the next big refactor
10392
soname_spec='${libname}${release}${shared_ext}$major'
10393
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10395
irix5* | nonstopux*)
10396
libsuff= shlibsuff=
10399
case $LD in # libtool.m4 will add one of these switches to LD
10400
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10401
libsuff= shlibsuff= libmagic=32-bit;;
10402
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10403
libsuff=32 shlibsuff=N32 libmagic=N32;;
10404
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10405
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10406
*) libsuff= shlibsuff= libmagic=never-match;;
10410
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10411
shlibpath_overrides_runpath=no
10412
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10413
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10414
hardcode_into_libs=yes
10417
# No shared lib support for Linux oldld, aout, or coff.
10418
linux*oldld* | linux*aout* | linux*coff*)
10422
# This must be glibc/ELF.
10423
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10424
version_type=linux # correct to gnu/linux during the next big refactor
10427
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10428
soname_spec='${libname}${release}${shared_ext}$major'
10429
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10430
shlibpath_var=LD_LIBRARY_PATH
10431
shlibpath_overrides_runpath=no
10433
# Some binutils ld are patched to set DT_RUNPATH
10434
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10435
$as_echo_n "(cached) " >&6
10437
lt_cv_shlibpath_overrides_runpath=no
10438
save_LDFLAGS=$LDFLAGS
10439
save_libdir=$libdir
10440
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10441
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10442
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443
/* end confdefs.h. */
10453
if ac_fn_c_try_link "$LINENO"; then :
10454
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10455
lt_cv_shlibpath_overrides_runpath=yes
10458
rm -f core conftest.err conftest.$ac_objext \
10459
conftest$ac_exeext conftest.$ac_ext
10460
LDFLAGS=$save_LDFLAGS
10461
libdir=$save_libdir
10465
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10467
# This implies no fast_install, which is unacceptable.
10468
# Some rework will be needed to allow for fast_install
10469
# before this can be enabled.
10470
hardcode_into_libs=yes
10472
# Add ABI-specific directories to the system library path.
10473
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10475
# Append ld.so.conf contents to the search path
10476
if test -f /etc/ld.so.conf; then
10477
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' ' '`
10478
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10482
# We used to test for /lib/ld.so.1 and disable shared libraries on
10483
# powerpc, because MkLinux only supported shared libraries with the
10484
# GNU dynamic linker. Since this was broken with cross compilers,
10485
# most powerpc-linux boxes support dynamic linking these days and
10486
# people can always --disable-shared, the test was removed, and we
10487
# assume the GNU/Linux dynamic linker is in use.
10488
dynamic_linker='GNU/Linux ld.so'
10495
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10496
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10497
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10498
dynamic_linker='NetBSD (a.out) ld.so'
10500
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10501
soname_spec='${libname}${release}${shared_ext}$major'
10502
dynamic_linker='NetBSD ld.elf_so'
10504
shlibpath_var=LD_LIBRARY_PATH
10505
shlibpath_overrides_runpath=yes
10506
hardcode_into_libs=yes
10510
version_type=linux # correct to gnu/linux during the next big refactor
10511
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10512
shlibpath_var=LD_LIBRARY_PATH
10513
shlibpath_overrides_runpath=yes
10520
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521
soname_spec='${libname}${release}${shared_ext}$major'
10522
shlibpath_var=LD_LIBRARY_PATH
10523
shlibpath_overrides_runpath=no
10524
hardcode_into_libs=yes
10525
dynamic_linker='ldqnx.so'
10530
sys_lib_dlsearch_path_spec="/usr/lib"
10532
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10534
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10535
*) need_version=no ;;
10537
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10538
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10539
shlibpath_var=LD_LIBRARY_PATH
10540
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10542
openbsd2.[89] | openbsd2.[89].*)
10543
shlibpath_overrides_runpath=no
10546
shlibpath_overrides_runpath=yes
10550
shlibpath_overrides_runpath=yes
10555
libname_spec='$name'
10558
library_names_spec='$libname${shared_ext} $libname.a'
10559
dynamic_linker='OS/2 ld.exe'
10560
shlibpath_var=LIBPATH
10563
osf3* | osf4* | osf5*)
10567
soname_spec='${libname}${release}${shared_ext}$major'
10568
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569
shlibpath_var=LD_LIBRARY_PATH
10570
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10571
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10579
version_type=linux # correct to gnu/linux during the next big refactor
10582
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583
soname_spec='${libname}${release}${shared_ext}$major'
10584
shlibpath_var=LD_LIBRARY_PATH
10585
shlibpath_overrides_runpath=yes
10586
hardcode_into_libs=yes
10587
# ldd complains unless libraries are executable
10588
postinstall_cmds='chmod +x $lib'
10593
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10594
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10595
shlibpath_var=LD_LIBRARY_PATH
10596
shlibpath_overrides_runpath=yes
10597
if test "$with_gnu_ld" = yes; then
10604
version_type=linux # correct to gnu/linux during the next big refactor
10605
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10606
soname_spec='${libname}${release}${shared_ext}$major'
10607
shlibpath_var=LD_LIBRARY_PATH
10608
case $host_vendor in
10610
shlibpath_overrides_runpath=no
10612
runpath_var=LD_RUN_PATH
10620
shlibpath_overrides_runpath=no
10621
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10627
if test -d /usr/nec ;then
10628
version_type=linux # correct to gnu/linux during the next big refactor
10629
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10630
soname_spec='$libname${shared_ext}.$major'
10631
shlibpath_var=LD_LIBRARY_PATH
10635
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10636
version_type=freebsd-elf
10639
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10640
soname_spec='${libname}${release}${shared_ext}$major'
10641
shlibpath_var=LD_LIBRARY_PATH
10642
shlibpath_overrides_runpath=yes
10643
hardcode_into_libs=yes
10644
if test "$with_gnu_ld" = yes; then
10645
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10647
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10650
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10654
sys_lib_dlsearch_path_spec='/usr/lib'
10658
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10659
version_type=linux # correct to gnu/linux during the next big refactor
10662
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663
shlibpath_var=LD_LIBRARY_PATH
10664
shlibpath_overrides_runpath=no
10665
hardcode_into_libs=yes
10669
version_type=linux # correct to gnu/linux during the next big refactor
10670
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10671
soname_spec='${libname}${release}${shared_ext}$major'
10672
shlibpath_var=LD_LIBRARY_PATH
10679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10680
$as_echo "$dynamic_linker" >&6; }
10681
test "$dynamic_linker" = no && can_build_shared=no
10683
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10684
if test "$GCC" = yes; then
10685
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10688
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10689
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10691
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10692
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10787
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10789
if test -n "$hardcode_libdir_flag_spec" ||
10790
test -n "$runpath_var" ||
10791
test "X$hardcode_automatic" = "Xyes" ; then
10793
# We can hardcode non-existent directories.
10794
if test "$hardcode_direct" != no &&
10795
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10796
# have to relink, otherwise we might link with an installed library
10797
# when we should be linking with a yet-to-be-installed one
10798
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10799
test "$hardcode_minus_L" != no; then
10800
# Linking always hardcodes the temporary library directory.
10801
hardcode_action=relink
10803
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10804
hardcode_action=immediate
10807
# We cannot hardcode anything, or else we can only hardcode existing
10809
hardcode_action=unsupported
10811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10812
$as_echo "$hardcode_action" >&6; }
10814
if test "$hardcode_action" = relink ||
10815
test "$inherit_rpath" = yes; then
10816
# Fast installation is not supported
10817
enable_fast_install=no
10818
elif test "$shlibpath_overrides_runpath" = yes ||
10819
test "$enable_shared" = no; then
10820
# Fast installation is not necessary
10821
enable_fast_install=needless
10829
if test "x$enable_dlopen" != xyes; then
10830
enable_dlopen=unknown
10831
enable_dlopen_self=unknown
10832
enable_dlopen_self_static=unknown
10839
lt_cv_dlopen="load_add_on"
10841
lt_cv_dlopen_self=yes
10844
mingw* | pw32* | cegcc*)
10845
lt_cv_dlopen="LoadLibrary"
10850
lt_cv_dlopen="dlopen"
10855
# if libdl is installed we need to link against it
10856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10857
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10858
if ${ac_cv_lib_dl_dlopen+:} false; then :
10859
$as_echo_n "(cached) " >&6
10861
ac_check_lib_save_LIBS=$LIBS
10863
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864
/* end confdefs.h. */
10866
/* Override any GCC internal prototype to avoid an error.
10867
Use char because int might match the return type of a GCC
10868
builtin and then its argument prototype would still apply. */
10881
if ac_fn_c_try_link "$LINENO"; then :
10882
ac_cv_lib_dl_dlopen=yes
10884
ac_cv_lib_dl_dlopen=no
10886
rm -f core conftest.err conftest.$ac_objext \
10887
conftest$ac_exeext conftest.$ac_ext
10888
LIBS=$ac_check_lib_save_LIBS
10890
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10891
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10892
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10893
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10896
lt_cv_dlopen="dyld"
10898
lt_cv_dlopen_self=yes
10905
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10906
if test "x$ac_cv_func_shl_load" = xyes; then :
10907
lt_cv_dlopen="shl_load"
10909
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10910
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10911
if ${ac_cv_lib_dld_shl_load+:} false; then :
10912
$as_echo_n "(cached) " >&6
10914
ac_check_lib_save_LIBS=$LIBS
10916
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10917
/* end confdefs.h. */
10919
/* Override any GCC internal prototype to avoid an error.
10920
Use char because int might match the return type of a GCC
10921
builtin and then its argument prototype would still apply. */
10929
return shl_load ();
10934
if ac_fn_c_try_link "$LINENO"; then :
10935
ac_cv_lib_dld_shl_load=yes
10937
ac_cv_lib_dld_shl_load=no
10939
rm -f core conftest.err conftest.$ac_objext \
10940
conftest$ac_exeext conftest.$ac_ext
10941
LIBS=$ac_check_lib_save_LIBS
10943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10944
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10945
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10946
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10948
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10949
if test "x$ac_cv_func_dlopen" = xyes; then :
10950
lt_cv_dlopen="dlopen"
10952
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10953
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10954
if ${ac_cv_lib_dl_dlopen+:} false; then :
10955
$as_echo_n "(cached) " >&6
10957
ac_check_lib_save_LIBS=$LIBS
10959
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10960
/* end confdefs.h. */
10962
/* Override any GCC internal prototype to avoid an error.
10963
Use char because int might match the return type of a GCC
10964
builtin and then its argument prototype would still apply. */
10977
if ac_fn_c_try_link "$LINENO"; then :
10978
ac_cv_lib_dl_dlopen=yes
10980
ac_cv_lib_dl_dlopen=no
10982
rm -f core conftest.err conftest.$ac_objext \
10983
conftest$ac_exeext conftest.$ac_ext
10984
LIBS=$ac_check_lib_save_LIBS
10986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10987
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10988
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10989
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10991
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10992
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10993
if ${ac_cv_lib_svld_dlopen+:} false; then :
10994
$as_echo_n "(cached) " >&6
10996
ac_check_lib_save_LIBS=$LIBS
10997
LIBS="-lsvld $LIBS"
10998
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999
/* end confdefs.h. */
11001
/* Override any GCC internal prototype to avoid an error.
11002
Use char because int might match the return type of a GCC
11003
builtin and then its argument prototype would still apply. */
11016
if ac_fn_c_try_link "$LINENO"; then :
11017
ac_cv_lib_svld_dlopen=yes
11019
ac_cv_lib_svld_dlopen=no
11021
rm -f core conftest.err conftest.$ac_objext \
11022
conftest$ac_exeext conftest.$ac_ext
11023
LIBS=$ac_check_lib_save_LIBS
11025
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11026
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11027
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11028
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11030
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11031
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11032
if ${ac_cv_lib_dld_dld_link+:} false; then :
11033
$as_echo_n "(cached) " >&6
11035
ac_check_lib_save_LIBS=$LIBS
11037
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11038
/* end confdefs.h. */
11040
/* Override any GCC internal prototype to avoid an error.
11041
Use char because int might match the return type of a GCC
11042
builtin and then its argument prototype would still apply. */
11050
return dld_link ();
11055
if ac_fn_c_try_link "$LINENO"; then :
11056
ac_cv_lib_dld_dld_link=yes
11058
ac_cv_lib_dld_dld_link=no
11060
rm -f core conftest.err conftest.$ac_objext \
11061
conftest$ac_exeext conftest.$ac_ext
11062
LIBS=$ac_check_lib_save_LIBS
11064
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11065
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11066
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11067
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11088
if test "x$lt_cv_dlopen" != xno; then
11094
case $lt_cv_dlopen in
11096
save_CPPFLAGS="$CPPFLAGS"
11097
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11099
save_LDFLAGS="$LDFLAGS"
11100
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11103
LIBS="$lt_cv_dlopen_libs $LIBS"
11105
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11106
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11107
if ${lt_cv_dlopen_self+:} false; then :
11108
$as_echo_n "(cached) " >&6
11110
if test "$cross_compiling" = yes; then :
11111
lt_cv_dlopen_self=cross
11113
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11114
lt_status=$lt_dlunknown
11115
cat > conftest.$ac_ext <<_LT_EOF
11116
#line $LINENO "configure"
11117
#include "confdefs.h"
11126
# define LT_DLGLOBAL RTLD_GLOBAL
11129
# define LT_DLGLOBAL DL_GLOBAL
11131
# define LT_DLGLOBAL 0
11135
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11136
find out it does not work in some platform. */
11137
#ifndef LT_DLLAZY_OR_NOW
11139
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11142
# define LT_DLLAZY_OR_NOW DL_LAZY
11145
# define LT_DLLAZY_OR_NOW RTLD_NOW
11148
# define LT_DLLAZY_OR_NOW DL_NOW
11150
# define LT_DLLAZY_OR_NOW 0
11157
/* When -fvisbility=hidden is used, assume the code has been annotated
11158
correspondingly for the symbols needed. */
11159
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11160
int fnord () __attribute__((visibility("default")));
11163
int fnord () { return 42; }
11166
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11167
int status = $lt_dlunknown;
11171
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11174
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11175
else puts (dlerror ());
11177
/* dlclose (self); */
11185
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11186
(eval $ac_link) 2>&5
11188
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11189
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11190
(./conftest; exit; ) >&5 2>/dev/null
11192
case x$lt_status in
11193
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11194
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11195
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11198
# compilation failed
11199
lt_cv_dlopen_self=no
11206
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11207
$as_echo "$lt_cv_dlopen_self" >&6; }
11209
if test "x$lt_cv_dlopen_self" = xyes; then
11210
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11211
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11212
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11213
if ${lt_cv_dlopen_self_static+:} false; then :
11214
$as_echo_n "(cached) " >&6
11216
if test "$cross_compiling" = yes; then :
11217
lt_cv_dlopen_self_static=cross
11219
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11220
lt_status=$lt_dlunknown
11221
cat > conftest.$ac_ext <<_LT_EOF
11222
#line $LINENO "configure"
11223
#include "confdefs.h"
11232
# define LT_DLGLOBAL RTLD_GLOBAL
11235
# define LT_DLGLOBAL DL_GLOBAL
11237
# define LT_DLGLOBAL 0
11241
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11242
find out it does not work in some platform. */
11243
#ifndef LT_DLLAZY_OR_NOW
11245
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11248
# define LT_DLLAZY_OR_NOW DL_LAZY
11251
# define LT_DLLAZY_OR_NOW RTLD_NOW
11254
# define LT_DLLAZY_OR_NOW DL_NOW
11256
# define LT_DLLAZY_OR_NOW 0
11263
/* When -fvisbility=hidden is used, assume the code has been annotated
11264
correspondingly for the symbols needed. */
11265
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11266
int fnord () __attribute__((visibility("default")));
11269
int fnord () { return 42; }
11272
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11273
int status = $lt_dlunknown;
11277
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11280
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11281
else puts (dlerror ());
11283
/* dlclose (self); */
11291
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11292
(eval $ac_link) 2>&5
11294
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11295
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11296
(./conftest; exit; ) >&5 2>/dev/null
11298
case x$lt_status in
11299
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11300
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11301
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11304
# compilation failed
11305
lt_cv_dlopen_self_static=no
11312
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11313
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11316
CPPFLAGS="$save_CPPFLAGS"
11317
LDFLAGS="$save_LDFLAGS"
11322
case $lt_cv_dlopen_self in
11323
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11324
*) enable_dlopen_self=unknown ;;
11327
case $lt_cv_dlopen_self_static in
11328
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11329
*) enable_dlopen_self_static=unknown ;;
11351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11352
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11353
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11354
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11355
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11357
$as_echo "yes" >&6; }
11359
# FIXME - insert some real tests, host_os isn't really good enough
11362
if test -n "$STRIP" ; then
11363
striplib="$STRIP -x"
11364
old_striplib="$STRIP -S"
11365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11366
$as_echo "yes" >&6; }
11368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369
$as_echo "no" >&6; }
11373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374
$as_echo "no" >&6; }
11390
# Report which library types will actually be built
11391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11392
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11394
$as_echo "$can_build_shared" >&6; }
11396
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11397
$as_echo_n "checking whether to build shared libraries... " >&6; }
11398
test "$can_build_shared" = "no" && enable_shared=no
11400
# On AIX, shared libraries and static libraries use the same namespace, and
11401
# are all built from PIC.
11404
test "$enable_shared" = yes && enable_static=no
11405
if test -n "$RANLIB"; then
11406
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11407
postinstall_cmds='$RANLIB $lib'
11412
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11413
test "$enable_shared" = yes && enable_static=no
11417
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11418
$as_echo "$enable_shared" >&6; }
11420
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11421
$as_echo_n "checking whether to build static libraries... " >&6; }
11422
# Make sure either enable_shared or enable_static is yes.
11423
test "$enable_shared" = yes || enable_static=yes
11424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11425
$as_echo "$enable_static" >&6; }
11432
ac_cpp='$CPP $CPPFLAGS'
11433
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11434
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11435
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11453
ac_config_commands="$ac_config_commands libtool"
11458
# Only expand once:
11461
# Check whether --enable-largefile was given.
11462
if test "${enable_largefile+set}" = set; then :
11463
enableval=$enable_largefile;
11466
if test "$enable_largefile" != no; then
11468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11469
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11470
if ${ac_cv_sys_largefile_CC+:} false; then :
11471
$as_echo_n "(cached) " >&6
11473
ac_cv_sys_largefile_CC=no
11474
if test "$GCC" != yes; then
11477
# IRIX 6.2 and later do not support large files by default,
11478
# so use the C compiler's -n32 option if that helps.
11479
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11480
/* end confdefs.h. */
11481
#include <sys/types.h>
11482
/* Check that off_t can represent 2**63 - 1 correctly.
11483
We can't simply define LARGE_OFF_T to be 9223372036854775807,
11484
since some C++ compilers masquerading as C compilers
11485
incorrectly reject 9223372036854775807. */
11486
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11487
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11488
&& LARGE_OFF_T % 2147483647 == 1)
11498
if ac_fn_c_try_compile "$LINENO"; then :
11501
rm -f core conftest.err conftest.$ac_objext
11503
if ac_fn_c_try_compile "$LINENO"; then :
11504
ac_cv_sys_largefile_CC=' -n32'; break
11506
rm -f core conftest.err conftest.$ac_objext
11510
rm -f conftest.$ac_ext
11513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11514
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11515
if test "$ac_cv_sys_largefile_CC" != no; then
11516
CC=$CC$ac_cv_sys_largefile_CC
11519
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11520
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11521
if ${ac_cv_sys_file_offset_bits+:} false; then :
11522
$as_echo_n "(cached) " >&6
11525
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526
/* end confdefs.h. */
11527
#include <sys/types.h>
11528
/* Check that off_t can represent 2**63 - 1 correctly.
11529
We can't simply define LARGE_OFF_T to be 9223372036854775807,
11530
since some C++ compilers masquerading as C compilers
11531
incorrectly reject 9223372036854775807. */
11532
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11533
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11534
&& LARGE_OFF_T % 2147483647 == 1)
11544
if ac_fn_c_try_compile "$LINENO"; then :
11545
ac_cv_sys_file_offset_bits=no; break
11547
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11548
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549
/* end confdefs.h. */
11550
#define _FILE_OFFSET_BITS 64
11551
#include <sys/types.h>
11552
/* Check that off_t can represent 2**63 - 1 correctly.
11553
We can't simply define LARGE_OFF_T to be 9223372036854775807,
11554
since some C++ compilers masquerading as C compilers
11555
incorrectly reject 9223372036854775807. */
11556
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11557
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11558
&& LARGE_OFF_T % 2147483647 == 1)
11568
if ac_fn_c_try_compile "$LINENO"; then :
11569
ac_cv_sys_file_offset_bits=64; break
11571
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11572
ac_cv_sys_file_offset_bits=unknown
11576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11577
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11578
case $ac_cv_sys_file_offset_bits in #(
11581
cat >>confdefs.h <<_ACEOF
11582
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11587
if test $ac_cv_sys_file_offset_bits = unknown; then
11588
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11589
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11590
if ${ac_cv_sys_large_files+:} false; then :
11591
$as_echo_n "(cached) " >&6
11594
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595
/* end confdefs.h. */
11596
#include <sys/types.h>
11597
/* Check that off_t can represent 2**63 - 1 correctly.
11598
We can't simply define LARGE_OFF_T to be 9223372036854775807,
11599
since some C++ compilers masquerading as C compilers
11600
incorrectly reject 9223372036854775807. */
11601
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11602
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11603
&& LARGE_OFF_T % 2147483647 == 1)
11613
if ac_fn_c_try_compile "$LINENO"; then :
11614
ac_cv_sys_large_files=no; break
11616
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11617
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618
/* end confdefs.h. */
11619
#define _LARGE_FILES 1
11620
#include <sys/types.h>
11621
/* Check that off_t can represent 2**63 - 1 correctly.
11622
We can't simply define LARGE_OFF_T to be 9223372036854775807,
11623
since some C++ compilers masquerading as C compilers
11624
incorrectly reject 9223372036854775807. */
11625
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11626
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11627
&& LARGE_OFF_T % 2147483647 == 1)
11637
if ac_fn_c_try_compile "$LINENO"; then :
11638
ac_cv_sys_large_files=1; break
11640
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11641
ac_cv_sys_large_files=unknown
11645
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11646
$as_echo "$ac_cv_sys_large_files" >&6; }
11647
case $ac_cv_sys_large_files in #(
11650
cat >>confdefs.h <<_ACEOF
11651
#define _LARGE_FILES $ac_cv_sys_large_files
11665
# Check whether --with-xorg-module-dir was given.
11666
if test "${with_xorg_module_dir+set}" = set; then :
11667
withval=$with_xorg_module_dir; moduledir="$withval"
11669
moduledir="$libdir/xorg/modules"
11673
# Check whether --enable-debug was given.
11674
if test "${enable_debug+set}" = set; then :
11675
enableval=$enable_debug; DEBUG="$enableval"
11681
# Check whether --enable-xv-debug was given.
11682
if test "${enable_xv_debug+set}" = set; then :
11683
enableval=$enable_xv_debug; XV_DEBUG="$enableval"
11689
# Check whether --enable-viaregtool was given.
11690
if test "${enable_viaregtool+set}" = set; then :
11691
enableval=$enable_viaregtool; TOOLS="$enableval"
11697
# Checks for extensions
11699
SAVE_CFLAGS="$CFLAGS"
11700
CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11701
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702
/* end confdefs.h. */
11704
#include "xorg-server.h"
11706
#error RANDR not defined
11717
if ac_fn_c_try_compile "$LINENO"; then :
11722
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11723
CFLAGS="$SAVE_CFLAGS"
11724
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
11725
$as_echo_n "checking if RANDR is defined... " >&6; }
11726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11727
$as_echo "$_EXT_CHECK" >&6; }
11728
if test "$_EXT_CHECK" != no; then
11729
REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
11733
SAVE_CFLAGS="$CFLAGS"
11734
CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11735
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736
/* end confdefs.h. */
11738
#include "xorg-server.h"
11739
#if !defined RENDER
11740
#error RENDER not defined
11751
if ac_fn_c_try_compile "$LINENO"; then :
11756
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11757
CFLAGS="$SAVE_CFLAGS"
11758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
11759
$as_echo_n "checking if RENDER is defined... " >&6; }
11760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11761
$as_echo "$_EXT_CHECK" >&6; }
11762
if test "$_EXT_CHECK" != no; then
11763
REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
11767
SAVE_CFLAGS="$CFLAGS"
11768
CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11769
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770
/* end confdefs.h. */
11772
#include "xorg-server.h"
11774
#error XV not defined
11785
if ac_fn_c_try_compile "$LINENO"; then :
11790
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11791
CFLAGS="$SAVE_CFLAGS"
11792
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
11793
$as_echo_n "checking if XV is defined... " >&6; }
11794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11795
$as_echo "$_EXT_CHECK" >&6; }
11796
if test "$_EXT_CHECK" != no; then
11797
REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
11801
SAVE_CFLAGS="$CFLAGS"
11802
CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11803
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804
/* end confdefs.h. */
11806
#include "xorg-server.h"
11807
#if !defined XF86DRI
11808
#error XF86DRI not defined
11819
if ac_fn_c_try_compile "$LINENO"; then :
11824
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825
CFLAGS="$SAVE_CFLAGS"
11826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XF86DRI is defined" >&5
11827
$as_echo_n "checking if XF86DRI is defined... " >&6; }
11828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11829
$as_echo "$_EXT_CHECK" >&6; }
11830
if test "$_EXT_CHECK" != no; then
11831
REQUIRED_MODULES="$REQUIRED_MODULES xextproto x11"
11835
SAVE_CFLAGS="$CFLAGS"
11836
CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
11837
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838
/* end confdefs.h. */
11840
#include "xorg-server.h"
11841
#if !defined DPMSExtension
11842
#error DPMSExtension not defined
11853
if ac_fn_c_try_compile "$LINENO"; then :
11858
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11859
CFLAGS="$SAVE_CFLAGS"
11860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
11861
$as_echo_n "checking if DPMSExtension is defined... " >&6; }
11862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11863
$as_echo "$_EXT_CHECK" >&6; }
11864
if test "$_EXT_CHECK" != no; then
11865
REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
11869
# Checks for pkg-config packages
11877
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11878
if test -n "$ac_tool_prefix"; then
11879
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11880
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11881
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11882
$as_echo_n "checking for $ac_word... " >&6; }
11883
if ${ac_cv_path_PKG_CONFIG+:} false; then :
11884
$as_echo_n "(cached) " >&6
11886
case $PKG_CONFIG in
11888
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11891
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892
for as_dir in $PATH
11895
test -z "$as_dir" && as_dir=.
11896
for ac_exec_ext in '' $ac_executable_extensions; do
11897
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11898
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11899
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11909
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11910
if test -n "$PKG_CONFIG"; then
11911
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11912
$as_echo "$PKG_CONFIG" >&6; }
11914
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915
$as_echo "no" >&6; }
11920
if test -z "$ac_cv_path_PKG_CONFIG"; then
11921
ac_pt_PKG_CONFIG=$PKG_CONFIG
11922
# Extract the first word of "pkg-config", so it can be a program name with args.
11923
set dummy pkg-config; ac_word=$2
11924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11925
$as_echo_n "checking for $ac_word... " >&6; }
11926
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11927
$as_echo_n "(cached) " >&6
11929
case $ac_pt_PKG_CONFIG in
11931
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11934
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11935
for as_dir in $PATH
11938
test -z "$as_dir" && as_dir=.
11939
for ac_exec_ext in '' $ac_executable_extensions; do
11940
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11941
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11942
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11952
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11953
if test -n "$ac_pt_PKG_CONFIG"; then
11954
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11955
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11957
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958
$as_echo "no" >&6; }
11961
if test "x$ac_pt_PKG_CONFIG" = x; then
11964
case $cross_compiling:$ac_tool_warned in
11966
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11967
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11968
ac_tool_warned=yes ;;
11970
PKG_CONFIG=$ac_pt_PKG_CONFIG
11973
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11977
if test -n "$PKG_CONFIG"; then
11978
_pkg_min_version=0.9.0
11979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11980
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11981
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11983
$as_echo "yes" >&6; }
11985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986
$as_echo "no" >&6; }
11992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
11993
$as_echo_n "checking for XORG... " >&6; }
11995
if test -n "$XORG_CFLAGS"; then
11996
pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
11997
elif test -n "$PKG_CONFIG"; then
11998
if test -n "$PKG_CONFIG" && \
11999
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto libdrm glproto \$REQUIRED_MODULES\""; } >&5
12000
($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto libdrm glproto $REQUIRED_MODULES") 2>&5
12002
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12003
test $ac_status = 0; }; then
12004
pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto libdrm glproto $REQUIRED_MODULES" 2>/dev/null`
12005
test "x$?" != "x0" && pkg_failed=yes
12012
if test -n "$XORG_LIBS"; then
12013
pkg_cv_XORG_LIBS="$XORG_LIBS"
12014
elif test -n "$PKG_CONFIG"; then
12015
if test -n "$PKG_CONFIG" && \
12016
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto libdrm glproto \$REQUIRED_MODULES\""; } >&5
12017
($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto libdrm glproto $REQUIRED_MODULES") 2>&5
12019
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12020
test $ac_status = 0; }; then
12021
pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto libdrm glproto $REQUIRED_MODULES" 2>/dev/null`
12022
test "x$?" != "x0" && pkg_failed=yes
12032
if test $pkg_failed = yes; then
12033
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034
$as_echo "no" >&6; }
12036
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12037
_pkg_short_errors_supported=yes
12039
_pkg_short_errors_supported=no
12041
if test $_pkg_short_errors_supported = yes; then
12042
XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server xproto fontsproto libdrm glproto $REQUIRED_MODULES" 2>&1`
12044
XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server xproto fontsproto libdrm glproto $REQUIRED_MODULES" 2>&1`
12046
# Put the nasty error message in config.log where it belongs
12047
echo "$XORG_PKG_ERRORS" >&5
12049
as_fn_error $? "Package requirements (xorg-server xproto fontsproto libdrm glproto $REQUIRED_MODULES) were not met:
12053
Consider adjusting the PKG_CONFIG_PATH environment variable if you
12054
installed software in a non-standard prefix.
12056
Alternatively, you may set the environment variables XORG_CFLAGS
12057
and XORG_LIBS to avoid the need to call pkg-config.
12058
See the pkg-config man page for more details." "$LINENO" 5
12059
elif test $pkg_failed = untried; then
12060
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12061
$as_echo "no" >&6; }
12062
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12063
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12064
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12065
is in your PATH or set the PKG_CONFIG environment variable to the full
12066
path to pkg-config.
12068
Alternatively, you may set the environment variables XORG_CFLAGS
12069
and XORG_LIBS to avoid the need to call pkg-config.
12070
See the pkg-config man page for more details.
12072
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12073
See \`config.log' for more details" "$LINENO" 5; }
12075
XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12076
XORG_LIBS=$pkg_cv_XORG_LIBS
12077
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12078
$as_echo "yes" >&6; }
12083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
12084
$as_echo_n "checking for XEXT... " >&6; }
12086
if test -n "$XEXT_CFLAGS"; then
12087
pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
12088
elif test -n "$PKG_CONFIG"; then
12089
if test -n "$PKG_CONFIG" && \
12090
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
12091
($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
12093
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12094
test $ac_status = 0; }; then
12095
pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
12096
test "x$?" != "x0" && pkg_failed=yes
12103
if test -n "$XEXT_LIBS"; then
12104
pkg_cv_XEXT_LIBS="$XEXT_LIBS"
12105
elif test -n "$PKG_CONFIG"; then
12106
if test -n "$PKG_CONFIG" && \
12107
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
12108
($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
12110
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12111
test $ac_status = 0; }; then
12112
pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
12113
test "x$?" != "x0" && pkg_failed=yes
12123
if test $pkg_failed = yes; then
12124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12125
$as_echo "no" >&6; }
12127
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12128
_pkg_short_errors_supported=yes
12130
_pkg_short_errors_supported=no
12132
if test $_pkg_short_errors_supported = yes; then
12133
XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
12135
XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
12137
# Put the nasty error message in config.log where it belongs
12138
echo "$XEXT_PKG_ERRORS" >&5
12140
HAVE_XEXTPROTO_71="no"
12141
elif test $pkg_failed = untried; then
12142
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143
$as_echo "no" >&6; }
12144
HAVE_XEXTPROTO_71="no"
12146
XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
12147
XEXT_LIBS=$pkg_cv_XEXT_LIBS
12148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12149
$as_echo "yes" >&6; }
12150
HAVE_XEXTPROTO_71="yes";
12151
$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
12154
if test "$HAVE_XEXTPROTO_71" = "yes" ; then
12155
HAVE_XEXTPROTO_71_TRUE=
12156
HAVE_XEXTPROTO_71_FALSE='#'
12158
HAVE_XEXTPROTO_71_TRUE='#'
12159
HAVE_XEXTPROTO_71_FALSE=
12163
# Checks for libraries.
12165
# Checks for header files.
12166
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12167
$as_echo_n "checking for ANSI C header files... " >&6; }
12168
if ${ac_cv_header_stdc+:} false; then :
12169
$as_echo_n "(cached) " >&6
12171
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172
/* end confdefs.h. */
12173
#include <stdlib.h>
12174
#include <stdarg.h>
12175
#include <string.h>
12186
if ac_fn_c_try_compile "$LINENO"; then :
12187
ac_cv_header_stdc=yes
12189
ac_cv_header_stdc=no
12191
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12193
if test $ac_cv_header_stdc = yes; then
12194
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12195
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196
/* end confdefs.h. */
12197
#include <string.h>
12200
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12201
$EGREP "memchr" >/dev/null 2>&1; then :
12204
ac_cv_header_stdc=no
12210
if test $ac_cv_header_stdc = yes; then
12211
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12212
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213
/* end confdefs.h. */
12214
#include <stdlib.h>
12217
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12218
$EGREP "free" >/dev/null 2>&1; then :
12221
ac_cv_header_stdc=no
12227
if test $ac_cv_header_stdc = yes; then
12228
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12229
if test "$cross_compiling" = yes; then :
12232
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233
/* end confdefs.h. */
12235
#include <stdlib.h>
12236
#if ((' ' & 0x0FF) == 0x020)
12237
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12238
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12240
# define ISLOWER(c) \
12241
(('a' <= (c) && (c) <= 'i') \
12242
|| ('j' <= (c) && (c) <= 'r') \
12243
|| ('s' <= (c) && (c) <= 'z'))
12244
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12247
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12252
for (i = 0; i < 256; i++)
12253
if (XOR (islower (i), ISLOWER (i))
12254
|| toupper (i) != TOUPPER (i))
12259
if ac_fn_c_try_run "$LINENO"; then :
12262
ac_cv_header_stdc=no
12264
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12265
conftest.$ac_objext conftest.beam conftest.$ac_ext
12270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12271
$as_echo "$ac_cv_header_stdc" >&6; }
12272
if test $ac_cv_header_stdc = yes; then
12274
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12279
save_CPPFLAGS="$CPPFLAGS"
12280
CPPFLAGS="$XORG_CFLAGS $CPPFLAGS"
12281
ac_fn_c_check_header_compile "$LINENO" "xf86Modes.h" "ac_cv_header_xf86Modes_h" "#include \"xorg-server.h\"
12283
if test "x$ac_cv_header_xf86Modes_h" = xyes; then :
12292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
12293
$as_echo_n "checking for PCIACCESS... " >&6; }
12295
if test -n "$PCIACCESS_CFLAGS"; then
12296
pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
12297
elif test -n "$PKG_CONFIG"; then
12298
if test -n "$PKG_CONFIG" && \
12299
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.11.0\""; } >&5
12300
($PKG_CONFIG --exists --print-errors "pciaccess >= 0.11.0") 2>&5
12302
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12303
test $ac_status = 0; }; then
12304
pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.11.0" 2>/dev/null`
12305
test "x$?" != "x0" && pkg_failed=yes
12312
if test -n "$PCIACCESS_LIBS"; then
12313
pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
12314
elif test -n "$PKG_CONFIG"; then
12315
if test -n "$PKG_CONFIG" && \
12316
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.11.0\""; } >&5
12317
($PKG_CONFIG --exists --print-errors "pciaccess >= 0.11.0") 2>&5
12319
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12320
test $ac_status = 0; }; then
12321
pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.11.0" 2>/dev/null`
12322
test "x$?" != "x0" && pkg_failed=yes
12332
if test $pkg_failed = yes; then
12333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334
$as_echo "no" >&6; }
12336
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12337
_pkg_short_errors_supported=yes
12339
_pkg_short_errors_supported=no
12341
if test $_pkg_short_errors_supported = yes; then
12342
PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.11.0" 2>&1`
12344
PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.11.0" 2>&1`
12346
# Put the nasty error message in config.log where it belongs
12347
echo "$PCIACCESS_PKG_ERRORS" >&5
12349
HAVE_PCIACCESS="no"
12350
elif test $pkg_failed = untried; then
12351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352
$as_echo "no" >&6; }
12353
HAVE_PCIACCESS="no"
12355
PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
12356
PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
12357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12358
$as_echo "yes" >&6; }
12359
HAVE_PCIACCESS="yes";
12360
$as_echo "#define HAVE_PCIACCESS 1" >>confdefs.h
12368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
12369
$as_echo_n "checking for DRI... " >&6; }
12371
if test -n "$DRI_CFLAGS"; then
12372
pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
12373
elif test -n "$PKG_CONFIG"; then
12374
if test -n "$PKG_CONFIG" && \
12375
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.4 xf86driproto\""; } >&5
12376
($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.4 xf86driproto") 2>&5
12378
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12379
test $ac_status = 0; }; then
12380
pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.4 xf86driproto" 2>/dev/null`
12381
test "x$?" != "x0" && pkg_failed=yes
12388
if test -n "$DRI_LIBS"; then
12389
pkg_cv_DRI_LIBS="$DRI_LIBS"
12390
elif test -n "$PKG_CONFIG"; then
12391
if test -n "$PKG_CONFIG" && \
12392
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.4 xf86driproto\""; } >&5
12393
($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.4 xf86driproto") 2>&5
12395
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12396
test $ac_status = 0; }; then
12397
pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.4 xf86driproto" 2>/dev/null`
12398
test "x$?" != "x0" && pkg_failed=yes
12408
if test $pkg_failed = yes; then
12409
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410
$as_echo "no" >&6; }
12412
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12413
_pkg_short_errors_supported=yes
12415
_pkg_short_errors_supported=no
12417
if test $_pkg_short_errors_supported = yes; then
12418
DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.4 xf86driproto" 2>&1`
12420
DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.4 xf86driproto" 2>&1`
12422
# Put the nasty error message in config.log where it belongs
12423
echo "$DRI_PKG_ERRORS" >&5
12426
elif test $pkg_failed = untried; then
12427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428
$as_echo "no" >&6; }
12431
DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
12432
DRI_LIBS=$pkg_cv_DRI_LIBS
12433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12434
$as_echo "yes" >&6; }
12436
$as_echo "#define HAVE_DRI 1" >>confdefs.h
12439
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build KMS support" >&5
12440
$as_echo_n "checking whether to build KMS support... " >&6; }
12441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
12442
$as_echo "$DRI" >&6; }
12444
if test x$DRI = xyes; then
12452
if test "$DRI" = yes; then
12454
$as_echo "#define XF86DRI 1" >>confdefs.h
12457
ac_fn_c_check_header_preproc "$LINENO" "damage.h" "ac_cv_header_damage_h"
12458
if test "x$ac_cv_header_damage_h" = xyes; then :
12459
have_damage_h="yes"
12465
if test "$have_damage_h" = yes; then
12467
$as_echo "#define DAMAGE 1" >>confdefs.h
12473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
12474
$as_echo_n "checking for LIBUDEV... " >&6; }
12476
if test -n "$LIBUDEV_CFLAGS"; then
12477
pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
12478
elif test -n "$PKG_CONFIG"; then
12479
if test -n "$PKG_CONFIG" && \
12480
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
12481
($PKG_CONFIG --exists --print-errors "libudev") 2>&5
12483
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12484
test $ac_status = 0; }; then
12485
pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
12486
test "x$?" != "x0" && pkg_failed=yes
12493
if test -n "$LIBUDEV_LIBS"; then
12494
pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
12495
elif test -n "$PKG_CONFIG"; then
12496
if test -n "$PKG_CONFIG" && \
12497
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
12498
($PKG_CONFIG --exists --print-errors "libudev") 2>&5
12500
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12501
test $ac_status = 0; }; then
12502
pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
12503
test "x$?" != "x0" && pkg_failed=yes
12513
if test $pkg_failed = yes; then
12514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515
$as_echo "no" >&6; }
12517
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12518
_pkg_short_errors_supported=yes
12520
_pkg_short_errors_supported=no
12522
if test $_pkg_short_errors_supported = yes; then
12523
LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
12525
LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
12527
# Put the nasty error message in config.log where it belongs
12528
echo "$LIBUDEV_PKG_ERRORS" >&5
12531
elif test $pkg_failed = untried; then
12532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533
$as_echo "no" >&6; }
12536
LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
12537
LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
12538
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12539
$as_echo "yes" >&6; }
12542
if test "x$LIBUDEV" = xyes; then
12544
$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
12548
case "$host_cpu" in
12560
if test "x$XVMC" = xyes; then
12561
for ac_header in pthread.h sys/ioctl.h sys/time.h time.h
12563
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12564
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12565
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12566
cat >>confdefs.h <<_ACEOF
12567
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12578
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMC" >&5
12579
$as_echo_n "checking for XVMC... " >&6; }
12581
if test -n "$XVMC_CFLAGS"; then
12582
pkg_cv_XVMC_CFLAGS="$XVMC_CFLAGS"
12583
elif test -n "$PKG_CONFIG"; then
12584
if test -n "$PKG_CONFIG" && \
12585
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xvmc\""; } >&5
12586
($PKG_CONFIG --exists --print-errors "x11 xext xvmc") 2>&5
12588
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12589
test $ac_status = 0; }; then
12590
pkg_cv_XVMC_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xvmc" 2>/dev/null`
12591
test "x$?" != "x0" && pkg_failed=yes
12598
if test -n "$XVMC_LIBS"; then
12599
pkg_cv_XVMC_LIBS="$XVMC_LIBS"
12600
elif test -n "$PKG_CONFIG"; then
12601
if test -n "$PKG_CONFIG" && \
12602
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xvmc\""; } >&5
12603
($PKG_CONFIG --exists --print-errors "x11 xext xvmc") 2>&5
12605
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12606
test $ac_status = 0; }; then
12607
pkg_cv_XVMC_LIBS=`$PKG_CONFIG --libs "x11 xext xvmc" 2>/dev/null`
12608
test "x$?" != "x0" && pkg_failed=yes
12618
if test $pkg_failed = yes; then
12619
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620
$as_echo "no" >&6; }
12622
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12623
_pkg_short_errors_supported=yes
12625
_pkg_short_errors_supported=no
12627
if test $_pkg_short_errors_supported = yes; then
12628
XVMC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xvmc" 2>&1`
12630
XVMC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xvmc" 2>&1`
12632
# Put the nasty error message in config.log where it belongs
12633
echo "$XVMC_PKG_ERRORS" >&5
12635
as_fn_error $? "Package requirements (x11 xext xvmc) were not met:
12639
Consider adjusting the PKG_CONFIG_PATH environment variable if you
12640
installed software in a non-standard prefix.
12642
Alternatively, you may set the environment variables XVMC_CFLAGS
12643
and XVMC_LIBS to avoid the need to call pkg-config.
12644
See the pkg-config man page for more details." "$LINENO" 5
12645
elif test $pkg_failed = untried; then
12646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647
$as_echo "no" >&6; }
12648
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12649
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12650
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12651
is in your PATH or set the PKG_CONFIG environment variable to the full
12652
path to pkg-config.
12654
Alternatively, you may set the environment variables XVMC_CFLAGS
12655
and XVMC_LIBS to avoid the need to call pkg-config.
12656
See the pkg-config man page for more details.
12658
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12659
See \`config.log' for more details" "$LINENO" 5; }
12661
XVMC_CFLAGS=$pkg_cv_XVMC_CFLAGS
12662
XVMC_LIBS=$pkg_cv_XVMC_LIBS
12663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12664
$as_echo "yes" >&6; }
12669
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build XvMC driver support" >&5
12670
$as_echo_n "checking whether to build XvMC driver support... " >&6; }
12671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVMC" >&5
12672
$as_echo "$XVMC" >&6; }
12674
if test x$XVMC = xyes; then
12683
if test x$DEBUG = xyes; then
12691
if test "$DEBUG" = yes; then
12693
$as_echo "#define HAVE_DEBUG 1" >>confdefs.h
12697
if test x$XV_DEBUG = xyes; then
12705
if test "$XV_DEBUG" = yes; then
12707
$as_echo "#define XV_DEBUG 1" >>confdefs.h
12711
if test x$TOOLS = xyes; then
12719
if test "$TOOLS" = yes; then
12721
$as_echo "#define TOOLS 1" >>confdefs.h
12729
DRIVER_NAME=openchrome
12733
$as_echo "#define X_USE_LINEARFB 1" >>confdefs.h
12736
$as_echo "#define X_USE_REGION_NULL 1" >>confdefs.h
12739
$as_echo "#define X_HAVE_XAAGETROP 1" >>confdefs.h
12742
$as_echo "#define X_NEED_I2CSTART 1" >>confdefs.h
12745
DRIVER_MAN_SUFFIX="4"
12752
if test x$APP_MAN_SUFFIX = x ; then
12755
if test x$APP_MAN_DIR = x ; then
12756
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12759
if test x$LIB_MAN_SUFFIX = x ; then
12762
if test x$LIB_MAN_DIR = x ; then
12763
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12766
if test x$FILE_MAN_SUFFIX = x ; then
12768
solaris*) FILE_MAN_SUFFIX=4 ;;
12769
*) FILE_MAN_SUFFIX=5 ;;
12772
if test x$FILE_MAN_DIR = x ; then
12773
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12776
if test x$MISC_MAN_SUFFIX = x ; then
12778
solaris*) MISC_MAN_SUFFIX=5 ;;
12779
*) MISC_MAN_SUFFIX=7 ;;
12782
if test x$MISC_MAN_DIR = x ; then
12783
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12786
if test x$DRIVER_MAN_SUFFIX = x ; then
12788
solaris*) DRIVER_MAN_SUFFIX=7 ;;
12789
*) DRIVER_MAN_SUFFIX=4 ;;
12792
if test x$DRIVER_MAN_DIR = x ; then
12793
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12796
if test x$ADMIN_MAN_SUFFIX = x ; then
12798
solaris*) ADMIN_MAN_SUFFIX=1m ;;
12799
*) ADMIN_MAN_SUFFIX=8 ;;
12802
if test x$ADMIN_MAN_DIR = x ; then
12803
ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12820
XORG_MAN_PAGE="X Version 11"
12823
-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12824
-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12825
-e 's|__xservername__|Xorg|g' \
12826
-e 's|__xconfigfile__|xorg.conf|g' \
12827
-e 's|__projectroot__|\$(prefix)|g' \
12828
-e 's|__apploaddir__|\$(appdefaultdir)|g' \
12829
-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
12830
-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
12831
-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
12832
-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
12833
-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
12834
-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
12840
# Check whether --with-release-version was given.
12841
if test "${with_release_version+set}" = set; then :
12842
withval=$with_release_version; RELEASE_VERSION="$withval"
12847
if test "x$RELEASE_VERSION" != "x"; then
12848
PACKAGE="$PACKAGE-$RELEASE_VERSION"
12849
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
12850
{ $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5
12851
$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
12855
ac_config_files="$ac_config_files Makefile src/xvmc/Makefile src/Makefile man/Makefile tools/Makefile"
12857
cat >confcache <<\_ACEOF
12858
# This file is a shell script that caches the results of configure
12859
# tests run on this system so they can be shared between configure
12860
# scripts and configure runs, see configure's option --config-cache.
12861
# It is not useful on other systems. If it contains results you don't
12862
# want to keep, you may remove or edit it.
12864
# config.status only pays attention to the cache file if you give it
12865
# the --recheck option to rerun configure.
12867
# `ac_cv_env_foo' variables (set or unset) will be overridden when
12868
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12869
# following values.
12873
# The following way of writing the cache mishandles newlines in values,
12874
# but we know of no workaround that is simple, portable, and efficient.
12875
# So, we kill variables containing newlines.
12876
# Ultrix sh set writes to stderr and can't be redirected directly,
12877
# and sets the high bit in the cache file unless we assign to the vars.
12879
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12880
eval ac_val=\$$ac_var
12884
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12885
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12888
_ | IFS | as_nl) ;; #(
12889
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12890
*) { eval $ac_var=; unset $ac_var;} ;;
12896
case $as_nl`(ac_space=' '; set) 2>&1` in #(
12897
*${as_nl}ac_space=\ *)
12898
# `set' does not quote correctly, so add quotes: double-quote
12899
# substitution turns \\\\ into \\, and sed turns \\ into \.
12902
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12905
# `set' quotes correctly as required by POSIX, so do not add quotes.
12906
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12915
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12917
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12919
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12920
if test -w "$cache_file"; then
12921
if test "x$cache_file" != "x/dev/null"; then
12922
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12923
$as_echo "$as_me: updating cache $cache_file" >&6;}
12924
if test ! -f "$cache_file" || test -h "$cache_file"; then
12925
cat confcache >"$cache_file"
12927
case $cache_file in #(
12929
mv -f confcache "$cache_file"$$ &&
12930
mv -f "$cache_file"$$ "$cache_file" ;; #(
12932
mv -f confcache "$cache_file" ;;
12937
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12938
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12943
test "x$prefix" = xNONE && prefix=$ac_default_prefix
12944
# Let make expand exec_prefix.
12945
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12947
DEFS=-DHAVE_CONFIG_H
12952
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12953
# 1. Remove the extension, and $U if already installed.
12954
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12955
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12956
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12957
# will be set to the directory where LIBOBJS objects are built.
12958
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12959
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12961
LIBOBJS=$ac_libobjs
12963
LTLIBOBJS=$ac_ltlibobjs
12966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12967
$as_echo_n "checking that generated files are newer than configure... " >&6; }
12968
if test -n "$am_sleep_pid"; then
12969
# Hide warnings about reused PIDs.
12970
wait $am_sleep_pid 2>/dev/null
12972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12973
$as_echo "done" >&6; }
12974
if test -n "$EXEEXT"; then
12976
am__EXEEXT_FALSE='#'
12978
am__EXEEXT_TRUE='#'
12982
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12983
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12984
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12986
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12987
as_fn_error $? "conditional \"AMDEP\" was never defined.
12988
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12990
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12991
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12992
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12994
if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
12995
as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
12996
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12998
if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
12999
as_fn_error $? "conditional \"DRI\" was never defined.
13000
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13002
if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
13003
as_fn_error $? "conditional \"XVMC\" was never defined.
13004
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13006
if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
13007
as_fn_error $? "conditional \"DEBUG\" was never defined.
13008
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13010
if test -z "${XV_DEBUG_TRUE}" && test -z "${XV_DEBUG_FALSE}"; then
13011
as_fn_error $? "conditional \"XV_DEBUG\" was never defined.
13012
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13014
if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then
13015
as_fn_error $? "conditional \"TOOLS\" was never defined.
13016
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13019
: "${CONFIG_STATUS=./config.status}"
13021
ac_clean_files_save=$ac_clean_files
13022
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13023
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13024
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13026
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13028
# Generated by $as_me.
13029
# Run this file to recreate the current configuration.
13030
# Compiler output produced by configure, useful for debugging
13031
# configure, is in config.log if it exists.
13034
ac_cs_recheck=false
13037
SHELL=\${CONFIG_SHELL-$SHELL}
13040
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13041
## -------------------- ##
13042
## M4sh Initialization. ##
13043
## -------------------- ##
13045
# Be more Bourne compatible
13046
DUALCASE=1; export DUALCASE # for MKS sh
13047
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13050
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13051
# is contrary to our usage. Disable this feature.
13052
alias -g '${1+"$@"}'='"$@"'
13053
setopt NO_GLOB_SUBST
13055
case `(set -o) 2>/dev/null` in #(
13067
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13068
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13069
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13070
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13071
# Prefer a ksh shell builtin over an external printf program on Solaris,
13072
# but without wasting forks for bash or zsh.
13073
if test -z "$BASH_VERSION$ZSH_VERSION" \
13074
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13075
as_echo='print -r --'
13076
as_echo_n='print -rn --'
13077
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13078
as_echo='printf %s\n'
13079
as_echo_n='printf %s'
13081
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13082
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13083
as_echo_n='/usr/ucb/echo -n'
13085
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13086
as_echo_n_body='eval
13090
expr "X$arg" : "X\\(.*\\)$as_nl";
13091
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13093
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13095
export as_echo_n_body
13096
as_echo_n='sh -c $as_echo_n_body as_echo'
13098
export as_echo_body
13099
as_echo='sh -c $as_echo_body as_echo'
13102
# The user is always right.
13103
if test "${PATH_SEPARATOR+set}" != set; then
13105
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13106
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13113
# We need space, tab and new line, in precisely that order. Quoting is
13114
# there to prevent editors from complaining about space-tab.
13115
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13116
# splitting by setting IFS to empty value.)
13119
# Find who we are. Look in the path if we contain no directory separator.
13122
*[\\/]* ) as_myself=$0 ;;
13123
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13124
for as_dir in $PATH
13127
test -z "$as_dir" && as_dir=.
13128
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13134
# We did not find ourselves, most probably we were run as `sh COMMAND'
13135
# in which case we are not to be found in the path.
13136
if test "x$as_myself" = x; then
13139
if test ! -f "$as_myself"; then
13140
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13144
# Unset variables that we do not need and which cause bugs (e.g. in
13145
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13146
# suppresses any "Segmentation fault" message there. '((' could
13147
# trigger a bug in pdksh 5.2.14.
13148
for as_var in BASH_ENV ENV MAIL MAILPATH
13149
do eval test x\${$as_var+set} = xset \
13150
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13163
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13166
# as_fn_error STATUS ERROR [LINENO LOG_FD]
13167
# ----------------------------------------
13168
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13169
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13170
# script with STATUS, using 1 if that was 0.
13173
as_status=$1; test $as_status -eq 0 && as_status=1
13175
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13176
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13178
$as_echo "$as_me: error: $2" >&2
13179
as_fn_exit $as_status
13183
# as_fn_set_status STATUS
13184
# -----------------------
13185
# Set $? to STATUS, without forking.
13186
as_fn_set_status ()
13189
} # as_fn_set_status
13191
# as_fn_exit STATUS
13192
# -----------------
13193
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13197
as_fn_set_status $1
13203
# Portably unset VAR.
13206
{ eval $1=; unset $1;}
13208
as_unset=as_fn_unset
13209
# as_fn_append VAR VALUE
13210
# ----------------------
13211
# Append the text in VALUE to the end of the definition contained in VAR. Take
13212
# advantage of any shell optimizations that allow amortized linear growth over
13213
# repeated appends, instead of the typical quadratic growth present in naive
13215
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13216
eval 'as_fn_append ()
13227
# as_fn_arith ARG...
13228
# ------------------
13229
# Perform arithmetic evaluation on the ARGs, and store the result in the
13230
# global $as_val. Take advantage of shells that can avoid forks. The arguments
13231
# must be portable across $(()) and expr.
13232
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13233
eval 'as_fn_arith ()
13240
as_val=`expr "$@" || test $? -eq 1`
13245
if expr a : '\(a\)' >/dev/null 2>&1 &&
13246
test "X`expr 00001 : '.*\(...\)'`" = X001; then
13252
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13253
as_basename=basename
13258
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13264
as_me=`$as_basename -- "$0" ||
13265
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13266
X"$0" : 'X\(//\)$' \| \
13267
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13269
sed '/^.*\/\([^/][^/]*\)\/*$/{
13283
# Avoid depending upon Character Ranges.
13284
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13285
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13286
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13287
as_cr_digits='0123456789'
13288
as_cr_alnum=$as_cr_Letters$as_cr_digits
13290
ECHO_C= ECHO_N= ECHO_T=
13291
case `echo -n x` in #(((((
13293
case `echo 'xy\c'` in
13294
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
13296
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13303
rm -f conf$$ conf$$.exe conf$$.file
13304
if test -d conf$$.dir; then
13305
rm -f conf$$.dir/conf$$.file
13308
mkdir conf$$.dir 2>/dev/null
13310
if (echo >conf$$.file) 2>/dev/null; then
13311
if ln -s conf$$.file conf$$ 2>/dev/null; then
13313
# ... but there are two gotchas:
13314
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13315
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13316
# In both cases, we have to default to `cp -pR'.
13317
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13319
elif ln conf$$.file conf$$ 2>/dev/null; then
13327
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13328
rmdir conf$$.dir 2>/dev/null
13333
# Create "$as_dir" as a directory, including parents if necessary.
13338
-*) as_dir=./$as_dir;;
13340
test -d "$as_dir" || eval $as_mkdir_p || {
13344
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13345
*) as_qdir=$as_dir;;
13347
as_dirs="'$as_qdir' $as_dirs"
13348
as_dir=`$as_dirname -- "$as_dir" ||
13349
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13350
X"$as_dir" : 'X\(//\)[^/]' \| \
13351
X"$as_dir" : 'X\(//\)$' \| \
13352
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13353
$as_echo X"$as_dir" |
13354
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13358
/^X\(\/\/\)[^/].*/{
13371
test -d "$as_dir" && break
13373
test -z "$as_dirs" || eval "mkdir $as_dirs"
13374
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13378
if mkdir -p . 2>/dev/null; then
13379
as_mkdir_p='mkdir -p "$as_dir"'
13381
test -d ./-p && rmdir ./-p
13386
# as_fn_executable_p FILE
13387
# -----------------------
13388
# Test if FILE is an executable regular file.
13389
as_fn_executable_p ()
13391
test -f "$1" && test -x "$1"
13392
} # as_fn_executable_p
13393
as_test_x='test -x'
13394
as_executable_p=as_fn_executable_p
13396
# Sed expression to map a string onto a valid CPP name.
13397
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13399
# Sed expression to map a string onto a valid variable name.
13400
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13404
## ----------------------------------- ##
13405
## Main body of $CONFIG_STATUS script. ##
13406
## ----------------------------------- ##
13408
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13410
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13411
# Save the log message, to keep $0 and so on meaningful, and to
13412
# report actual input values of CONFIG_FILES etc. instead of their
13413
# values after options handling.
13415
This file was extended by xf86-video-openchrome $as_me 0.3.3, which was
13416
generated by GNU Autoconf 2.69. Invocation command line was
13418
CONFIG_FILES = $CONFIG_FILES
13419
CONFIG_HEADERS = $CONFIG_HEADERS
13420
CONFIG_LINKS = $CONFIG_LINKS
13421
CONFIG_COMMANDS = $CONFIG_COMMANDS
13424
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13429
case $ac_config_files in *"
13430
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13433
case $ac_config_headers in *"
13434
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13438
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13439
# Files that config.status was made for.
13440
config_files="$ac_config_files"
13441
config_headers="$ac_config_headers"
13442
config_commands="$ac_config_commands"
13446
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13448
\`$as_me' instantiates files and other configuration actions
13449
from templates according to the current configuration. Unless the files
13450
and actions are specified as TAGs, all are instantiated by default.
13452
Usage: $0 [OPTION]... [TAG]...
13454
-h, --help print this help, then exit
13455
-V, --version print version number and configuration settings, then exit
13456
--config print configuration, then exit
13457
-q, --quiet, --silent
13458
do not print progress messages
13459
-d, --debug don't remove temporary files
13460
--recheck update $as_me by reconfiguring in the same conditions
13461
--file=FILE[:TEMPLATE]
13462
instantiate the configuration file FILE
13463
--header=FILE[:TEMPLATE]
13464
instantiate the configuration header FILE
13466
Configuration files:
13469
Configuration headers:
13472
Configuration commands:
13475
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome>."
13478
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13479
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13481
xf86-video-openchrome config.status 0.3.3
13482
configured by $0, generated by GNU Autoconf 2.69,
13483
with options \\"\$ac_cs_config\\"
13485
Copyright (C) 2012 Free Software Foundation, Inc.
13486
This config.status script is free software; the Free Software Foundation
13487
gives unlimited permission to copy, distribute and modify it."
13494
test -n "\$AWK" || AWK=awk
13497
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13498
# The default lists apply if the user does not specify any file.
13504
ac_option=`expr "X$1" : 'X\([^=]*\)='`
13505
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13509
ac_option=`expr "X$1" : 'X\([^=]*\)='`
13521
# Handling of the options.
13522
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13524
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13525
$as_echo "$ac_cs_version"; exit ;;
13526
--config | --confi | --conf | --con | --co | --c )
13527
$as_echo "$ac_cs_config"; exit ;;
13528
--debug | --debu | --deb | --de | --d | -d )
13530
--file | --fil | --fi | --f )
13533
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13534
'') as_fn_error $? "missing file argument" ;;
13536
as_fn_append CONFIG_FILES " '$ac_optarg'"
13537
ac_need_defaults=false;;
13538
--header | --heade | --head | --hea )
13541
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13543
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13544
ac_need_defaults=false;;
13546
# Conflict between --help and --header
13547
as_fn_error $? "ambiguous option: \`$1'
13548
Try \`$0 --help' for more information.";;
13549
--help | --hel | -h )
13550
$as_echo "$ac_cs_usage"; exit ;;
13551
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
13552
| -silent | --silent | --silen | --sile | --sil | --si | --s)
13555
# This is an error.
13556
-*) as_fn_error $? "unrecognized option: \`$1'
13557
Try \`$0 --help' for more information." ;;
13559
*) as_fn_append ac_config_targets " $1"
13560
ac_need_defaults=false ;;
13566
ac_configure_extra_args=
13568
if $ac_cs_silent; then
13570
ac_configure_extra_args="$ac_configure_extra_args --silent"
13574
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13575
if \$ac_cs_recheck; then
13576
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13578
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13579
CONFIG_SHELL='$SHELL'
13580
export CONFIG_SHELL
13585
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13589
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13590
## Running $as_me. ##
13596
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13600
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13603
# The HP-UX ksh and POSIX shell print the target directory to stdout
13604
# if CDPATH is set.
13605
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13607
sed_quote_subst='$sed_quote_subst'
13608
double_quote_subst='$double_quote_subst'
13609
delay_variable_subst='$delay_variable_subst'
13610
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13611
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13612
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13613
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13614
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13615
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13616
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13617
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13618
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13619
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13620
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13621
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13622
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13623
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13624
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13625
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13626
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13627
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13628
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13629
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13630
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13631
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13632
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13633
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13634
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13635
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13636
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13637
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13638
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13639
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13640
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13641
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13642
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13643
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13644
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13645
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13646
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13647
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13648
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13649
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13650
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13651
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13652
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13653
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13654
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13655
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13656
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13657
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13658
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13659
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13660
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13661
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13662
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13663
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13664
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13665
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13666
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"`'
13667
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13668
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13669
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13670
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13671
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13672
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13673
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13674
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13675
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13676
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13677
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13678
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13679
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13680
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13681
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13682
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13683
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13684
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13685
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13686
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13687
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13688
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13689
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13690
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13691
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13692
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13693
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13694
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13695
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13696
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13697
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13698
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13699
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13700
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13701
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13702
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13703
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13704
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13705
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13706
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13707
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13708
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13709
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13710
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13711
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13712
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13713
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13714
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13715
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13716
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13717
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13718
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13719
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13720
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13721
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13722
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13723
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13724
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13725
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13726
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13727
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13728
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13729
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13730
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13731
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13732
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13733
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13734
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13735
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13736
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13737
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13738
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13739
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13742
LTCFLAGS='$LTCFLAGS'
13743
compiler='$compiler_DEFAULT'
13745
# A function that is used when there is no print builtin or printf.
13746
func_fallback_echo ()
13748
eval 'cat <<_LTECHO_EOF
13753
# Quote evaled strings.
13768
deplibs_check_method \
13773
sharedlib_from_linklib_cmd \
13776
archiver_list_spec \
13782
lt_cv_sys_global_symbol_pipe \
13783
lt_cv_sys_global_symbol_to_cdecl \
13784
lt_cv_sys_global_symbol_to_c_name_address \
13785
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13786
nm_file_list_spec \
13787
lt_prog_compiler_no_builtin_flag \
13788
lt_prog_compiler_pic \
13789
lt_prog_compiler_wl \
13790
lt_prog_compiler_static \
13791
lt_cv_prog_compiler_c_o \
13800
export_dynamic_flag_spec \
13801
whole_archive_flag_spec \
13802
compiler_needs_object \
13804
allow_undefined_flag \
13805
no_undefined_flag \
13806
hardcode_libdir_flag_spec \
13807
hardcode_libdir_separator \
13811
variables_saved_for_relink \
13813
library_names_spec \
13815
install_override_mode \
13819
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13820
*[\\\\\\\`\\"\\\$]*)
13821
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13824
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13829
# Double-quote double-evaled strings.
13830
for var in reload_cmds \
13831
old_postinstall_cmds \
13832
old_postuninstall_cmds \
13834
extract_expsyms_cmds \
13835
old_archive_from_new_cmds \
13836
old_archive_from_expsyms_cmds \
13838
archive_expsym_cmds \
13840
module_expsym_cmds \
13841
export_symbols_cmds \
13845
postuninstall_cmds \
13847
sys_lib_search_path_spec \
13848
sys_lib_dlsearch_path_spec; do
13849
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13850
*[\\\\\\\`\\"\\\$]*)
13851
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13854
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13859
ac_aux_dir='$ac_aux_dir'
13860
xsi_shell='$xsi_shell'
13861
lt_shell_append='$lt_shell_append'
13863
# See if we are running on zsh, and set the options which allow our
13864
# commands through without removal of \ escapes INIT.
13865
if test -n "\${ZSH_VERSION+set}" ; then
13866
setopt NO_GLOB_SUBST
13872
TIMESTAMP='$TIMESTAMP'
13881
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13883
# Handling of arguments.
13884
for ac_config_target in $ac_config_targets
13886
case $ac_config_target in
13887
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13888
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13889
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13890
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13891
"src/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/Makefile" ;;
13892
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13893
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13894
"tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13896
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13901
# If the user did not use the arguments to specify the items to instantiate,
13902
# then the envvar interface is used. Set only those that are not.
13903
# We use the long form for the default assignment because of an extremely
13904
# bizarre bug on SunOS 4.1.3.
13905
if $ac_need_defaults; then
13906
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13907
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13908
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13911
# Have a temporary directory for convenience. Make it in the build tree
13912
# simply because there is no reason against having it here, and in addition,
13913
# creating and moving files from /tmp can sometimes cause problems.
13914
# Hook for its removal unless debugging.
13915
# Note that there is a small window in which the directory will not be cleaned:
13916
# after its creation but before its name has been assigned to `$tmp'.
13920
trap 'exit_status=$?
13921
: "${ac_tmp:=$tmp}"
13922
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13924
trap 'as_fn_exit 1' 1 2 13 15
13926
# Create a (secure) tmp directory for tmp files.
13929
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13933
tmp=./conf$$-$RANDOM
13934
(umask 077 && mkdir "$tmp")
13935
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13938
# Set up the scripts for CONFIG_FILES section.
13939
# No need to generate them if there are no CONFIG_FILES.
13940
# This happens for instance with `./config.status config.h'.
13941
if test -n "$CONFIG_FILES"; then
13944
ac_cr=`echo X | tr X '\015'`
13945
# On cygwin, bash can eat \r inside `` if the user requested igncr.
13946
# But we know of no other shell where ac_cr would be empty at this
13947
# point, so we can use a bashism as a fallback.
13948
if test "x$ac_cr" = x; then
13949
eval ac_cr=\$\'\\r\'
13951
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13952
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13955
ac_cs_awk_cr=$ac_cr
13958
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13963
echo "cat >conf$$subs.awk <<_ACEOF" &&
13964
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13966
} >conf$$subs.sh ||
13967
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13968
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13970
for ac_last_try in false false false false false :; do
13971
. ./conf$$subs.sh ||
13972
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13974
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13975
if test $ac_delim_n = $ac_delim_num; then
13977
elif $ac_last_try; then
13978
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13980
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13983
rm -f conf$$subs.sh
13985
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13986
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13990
s/^/S["/; s/!.*/"]=/
14000
s/\(.\{148\}\)..*/\1/
14002
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14007
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14014
s/\(.\{148\}\)..*/\1/
14016
s/["\\]/\\&/g; s/^/"/; s/$/"/
14020
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14025
' <conf$$subs.awk | sed '
14030
' >>$CONFIG_STATUS || ac_write_fail=1
14031
rm -f conf$$subs.awk
14032
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14034
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14035
for (key in S) S_is_set[key] = 1
14041
nfields = split(line, field, "@")
14043
len = length(field[1])
14044
for (i = 2; i < nfields; i++) {
14046
keylen = length(key)
14047
if (S_is_set[key]) {
14049
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14050
len += length(value) + length(field[++i])
14061
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14062
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14063
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14066
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14067
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14070
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14071
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14072
# trailing colons and then remove the whole line if VPATH becomes empty
14073
# (actually we leave an empty line to preserve line numbers).
14074
if test "x$srcdir" = x.; then
14075
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14093
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14094
fi # test -n "$CONFIG_FILES"
14096
# Set up the scripts for CONFIG_HEADERS section.
14097
# No need to generate them if there are no CONFIG_HEADERS.
14098
# This happens for instance with `./config.status Makefile'.
14099
if test -n "$CONFIG_HEADERS"; then
14100
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14104
# Transform confdefs.h into an awk script `defines.awk', embedded as
14105
# here-document in config.status, that substitutes the proper values into
14106
# config.h.in to produce config.h.
14108
# Create a delimiter string that does not exist in confdefs.h, to ease
14109
# handling of long lines.
14111
for ac_last_try in false false :; do
14112
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14113
if test -z "$ac_tt"; then
14115
elif $ac_last_try; then
14116
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14118
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14122
# For the awk script, D is an array of macro values keyed by name,
14123
# likewise P contains macro parameters if any. Preserve backslash
14124
# newline sequences.
14126
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14128
s/.\{148\}/&'"$ac_delim"'/g
14131
s/^[ ]*#[ ]*define[ ][ ]*/ /
14138
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14140
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14144
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14145
D["\1"]=" \3\\\\\\n"\\/p
14147
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14152
s/.\{148\}/&'"$ac_delim"'/g
14157
s/["\\]/\\&/g; s/^/"/; s/$/"/p
14160
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14162
' <confdefs.h | sed '
14163
s/'"$ac_delim"'/"\\\
14164
"/g' >>$CONFIG_STATUS || ac_write_fail=1
14166
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14167
for (key in D) D_is_set[key] = 1
14170
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14172
split(line, arg, " ")
14173
if (arg[1] == "#") {
14177
defundef = substr(arg[1], 2)
14180
split(mac1, mac2, "(") #)
14182
prefix = substr(line, 1, index(line, defundef) - 1)
14183
if (D_is_set[macro]) {
14184
# Preserve the white space surrounding the "#".
14185
print prefix "define", macro P[macro] D[macro]
14188
# Replace #undef with comments. This is necessary, for example,
14189
# in the case of _POSIX_SOURCE, which is predefined and required
14190
# on some systems where configure will not decide to define it.
14191
if (defundef == "undef") {
14192
print "/*", prefix defundef, macro, "*/"
14200
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14201
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14202
fi # test -n "$CONFIG_HEADERS"
14205
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14210
:[FHLC]) ac_mode=$ac_tag; continue;;
14212
case $ac_mode$ac_tag in
14214
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14215
:[FH]-) ac_tag=-:-;;
14216
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14233
-) ac_f="$ac_tmp/stdin";;
14234
*) # Look for the file first in the build tree, then in the source tree
14235
# (if the path is not absolute). The absolute path cannot be DOS-style,
14236
# because $ac_f cannot contain `:'.
14240
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14242
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14244
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14245
as_fn_append ac_file_inputs " '$ac_f'"
14248
# Let's still pretend it is `configure' which instantiates (i.e., don't
14249
# use $as_me), people would be surprised to read:
14250
# /* config.h. Generated by config.status. */
14251
configure_input='Generated from '`
14252
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14254
if test x"$ac_file" != x-; then
14255
configure_input="$ac_file. $configure_input"
14256
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14257
$as_echo "$as_me: creating $ac_file" >&6;}
14259
# Neutralize special characters interpreted by sed in replacement strings.
14260
case $configure_input in #(
14261
*\&* | *\|* | *\\* )
14262
ac_sed_conf_input=`$as_echo "$configure_input" |
14263
sed 's/[\\\\&|]/\\\\&/g'`;; #(
14264
*) ac_sed_conf_input=$configure_input;;
14268
*:-:* | *:-) cat >"$ac_tmp/stdin" \
14269
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14274
ac_dir=`$as_dirname -- "$ac_file" ||
14275
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14276
X"$ac_file" : 'X\(//\)[^/]' \| \
14277
X"$ac_file" : 'X\(//\)$' \| \
14278
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14279
$as_echo X"$ac_file" |
14280
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14284
/^X\(\/\/\)[^/].*/{
14297
as_dir="$ac_dir"; as_fn_mkdir_p
14301
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14303
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14304
# A ".." for each directory in $ac_dir_suffix.
14305
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14306
case $ac_top_builddir_sub in
14307
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14308
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14311
ac_abs_top_builddir=$ac_pwd
14312
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14313
# for backward compatibility:
14314
ac_top_builddir=$ac_top_build_prefix
14317
.) # We are building in place.
14319
ac_top_srcdir=$ac_top_builddir_sub
14320
ac_abs_top_srcdir=$ac_pwd ;;
14321
[\\/]* | ?:[\\/]* ) # Absolute name.
14322
ac_srcdir=$srcdir$ac_dir_suffix;
14323
ac_top_srcdir=$srcdir
14324
ac_abs_top_srcdir=$srcdir ;;
14325
*) # Relative name.
14326
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14327
ac_top_srcdir=$ac_top_build_prefix$srcdir
14328
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14330
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14340
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14341
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14343
ac_MKDIR_P=$MKDIR_P
14345
[\\/$]* | ?:[\\/]* ) ;;
14346
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14350
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14351
# If the template does not know about datarootdir, expand it.
14352
# FIXME: This hack should be removed a few years after 2.60.
14353
ac_datarootdir_hack=; ac_datarootdir_seen=
14364
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14365
*datarootdir*) ac_datarootdir_seen=yes;;
14366
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14367
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14368
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14370
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14371
ac_datarootdir_hack='
14372
s&@datadir@&$datadir&g
14373
s&@docdir@&$docdir&g
14374
s&@infodir@&$infodir&g
14375
s&@localedir@&$localedir&g
14376
s&@mandir@&$mandir&g
14377
s&\\\${datarootdir}&$datarootdir&g' ;;
14381
# Neutralize VPATH when `$srcdir' = `.'.
14382
# Shell code in configure.ac might set extrasub.
14383
# FIXME: do we really want to maintain this feature?
14384
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14385
ac_sed_extra="$ac_vpsub
14388
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14390
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14391
s|@configure_input@|$ac_sed_conf_input|;t t
14392
s&@top_builddir@&$ac_top_builddir_sub&;t t
14393
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14394
s&@srcdir@&$ac_srcdir&;t t
14395
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14396
s&@top_srcdir@&$ac_top_srcdir&;t t
14397
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14398
s&@builddir@&$ac_builddir&;t t
14399
s&@abs_builddir@&$ac_abs_builddir&;t t
14400
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14401
s&@INSTALL@&$ac_INSTALL&;t t
14402
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14403
$ac_datarootdir_hack
14405
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14406
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14408
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14409
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14410
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14411
"$ac_tmp/out"`; test -z "$ac_out"; } &&
14412
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14413
which seems to be undefined. Please make sure it is defined" >&5
14414
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14415
which seems to be undefined. Please make sure it is defined" >&2;}
14417
rm -f "$ac_tmp/stdin"
14419
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14420
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14422
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14428
if test x"$ac_file" != x-; then
14430
$as_echo "/* $configure_input */" \
14431
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14432
} >"$ac_tmp/config.h" \
14433
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14434
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14435
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14436
$as_echo "$as_me: $ac_file is unchanged" >&6;}
14439
mv "$ac_tmp/config.h" "$ac_file" \
14440
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14443
$as_echo "/* $configure_input */" \
14444
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14445
|| as_fn_error $? "could not create -" "$LINENO" 5
14447
# Compute "$ac_file"'s index in $config_headers.
14450
for _am_header in $config_headers :; do
14451
case $_am_header in
14452
$_am_arg | $_am_arg:* )
14455
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
14458
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14459
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14460
X"$_am_arg" : 'X\(//\)[^/]' \| \
14461
X"$_am_arg" : 'X\(//\)$' \| \
14462
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14463
$as_echo X"$_am_arg" |
14464
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14468
/^X\(\/\/\)[^/].*/{
14480
s/.*/./; q'`/stamp-h$_am_stamp_count
14483
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14484
$as_echo "$as_me: executing $ac_file commands" >&6;}
14489
case $ac_file$ac_mode in
14490
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14491
# Autoconf 2.62 quotes --file arguments for eval, but not when files
14492
# are listed without --file. Let's play safe and only enable the eval
14493
# if we detect the quoting.
14494
case $CONFIG_FILES in
14495
*\'*) eval set x "$CONFIG_FILES" ;;
14496
*) set x $CONFIG_FILES ;;
14501
# Strip MF so we end up with the name of the file.
14502
mf=`echo "$mf" | sed -e 's/:.*$//'`
14503
# Check whether this is an Automake generated Makefile or not.
14504
# We used to match only the files named 'Makefile.in', but
14505
# some people rename them; so instead we look at the file content.
14506
# Grep'ing the first line is not enough: some people post-process
14507
# each Makefile.in and add a new line on top of each file to say so.
14508
# Grep'ing the whole file is not good either: AIX grep has a line
14509
# limit of 2048, but all sed's we know have understand at least 4000.
14510
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14511
dirpart=`$as_dirname -- "$mf" ||
14512
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14513
X"$mf" : 'X\(//\)[^/]' \| \
14514
X"$mf" : 'X\(//\)$' \| \
14515
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14517
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14521
/^X\(\/\/\)[^/].*/{
14537
# Extract the definition of DEPDIR, am__include, and am__quote
14538
# from the Makefile without running 'make'.
14539
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14540
test -z "$DEPDIR" && continue
14541
am__include=`sed -n 's/^am__include = //p' < "$mf"`
14542
test -z "am__include" && continue
14543
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14544
# Find all dependency output files, they are included files with
14545
# $(DEPDIR) in their names. We invoke sed twice because it is the
14546
# simplest approach to changing $(DEPDIR) to its actual value in the
14548
for file in `sed -n "
14549
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14550
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14551
# Make sure the directory exists.
14552
test -f "$dirpart/$file" && continue
14553
fdir=`$as_dirname -- "$file" ||
14554
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14555
X"$file" : 'X\(//\)[^/]' \| \
14556
X"$file" : 'X\(//\)$' \| \
14557
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14558
$as_echo X"$file" |
14559
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14563
/^X\(\/\/\)[^/].*/{
14576
as_dir=$dirpart/$fdir; as_fn_mkdir_p
14577
# echo "creating $dirpart/$file"
14578
echo '# dummy' > "$dirpart/$file"
14585
# See if we are running on zsh, and set the options which allow our
14586
# commands through without removal of \ escapes.
14587
if test -n "${ZSH_VERSION+set}" ; then
14588
setopt NO_GLOB_SUBST
14591
cfgfile="${ofile}T"
14592
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14595
cat <<_LT_EOF >> "$cfgfile"
14598
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14599
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14600
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14601
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14603
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14604
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14606
# Written by Gordon Matzigkeit, 1996
14608
# This file is part of GNU Libtool.
14610
# GNU Libtool is free software; you can redistribute it and/or
14611
# modify it under the terms of the GNU General Public License as
14612
# published by the Free Software Foundation; either version 2 of
14613
# the License, or (at your option) any later version.
14615
# As a special exception to the GNU General Public License,
14616
# if you distribute this file as part of a program or library that
14617
# is built using GNU Libtool, you may include this file under the
14618
# same distribution terms that you use for the rest of that program.
14620
# GNU Libtool is distributed in the hope that it will be useful,
14621
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14622
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14623
# GNU General Public License for more details.
14625
# You should have received a copy of the GNU General Public License
14626
# along with GNU Libtool; see the file COPYING. If not, a copy
14627
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14628
# obtained by writing to the Free Software Foundation, Inc.,
14629
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14632
# The names of the tagged configurations supported by this script.
14635
# ### BEGIN LIBTOOL CONFIG
14637
# Whether or not to build static libraries.
14638
build_old_libs=$enable_static
14640
# Which release of libtool.m4 was used?
14641
macro_version=$macro_version
14642
macro_revision=$macro_revision
14644
# Whether or not to build shared libraries.
14645
build_libtool_libs=$enable_shared
14647
# What type of objects to build.
14650
# Whether or not to optimize for fast installation.
14651
fast_install=$enable_fast_install
14653
# Shell to use when invoking shell scripts.
14656
# An echo program that protects backslashes.
14659
# The PATH separator for the build system.
14660
PATH_SEPARATOR=$lt_PATH_SEPARATOR
14663
host_alias=$host_alias
14667
# The build system.
14668
build_alias=$build_alias
14672
# A sed program that does not truncate output.
14675
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14676
Xsed="\$SED -e 1s/^X//"
14678
# A grep program that handles long lines.
14684
# A literal string matcher.
14687
# A BSD- or MS-compatible name lister.
14690
# Whether we need soft or hard links.
14693
# What is the maximum length of a command?
14694
max_cmd_len=$max_cmd_len
14696
# Object file suffix (normally "o").
14699
# Executable file suffix (normally "").
14702
# whether the shell understands "unset".
14705
# turn spaces into newlines.
14708
# turn newlines into spaces.
14711
# convert \$build file names to \$host format.
14712
to_host_file_cmd=$lt_cv_to_host_file_cmd
14714
# convert \$build files to toolchain format.
14715
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14717
# An object symbol dumper.
14718
OBJDUMP=$lt_OBJDUMP
14720
# Method to check whether dependent libraries are shared objects.
14721
deplibs_check_method=$lt_deplibs_check_method
14723
# Command to use when deplibs_check_method = "file_magic".
14724
file_magic_cmd=$lt_file_magic_cmd
14726
# How to find potential files when deplibs_check_method = "file_magic".
14727
file_magic_glob=$lt_file_magic_glob
14729
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14730
want_nocaseglob=$lt_want_nocaseglob
14732
# DLL creation program.
14733
DLLTOOL=$lt_DLLTOOL
14735
# Command to associate shared and link libraries.
14736
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14741
# Flags to create an archive.
14742
AR_FLAGS=$lt_AR_FLAGS
14744
# How to feed a file listing to the archiver.
14745
archiver_list_spec=$lt_archiver_list_spec
14747
# A symbol stripping program.
14750
# Commands used to install an old-style archive.
14752
old_postinstall_cmds=$lt_old_postinstall_cmds
14753
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14755
# Whether to use a lock for old archive extraction.
14756
lock_old_archive_extraction=$lock_old_archive_extraction
14761
# LTCC compiler flags.
14762
LTCFLAGS=$lt_CFLAGS
14764
# Take the output of nm and produce a listing of raw symbols and C names.
14765
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14767
# Transform the output of nm in a proper C declaration.
14768
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14770
# Transform the output of nm in a C name address pair.
14771
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14773
# Transform the output of nm in a C name address pair when lib prefix is needed.
14774
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14776
# Specify filename containing input files for \$NM.
14777
nm_file_list_spec=$lt_nm_file_list_spec
14779
# The root where to search for dependent libraries,and in which our libraries should be installed.
14780
lt_sysroot=$lt_sysroot
14782
# The name of the directory that contains temporary libtool files.
14785
# Used to examine libraries when file_magic_cmd begins with "file".
14786
MAGIC_CMD=$MAGIC_CMD
14788
# Must we lock files when doing compilation?
14789
need_locks=$lt_need_locks
14792
MANIFEST_TOOL=$lt_MANIFEST_TOOL
14794
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14795
DSYMUTIL=$lt_DSYMUTIL
14797
# Tool to change global to local symbols on Mac OS X.
14800
# Tool to manipulate fat objects and archives on Mac OS X.
14803
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14806
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14807
OTOOL64=$lt_OTOOL64
14809
# Old archive suffix (normally "a").
14812
# Shared library suffix (normally ".so").
14813
shrext_cmds=$lt_shrext_cmds
14815
# The commands to extract the exported symbol list from a shared archive.
14816
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14818
# Variables whose values should be saved in libtool wrapper scripts and
14819
# restored at link time.
14820
variables_saved_for_relink=$lt_variables_saved_for_relink
14822
# Do we need the "lib" prefix for modules?
14823
need_lib_prefix=$need_lib_prefix
14825
# Do we need a version for libraries?
14826
need_version=$need_version
14828
# Library versioning type.
14829
version_type=$version_type
14831
# Shared library runtime path variable.
14832
runpath_var=$runpath_var
14834
# Shared library path variable.
14835
shlibpath_var=$shlibpath_var
14837
# Is shlibpath searched before the hard-coded library search path?
14838
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14840
# Format of library name prefix.
14841
libname_spec=$lt_libname_spec
14843
# List of archive names. First name is the real one, the rest are links.
14844
# The last name is the one that the linker finds with -lNAME
14845
library_names_spec=$lt_library_names_spec
14847
# The coded name of the library, if different from the real name.
14848
soname_spec=$lt_soname_spec
14850
# Permission mode override for installation of shared libraries.
14851
install_override_mode=$lt_install_override_mode
14853
# Command to use after installation of a shared archive.
14854
postinstall_cmds=$lt_postinstall_cmds
14856
# Command to use after uninstallation of a shared archive.
14857
postuninstall_cmds=$lt_postuninstall_cmds
14859
# Commands used to finish a libtool library installation in a directory.
14860
finish_cmds=$lt_finish_cmds
14862
# As "finish_cmds", except a single script fragment to be evaled but
14864
finish_eval=$lt_finish_eval
14866
# Whether we should hardcode library paths into libraries.
14867
hardcode_into_libs=$hardcode_into_libs
14869
# Compile-time system search path for libraries.
14870
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14872
# Run-time system search path for libraries.
14873
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14875
# Whether dlopen is supported.
14876
dlopen_support=$enable_dlopen
14878
# Whether dlopen of programs is supported.
14879
dlopen_self=$enable_dlopen_self
14881
# Whether dlopen of statically linked programs is supported.
14882
dlopen_self_static=$enable_dlopen_self_static
14884
# Commands to strip libraries.
14885
old_striplib=$lt_old_striplib
14886
striplib=$lt_striplib
14889
# The linker used to build libraries.
14892
# How to create reloadable object files.
14893
reload_flag=$lt_reload_flag
14894
reload_cmds=$lt_reload_cmds
14896
# Commands used to build an old-style archive.
14897
old_archive_cmds=$lt_old_archive_cmds
14899
# A language specific compiler.
14902
# Is the compiler the GNU compiler?
14905
# Compiler flag to turn off builtin functions.
14906
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14908
# Additional compiler flags for building library objects.
14909
pic_flag=$lt_lt_prog_compiler_pic
14911
# How to pass a linker flag through the compiler.
14912
wl=$lt_lt_prog_compiler_wl
14914
# Compiler flag to prevent dynamic linking.
14915
link_static_flag=$lt_lt_prog_compiler_static
14917
# Does compiler simultaneously support -c and -o options?
14918
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14920
# Whether or not to add -lc for building shared libraries.
14921
build_libtool_need_lc=$archive_cmds_need_lc
14923
# Whether or not to disallow shared libs when runtime libs are static.
14924
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14926
# Compiler flag to allow reflexive dlopens.
14927
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14929
# Compiler flag to generate shared objects directly from archives.
14930
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14932
# Whether the compiler copes with passing no objects directly.
14933
compiler_needs_object=$lt_compiler_needs_object
14935
# Create an old-style archive from a shared archive.
14936
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14938
# Create a temporary old-style archive to link instead of a shared archive.
14939
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14941
# Commands used to build a shared archive.
14942
archive_cmds=$lt_archive_cmds
14943
archive_expsym_cmds=$lt_archive_expsym_cmds
14945
# Commands used to build a loadable module if different from building
14946
# a shared archive.
14947
module_cmds=$lt_module_cmds
14948
module_expsym_cmds=$lt_module_expsym_cmds
14950
# Whether we are building with GNU ld or not.
14951
with_gnu_ld=$lt_with_gnu_ld
14953
# Flag that allows shared libraries with undefined symbols to be built.
14954
allow_undefined_flag=$lt_allow_undefined_flag
14956
# Flag that enforces no undefined symbols.
14957
no_undefined_flag=$lt_no_undefined_flag
14959
# Flag to hardcode \$libdir into a binary during linking.
14960
# This must work even if \$libdir does not exist
14961
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14963
# Whether we need a single "-rpath" flag with a separated argument.
14964
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14966
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14967
# DIR into the resulting binary.
14968
hardcode_direct=$hardcode_direct
14970
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14971
# DIR into the resulting binary and the resulting library dependency is
14972
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14973
# library is relocated.
14974
hardcode_direct_absolute=$hardcode_direct_absolute
14976
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14977
# into the resulting binary.
14978
hardcode_minus_L=$hardcode_minus_L
14980
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14981
# into the resulting binary.
14982
hardcode_shlibpath_var=$hardcode_shlibpath_var
14984
# Set to "yes" if building a shared library automatically hardcodes DIR
14985
# into the library and all subsequent libraries and executables linked
14987
hardcode_automatic=$hardcode_automatic
14989
# Set to yes if linker adds runtime paths of dependent libraries
14990
# to runtime path list.
14991
inherit_rpath=$inherit_rpath
14993
# Whether libtool must link a program against all its dependency libraries.
14994
link_all_deplibs=$link_all_deplibs
14996
# Set to "yes" if exported symbols are required.
14997
always_export_symbols=$always_export_symbols
14999
# The commands to list exported symbols.
15000
export_symbols_cmds=$lt_export_symbols_cmds
15002
# Symbols that should not be listed in the preloaded symbols.
15003
exclude_expsyms=$lt_exclude_expsyms
15005
# Symbols that must always be exported.
15006
include_expsyms=$lt_include_expsyms
15008
# Commands necessary for linking programs (against libraries) with templates.
15009
prelink_cmds=$lt_prelink_cmds
15011
# Commands necessary for finishing linking programs.
15012
postlink_cmds=$lt_postlink_cmds
15014
# Specify filename containing input files.
15015
file_list_spec=$lt_file_list_spec
15017
# How to hardcode a shared library path into an executable.
15018
hardcode_action=$hardcode_action
15020
# ### END LIBTOOL CONFIG
15026
cat <<\_LT_EOF >> "$cfgfile"
15027
# AIX sometimes has problems with the GCC collect2 program. For some
15028
# reason, if we set the COLLECT_NAMES environment variable, the problems
15029
# vanish in a puff of smoke.
15030
if test "X${COLLECT_NAMES+set}" != Xset; then
15032
export COLLECT_NAMES
15039
ltmain="$ac_aux_dir/ltmain.sh"
15042
# We use sed instead of cat because bash on DJGPP gets confused if
15043
# if finds mixed CR/LF and LF-only lines. Since sed operates in
15044
# text mode, it properly converts lines to CR/LF. This bash problem
15045
# is reportedly fixed, but why not run on old versions too?
15046
sed '$q' "$ltmain" >> "$cfgfile" \
15047
|| (rm -f "$cfgfile"; exit 1)
15049
if test x"$xsi_shell" = xyes; then
15050
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15054
\ */*) func_dirname_result="${1%/*}${2}" ;;\
15055
\ * ) func_dirname_result="${3}" ;;\
15057
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15058
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15059
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15060
test 0 -eq $? || _lt_function_replace_fail=:
15063
sed -e '/^func_basename ()$/,/^} # func_basename /c\
15066
\ func_basename_result="${1##*/}"\
15067
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15068
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15069
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15070
test 0 -eq $? || _lt_function_replace_fail=:
15073
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15074
func_dirname_and_basename ()\
15077
\ */*) func_dirname_result="${1%/*}${2}" ;;\
15078
\ * ) func_dirname_result="${3}" ;;\
15080
\ func_basename_result="${1##*/}"\
15081
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15082
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15083
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15084
test 0 -eq $? || _lt_function_replace_fail=:
15087
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15090
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15091
\ # positional parameters, so assign one to ordinary parameter first.\
15092
\ func_stripname_result=${3}\
15093
\ func_stripname_result=${func_stripname_result#"${1}"}\
15094
\ func_stripname_result=${func_stripname_result%"${2}"}\
15095
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15096
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15097
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15098
test 0 -eq $? || _lt_function_replace_fail=:
15101
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15102
func_split_long_opt ()\
15104
\ func_split_long_opt_name=${1%%=*}\
15105
\ func_split_long_opt_arg=${1#*=}\
15106
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15107
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15108
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15109
test 0 -eq $? || _lt_function_replace_fail=:
15112
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15113
func_split_short_opt ()\
15115
\ func_split_short_opt_arg=${1#??}\
15116
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15117
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15118
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15119
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15120
test 0 -eq $? || _lt_function_replace_fail=:
15123
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15127
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15128
\ *) func_lo2o_result=${1} ;;\
15130
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15131
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15132
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15133
test 0 -eq $? || _lt_function_replace_fail=:
15136
sed -e '/^func_xform ()$/,/^} # func_xform /c\
15139
func_xform_result=${1%.*}.lo\
15140
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15141
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15142
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15143
test 0 -eq $? || _lt_function_replace_fail=:
15146
sed -e '/^func_arith ()$/,/^} # func_arith /c\
15149
func_arith_result=$(( $* ))\
15150
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15151
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15152
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15153
test 0 -eq $? || _lt_function_replace_fail=:
15156
sed -e '/^func_len ()$/,/^} # func_len /c\
15159
func_len_result=${#1}\
15160
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15161
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15162
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15163
test 0 -eq $? || _lt_function_replace_fail=:
15167
if test x"$lt_shell_append" = xyes; then
15168
sed -e '/^func_append ()$/,/^} # func_append /c\
15171
eval "${1}+=\\${2}"\
15172
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15173
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15174
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15175
test 0 -eq $? || _lt_function_replace_fail=:
15178
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15179
func_append_quoted ()\
15181
\ func_quote_for_eval "${2}"\
15182
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15183
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15184
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15185
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15186
test 0 -eq $? || _lt_function_replace_fail=:
15189
# Save a `func_append' function call where possible by direct use of '+='
15190
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15191
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15192
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15193
test 0 -eq $? || _lt_function_replace_fail=:
15195
# Save a `func_append' function call even when '+=' is not available
15196
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15197
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15198
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15199
test 0 -eq $? || _lt_function_replace_fail=:
15202
if test x"$_lt_function_replace_fail" = x":"; then
15203
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15204
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15208
mv -f "$cfgfile" "$ofile" ||
15209
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15220
ac_clean_files=$ac_clean_files_save
15222
test $ac_write_fail = 0 ||
15223
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15226
# configure is writing to config.log, and then calls config.status.
15227
# config.status does its own redirection, appending to config.log.
15228
# Unfortunately, on DOS this fails, as config.log is still kept open
15229
# by configure, so config.status won't be able to write to it; its
15230
# output is simply discarded. So we exec the FD to /dev/null,
15231
# effectively closing config.log, so it can be properly (re)opened and
15232
# appended to by config.status. When coming back to configure, we
15233
# need to make the FD available again.
15234
if test "$no_create" != yes; then
15236
ac_config_status_args=
15237
test "$silent" = yes &&
15238
ac_config_status_args="$ac_config_status_args --quiet"
15240
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15242
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
15243
# would make configure fail if this is the last instruction.
15244
$ac_cs_success || as_fn_exit 1
15246
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15247
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15248
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}