2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64 for libdrm 2.4.14.
5
# Report bugs to <dri-devel@lists.sourceforge.net>.
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
27
case `(set -o) 2>/dev/null` in #(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
93
*[\\/]* ) as_myself=$0 ;;
94
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98
test -z "$as_dir" && as_dir=.
99
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
106
# in which case we are not to be found in the path.
107
if test "x$as_myself" = x; then
110
if test ! -f "$as_myself"; then
111
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115
# Unset variables that we do not need and which cause bugs (e.g. in
116
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117
# suppresses any "Segmentation fault" message there. '((' could
118
# trigger a bug in pdksh 5.2.14.
119
for as_var in BASH_ENV ENV MAIL MAILPATH
120
do eval test x\${$as_var+set} = xset \
121
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
if test "x$CONFIG_SHELL" = x; then
137
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141
# is contrary to our usage. Disable this feature.
142
alias -g '\${1+\"\$@\"}'='\"\$@\"'
145
case \`(set -o) 2>/dev/null\` in #(
153
as_required="as_fn_return () { (exit \$1); }
154
as_fn_success () { as_fn_return 0; }
155
as_fn_failure () { as_fn_return 1; }
156
as_fn_ret_success () { return 0; }
157
as_fn_ret_failure () { return 1; }
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
exitcode=1; echo positional parameters were not saved.
169
test x\$exitcode = x0 || exit 1"
170
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
test \$(( 1 + 1 )) = 2 || exit 1"
175
if (eval "$as_required") 2>/dev/null; then :
180
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188
test -z "$as_dir" && as_dir=.
192
for as_base in sh bash ksh sh5; do
193
# Try only shells that exist, to save several forks.
194
as_shell=$as_dir/$as_base
195
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
CONFIG_SHELL=$as_shell as_have_required=yes
198
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208
CONFIG_SHELL=$SHELL as_have_required=yes
213
if test "x$CONFIG_SHELL" != x; then :
214
# We cannot yet assume a decent shell, so we have to provide a
215
# neutralization value for shells without unset; and this also
216
# works around shells that cannot unset nonexistent variables.
219
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224
if test x$as_have_required = xno; then :
225
$as_echo "$0: This script requires a shell more modern than all"
226
$as_echo "$0: the shells that I found on your system."
227
if test x${ZSH_VERSION+set} = xset ; then
228
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
231
$as_echo "$0: Please tell bug-autoconf@gnu.org and
232
$0: dri-devel@lists.sourceforge.net about your system,
233
$0: including any error possibly output before this
234
$0: message. Then install a modern shell, or manually run
235
$0: the script under such a shell if you do have one."
241
SHELL=${CONFIG_SHELL-/bin/sh}
243
# Unset more variables known to interfere with behavior of common tools.
244
CLICOLOR_FORCE= GREP_OPTIONS=
245
unset CLICOLOR_FORCE GREP_OPTIONS
247
## --------------------- ##
248
## M4sh Shell Functions. ##
249
## --------------------- ##
252
# Portably unset VAR.
255
{ eval $1=; unset $1;}
259
# as_fn_set_status STATUS
260
# -----------------------
261
# Set $? to STATUS, without forking.
269
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279
# Create "$as_dir" as a directory, including parents if necessary.
284
-*) as_dir=./$as_dir;;
286
test -d "$as_dir" || eval $as_mkdir_p || {
290
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293
as_dirs="'$as_qdir' $as_dirs"
294
as_dir=`$as_dirname -- "$as_dir" ||
295
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296
X"$as_dir" : 'X\(//\)[^/]' \| \
297
X"$as_dir" : 'X\(//\)$' \| \
298
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299
$as_echo X"$as_dir" |
300
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317
test -d "$as_dir" && break
319
test -z "$as_dirs" || eval "mkdir $as_dirs"
320
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
# as_fn_append VAR VALUE
325
# ----------------------
326
# Append the text in VALUE to the end of the definition contained in VAR. Take
327
# advantage of any shell optimizations that allow amortized linear growth over
328
# repeated appends, instead of the typical quadratic growth present in naive
330
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331
eval 'as_fn_append ()
344
# Perform arithmetic evaluation on the ARGs, and store the result in the
345
# global $as_val. Take advantage of shells that can avoid forks. The arguments
346
# must be portable across $(()) and expr.
347
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355
as_val=`expr "$@" || test $? -eq 1`
360
# as_fn_error ERROR [LINENO LOG_FD]
361
# ---------------------------------
362
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364
# script with status $?, using 1 if that was 0.
367
as_status=$?; test $as_status -eq 0 && as_status=1
369
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372
$as_echo "$as_me: error: $1" >&2
373
as_fn_exit $as_status
376
if expr a : '\(a\)' >/dev/null 2>&1 &&
377
test "X`expr 00001 : '.*\(...\)'`" = X001; then
383
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395
as_me=`$as_basename -- "$0" ||
396
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397
X"$0" : 'X\(//\)$' \| \
398
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400
sed '/^.*\/\([^/][^/]*\)\/*$/{
414
# Avoid depending upon Character Ranges.
415
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418
as_cr_digits='0123456789'
419
as_cr_alnum=$as_cr_Letters$as_cr_digits
422
as_lineno_1=$LINENO as_lineno_1a=$LINENO
423
as_lineno_2=$LINENO as_lineno_2a=$LINENO
424
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442
chmod +x "$as_me.lineno" ||
443
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445
# Don't try to exec as it changes $[0], causing all sort of problems
446
# (the dirname of $[0] is not the place where we might find the
447
# original and so on. Autoconf is especially sensitive to this).
449
# Exit status is that of the last command.
453
ECHO_C= ECHO_N= ECHO_T=
454
case `echo -n x` in #(((((
456
case `echo 'xy\c'` in
457
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
459
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466
rm -f conf$$ conf$$.exe conf$$.file
467
if test -d conf$$.dir; then
468
rm -f conf$$.dir/conf$$.file
471
mkdir conf$$.dir 2>/dev/null
473
if (echo >conf$$.file) 2>/dev/null; then
474
if ln -s conf$$.file conf$$ 2>/dev/null; then
476
# ... but there are two gotchas:
477
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479
# In both cases, we have to default to `cp -p'.
480
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482
elif ln conf$$.file conf$$ 2>/dev/null; then
490
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491
rmdir conf$$.dir 2>/dev/null
493
if mkdir -p . 2>/dev/null; then
494
as_mkdir_p='mkdir -p "$as_dir"'
496
test -d ./-p && rmdir ./-p
500
if test -x / >/dev/null 2>&1; then
503
if ls -dL / >/dev/null 2>&1; then
510
if test -d "$1"; then
516
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517
???[sx]*):;;*)false;;esac;fi
521
as_executable_p=$as_test_x
523
# Sed expression to map a string onto a valid CPP name.
524
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526
# Sed expression to map a string onto a valid variable name.
527
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
# Check that we are running under the correct shell.
532
SHELL=${CONFIG_SHELL-/bin/sh}
536
# Remove one level of quotation (which was required for Make).
537
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
542
if test "X$1" = X--no-reexec; then
543
# Discard the --no-reexec flag, and continue.
545
elif test "X$1" = X--fallback-echo; then
546
# Avoid inline document here, it may be left over
548
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549
# Yippee, $ECHO works!
552
# Restart under the correct shell.
553
exec $SHELL "$0" --no-reexec ${1+"$@"}
556
if test "X$1" = X--fallback-echo; then
557
# used as fallback echo
565
# The HP-UX ksh and POSIX shell print the target directory to stdout
567
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569
if test -z "$lt_ECHO"; then
570
if test "X${echo_test_string+set}" != Xset; then
571
# find a string as large as possible, as long as the shell can cope with it
572
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
582
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584
test "X$echo_testing_string" = "X$echo_test_string"; then
587
# The Solaris, AIX, and Digital Unix default echo programs unquote
588
# backslashes. This makes it impossible to quote backslashes using
589
# echo "$something" | sed 's/\\/\\\\/g'
591
# So, first we look for a working echo in the user's PATH.
593
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594
for dir in $PATH /usr/ucb; do
596
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599
test "X$echo_testing_string" = "X$echo_test_string"; then
606
if test "X$ECHO" = Xecho; then
607
# We didn't find a better echo, so look for alternatives.
608
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610
test "X$echo_testing_string" = "X$echo_test_string"; then
611
# This shell has a builtin print -r that does the trick.
613
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614
test "X$CONFIG_SHELL" != X/bin/ksh; then
615
# If we have ksh, try running configure again with it.
616
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617
export ORIGINAL_CONFIG_SHELL
618
CONFIG_SHELL=/bin/ksh
620
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626
test "X$echo_testing_string" = "X$echo_test_string"; then
629
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630
test "X$echo_testing_string" = 'X\t' &&
631
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632
test "X$echo_testing_string" = "X$echo_test_string"; then
633
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635
SHELL="$CONFIG_SHELL"
637
ECHO="$CONFIG_SHELL $0 --fallback-echo"
638
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639
test "X$echo_testing_string" = 'X\t' &&
640
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641
test "X$echo_testing_string" = "X$echo_test_string"; then
642
ECHO="$CONFIG_SHELL $0 --fallback-echo"
644
# maybe with a smaller string...
647
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
655
if test "$prev" != 'sed 50q "$0"'; then
656
echo_test_string=`eval $prev`
657
export echo_test_string
658
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660
# Oops. We lost completely, so just stick with echo.
669
# Copy echo and quote the copy suitably for passing to libtool from
670
# the Makefile, instead of quoting the original, which is used later.
672
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679
exec 7<&0 </dev/null 6>&1
682
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683
# so uname gets run too.
684
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
ac_default_prefix=/usr/local
691
ac_config_libobj_dir=.
698
# Identity of this package.
699
PACKAGE_NAME='libdrm'
700
PACKAGE_TARNAME='libdrm'
701
PACKAGE_VERSION='2.4.14'
702
PACKAGE_STRING='libdrm 2.4.14'
703
PACKAGE_BUGREPORT='dri-devel@lists.sourceforge.net'
706
# Factoring default headers for most tests.
707
ac_includes_default="\
709
#ifdef HAVE_SYS_TYPES_H
710
# include <sys/types.h>
712
#ifdef HAVE_SYS_STAT_H
713
# include <sys/stat.h>
719
# ifdef HAVE_STDLIB_H
724
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729
#ifdef HAVE_STRINGS_H
730
# include <strings.h>
732
#ifdef HAVE_INTTYPES_H
733
# include <inttypes.h>
742
ac_unique_file="Makefile.am"
743
ac_subst_vars='LTLIBOBJS
805
INSTALL_STRIP_PROGRAM
857
program_transform_name
870
enable_option_checking
871
enable_dependency_tracking
880
enable_nouveau_experimental_api
881
enable_radeon_experimental_api
883
ac_precious_vars='build_alias
901
# Initialize some variables set by options.
903
ac_init_version=false
904
ac_unrecognized_opts=
906
# The variables have the same names as the options, with
907
# dashes changed to underlines.
915
program_transform_name=s,x,x,
923
# Installation directory options.
924
# These are left unexpanded so users can "make install exec_prefix=/foo"
925
# and all the variables that are supposed to be based on exec_prefix
926
# by default will actually change.
927
# Use braces instead of parens because sh, perl, etc. also accept them.
928
# (The list follows the same order as the GNU Coding Standards.)
929
bindir='${exec_prefix}/bin'
930
sbindir='${exec_prefix}/sbin'
931
libexecdir='${exec_prefix}/libexec'
932
datarootdir='${prefix}/share'
933
datadir='${datarootdir}'
934
sysconfdir='${prefix}/etc'
935
sharedstatedir='${prefix}/com'
936
localstatedir='${prefix}/var'
937
includedir='${prefix}/include'
938
oldincludedir='/usr/include'
939
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
940
infodir='${datarootdir}/info'
945
libdir='${exec_prefix}/lib'
946
localedir='${datarootdir}/locale'
947
mandir='${datarootdir}/man'
953
# If the previous option needs an argument, assign it.
954
if test -n "$ac_prev"; then
955
eval $ac_prev=\$ac_option
961
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965
# Accept the important Cygnus configure options, so we can diagnose typos.
967
case $ac_dashdash$ac_option in
971
-bindir | --bindir | --bindi | --bind | --bin | --bi)
973
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976
-build | --build | --buil | --bui | --bu)
977
ac_prev=build_alias ;;
978
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
979
build_alias=$ac_optarg ;;
981
-cache-file | --cache-file | --cache-fil | --cache-fi \
982
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983
ac_prev=cache_file ;;
984
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986
cache_file=$ac_optarg ;;
989
cache_file=config.cache ;;
991
-datadir | --datadir | --datadi | --datad)
993
-datadir=* | --datadir=* | --datadi=* | --datad=*)
994
datadir=$ac_optarg ;;
996
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997
| --dataroo | --dataro | --datar)
998
ac_prev=datarootdir ;;
999
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001
datarootdir=$ac_optarg ;;
1003
-disable-* | --disable-*)
1004
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005
# Reject names that are not valid shell variable names.
1006
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007
as_fn_error "invalid feature name: $ac_useropt"
1008
ac_useropt_orig=$ac_useropt
1009
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010
case $ac_user_opts in
1012
"enable_$ac_useropt"
1014
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015
ac_unrecognized_sep=', ';;
1017
eval enable_$ac_useropt=no ;;
1019
-docdir | --docdir | --docdi | --doc | --do)
1021
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022
docdir=$ac_optarg ;;
1024
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027
dvidir=$ac_optarg ;;
1029
-enable-* | --enable-*)
1030
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031
# Reject names that are not valid shell variable names.
1032
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033
as_fn_error "invalid feature name: $ac_useropt"
1034
ac_useropt_orig=$ac_useropt
1035
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036
case $ac_user_opts in
1038
"enable_$ac_useropt"
1040
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041
ac_unrecognized_sep=', ';;
1043
eval enable_$ac_useropt=\$ac_optarg ;;
1045
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047
| --exec | --exe | --ex)
1048
ac_prev=exec_prefix ;;
1049
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051
| --exec=* | --exe=* | --ex=*)
1052
exec_prefix=$ac_optarg ;;
1054
-gas | --gas | --ga | --g)
1055
# Obsolete; use --with-gas.
1058
-help | --help | --hel | --he | -h)
1059
ac_init_help=long ;;
1060
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061
ac_init_help=recursive ;;
1062
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063
ac_init_help=short ;;
1065
-host | --host | --hos | --ho)
1066
ac_prev=host_alias ;;
1067
-host=* | --host=* | --hos=* | --ho=*)
1068
host_alias=$ac_optarg ;;
1070
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074
htmldir=$ac_optarg ;;
1076
-includedir | --includedir | --includedi | --included | --include \
1077
| --includ | --inclu | --incl | --inc)
1078
ac_prev=includedir ;;
1079
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080
| --includ=* | --inclu=* | --incl=* | --inc=*)
1081
includedir=$ac_optarg ;;
1083
-infodir | --infodir | --infodi | --infod | --info | --inf)
1085
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086
infodir=$ac_optarg ;;
1088
-libdir | --libdir | --libdi | --libd)
1090
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1091
libdir=$ac_optarg ;;
1093
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094
| --libexe | --libex | --libe)
1095
ac_prev=libexecdir ;;
1096
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097
| --libexe=* | --libex=* | --libe=*)
1098
libexecdir=$ac_optarg ;;
1100
-localedir | --localedir | --localedi | --localed | --locale)
1101
ac_prev=localedir ;;
1102
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103
localedir=$ac_optarg ;;
1105
-localstatedir | --localstatedir | --localstatedi | --localstated \
1106
| --localstate | --localstat | --localsta | --localst | --locals)
1107
ac_prev=localstatedir ;;
1108
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110
localstatedir=$ac_optarg ;;
1112
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115
mandir=$ac_optarg ;;
1117
-nfp | --nfp | --nf)
1118
# Obsolete; use --without-fp.
1121
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122
| --no-cr | --no-c | -n)
1125
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131
| --oldin | --oldi | --old | --ol | --o)
1132
ac_prev=oldincludedir ;;
1133
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136
oldincludedir=$ac_optarg ;;
1138
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141
prefix=$ac_optarg ;;
1143
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1144
| --program-pre | --program-pr | --program-p)
1145
ac_prev=program_prefix ;;
1146
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1147
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148
program_prefix=$ac_optarg ;;
1150
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1151
| --program-suf | --program-su | --program-s)
1152
ac_prev=program_suffix ;;
1153
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1154
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155
program_suffix=$ac_optarg ;;
1157
-program-transform-name | --program-transform-name \
1158
| --program-transform-nam | --program-transform-na \
1159
| --program-transform-n | --program-transform- \
1160
| --program-transform | --program-transfor \
1161
| --program-transfo | --program-transf \
1162
| --program-trans | --program-tran \
1163
| --progr-tra | --program-tr | --program-t)
1164
ac_prev=program_transform_name ;;
1165
-program-transform-name=* | --program-transform-name=* \
1166
| --program-transform-nam=* | --program-transform-na=* \
1167
| --program-transform-n=* | --program-transform-=* \
1168
| --program-transform=* | --program-transfor=* \
1169
| --program-transfo=* | --program-transf=* \
1170
| --program-trans=* | --program-tran=* \
1171
| --progr-tra=* | --program-tr=* | --program-t=*)
1172
program_transform_name=$ac_optarg ;;
1174
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177
pdfdir=$ac_optarg ;;
1179
-psdir | --psdir | --psdi | --psd | --ps)
1181
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185
| -silent | --silent | --silen | --sile | --sil)
1188
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192
sbindir=$ac_optarg ;;
1194
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1195
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196
| --sharedst | --shareds | --shared | --share | --shar \
1198
ac_prev=sharedstatedir ;;
1199
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203
sharedstatedir=$ac_optarg ;;
1205
-site | --site | --sit)
1207
-site=* | --site=* | --sit=*)
1210
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213
srcdir=$ac_optarg ;;
1215
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216
| --syscon | --sysco | --sysc | --sys | --sy)
1217
ac_prev=sysconfdir ;;
1218
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220
sysconfdir=$ac_optarg ;;
1222
-target | --target | --targe | --targ | --tar | --ta | --t)
1223
ac_prev=target_alias ;;
1224
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225
target_alias=$ac_optarg ;;
1227
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1230
-version | --version | --versio | --versi | --vers | -V)
1231
ac_init_version=: ;;
1234
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235
# Reject names that are not valid shell variable names.
1236
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237
as_fn_error "invalid package name: $ac_useropt"
1238
ac_useropt_orig=$ac_useropt
1239
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240
case $ac_user_opts in
1244
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1245
ac_unrecognized_sep=', ';;
1247
eval with_$ac_useropt=\$ac_optarg ;;
1249
-without-* | --without-*)
1250
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251
# Reject names that are not valid shell variable names.
1252
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253
as_fn_error "invalid package name: $ac_useropt"
1254
ac_useropt_orig=$ac_useropt
1255
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256
case $ac_user_opts in
1260
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1261
ac_unrecognized_sep=', ';;
1263
eval with_$ac_useropt=no ;;
1266
# Obsolete; use --with-x.
1269
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1270
| --x-incl | --x-inc | --x-in | --x-i)
1271
ac_prev=x_includes ;;
1272
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1273
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1274
x_includes=$ac_optarg ;;
1276
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1277
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1278
ac_prev=x_libraries ;;
1279
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1280
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1281
x_libraries=$ac_optarg ;;
1283
-*) as_fn_error "unrecognized option: \`$ac_option'
1284
Try \`$0 --help' for more information."
1288
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289
# Reject names that are not valid shell variable names.
1290
case $ac_envvar in #(
1291
'' | [0-9]* | *[!_$as_cr_alnum]* )
1292
as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1294
eval $ac_envvar=\$ac_optarg
1295
export $ac_envvar ;;
1298
# FIXME: should be removed in autoconf 3.0.
1299
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1300
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1302
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1308
if test -n "$ac_prev"; then
1309
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1310
as_fn_error "missing argument to $ac_option"
1313
if test -n "$ac_unrecognized_opts"; then
1314
case $enable_option_checking in
1316
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1317
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1321
# Check all directory arguments for consistency.
1322
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323
datadir sysconfdir sharedstatedir localstatedir includedir \
1324
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325
libdir localedir mandir
1327
eval ac_val=\$$ac_var
1328
# Remove trailing slashes.
1331
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1332
eval $ac_var=\$ac_val;;
1334
# Be sure to have absolute directory names.
1336
[\\/$]* | ?:[\\/]* ) continue;;
1337
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1342
# There might be people who depend on the old broken behavior: `$host'
1343
# used to hold the argument of --host etc.
1344
# FIXME: To remove some day.
1347
target=$target_alias
1349
# FIXME: To remove some day.
1350
if test "x$host_alias" != x; then
1351
if test "x$build_alias" = x; then
1352
cross_compiling=maybe
1353
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1354
If a cross compiler is detected then cross compile mode will be used." >&2
1355
elif test "x$build_alias" != "x$host_alias"; then
1361
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363
test "$silent" = yes && exec 6>/dev/null
1366
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1367
ac_ls_di=`ls -di .` &&
1368
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1369
as_fn_error "working directory cannot be determined"
1370
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1371
as_fn_error "pwd does not report name of working directory"
1374
# Find the source files, if location was not specified.
1375
if test -z "$srcdir"; then
1376
ac_srcdir_defaulted=yes
1377
# Try the directory containing this script, then the parent directory.
1378
ac_confdir=`$as_dirname -- "$as_myself" ||
1379
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1380
X"$as_myself" : 'X\(//\)[^/]' \| \
1381
X"$as_myself" : 'X\(//\)$' \| \
1382
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1383
$as_echo X"$as_myself" |
1384
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402
if test ! -r "$srcdir/$ac_unique_file"; then
1406
ac_srcdir_defaulted=no
1408
if test ! -r "$srcdir/$ac_unique_file"; then
1409
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1410
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1412
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1416
# When building in place, set srcdir=.
1417
if test "$ac_abs_confdir" = "$ac_pwd"; then
1420
# Remove unnecessary trailing slashes from srcdir.
1421
# Double slashes in file names in object file debugging info
1422
# mess up M-x gdb in Emacs.
1424
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426
for ac_var in $ac_precious_vars; do
1427
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1428
eval ac_env_${ac_var}_value=\$${ac_var}
1429
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1430
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434
# Report the --help message.
1436
if test "$ac_init_help" = "long"; then
1437
# Omit some internal or obsolete options to make the list less imposing.
1438
# This message is too long to be a string in the A/UX 3.1 sh.
1440
\`configure' configures libdrm 2.4.14 to adapt to many kinds of systems.
1442
Usage: $0 [OPTION]... [VAR=VALUE]...
1444
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445
VAR=VALUE. See below for descriptions of some of the useful variables.
1447
Defaults for the options are specified in brackets.
1450
-h, --help display this help and exit
1451
--help=short display options specific to this package
1452
--help=recursive display the short help of all the included packages
1453
-V, --version display version information and exit
1454
-q, --quiet, --silent do not print \`checking...' messages
1455
--cache-file=FILE cache test results in FILE [disabled]
1456
-C, --config-cache alias for \`--cache-file=config.cache'
1457
-n, --no-create do not create output files
1458
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1460
Installation directories:
1461
--prefix=PREFIX install architecture-independent files in PREFIX
1462
[$ac_default_prefix]
1463
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1466
By default, \`make install' will install all the files in
1467
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1468
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469
for instance \`--prefix=\$HOME'.
1471
For better control, use the options below.
1473
Fine tuning of the installation directories:
1474
--bindir=DIR user executables [EPREFIX/bin]
1475
--sbindir=DIR system admin executables [EPREFIX/sbin]
1476
--libexecdir=DIR program executables [EPREFIX/libexec]
1477
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1478
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1479
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1480
--libdir=DIR object code libraries [EPREFIX/lib]
1481
--includedir=DIR C header files [PREFIX/include]
1482
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1483
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1484
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1485
--infodir=DIR info documentation [DATAROOTDIR/info]
1486
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1487
--mandir=DIR man documentation [DATAROOTDIR/man]
1488
--docdir=DIR documentation root [DATAROOTDIR/doc/libdrm]
1489
--htmldir=DIR html documentation [DOCDIR]
1490
--dvidir=DIR dvi documentation [DOCDIR]
1491
--pdfdir=DIR pdf documentation [DOCDIR]
1492
--psdir=DIR ps documentation [DOCDIR]
1498
--program-prefix=PREFIX prepend PREFIX to installed program names
1499
--program-suffix=SUFFIX append SUFFIX to installed program names
1500
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1503
--build=BUILD configure for building on BUILD [guessed]
1504
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1508
if test -n "$ac_init_help"; then
1509
case $ac_init_help in
1510
short | recursive ) echo "Configuration of libdrm 2.4.14:";;
1515
--disable-option-checking ignore unrecognized --enable/--with options
1516
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1517
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1518
--disable-dependency-tracking speeds up one-time build
1519
--enable-dependency-tracking do not reject slow dependency extractors
1520
--enable-static[=PKGS] build static libraries [default=no]
1521
--enable-shared[=PKGS] build shared libraries [default=yes]
1522
--enable-fast-install[=PKGS]
1523
optimize for fast installation [default=yes]
1524
--disable-libtool-lock avoid locking (might break parallel builds)
1525
--disable-largefile omit support for large files
1526
--enable-udev Enable support for using udev instead of mknod
1528
--enable-nouveau-experimental-api
1529
Enable support for nouveau's experimental API
1531
--enable-radeon-experimental-api
1532
Enable support for radeon's KMS API (default:
1536
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1537
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1538
--with-pic try to use only PIC/non-PIC objects [default=use
1540
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1542
Some influential environment variables:
1543
CC C compiler command
1544
CFLAGS C compiler flags
1545
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1546
nonstandard directory <lib dir>
1547
LIBS libraries to pass to the linker, e.g. -l<library>
1548
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1549
you have headers in a nonstandard directory <include dir>
1551
PKG_CONFIG path to pkg-config utility
1553
C compiler flags for PTHREADSTUBS, overriding pkg-config
1555
linker flags for PTHREADSTUBS, overriding pkg-config
1557
C compiler flags for CAIRO, overriding pkg-config
1558
CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1560
C compiler flags for LIBUDEV, overriding pkg-config
1562
linker flags for LIBUDEV, overriding pkg-config
1564
Use these variables to override the choices made by `configure' or to help
1565
it to find libraries and programs with nonstandard names/locations.
1567
Report bugs to <dri-devel@lists.sourceforge.net>.
1572
if test "$ac_init_help" = "recursive"; then
1573
# If there are subdirs, report their specific --help.
1574
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575
test -d "$ac_dir" ||
1576
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584
# A ".." for each directory in $ac_dir_suffix.
1585
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586
case $ac_top_builddir_sub in
1587
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591
ac_abs_top_builddir=$ac_pwd
1592
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593
# for backward compatibility:
1594
ac_top_builddir=$ac_top_build_prefix
1597
.) # We are building in place.
1599
ac_top_srcdir=$ac_top_builddir_sub
1600
ac_abs_top_srcdir=$ac_pwd ;;
1601
[\\/]* | ?:[\\/]* ) # Absolute name.
1602
ac_srcdir=$srcdir$ac_dir_suffix;
1603
ac_top_srcdir=$srcdir
1604
ac_abs_top_srcdir=$srcdir ;;
1606
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607
ac_top_srcdir=$ac_top_build_prefix$srcdir
1608
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612
cd "$ac_dir" || { ac_status=$?; continue; }
1613
# Check for guested configure.
1614
if test -f "$ac_srcdir/configure.gnu"; then
1616
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617
elif test -f "$ac_srcdir/configure"; then
1619
$SHELL "$ac_srcdir/configure" --help=recursive
1621
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623
cd "$ac_pwd" || { ac_status=$?; break; }
1627
test -n "$ac_init_help" && exit $ac_status
1628
if $ac_init_version; then
1630
libdrm configure 2.4.14
1631
generated by GNU Autoconf 2.64
1633
Copyright (C) 2009 Free Software Foundation, Inc.
1634
This configure script is free software; the Free Software Foundation
1635
gives unlimited permission to copy, distribute and modify it.
1640
## ------------------------ ##
1641
## Autoconf initialization. ##
1642
## ------------------------ ##
1644
# ac_fn_c_try_compile LINENO
1645
# --------------------------
1646
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1647
ac_fn_c_try_compile ()
1649
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650
rm -f conftest.$ac_objext
1651
if { { ac_try="$ac_compile"
1653
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654
*) ac_try_echo=$ac_try;;
1656
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657
$as_echo "$ac_try_echo"; } >&5
1658
(eval "$ac_compile") 2>conftest.err
1660
if test -s conftest.err; then
1661
grep -v '^ *+' conftest.err >conftest.er1
1662
cat conftest.er1 >&5
1663
mv -f conftest.er1 conftest.err
1665
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666
test $ac_status = 0; } && {
1667
test -z "$ac_c_werror_flag" ||
1668
test ! -s conftest.err
1669
} && test -s conftest.$ac_objext; then :
1672
$as_echo "$as_me: failed program was:" >&5
1673
sed 's/^/| /' conftest.$ac_ext >&5
1677
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1680
} # ac_fn_c_try_compile
1682
# ac_fn_c_try_cpp LINENO
1683
# ----------------------
1684
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688
if { { ac_try="$ac_cpp conftest.$ac_ext"
1690
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691
*) ac_try_echo=$ac_try;;
1693
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694
$as_echo "$ac_try_echo"; } >&5
1695
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1697
if test -s conftest.err; then
1698
grep -v '^ *+' conftest.err >conftest.er1
1699
cat conftest.er1 >&5
1700
mv -f conftest.er1 conftest.err
1702
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703
test $ac_status = 0; } >/dev/null && {
1704
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1705
test ! -s conftest.err
1709
$as_echo "$as_me: failed program was:" >&5
1710
sed 's/^/| /' conftest.$ac_ext >&5
1714
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1720
# -------------------------------------------------------
1721
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1722
# the include files in INCLUDES and setting the cache variable VAR
1724
ac_fn_c_check_header_mongrel ()
1726
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1728
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729
$as_echo_n "checking for $2... " >&6; }
1730
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1731
$as_echo_n "(cached) " >&6
1734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735
$as_echo "$ac_res" >&6; }
1737
# Is the header compilable?
1738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1739
$as_echo_n "checking $2 usability... " >&6; }
1740
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741
/* end confdefs.h. */
1745
if ac_fn_c_try_compile "$LINENO"; then :
1746
ac_header_compiler=yes
1748
ac_header_compiler=no
1750
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1752
$as_echo "$ac_header_compiler" >&6; }
1754
# Is the header present?
1755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1756
$as_echo_n "checking $2 presence... " >&6; }
1757
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758
/* end confdefs.h. */
1761
if ac_fn_c_try_cpp "$LINENO"; then :
1762
ac_header_preproc=yes
1764
ac_header_preproc=no
1766
rm -f conftest.err conftest.$ac_ext
1767
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1768
$as_echo "$ac_header_preproc" >&6; }
1770
# So? What about this header?
1771
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1773
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1774
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1775
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1776
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1779
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1780
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1781
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1782
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1783
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1784
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1785
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1786
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1787
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1788
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790
## ---------------------------------------------- ##
1791
## Report this to dri-devel@lists.sourceforge.net ##
1792
## ---------------------------------------------- ##
1794
) | sed "s/^/$as_me: WARNING: /" >&2
1797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798
$as_echo_n "checking for $2... " >&6; }
1799
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800
$as_echo_n "(cached) " >&6
1802
eval "$3=\$ac_header_compiler"
1805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806
$as_echo "$ac_res" >&6; }
1808
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810
} # ac_fn_c_check_header_mongrel
1812
# ac_fn_c_try_run LINENO
1813
# ----------------------
1814
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1815
# that executables *can* be run.
1818
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819
if { { ac_try="$ac_link"
1821
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822
*) ac_try_echo=$ac_try;;
1824
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825
$as_echo "$ac_try_echo"; } >&5
1826
(eval "$ac_link") 2>&5
1828
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1830
{ { case "(($ac_try" in
1831
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832
*) ac_try_echo=$ac_try;;
1834
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835
$as_echo "$ac_try_echo"; } >&5
1836
(eval "$ac_try") 2>&5
1838
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839
test $ac_status = 0; }; }; then :
1842
$as_echo "$as_me: program exited with status $ac_status" >&5
1843
$as_echo "$as_me: failed program was:" >&5
1844
sed 's/^/| /' conftest.$ac_ext >&5
1846
ac_retval=$ac_status
1848
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1855
# -------------------------------------------------------
1856
# Tests whether HEADER exists and can be compiled using the include files in
1857
# INCLUDES, setting the cache variable VAR accordingly.
1858
ac_fn_c_check_header_compile ()
1860
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862
$as_echo_n "checking for $2... " >&6; }
1863
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1864
$as_echo_n "(cached) " >&6
1866
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867
/* end confdefs.h. */
1871
if ac_fn_c_try_compile "$LINENO"; then :
1876
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880
$as_echo "$ac_res" >&6; }
1881
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883
} # ac_fn_c_check_header_compile
1885
# ac_fn_c_try_link LINENO
1886
# -----------------------
1887
# Try to link conftest.$ac_ext, and return whether this succeeded.
1890
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891
rm -f conftest.$ac_objext conftest$ac_exeext
1892
if { { ac_try="$ac_link"
1894
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895
*) ac_try_echo=$ac_try;;
1897
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898
$as_echo "$ac_try_echo"; } >&5
1899
(eval "$ac_link") 2>conftest.err
1901
if test -s conftest.err; then
1902
grep -v '^ *+' conftest.err >conftest.er1
1903
cat conftest.er1 >&5
1904
mv -f conftest.er1 conftest.err
1906
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907
test $ac_status = 0; } && {
1908
test -z "$ac_c_werror_flag" ||
1909
test ! -s conftest.err
1910
} && test -s conftest$ac_exeext && {
1911
test "$cross_compiling" = yes ||
1912
$as_test_x conftest$ac_exeext
1916
$as_echo "$as_me: failed program was:" >&5
1917
sed 's/^/| /' conftest.$ac_ext >&5
1921
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923
# interfere with the next link command; also delete a directory that is
1924
# left behind by Apple's compiler. We do this before executing the actions.
1925
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1929
} # ac_fn_c_try_link
1931
# ac_fn_c_check_func LINENO FUNC VAR
1932
# ----------------------------------
1933
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1934
ac_fn_c_check_func ()
1936
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938
$as_echo_n "checking for $2... " >&6; }
1939
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1940
$as_echo_n "(cached) " >&6
1942
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943
/* end confdefs.h. */
1944
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1945
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1946
#define $2 innocuous_$2
1948
/* System header to define __stub macros and hopefully few prototypes,
1949
which can conflict with char $2 (); below.
1950
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1951
<limits.h> exists even on freestanding compilers. */
1954
# include <limits.h>
1956
# include <assert.h>
1961
/* Override any GCC internal prototype to avoid an error.
1962
Use char because int might match the return type of a GCC
1963
builtin and then its argument prototype would still apply. */
1968
/* The GNU C library defines this for functions which it implements
1969
to always fail with ENOSYS. Some functions are actually named
1970
something starting with __ and the normal name is an alias. */
1971
#if defined __stub_$2 || defined __stub___$2
1983
if ac_fn_c_try_link "$LINENO"; then :
1988
rm -f core conftest.err conftest.$ac_objext \
1989
conftest$ac_exeext conftest.$ac_ext
1992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993
$as_echo "$ac_res" >&6; }
1994
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996
} # ac_fn_c_check_func
1997
cat >config.log <<_ACEOF
1998
This file contains any messages produced by compilers while
1999
running configure, to aid debugging if configure makes a mistake.
2001
It was created by libdrm $as_me 2.4.14, which was
2002
generated by GNU Autoconf 2.64. Invocation command line was
2014
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2015
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2016
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2017
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2018
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2020
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2021
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2023
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2024
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2025
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2026
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2027
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2028
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2029
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2033
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037
test -z "$as_dir" && as_dir=.
2038
$as_echo "PATH: $as_dir"
2054
# Keep a trace of the command line.
2055
# Strip out --no-create and --no-recursion so they do not pile up.
2056
# Strip out --silent because we don't want to record it for future runs.
2057
# Also quote any args containing shell meta-characters.
2058
# Make two passes to allow for proper duplicate-argument suppression.
2062
ac_must_keep_next=false
2068
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2069
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2070
| -silent | --silent | --silen | --sile | --sil)
2073
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2076
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2078
as_fn_append ac_configure_args1 " '$ac_arg'"
2079
if test $ac_must_keep_next = true; then
2080
ac_must_keep_next=false # Got value, back to normal.
2083
*=* | --config-cache | -C | -disable-* | --disable-* \
2084
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2085
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2086
| -with-* | --with-* | -without-* | --without-* | --x)
2087
case "$ac_configure_args0 " in
2088
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2091
-* ) ac_must_keep_next=true ;;
2094
as_fn_append ac_configure_args " '$ac_arg'"
2099
{ ac_configure_args0=; unset ac_configure_args0;}
2100
{ ac_configure_args1=; unset ac_configure_args1;}
2102
# When interrupted or exit'd, cleanup temporary files, and complete
2103
# config.log. We remove comments because anyway the quotes in there
2104
# would cause problems or look ugly.
2105
# WARNING: Use '\'' to represent an apostrophe within the trap.
2106
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2107
trap 'exit_status=$?
2108
# Save into config.log some information that might help in debugging.
2113
## ---------------- ##
2114
## Cache variables. ##
2115
## ---------------- ##
2118
# The following way of writing the cache mishandles newlines in values,
2120
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2121
eval ac_val=\$$ac_var
2125
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2126
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2129
_ | IFS | as_nl) ;; #(
2130
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2131
*) { eval $ac_var=; unset $ac_var;} ;;
2136
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2137
*${as_nl}ac_space=\ *)
2139
"s/'\''/'\''\\\\'\'''\''/g;
2140
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2143
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2151
## ----------------- ##
2152
## Output variables. ##
2153
## ----------------- ##
2156
for ac_var in $ac_subst_vars
2158
eval ac_val=\$$ac_var
2160
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2162
$as_echo "$ac_var='\''$ac_val'\''"
2166
if test -n "$ac_subst_files"; then
2168
## ------------------- ##
2169
## File substitutions. ##
2170
## ------------------- ##
2173
for ac_var in $ac_subst_files
2175
eval ac_val=\$$ac_var
2177
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2179
$as_echo "$ac_var='\''$ac_val'\''"
2184
if test -s confdefs.h; then
2194
test "$ac_signal" != 0 &&
2195
$as_echo "$as_me: caught signal $ac_signal"
2196
$as_echo "$as_me: exit $exit_status"
2198
rm -f core *.core core.conftest.* &&
2199
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2202
for ac_signal in 1 2 13 15; do
2203
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2207
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2208
rm -f -r conftest* confdefs.h
2210
$as_echo "/* confdefs.h */" > confdefs.h
2212
# Predefined preprocessor variables.
2214
cat >>confdefs.h <<_ACEOF
2215
#define PACKAGE_NAME "$PACKAGE_NAME"
2218
cat >>confdefs.h <<_ACEOF
2219
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2222
cat >>confdefs.h <<_ACEOF
2223
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2226
cat >>confdefs.h <<_ACEOF
2227
#define PACKAGE_STRING "$PACKAGE_STRING"
2230
cat >>confdefs.h <<_ACEOF
2231
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2234
cat >>confdefs.h <<_ACEOF
2235
#define PACKAGE_URL "$PACKAGE_URL"
2239
# Let the site file select an alternate cache file if it wants to.
2240
# Prefer an explicitly selected file to automatically selected ones.
2243
if test -n "$CONFIG_SITE"; then
2244
ac_site_file1=$CONFIG_SITE
2245
elif test "x$prefix" != xNONE; then
2246
ac_site_file1=$prefix/share/config.site
2247
ac_site_file2=$prefix/etc/config.site
2249
ac_site_file1=$ac_default_prefix/share/config.site
2250
ac_site_file2=$ac_default_prefix/etc/config.site
2252
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2254
test "x$ac_site_file" = xNONE && continue
2255
if test -r "$ac_site_file"; then
2256
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2257
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2258
sed 's/^/| /' "$ac_site_file" >&5
2263
if test -r "$cache_file"; then
2264
# Some versions of bash will fail to source /dev/null (special
2265
# files actually), so we avoid doing that.
2266
if test -f "$cache_file"; then
2267
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2268
$as_echo "$as_me: loading cache $cache_file" >&6;}
2270
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2271
*) . "./$cache_file";;
2275
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2276
$as_echo "$as_me: creating cache $cache_file" >&6;}
2280
# Check that the precious variables saved in the cache have kept the same
2282
ac_cache_corrupted=false
2283
for ac_var in $ac_precious_vars; do
2284
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2285
eval ac_new_set=\$ac_env_${ac_var}_set
2286
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2287
eval ac_new_val=\$ac_env_${ac_var}_value
2288
case $ac_old_set,$ac_new_set in
2290
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2291
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2292
ac_cache_corrupted=: ;;
2294
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2295
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2296
ac_cache_corrupted=: ;;
2299
if test "x$ac_old_val" != "x$ac_new_val"; then
2300
# differences in whitespace do not lead to failure.
2301
ac_old_val_w=`echo x $ac_old_val`
2302
ac_new_val_w=`echo x $ac_new_val`
2303
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2304
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2305
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2306
ac_cache_corrupted=:
2308
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2309
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2310
eval $ac_var=\$ac_old_val
2312
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2313
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2314
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2315
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2318
# Pass precious variables to config.status.
2319
if test "$ac_new_set" = set; then
2321
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2322
*) ac_arg=$ac_var=$ac_new_val ;;
2324
case " $ac_configure_args " in
2325
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2326
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2330
if $ac_cache_corrupted; then
2331
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2332
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2333
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2334
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2335
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2337
## -------------------- ##
2338
## Main body of script. ##
2339
## -------------------- ##
2342
ac_cpp='$CPP $CPPFLAGS'
2343
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2349
ac_cpp='$CPP $CPPFLAGS'
2350
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2353
if test -n "$ac_tool_prefix"; then
2354
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2355
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2357
$as_echo_n "checking for $ac_word... " >&6; }
2358
if test "${ac_cv_prog_CC+set}" = set; then :
2359
$as_echo_n "(cached) " >&6
2361
if test -n "$CC"; then
2362
ac_cv_prog_CC="$CC" # Let the user override the test.
2364
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368
test -z "$as_dir" && as_dir=.
2369
for ac_exec_ext in '' $ac_executable_extensions; do
2370
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2372
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2382
if test -n "$CC"; then
2383
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2384
$as_echo "$CC" >&6; }
2386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2387
$as_echo "no" >&6; }
2392
if test -z "$ac_cv_prog_CC"; then
2394
# Extract the first word of "gcc", so it can be a program name with args.
2395
set dummy gcc; ac_word=$2
2396
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2397
$as_echo_n "checking for $ac_word... " >&6; }
2398
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2399
$as_echo_n "(cached) " >&6
2401
if test -n "$ac_ct_CC"; then
2402
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2404
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408
test -z "$as_dir" && as_dir=.
2409
for ac_exec_ext in '' $ac_executable_extensions; do
2410
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2411
ac_cv_prog_ac_ct_CC="gcc"
2412
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2421
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2422
if test -n "$ac_ct_CC"; then
2423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2424
$as_echo "$ac_ct_CC" >&6; }
2426
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2427
$as_echo "no" >&6; }
2430
if test "x$ac_ct_CC" = x; then
2433
case $cross_compiling:$ac_tool_warned in
2435
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2436
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2437
ac_tool_warned=yes ;;
2445
if test -z "$CC"; then
2446
if test -n "$ac_tool_prefix"; then
2447
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2448
set dummy ${ac_tool_prefix}cc; ac_word=$2
2449
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2450
$as_echo_n "checking for $ac_word... " >&6; }
2451
if test "${ac_cv_prog_CC+set}" = set; then :
2452
$as_echo_n "(cached) " >&6
2454
if test -n "$CC"; then
2455
ac_cv_prog_CC="$CC" # Let the user override the test.
2457
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461
test -z "$as_dir" && as_dir=.
2462
for ac_exec_ext in '' $ac_executable_extensions; do
2463
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2464
ac_cv_prog_CC="${ac_tool_prefix}cc"
2465
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2475
if test -n "$CC"; then
2476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2477
$as_echo "$CC" >&6; }
2479
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2480
$as_echo "no" >&6; }
2486
if test -z "$CC"; then
2487
# Extract the first word of "cc", so it can be a program name with args.
2488
set dummy cc; ac_word=$2
2489
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2490
$as_echo_n "checking for $ac_word... " >&6; }
2491
if test "${ac_cv_prog_CC+set}" = set; then :
2492
$as_echo_n "(cached) " >&6
2494
if test -n "$CC"; then
2495
ac_cv_prog_CC="$CC" # Let the user override the test.
2498
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502
test -z "$as_dir" && as_dir=.
2503
for ac_exec_ext in '' $ac_executable_extensions; do
2504
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2506
ac_prog_rejected=yes
2510
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517
if test $ac_prog_rejected = yes; then
2518
# We found a bogon in the path, so make sure we never use it.
2519
set dummy $ac_cv_prog_CC
2521
if test $# != 0; then
2522
# We chose a different compiler from the bogus one.
2523
# However, it has the same basename, so the bogon will be chosen
2524
# first if we set CC to just the basename; use the full file name.
2526
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2532
if test -n "$CC"; then
2533
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2534
$as_echo "$CC" >&6; }
2536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537
$as_echo "no" >&6; }
2542
if test -z "$CC"; then
2543
if test -n "$ac_tool_prefix"; then
2544
for ac_prog in cl.exe
2546
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2547
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2548
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549
$as_echo_n "checking for $ac_word... " >&6; }
2550
if test "${ac_cv_prog_CC+set}" = set; then :
2551
$as_echo_n "(cached) " >&6
2553
if test -n "$CC"; then
2554
ac_cv_prog_CC="$CC" # Let the user override the test.
2556
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560
test -z "$as_dir" && as_dir=.
2561
for ac_exec_ext in '' $ac_executable_extensions; do
2562
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2564
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2574
if test -n "$CC"; then
2575
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2576
$as_echo "$CC" >&6; }
2578
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579
$as_echo "no" >&6; }
2583
test -n "$CC" && break
2586
if test -z "$CC"; then
2588
for ac_prog in cl.exe
2590
# Extract the first word of "$ac_prog", so it can be a program name with args.
2591
set dummy $ac_prog; ac_word=$2
2592
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2593
$as_echo_n "checking for $ac_word... " >&6; }
2594
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2595
$as_echo_n "(cached) " >&6
2597
if test -n "$ac_ct_CC"; then
2598
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2600
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604
test -z "$as_dir" && as_dir=.
2605
for ac_exec_ext in '' $ac_executable_extensions; do
2606
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607
ac_cv_prog_ac_ct_CC="$ac_prog"
2608
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2617
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2618
if test -n "$ac_ct_CC"; then
2619
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2620
$as_echo "$ac_ct_CC" >&6; }
2622
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623
$as_echo "no" >&6; }
2627
test -n "$ac_ct_CC" && break
2630
if test "x$ac_ct_CC" = x; then
2633
case $cross_compiling:$ac_tool_warned in
2635
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2636
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2637
ac_tool_warned=yes ;;
2646
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2647
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2648
as_fn_error "no acceptable C compiler found in \$PATH
2649
See \`config.log' for more details." "$LINENO" 5; }
2651
# Provide some information about the compiler.
2652
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2655
for ac_option in --version -v -V -qversion; do
2656
{ { ac_try="$ac_compiler $ac_option >&5"
2658
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659
*) ac_try_echo=$ac_try;;
2661
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2662
$as_echo "$ac_try_echo"; } >&5
2663
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
2665
if test -s conftest.err; then
2667
... rest of stderr output deleted ...
2668
10q' conftest.err >conftest.er1
2669
cat conftest.er1 >&5
2670
rm -f conftest.er1 conftest.err
2672
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2673
test $ac_status = 0; }
2676
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677
/* end confdefs.h. */
2682
FILE *f = fopen ("conftest.out", "w");
2683
return ferror (f) || fclose (f) != 0;
2689
ac_clean_files_save=$ac_clean_files
2690
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2691
# Try to create an executable without -o first, disregard a.out.
2692
# It will help us diagnose broken compilers, and finding out an intuition
2694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2695
$as_echo_n "checking for C compiler default output file name... " >&6; }
2696
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2698
# The possible output files:
2699
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2702
for ac_file in $ac_files
2705
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2706
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2711
if { { ac_try="$ac_link_default"
2713
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714
*) ac_try_echo=$ac_try;;
2716
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2717
$as_echo "$ac_try_echo"; } >&5
2718
(eval "$ac_link_default") 2>&5
2720
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2721
test $ac_status = 0; }; then :
2722
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2723
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2724
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2725
# so that the user can short-circuit this test for compilers unknown to
2727
for ac_file in $ac_files ''
2729
test -f "$ac_file" || continue
2731
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2734
# We found the default executable, but exeext='' is most
2738
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2740
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2742
# We set ac_cv_exeext here because the later test for it is not
2743
# safe: cross compilers may not add the suffix if given an `-o'
2744
# argument, so we may need to know it at that point already.
2745
# Even if this section looks crufty: it has the advantage of
2752
test "$ac_cv_exeext" = no && ac_cv_exeext=
2757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2758
$as_echo "$ac_file" >&6; }
2759
if test -z "$ac_file"; then :
2760
$as_echo "$as_me: failed program was:" >&5
2761
sed 's/^/| /' conftest.$ac_ext >&5
2763
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2764
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2765
{ as_fn_set_status 77
2766
as_fn_error "C compiler cannot create executables
2767
See \`config.log' for more details." "$LINENO" 5; }; }
2769
ac_exeext=$ac_cv_exeext
2771
# Check that the compiler produces executables we can run. If not, either
2772
# the compiler is broken, or we cross compile.
2773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2774
$as_echo_n "checking whether the C compiler works... " >&6; }
2775
# If not cross compiling, check that we can run a simple program.
2776
if test "$cross_compiling" != yes; then
2777
if { ac_try='./$ac_file'
2778
{ { case "(($ac_try" in
2779
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780
*) ac_try_echo=$ac_try;;
2782
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2783
$as_echo "$ac_try_echo"; } >&5
2784
(eval "$ac_try") 2>&5
2786
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2787
test $ac_status = 0; }; }; then
2790
if test "$cross_compiling" = maybe; then
2793
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2794
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2795
as_fn_error "cannot run C compiled programs.
2796
If you meant to cross compile, use \`--host'.
2797
See \`config.log' for more details." "$LINENO" 5; }
2801
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2802
$as_echo "yes" >&6; }
2804
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2805
ac_clean_files=$ac_clean_files_save
2806
# Check that the compiler produces executables we can run. If not, either
2807
# the compiler is broken, or we cross compile.
2808
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2809
$as_echo_n "checking whether we are cross compiling... " >&6; }
2810
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2811
$as_echo "$cross_compiling" >&6; }
2813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2814
$as_echo_n "checking for suffix of executables... " >&6; }
2815
if { { ac_try="$ac_link"
2817
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818
*) ac_try_echo=$ac_try;;
2820
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2821
$as_echo "$ac_try_echo"; } >&5
2822
(eval "$ac_link") 2>&5
2824
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2825
test $ac_status = 0; }; then :
2826
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2827
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2828
# work properly (i.e., refer to `conftest.exe'), while it won't with
2830
for ac_file in conftest.exe conftest conftest.*; do
2831
test -f "$ac_file" || continue
2833
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2834
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2840
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2841
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2842
as_fn_error "cannot compute suffix of executables: cannot compile and link
2843
See \`config.log' for more details." "$LINENO" 5; }
2845
rm -f conftest$ac_cv_exeext
2846
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2847
$as_echo "$ac_cv_exeext" >&6; }
2849
rm -f conftest.$ac_ext
2850
EXEEXT=$ac_cv_exeext
2852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2853
$as_echo_n "checking for suffix of object files... " >&6; }
2854
if test "${ac_cv_objext+set}" = set; then :
2855
$as_echo_n "(cached) " >&6
2857
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2858
/* end confdefs.h. */
2868
rm -f conftest.o conftest.obj
2869
if { { ac_try="$ac_compile"
2871
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872
*) ac_try_echo=$ac_try;;
2874
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2875
$as_echo "$ac_try_echo"; } >&5
2876
(eval "$ac_compile") 2>&5
2878
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2879
test $ac_status = 0; }; then :
2880
for ac_file in conftest.o conftest.obj conftest.*; do
2881
test -f "$ac_file" || continue;
2883
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2884
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2889
$as_echo "$as_me: failed program was:" >&5
2890
sed 's/^/| /' conftest.$ac_ext >&5
2892
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2893
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2894
as_fn_error "cannot compute suffix of object files: cannot compile
2895
See \`config.log' for more details." "$LINENO" 5; }
2897
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2900
$as_echo "$ac_cv_objext" >&6; }
2901
OBJEXT=$ac_cv_objext
2903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2904
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2905
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2906
$as_echo_n "(cached) " >&6
2908
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2909
/* end confdefs.h. */
2922
if ac_fn_c_try_compile "$LINENO"; then :
2927
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2928
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2931
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2932
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2933
if test $ac_compiler_gnu = yes; then
2938
ac_test_CFLAGS=${CFLAGS+set}
2939
ac_save_CFLAGS=$CFLAGS
2940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2941
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2942
if test "${ac_cv_prog_cc_g+set}" = set; then :
2943
$as_echo_n "(cached) " >&6
2945
ac_save_c_werror_flag=$ac_c_werror_flag
2946
ac_c_werror_flag=yes
2949
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950
/* end confdefs.h. */
2960
if ac_fn_c_try_compile "$LINENO"; then :
2964
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965
/* end confdefs.h. */
2975
if ac_fn_c_try_compile "$LINENO"; then :
2978
ac_c_werror_flag=$ac_save_c_werror_flag
2980
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2981
/* end confdefs.h. */
2991
if ac_fn_c_try_compile "$LINENO"; then :
2994
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2996
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2998
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2999
ac_c_werror_flag=$ac_save_c_werror_flag
3001
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3002
$as_echo "$ac_cv_prog_cc_g" >&6; }
3003
if test "$ac_test_CFLAGS" = set; then
3004
CFLAGS=$ac_save_CFLAGS
3005
elif test $ac_cv_prog_cc_g = yes; then
3006
if test "$GCC" = yes; then
3012
if test "$GCC" = yes; then
3018
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3019
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3020
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3021
$as_echo_n "(cached) " >&6
3023
ac_cv_prog_cc_c89=no
3025
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3026
/* end confdefs.h. */
3029
#include <sys/types.h>
3030
#include <sys/stat.h>
3031
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3032
struct buf { int x; };
3033
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3034
static char *e (p, i)
3040
static char *f (char * (*g) (char **, int), char **p, ...)
3045
s = g (p, va_arg (v,int));
3050
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3051
function prototypes and stuff, but not '\xHH' hex character constants.
3052
These don't provoke an error unfortunately, instead are silently treated
3053
as 'x'. The following induces an error, until -std is added to get
3054
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3055
array size at least. It's necessary to write '\x00'==0 to get something
3056
that's true only with -std. */
3057
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3059
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3060
inside strings and character constants. */
3062
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3064
int test (int i, double x);
3065
struct s1 {int (*f) (int a);};
3066
struct s2 {int (*f) (double a);};
3067
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3073
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3078
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3079
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3081
CC="$ac_save_CC $ac_arg"
3082
if ac_fn_c_try_compile "$LINENO"; then :
3083
ac_cv_prog_cc_c89=$ac_arg
3085
rm -f core conftest.err conftest.$ac_objext
3086
test "x$ac_cv_prog_cc_c89" != "xno" && break
3088
rm -f conftest.$ac_ext
3093
case "x$ac_cv_prog_cc_c89" in
3095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3096
$as_echo "none needed" >&6; } ;;
3098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3099
$as_echo "unsupported" >&6; } ;;
3101
CC="$CC $ac_cv_prog_cc_c89"
3102
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3103
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3105
if test "x$ac_cv_prog_cc_c89" != xno; then :
3110
ac_cpp='$CPP $CPPFLAGS'
3111
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117
ac_cpp='$CPP $CPPFLAGS'
3118
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3121
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3122
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3123
# On Suns, sometimes $CPP names a directory.
3124
if test -n "$CPP" && test -d "$CPP"; then
3127
if test -z "$CPP"; then
3128
if test "${ac_cv_prog_CPP+set}" = set; then :
3129
$as_echo_n "(cached) " >&6
3131
# Double quotes because CPP needs to be expanded
3132
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3135
for ac_c_preproc_warn_flag in '' yes
3137
# Use a header file that comes with gcc, so configuring glibc
3138
# with a fresh cross-compiler works.
3139
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3140
# <limits.h> exists even on freestanding compilers.
3141
# On the NeXT, cc -E runs the code through the compiler's parser,
3142
# not just through cpp. "Syntax error" is here to catch this case.
3143
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3144
/* end confdefs.h. */
3146
# include <limits.h>
3148
# include <assert.h>
3152
if ac_fn_c_try_cpp "$LINENO"; then :
3155
# Broken: fails on valid input.
3158
rm -f conftest.err conftest.$ac_ext
3160
# OK, works on sane cases. Now check whether nonexistent headers
3161
# can be detected and how.
3162
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163
/* end confdefs.h. */
3164
#include <ac_nonexistent.h>
3166
if ac_fn_c_try_cpp "$LINENO"; then :
3167
# Broken: success on invalid input.
3170
# Passes both tests.
3174
rm -f conftest.err conftest.$ac_ext
3177
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3178
rm -f conftest.err conftest.$ac_ext
3179
if $ac_preproc_ok; then :
3191
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3192
$as_echo "$CPP" >&6; }
3194
for ac_c_preproc_warn_flag in '' yes
3196
# Use a header file that comes with gcc, so configuring glibc
3197
# with a fresh cross-compiler works.
3198
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3199
# <limits.h> exists even on freestanding compilers.
3200
# On the NeXT, cc -E runs the code through the compiler's parser,
3201
# not just through cpp. "Syntax error" is here to catch this case.
3202
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203
/* end confdefs.h. */
3205
# include <limits.h>
3207
# include <assert.h>
3211
if ac_fn_c_try_cpp "$LINENO"; then :
3214
# Broken: fails on valid input.
3217
rm -f conftest.err conftest.$ac_ext
3219
# OK, works on sane cases. Now check whether nonexistent headers
3220
# can be detected and how.
3221
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222
/* end confdefs.h. */
3223
#include <ac_nonexistent.h>
3225
if ac_fn_c_try_cpp "$LINENO"; then :
3226
# Broken: success on invalid input.
3229
# Passes both tests.
3233
rm -f conftest.err conftest.$ac_ext
3236
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3237
rm -f conftest.err conftest.$ac_ext
3238
if $ac_preproc_ok; then :
3241
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3244
See \`config.log' for more details." "$LINENO" 5; }
3248
ac_cpp='$CPP $CPPFLAGS'
3249
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3254
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3255
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3256
if test "${ac_cv_path_GREP+set}" = set; then :
3257
$as_echo_n "(cached) " >&6
3259
if test -z "$GREP"; then
3260
ac_path_GREP_found=false
3261
# Loop through the user's path and test for each of PROGNAME-LIST
3262
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3266
test -z "$as_dir" && as_dir=.
3267
for ac_prog in grep ggrep; do
3268
for ac_exec_ext in '' $ac_executable_extensions; do
3269
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3270
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3271
# Check for GNU ac_path_GREP and select it if it is found.
3272
# Check for GNU $ac_path_GREP
3273
case `"$ac_path_GREP" --version 2>&1` in
3275
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3278
$as_echo_n 0123456789 >"conftest.in"
3281
cat "conftest.in" "conftest.in" >"conftest.tmp"
3282
mv "conftest.tmp" "conftest.in"
3283
cp "conftest.in" "conftest.nl"
3284
$as_echo 'GREP' >> "conftest.nl"
3285
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3286
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3287
as_fn_arith $ac_count + 1 && ac_count=$as_val
3288
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3289
# Best one so far, save it but keep looking for a better one
3290
ac_cv_path_GREP="$ac_path_GREP"
3291
ac_path_GREP_max=$ac_count
3293
# 10*(2^10) chars as input seems more than enough
3294
test $ac_count -gt 10 && break
3296
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3299
$ac_path_GREP_found && break 3
3304
if test -z "$ac_cv_path_GREP"; then
3305
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3308
ac_cv_path_GREP=$GREP
3312
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3313
$as_echo "$ac_cv_path_GREP" >&6; }
3314
GREP="$ac_cv_path_GREP"
3317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3318
$as_echo_n "checking for egrep... " >&6; }
3319
if test "${ac_cv_path_EGREP+set}" = set; then :
3320
$as_echo_n "(cached) " >&6
3322
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3323
then ac_cv_path_EGREP="$GREP -E"
3325
if test -z "$EGREP"; then
3326
ac_path_EGREP_found=false
3327
# Loop through the user's path and test for each of PROGNAME-LIST
3328
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3332
test -z "$as_dir" && as_dir=.
3333
for ac_prog in egrep; do
3334
for ac_exec_ext in '' $ac_executable_extensions; do
3335
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3336
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3337
# Check for GNU ac_path_EGREP and select it if it is found.
3338
# Check for GNU $ac_path_EGREP
3339
case `"$ac_path_EGREP" --version 2>&1` in
3341
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3344
$as_echo_n 0123456789 >"conftest.in"
3347
cat "conftest.in" "conftest.in" >"conftest.tmp"
3348
mv "conftest.tmp" "conftest.in"
3349
cp "conftest.in" "conftest.nl"
3350
$as_echo 'EGREP' >> "conftest.nl"
3351
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3352
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3353
as_fn_arith $ac_count + 1 && ac_count=$as_val
3354
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3355
# Best one so far, save it but keep looking for a better one
3356
ac_cv_path_EGREP="$ac_path_EGREP"
3357
ac_path_EGREP_max=$ac_count
3359
# 10*(2^10) chars as input seems more than enough
3360
test $ac_count -gt 10 && break
3362
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3365
$ac_path_EGREP_found && break 3
3370
if test -z "$ac_cv_path_EGREP"; then
3371
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3374
ac_cv_path_EGREP=$EGREP
3379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3380
$as_echo "$ac_cv_path_EGREP" >&6; }
3381
EGREP="$ac_cv_path_EGREP"
3384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3385
$as_echo_n "checking for ANSI C header files... " >&6; }
3386
if test "${ac_cv_header_stdc+set}" = set; then :
3387
$as_echo_n "(cached) " >&6
3389
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390
/* end confdefs.h. */
3404
if ac_fn_c_try_compile "$LINENO"; then :
3405
ac_cv_header_stdc=yes
3407
ac_cv_header_stdc=no
3409
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411
if test $ac_cv_header_stdc = yes; then
3412
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3413
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414
/* end confdefs.h. */
3418
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3419
$EGREP "memchr" >/dev/null 2>&1; then :
3422
ac_cv_header_stdc=no
3428
if test $ac_cv_header_stdc = yes; then
3429
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3430
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431
/* end confdefs.h. */
3435
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3436
$EGREP "free" >/dev/null 2>&1; then :
3439
ac_cv_header_stdc=no
3445
if test $ac_cv_header_stdc = yes; then
3446
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3447
if test "$cross_compiling" = yes; then :
3450
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451
/* end confdefs.h. */
3454
#if ((' ' & 0x0FF) == 0x020)
3455
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3456
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3458
# define ISLOWER(c) \
3459
(('a' <= (c) && (c) <= 'i') \
3460
|| ('j' <= (c) && (c) <= 'r') \
3461
|| ('s' <= (c) && (c) <= 'z'))
3462
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3465
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3470
for (i = 0; i < 256; i++)
3471
if (XOR (islower (i), ISLOWER (i))
3472
|| toupper (i) != TOUPPER (i))
3477
if ac_fn_c_try_run "$LINENO"; then :
3480
ac_cv_header_stdc=no
3482
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3483
conftest.$ac_objext conftest.beam conftest.$ac_ext
3488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3489
$as_echo "$ac_cv_header_stdc" >&6; }
3490
if test $ac_cv_header_stdc = yes; then
3492
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3496
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3497
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3498
inttypes.h stdint.h unistd.h
3500
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3501
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3503
eval as_val=\$$as_ac_Header
3504
if test "x$as_val" = x""yes; then :
3505
cat >>confdefs.h <<_ACEOF
3506
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3515
ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3516
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3523
if test "$MINIX" = yes; then
3525
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3528
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3531
$as_echo "#define _MINIX 1" >>confdefs.h
3536
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3537
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3538
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3539
$as_echo_n "(cached) " >&6
3541
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542
/* end confdefs.h. */
3544
# define __EXTENSIONS__ 1
3545
$ac_includes_default
3554
if ac_fn_c_try_compile "$LINENO"; then :
3555
ac_cv_safe_to_define___extensions__=yes
3557
ac_cv_safe_to_define___extensions__=no
3559
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3562
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3563
test $ac_cv_safe_to_define___extensions__ = yes &&
3564
$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3566
$as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3568
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3570
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3572
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3576
am__api_version='1.10'
3579
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3580
for ac_t in install-sh install.sh shtool; do
3581
if test -f "$ac_dir/$ac_t"; then
3583
ac_install_sh="$ac_aux_dir/$ac_t -c"
3588
if test -z "$ac_aux_dir"; then
3589
as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3592
# These three variables are undocumented and unsupported,
3593
# and are intended to be withdrawn in a future Autoconf release.
3594
# They can cause serious problems if a builder's source tree is in a directory
3595
# whose full name contains unusual characters.
3596
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3597
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3598
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3601
# Find a good install program. We prefer a C program (faster),
3602
# so one script is as good as another. But avoid the broken or
3603
# incompatible versions:
3604
# SysV /etc/install, /usr/sbin/install
3605
# SunOS /usr/etc/install
3606
# IRIX /sbin/install
3608
# AmigaOS /C/install, which installs bootblocks on floppy discs
3609
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3610
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3611
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3612
# OS/2's system install, which has a completely different semantic
3613
# ./install, which can be erroneously created by make from ./install.sh.
3614
# Reject install programs that cannot install multiple files.
3615
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3616
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3617
if test -z "$INSTALL"; then
3618
if test "${ac_cv_path_install+set}" = set; then :
3619
$as_echo_n "(cached) " >&6
3621
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625
test -z "$as_dir" && as_dir=.
3626
# Account for people who put trailing slashes in PATH elements.
3627
case $as_dir/ in #((
3628
./ | .// | /[cC]/* | \
3629
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3630
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3633
# OSF1 and SCO ODT 3.0 have their own names for install.
3634
# Don't use installbsd from OSF since it installs stuff as root
3636
for ac_prog in ginstall scoinst install; do
3637
for ac_exec_ext in '' $ac_executable_extensions; do
3638
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3639
if test $ac_prog = install &&
3640
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3641
# AIX install. It has an incompatible calling convention.
3643
elif test $ac_prog = install &&
3644
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3645
# program-specific install script used by HP pwplus--don't use.
3648
rm -rf conftest.one conftest.two conftest.dir
3649
echo one > conftest.one
3650
echo two > conftest.two
3652
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3653
test -s conftest.one && test -s conftest.two &&
3654
test -s conftest.dir/conftest.one &&
3655
test -s conftest.dir/conftest.two
3657
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3670
rm -rf conftest.one conftest.two conftest.dir
3673
if test "${ac_cv_path_install+set}" = set; then
3674
INSTALL=$ac_cv_path_install
3676
# As a last resort, use the slow shell script. Don't cache a
3677
# value for INSTALL within a source directory, because that will
3678
# break other packages using the cache if that directory is
3679
# removed, or if the value is a relative name.
3680
INSTALL=$ac_install_sh
3683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3684
$as_echo "$INSTALL" >&6; }
3686
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3687
# It thinks the first close brace ends the variable substitution.
3688
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3690
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3692
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3695
$as_echo_n "checking whether build environment is sane... " >&6; }
3698
echo timestamp > conftest.file
3699
# Do `set' in a subshell so we don't clobber the current shell's
3700
# arguments. Must try -L first in case configure is actually a
3701
# symlink; some systems play weird games with the mod time of symlinks
3702
# (eg FreeBSD returns the mod time of the symlink's containing
3705
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3706
if test "$*" = "X"; then
3708
set X `ls -t $srcdir/configure conftest.file`
3711
if test "$*" != "X $srcdir/configure conftest.file" \
3712
&& test "$*" != "X conftest.file $srcdir/configure"; then
3714
# If neither matched, then we have a broken ls. This can happen
3715
# if, for instance, CONFIG_SHELL is bash and it inherits a
3716
# broken ls alias from the environment. This has actually
3717
# happened. Such a system could not be considered "sane".
3718
as_fn_error "ls -t appears to fail. Make sure there is not a broken
3719
alias in your environment" "$LINENO" 5
3722
test "$2" = conftest.file
3728
as_fn_error "newly created file is older than distributed files!
3729
Check your system clock" "$LINENO" 5
3731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3732
$as_echo "yes" >&6; }
3733
test "$program_prefix" != NONE &&
3734
program_transform_name="s&^&$program_prefix&;$program_transform_name"
3735
# Use a double $ so make ignores it.
3736
test "$program_suffix" != NONE &&
3737
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3738
# Double any \ or $.
3739
# By default was `s,x,x', remove it if useless.
3740
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3741
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3743
# expand $ac_aux_dir to an absolute path
3744
am_aux_dir=`cd $ac_aux_dir && pwd`
3746
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3747
# Use eval to expand $SHELL
3748
if eval "$MISSING --run true"; then
3749
am_missing_run="$MISSING --run "
3752
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3753
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3756
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3757
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3758
if test -z "$MKDIR_P"; then
3759
if test "${ac_cv_path_mkdir+set}" = set; then :
3760
$as_echo_n "(cached) " >&6
3762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3766
test -z "$as_dir" && as_dir=.
3767
for ac_prog in mkdir gmkdir; do
3768
for ac_exec_ext in '' $ac_executable_extensions; do
3769
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3770
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3771
'mkdir (GNU coreutils) '* | \
3772
'mkdir (coreutils) '* | \
3773
'mkdir (fileutils) '4.1*)
3774
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3784
if test "${ac_cv_path_mkdir+set}" = set; then
3785
MKDIR_P="$ac_cv_path_mkdir -p"
3787
# As a last resort, use the slow shell script. Don't cache a
3788
# value for MKDIR_P within a source directory, because that will
3789
# break other packages using the cache if that directory is
3790
# removed, or if the value is a relative name.
3791
test -d ./--version && rmdir ./--version
3792
MKDIR_P="$ac_install_sh -d"
3795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3796
$as_echo "$MKDIR_P" >&6; }
3800
[\\/$]* | ?:[\\/]*) ;;
3801
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3804
for ac_prog in gawk mawk nawk awk
3806
# Extract the first word of "$ac_prog", so it can be a program name with args.
3807
set dummy $ac_prog; ac_word=$2
3808
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3809
$as_echo_n "checking for $ac_word... " >&6; }
3810
if test "${ac_cv_prog_AWK+set}" = set; then :
3811
$as_echo_n "(cached) " >&6
3813
if test -n "$AWK"; then
3814
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3816
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820
test -z "$as_dir" && as_dir=.
3821
for ac_exec_ext in '' $ac_executable_extensions; do
3822
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3823
ac_cv_prog_AWK="$ac_prog"
3824
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3834
if test -n "$AWK"; then
3835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3836
$as_echo "$AWK" >&6; }
3838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839
$as_echo "no" >&6; }
3843
test -n "$AWK" && break
3846
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3847
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3849
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3850
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3851
$as_echo_n "(cached) " >&6
3853
cat >conftest.make <<\_ACEOF
3856
@echo '@@@%%%=$(MAKE)=@@@%%%'
3858
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3859
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3861
eval ac_cv_prog_make_${ac_make}_set=yes;;
3863
eval ac_cv_prog_make_${ac_make}_set=no;;
3867
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3868
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3869
$as_echo "yes" >&6; }
3872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873
$as_echo "no" >&6; }
3874
SET_MAKE="MAKE=${MAKE-make}"
3877
rm -rf .tst 2>/dev/null
3878
mkdir .tst 2>/dev/null
3879
if test -d .tst; then
3884
rmdir .tst 2>/dev/null
3886
DEPDIR="${am__leading_dot}deps"
3888
ac_config_commands="$ac_config_commands depfiles"
3891
am_make=${MAKE-make}
3892
cat > confinc << 'END'
3897
# If we don't find an include directive, just comment out the code.
3898
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3899
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3903
# First try GNU make style include.
3904
echo "include confinc" > confmf
3905
# We grep out `Entering directory' and `Leaving directory'
3906
# messages which can occur if `w' ends up in MAKEFLAGS.
3907
# In particular we don't look at `^make:' because GNU make might
3908
# be invoked under some other name (usually "gmake"), in which
3909
# case it prints its new name instead of `make'.
3910
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3915
# Now try BSD make style include.
3916
if test "$am__include" = "#"; then
3917
echo '.include "confinc"' > confmf
3918
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3919
am__include=.include
3926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3927
$as_echo "$_am_result" >&6; }
3928
rm -f confinc confmf
3930
# Check whether --enable-dependency-tracking was given.
3931
if test "${enable_dependency_tracking+set}" = set; then :
3932
enableval=$enable_dependency_tracking;
3935
if test "x$enable_dependency_tracking" != xno; then
3936
am_depcomp="$ac_aux_dir/depcomp"
3939
if test "x$enable_dependency_tracking" != xno; then
3948
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3949
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3950
# is not polluted with repeated "-I."
3951
am__isrc=' -I$(srcdir)'
3952
# test to see if srcdir already configured
3953
if test -f $srcdir/config.status; then
3954
as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3958
# test whether we have cygpath
3959
if test -z "$CYGPATH_W"; then
3960
if (cygpath --version) >/dev/null 2>/dev/null; then
3961
CYGPATH_W='cygpath -w'
3968
# Define the identity of the package.
3973
cat >>confdefs.h <<_ACEOF
3974
#define PACKAGE "$PACKAGE"
3978
cat >>confdefs.h <<_ACEOF
3979
#define VERSION "$VERSION"
3982
# Some tools Automake needs.
3984
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3987
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3990
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3993
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3996
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3998
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
4000
# Installed binaries are usually stripped using `strip' when the user
4001
# run `make install-strip'. However `strip' might not be the right
4002
# tool to use in cross-compilation environments, therefore Automake
4003
# will honor the `STRIP' environment variable to overrule this program.
4004
if test "$cross_compiling" != no; then
4005
if test -n "$ac_tool_prefix"; then
4006
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4007
set dummy ${ac_tool_prefix}strip; ac_word=$2
4008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009
$as_echo_n "checking for $ac_word... " >&6; }
4010
if test "${ac_cv_prog_STRIP+set}" = set; then :
4011
$as_echo_n "(cached) " >&6
4013
if test -n "$STRIP"; then
4014
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4016
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020
test -z "$as_dir" && as_dir=.
4021
for ac_exec_ext in '' $ac_executable_extensions; do
4022
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4023
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4024
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4033
STRIP=$ac_cv_prog_STRIP
4034
if test -n "$STRIP"; then
4035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4036
$as_echo "$STRIP" >&6; }
4038
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039
$as_echo "no" >&6; }
4044
if test -z "$ac_cv_prog_STRIP"; then
4046
# Extract the first word of "strip", so it can be a program name with args.
4047
set dummy strip; ac_word=$2
4048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049
$as_echo_n "checking for $ac_word... " >&6; }
4050
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4051
$as_echo_n "(cached) " >&6
4053
if test -n "$ac_ct_STRIP"; then
4054
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4056
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060
test -z "$as_dir" && as_dir=.
4061
for ac_exec_ext in '' $ac_executable_extensions; do
4062
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4063
ac_cv_prog_ac_ct_STRIP="strip"
4064
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4073
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4074
if test -n "$ac_ct_STRIP"; then
4075
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4076
$as_echo "$ac_ct_STRIP" >&6; }
4078
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079
$as_echo "no" >&6; }
4082
if test "x$ac_ct_STRIP" = x; then
4085
case $cross_compiling:$ac_tool_warned in
4087
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4088
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4089
ac_tool_warned=yes ;;
4094
STRIP="$ac_cv_prog_STRIP"
4098
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4100
# We need awk for the "check" target. The system "awk" is bad on
4102
# Always define AMTAR for backward compatibility.
4104
AMTAR=${AMTAR-"${am_missing_run}tar"}
4106
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4111
depcc="$CC" am_compiler_list=
4113
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4114
$as_echo_n "checking dependency style of $depcc... " >&6; }
4115
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4116
$as_echo_n "(cached) " >&6
4118
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4119
# We make a subdir and do the tests there. Otherwise we can end up
4120
# making bogus files that we don't know about and never remove. For
4121
# instance it was reported that on HP-UX the gcc test will end up
4122
# making a dummy file named `D' -- because `-MD' means `put the output
4125
# Copy depcomp to subdir because otherwise we won't find it if we're
4126
# using a relative directory.
4127
cp "$am_depcomp" conftest.dir
4129
# We will build objects and dependencies in a subdirectory because
4130
# it helps to detect inapplicable dependency modes. For instance
4131
# both Tru64's cc and ICC support -MD to output dependencies as a
4132
# side effect of compilation, but ICC will put the dependencies in
4133
# the current directory while Tru64 will put them in the object
4137
am_cv_CC_dependencies_compiler_type=none
4138
if test "$am_compiler_list" = ""; then
4139
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4141
for depmode in $am_compiler_list; do
4142
# Setup a source with many dependencies, because some compilers
4143
# like to wrap large dependency lists on column 80 (with \), and
4144
# we should not choose a depcomp mode which is confused by this.
4146
# We need to recreate these files for each test, as the compiler may
4147
# overwrite some of them when testing with obscure command lines.
4148
# This happens at least with the AIX C compiler.
4150
for i in 1 2 3 4 5 6; do
4151
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4152
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4153
# Solaris 8's {/usr,}/bin/sh.
4154
touch sub/conftst$i.h
4156
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4160
# after this tag, mechanisms are not by side-effect, so they'll
4161
# only be used when explicitly requested
4162
if test "x$enable_dependency_tracking" = xyes; then
4170
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4171
# mode. It turns out that the SunPro C++ compiler does not properly
4172
# handle `-M -o', and we need to detect this.
4173
if depmode=$depmode \
4174
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4175
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4176
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4177
>/dev/null 2>conftest.err &&
4178
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4179
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4180
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4181
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4182
# icc doesn't choke on unknown options, it will just issue warnings
4183
# or remarks (even with -Werror). So we grep stderr for any message
4184
# that says an option was ignored or not supported.
4185
# When given -MP, icc 7.0 and 7.1 complain thusly:
4186
# icc: Command line warning: ignoring option '-M'; no argument required
4187
# The diagnosis changed in icc 8.0:
4188
# icc: Command line remark: option '-MP' not supported
4189
if (grep 'ignoring option' conftest.err ||
4190
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4191
am_cv_CC_dependencies_compiler_type=$depmode
4200
am_cv_CC_dependencies_compiler_type=none
4204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4205
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4206
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4209
test "x$enable_dependency_tracking" != xno \
4210
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4212
am__fastdepCC_FALSE='#'
4214
am__fastdepCC_TRUE='#'
4215
am__fastdepCC_FALSE=
4221
ac_config_headers="$ac_config_headers libdrm/config.h"
4224
# Check whether --enable-static was given.
4225
if test "${enable_static+set}" = set; then :
4226
enableval=$enable_static; p=${PACKAGE-default}
4228
yes) enable_static=yes ;;
4229
no) enable_static=no ;;
4232
# Look at the argument we got. We use all the common list separators.
4233
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4234
for pkg in $enableval; do
4236
if test "X$pkg" = "X$p"; then
4257
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4258
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4263
macro_version='2.2.6'
4264
macro_revision='1.3012'
4278
ltmain="$ac_aux_dir/ltmain.sh"
4280
# Make sure we can run config.sub.
4281
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4282
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4284
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4285
$as_echo_n "checking build system type... " >&6; }
4286
if test "${ac_cv_build+set}" = set; then :
4287
$as_echo_n "(cached) " >&6
4289
ac_build_alias=$build_alias
4290
test "x$ac_build_alias" = x &&
4291
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4292
test "x$ac_build_alias" = x &&
4293
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4294
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4295
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4299
$as_echo "$ac_cv_build" >&6; }
4300
case $ac_cv_build in
4302
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4305
ac_save_IFS=$IFS; IFS='-'
4311
# Remember, the first character of IFS is used to create $*,
4312
# except with old shells:
4315
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4318
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4319
$as_echo_n "checking host system type... " >&6; }
4320
if test "${ac_cv_host+set}" = set; then :
4321
$as_echo_n "(cached) " >&6
4323
if test "x$host_alias" = x; then
4324
ac_cv_host=$ac_cv_build
4326
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4327
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4331
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4332
$as_echo "$ac_cv_host" >&6; }
4335
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4338
ac_save_IFS=$IFS; IFS='-'
4344
# Remember, the first character of IFS is used to create $*,
4345
# except with old shells:
4348
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4352
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4353
if test "${ac_cv_path_SED+set}" = set; then :
4354
$as_echo_n "(cached) " >&6
4356
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4357
for ac_i in 1 2 3 4 5 6 7; do
4358
ac_script="$ac_script$as_nl$ac_script"
4360
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4361
{ ac_script=; unset ac_script;}
4362
if test -z "$SED"; then
4363
ac_path_SED_found=false
4364
# Loop through the user's path and test for each of PROGNAME-LIST
4365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369
test -z "$as_dir" && as_dir=.
4370
for ac_prog in sed gsed; do
4371
for ac_exec_ext in '' $ac_executable_extensions; do
4372
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4373
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4374
# Check for GNU ac_path_SED and select it if it is found.
4375
# Check for GNU $ac_path_SED
4376
case `"$ac_path_SED" --version 2>&1` in
4378
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4381
$as_echo_n 0123456789 >"conftest.in"
4384
cat "conftest.in" "conftest.in" >"conftest.tmp"
4385
mv "conftest.tmp" "conftest.in"
4386
cp "conftest.in" "conftest.nl"
4387
$as_echo '' >> "conftest.nl"
4388
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4389
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4390
as_fn_arith $ac_count + 1 && ac_count=$as_val
4391
if test $ac_count -gt ${ac_path_SED_max-0}; then
4392
# Best one so far, save it but keep looking for a better one
4393
ac_cv_path_SED="$ac_path_SED"
4394
ac_path_SED_max=$ac_count
4396
# 10*(2^10) chars as input seems more than enough
4397
test $ac_count -gt 10 && break
4399
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4402
$ac_path_SED_found && break 3
4407
if test -z "$ac_cv_path_SED"; then
4408
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4415
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4416
$as_echo "$ac_cv_path_SED" >&6; }
4417
SED="$ac_cv_path_SED"
4420
test -z "$SED" && SED=sed
4421
Xsed="$SED -e 1s/^X//"
4433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4434
$as_echo_n "checking for fgrep... " >&6; }
4435
if test "${ac_cv_path_FGREP+set}" = set; then :
4436
$as_echo_n "(cached) " >&6
4438
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4439
then ac_cv_path_FGREP="$GREP -F"
4441
if test -z "$FGREP"; then
4442
ac_path_FGREP_found=false
4443
# Loop through the user's path and test for each of PROGNAME-LIST
4444
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4448
test -z "$as_dir" && as_dir=.
4449
for ac_prog in fgrep; do
4450
for ac_exec_ext in '' $ac_executable_extensions; do
4451
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4452
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4453
# Check for GNU ac_path_FGREP and select it if it is found.
4454
# Check for GNU $ac_path_FGREP
4455
case `"$ac_path_FGREP" --version 2>&1` in
4457
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4460
$as_echo_n 0123456789 >"conftest.in"
4463
cat "conftest.in" "conftest.in" >"conftest.tmp"
4464
mv "conftest.tmp" "conftest.in"
4465
cp "conftest.in" "conftest.nl"
4466
$as_echo 'FGREP' >> "conftest.nl"
4467
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4468
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4469
as_fn_arith $ac_count + 1 && ac_count=$as_val
4470
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4471
# Best one so far, save it but keep looking for a better one
4472
ac_cv_path_FGREP="$ac_path_FGREP"
4473
ac_path_FGREP_max=$ac_count
4475
# 10*(2^10) chars as input seems more than enough
4476
test $ac_count -gt 10 && break
4478
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4481
$ac_path_FGREP_found && break 3
4486
if test -z "$ac_cv_path_FGREP"; then
4487
as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4490
ac_cv_path_FGREP=$FGREP
4495
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4496
$as_echo "$ac_cv_path_FGREP" >&6; }
4497
FGREP="$ac_cv_path_FGREP"
4500
test -z "$GREP" && GREP=grep
4520
# Check whether --with-gnu-ld was given.
4521
if test "${with_gnu_ld+set}" = set; then :
4522
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4528
if test "$GCC" = yes; then
4529
# Check if gcc -print-prog-name=ld gives a path.
4530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4531
$as_echo_n "checking for ld used by $CC... " >&6; }
4534
# gcc leaves a trailing carriage return which upsets mingw
4535
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4537
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4540
# Accept absolute paths.
4542
re_direlt='/[^/][^/]*/\.\./'
4543
# Canonicalize the pathname of ld
4544
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4545
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4546
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4548
test -z "$LD" && LD="$ac_prog"
4551
# If it fails, then pretend we aren't using GCC.
4555
# If it is relative, then search for the first ld in PATH.
4559
elif test "$with_gnu_ld" = yes; then
4560
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4561
$as_echo_n "checking for GNU ld... " >&6; }
4563
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4564
$as_echo_n "checking for non-GNU ld... " >&6; }
4566
if test "${lt_cv_path_LD+set}" = set; then :
4567
$as_echo_n "(cached) " >&6
4569
if test -z "$LD"; then
4570
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4571
for ac_dir in $PATH; do
4573
test -z "$ac_dir" && ac_dir=.
4574
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4575
lt_cv_path_LD="$ac_dir/$ac_prog"
4576
# Check to see if the program is GNU ld. I'd rather use --version,
4577
# but apparently some variants of GNU ld only accept -v.
4578
# Break only if it was the GNU/non-GNU ld that we prefer.
4579
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4580
*GNU* | *'with BFD'*)
4581
test "$with_gnu_ld" != no && break
4584
test "$with_gnu_ld" != yes && break
4591
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4596
if test -n "$LD"; then
4597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4598
$as_echo "$LD" >&6; }
4600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601
$as_echo "no" >&6; }
4603
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4604
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4605
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4606
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4607
$as_echo_n "(cached) " >&6
4609
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4610
case `$LD -v 2>&1 </dev/null` in
4611
*GNU* | *'with BFD'*)
4612
lt_cv_prog_gnu_ld=yes
4615
lt_cv_prog_gnu_ld=no
4619
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4620
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4621
with_gnu_ld=$lt_cv_prog_gnu_ld
4631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4632
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4633
if test "${lt_cv_path_NM+set}" = set; then :
4634
$as_echo_n "(cached) " >&6
4636
if test -n "$NM"; then
4637
# Let the user override the test.
4640
lt_nm_to_check="${ac_tool_prefix}nm"
4641
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4642
lt_nm_to_check="$lt_nm_to_check nm"
4644
for lt_tmp_nm in $lt_nm_to_check; do
4645
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4646
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4648
test -z "$ac_dir" && ac_dir=.
4649
tmp_nm="$ac_dir/$lt_tmp_nm"
4650
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4651
# Check to see if the nm accepts a BSD-compat flag.
4652
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4653
# nm: unknown option "B" ignored
4654
# Tru64's nm complains that /dev/null is an invalid object file
4655
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4656
*/dev/null* | *'Invalid file or object type'*)
4657
lt_cv_path_NM="$tmp_nm -B"
4661
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4663
lt_cv_path_NM="$tmp_nm -p"
4667
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4668
continue # so that we can try to find one that supports BSD flags
4677
: ${lt_cv_path_NM=no}
4680
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4681
$as_echo "$lt_cv_path_NM" >&6; }
4682
if test "$lt_cv_path_NM" != "no"; then
4685
# Didn't find any BSD compatible name lister, look for dumpbin.
4686
if test -n "$ac_tool_prefix"; then
4687
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4689
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4690
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4691
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692
$as_echo_n "checking for $ac_word... " >&6; }
4693
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4694
$as_echo_n "(cached) " >&6
4696
if test -n "$DUMPBIN"; then
4697
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4699
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703
test -z "$as_dir" && as_dir=.
4704
for ac_exec_ext in '' $ac_executable_extensions; do
4705
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4706
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4707
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716
DUMPBIN=$ac_cv_prog_DUMPBIN
4717
if test -n "$DUMPBIN"; then
4718
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4719
$as_echo "$DUMPBIN" >&6; }
4721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722
$as_echo "no" >&6; }
4726
test -n "$DUMPBIN" && break
4729
if test -z "$DUMPBIN"; then
4730
ac_ct_DUMPBIN=$DUMPBIN
4731
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4733
# Extract the first word of "$ac_prog", so it can be a program name with args.
4734
set dummy $ac_prog; ac_word=$2
4735
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736
$as_echo_n "checking for $ac_word... " >&6; }
4737
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4738
$as_echo_n "(cached) " >&6
4740
if test -n "$ac_ct_DUMPBIN"; then
4741
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4743
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747
test -z "$as_dir" && as_dir=.
4748
for ac_exec_ext in '' $ac_executable_extensions; do
4749
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4751
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4761
if test -n "$ac_ct_DUMPBIN"; then
4762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4763
$as_echo "$ac_ct_DUMPBIN" >&6; }
4765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766
$as_echo "no" >&6; }
4770
test -n "$ac_ct_DUMPBIN" && break
4773
if test "x$ac_ct_DUMPBIN" = x; then
4776
case $cross_compiling:$ac_tool_warned in
4778
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4779
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4780
ac_tool_warned=yes ;;
4782
DUMPBIN=$ac_ct_DUMPBIN
4787
if test "$DUMPBIN" != ":"; then
4791
test -z "$NM" && NM=nm
4798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4799
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4800
if test "${lt_cv_nm_interface+set}" = set; then :
4801
$as_echo_n "(cached) " >&6
4803
lt_cv_nm_interface="BSD nm"
4804
echo "int some_variable = 0;" > conftest.$ac_ext
4805
(eval echo "\"\$as_me:4805: $ac_compile\"" >&5)
4806
(eval "$ac_compile" 2>conftest.err)
4807
cat conftest.err >&5
4808
(eval echo "\"\$as_me:4808: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4809
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4810
cat conftest.err >&5
4811
(eval echo "\"\$as_me:4811: output\"" >&5)
4812
cat conftest.out >&5
4813
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4814
lt_cv_nm_interface="MS dumpbin"
4818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4819
$as_echo "$lt_cv_nm_interface" >&6; }
4821
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4822
$as_echo_n "checking whether ln -s works... " >&6; }
4824
if test "$LN_S" = "ln -s"; then
4825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4826
$as_echo "yes" >&6; }
4828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4829
$as_echo "no, using $LN_S" >&6; }
4832
# find the maximum length of command line arguments
4833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4834
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4835
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4836
$as_echo_n "(cached) " >&6
4843
# On DJGPP, this test can blow up pretty badly due to problems in libc
4844
# (any single argument exceeding 2000 bytes causes a buffer overrun
4845
# during glob expansion). Even if it were fixed, the result of this
4846
# check would be larger than it should be.
4847
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4851
# Under GNU Hurd, this test is not required because there is
4852
# no limit to the length of command line arguments.
4853
# Libtool will interpret -1 as no limit whatsoever
4854
lt_cv_sys_max_cmd_len=-1;
4857
cygwin* | mingw* | cegcc*)
4858
# On Win9x/ME, this test blows up -- it succeeds, but takes
4859
# about 5 minutes as the teststring grows exponentially.
4860
# Worse, since 9x/ME are not pre-emptively multitasking,
4861
# you end up with a "frozen" computer, even though with patience
4862
# the test eventually succeeds (with a max line length of 256k).
4863
# Instead, let's just punt: use the minimum linelength reported by
4864
# all of the supported platforms: 8192 (on NT/2K/XP).
4865
lt_cv_sys_max_cmd_len=8192;
4869
# On AmigaOS with pdksh, this test takes hours, literally.
4870
# So we just punt and use a minimum line length of 8192.
4871
lt_cv_sys_max_cmd_len=8192;
4874
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4875
# This has been around since 386BSD, at least. Likely further.
4876
if test -x /sbin/sysctl; then
4877
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4878
elif test -x /usr/sbin/sysctl; then
4879
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4881
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4883
# And add a safety zone
4884
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4885
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4889
# We know the value 262144 and hardcode it with a safety zone (like BSD)
4890
lt_cv_sys_max_cmd_len=196608
4894
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4895
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4896
# nice to cause kernel panics so lets avoid the loop below.
4897
# First set a reasonable default.
4898
lt_cv_sys_max_cmd_len=16384
4900
if test -x /sbin/sysconfig; then
4901
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4902
*1*) lt_cv_sys_max_cmd_len=-1 ;;
4907
lt_cv_sys_max_cmd_len=102400
4909
sysv5* | sco5v6* | sysv4.2uw2*)
4910
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4911
if test -n "$kargmax"; then
4912
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4914
lt_cv_sys_max_cmd_len=32768
4918
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4919
if test -n "$lt_cv_sys_max_cmd_len"; then
4920
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4921
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4923
# Make teststring a little bigger before we do anything with it.
4924
# a 1K string should be a reasonable start.
4925
for i in 1 2 3 4 5 6 7 8 ; do
4926
teststring=$teststring$teststring
4928
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4929
# If test is not a shell built-in, we'll probably end up computing a
4930
# maximum length that is only half of the actual maximum length, but
4932
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4933
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4934
test $i != 17 # 1/2 MB should be enough
4937
teststring=$teststring$teststring
4939
# Only check the string length outside the loop.
4940
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4942
# Add a significant safety factor because C++ compilers can tack on
4943
# massive amounts of additional arguments before passing them to the
4944
# linker. It appears as though 1/2 is a usable value.
4945
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4952
if test -n $lt_cv_sys_max_cmd_len ; then
4953
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4954
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4956
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4957
$as_echo "none" >&6; }
4959
max_cmd_len=$lt_cv_sys_max_cmd_len
4970
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4971
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4972
# Try some XSI features
4975
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4977
&& eval 'test $(( 1 + 1 )) -eq 2 \
4978
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4980
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4981
$as_echo "$xsi_shell" >&6; }
4984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4985
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4987
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4989
&& lt_shell_append=yes
4990
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4991
$as_echo "$lt_shell_append" >&6; }
4994
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5004
# test EBCDIC or ASCII
5005
case `echo X|tr X '\101'` in
5006
A) # ASCII based system
5007
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5008
lt_SP2NL='tr \040 \012'
5009
lt_NL2SP='tr \015\012 \040\040'
5011
*) # EBCDIC based system
5012
lt_SP2NL='tr \100 \n'
5013
lt_NL2SP='tr \r\n \100\100'
5025
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5026
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5027
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5028
$as_echo_n "(cached) " >&6
5030
lt_cv_ld_reload_flag='-r'
5032
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5033
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5034
reload_flag=$lt_cv_ld_reload_flag
5035
case $reload_flag in
5037
*) reload_flag=" $reload_flag" ;;
5039
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5042
if test "$GCC" = yes; then
5043
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5045
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5058
if test -n "$ac_tool_prefix"; then
5059
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5060
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062
$as_echo_n "checking for $ac_word... " >&6; }
5063
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5064
$as_echo_n "(cached) " >&6
5066
if test -n "$OBJDUMP"; then
5067
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5069
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073
test -z "$as_dir" && as_dir=.
5074
for ac_exec_ext in '' $ac_executable_extensions; do
5075
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5077
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086
OBJDUMP=$ac_cv_prog_OBJDUMP
5087
if test -n "$OBJDUMP"; then
5088
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5089
$as_echo "$OBJDUMP" >&6; }
5091
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092
$as_echo "no" >&6; }
5097
if test -z "$ac_cv_prog_OBJDUMP"; then
5098
ac_ct_OBJDUMP=$OBJDUMP
5099
# Extract the first word of "objdump", so it can be a program name with args.
5100
set dummy objdump; ac_word=$2
5101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102
$as_echo_n "checking for $ac_word... " >&6; }
5103
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5104
$as_echo_n "(cached) " >&6
5106
if test -n "$ac_ct_OBJDUMP"; then
5107
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5109
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113
test -z "$as_dir" && as_dir=.
5114
for ac_exec_ext in '' $ac_executable_extensions; do
5115
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5117
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5127
if test -n "$ac_ct_OBJDUMP"; then
5128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5129
$as_echo "$ac_ct_OBJDUMP" >&6; }
5131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132
$as_echo "no" >&6; }
5135
if test "x$ac_ct_OBJDUMP" = x; then
5138
case $cross_compiling:$ac_tool_warned in
5140
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5141
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5142
ac_tool_warned=yes ;;
5144
OBJDUMP=$ac_ct_OBJDUMP
5147
OBJDUMP="$ac_cv_prog_OBJDUMP"
5150
test -z "$OBJDUMP" && OBJDUMP=objdump
5160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5161
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5162
if test "${lt_cv_deplibs_check_method+set}" = set; then :
5163
$as_echo_n "(cached) " >&6
5165
lt_cv_file_magic_cmd='$MAGIC_CMD'
5166
lt_cv_file_magic_test_file=
5167
lt_cv_deplibs_check_method='unknown'
5168
# Need to set the preceding variable on all platforms that support
5169
# interlibrary dependencies.
5170
# 'none' -- dependencies not supported.
5171
# `unknown' -- same as none, but documents that we really don't know.
5172
# 'pass_all' -- all dependencies passed with no checks.
5173
# 'test_compile' -- check by making test program.
5174
# 'file_magic [[regex]]' -- check by looking for files in library path
5175
# which responds to the $file_magic_cmd with a given extended regex.
5176
# If you have `file' or equivalent on your system and you're not sure
5177
# whether `pass_all' will *always* work, you probably want this one.
5181
lt_cv_deplibs_check_method=pass_all
5185
lt_cv_deplibs_check_method=pass_all
5189
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5190
lt_cv_file_magic_cmd='/usr/bin/file -L'
5191
lt_cv_file_magic_test_file=/shlib/libc.so
5195
# func_win32_libid is a shell function defined in ltmain.sh
5196
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5197
lt_cv_file_magic_cmd='func_win32_libid'
5201
# Base MSYS/MinGW do not provide the 'file' command needed by
5202
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5203
# unless we find 'file', for example because we are cross-compiling.
5204
if ( file / ) >/dev/null 2>&1; then
5205
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5206
lt_cv_file_magic_cmd='func_win32_libid'
5208
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5209
lt_cv_file_magic_cmd='$OBJDUMP -f'
5214
# use the weaker test based on 'objdump'. See mingw*.
5215
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5216
lt_cv_file_magic_cmd='$OBJDUMP -f'
5219
darwin* | rhapsody*)
5220
lt_cv_deplibs_check_method=pass_all
5223
freebsd* | dragonfly*)
5224
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5227
# Not sure whether the presence of OpenBSD here was a mistake.
5228
# Let's accept both of them until this is cleared up.
5229
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5230
lt_cv_file_magic_cmd=/usr/bin/file
5231
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5235
lt_cv_deplibs_check_method=pass_all
5240
lt_cv_deplibs_check_method=pass_all
5243
hpux10.20* | hpux11*)
5244
lt_cv_file_magic_cmd=/usr/bin/file
5247
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5248
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5251
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5252
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5255
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5256
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5262
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5263
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5266
irix5* | irix6* | nonstopux*)
5268
*-32|*"-32 ") libmagic=32-bit;;
5269
*-n32|*"-n32 ") libmagic=N32;;
5270
*-64|*"-64 ") libmagic=64-bit;;
5271
*) libmagic=never-match;;
5273
lt_cv_deplibs_check_method=pass_all
5276
# This must be Linux ELF.
5277
linux* | k*bsd*-gnu)
5278
lt_cv_deplibs_check_method=pass_all
5281
netbsd* | netbsdelf*-gnu)
5282
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5283
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5285
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5290
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5291
lt_cv_file_magic_cmd=/usr/bin/file
5292
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5296
lt_cv_deplibs_check_method=pass_all
5300
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5301
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5303
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5307
osf3* | osf4* | osf5*)
5308
lt_cv_deplibs_check_method=pass_all
5312
lt_cv_deplibs_check_method=pass_all
5316
lt_cv_deplibs_check_method=pass_all
5319
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5320
lt_cv_deplibs_check_method=pass_all
5324
case $host_vendor in
5326
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]'
5327
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5330
lt_cv_deplibs_check_method=pass_all
5333
lt_cv_file_magic_cmd='/bin/file'
5334
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5337
lt_cv_file_magic_cmd='/bin/file'
5338
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5339
lt_cv_file_magic_test_file=/lib/libc.so
5342
lt_cv_deplibs_check_method=pass_all
5345
lt_cv_deplibs_check_method=pass_all
5351
lt_cv_deplibs_check_method=pass_all
5356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5357
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5358
file_magic_cmd=$lt_cv_file_magic_cmd
5359
deplibs_check_method=$lt_cv_deplibs_check_method
5360
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5373
if test -n "$ac_tool_prefix"; then
5374
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5375
set dummy ${ac_tool_prefix}ar; ac_word=$2
5376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377
$as_echo_n "checking for $ac_word... " >&6; }
5378
if test "${ac_cv_prog_AR+set}" = set; then :
5379
$as_echo_n "(cached) " >&6
5381
if test -n "$AR"; then
5382
ac_cv_prog_AR="$AR" # Let the user override the test.
5384
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388
test -z "$as_dir" && as_dir=.
5389
for ac_exec_ext in '' $ac_executable_extensions; do
5390
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391
ac_cv_prog_AR="${ac_tool_prefix}ar"
5392
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402
if test -n "$AR"; then
5403
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5404
$as_echo "$AR" >&6; }
5406
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407
$as_echo "no" >&6; }
5412
if test -z "$ac_cv_prog_AR"; then
5414
# Extract the first word of "ar", so it can be a program name with args.
5415
set dummy ar; ac_word=$2
5416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5417
$as_echo_n "checking for $ac_word... " >&6; }
5418
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5419
$as_echo_n "(cached) " >&6
5421
if test -n "$ac_ct_AR"; then
5422
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5424
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428
test -z "$as_dir" && as_dir=.
5429
for ac_exec_ext in '' $ac_executable_extensions; do
5430
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5431
ac_cv_prog_ac_ct_AR="ar"
5432
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5442
if test -n "$ac_ct_AR"; then
5443
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5444
$as_echo "$ac_ct_AR" >&6; }
5446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447
$as_echo "no" >&6; }
5450
if test "x$ac_ct_AR" = x; then
5453
case $cross_compiling:$ac_tool_warned in
5455
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5456
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5457
ac_tool_warned=yes ;;
5465
test -z "$AR" && AR=ar
5466
test -z "$AR_FLAGS" && AR_FLAGS=cru
5478
if test -n "$ac_tool_prefix"; then
5479
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5480
set dummy ${ac_tool_prefix}strip; ac_word=$2
5481
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482
$as_echo_n "checking for $ac_word... " >&6; }
5483
if test "${ac_cv_prog_STRIP+set}" = set; then :
5484
$as_echo_n "(cached) " >&6
5486
if test -n "$STRIP"; then
5487
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5489
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493
test -z "$as_dir" && as_dir=.
5494
for ac_exec_ext in '' $ac_executable_extensions; do
5495
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5496
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5497
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506
STRIP=$ac_cv_prog_STRIP
5507
if test -n "$STRIP"; then
5508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5509
$as_echo "$STRIP" >&6; }
5511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512
$as_echo "no" >&6; }
5517
if test -z "$ac_cv_prog_STRIP"; then
5519
# Extract the first word of "strip", so it can be a program name with args.
5520
set dummy strip; ac_word=$2
5521
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522
$as_echo_n "checking for $ac_word... " >&6; }
5523
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5524
$as_echo_n "(cached) " >&6
5526
if test -n "$ac_ct_STRIP"; then
5527
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5529
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533
test -z "$as_dir" && as_dir=.
5534
for ac_exec_ext in '' $ac_executable_extensions; do
5535
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536
ac_cv_prog_ac_ct_STRIP="strip"
5537
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5547
if test -n "$ac_ct_STRIP"; then
5548
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5549
$as_echo "$ac_ct_STRIP" >&6; }
5551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552
$as_echo "no" >&6; }
5555
if test "x$ac_ct_STRIP" = x; then
5558
case $cross_compiling:$ac_tool_warned in
5560
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5561
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5562
ac_tool_warned=yes ;;
5567
STRIP="$ac_cv_prog_STRIP"
5570
test -z "$STRIP" && STRIP=:
5577
if test -n "$ac_tool_prefix"; then
5578
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5579
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5580
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581
$as_echo_n "checking for $ac_word... " >&6; }
5582
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5583
$as_echo_n "(cached) " >&6
5585
if test -n "$RANLIB"; then
5586
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5588
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592
test -z "$as_dir" && as_dir=.
5593
for ac_exec_ext in '' $ac_executable_extensions; do
5594
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5595
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5596
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605
RANLIB=$ac_cv_prog_RANLIB
5606
if test -n "$RANLIB"; then
5607
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5608
$as_echo "$RANLIB" >&6; }
5610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611
$as_echo "no" >&6; }
5616
if test -z "$ac_cv_prog_RANLIB"; then
5617
ac_ct_RANLIB=$RANLIB
5618
# Extract the first word of "ranlib", so it can be a program name with args.
5619
set dummy ranlib; ac_word=$2
5620
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621
$as_echo_n "checking for $ac_word... " >&6; }
5622
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5623
$as_echo_n "(cached) " >&6
5625
if test -n "$ac_ct_RANLIB"; then
5626
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5628
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632
test -z "$as_dir" && as_dir=.
5633
for ac_exec_ext in '' $ac_executable_extensions; do
5634
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5635
ac_cv_prog_ac_ct_RANLIB="ranlib"
5636
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5645
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5646
if test -n "$ac_ct_RANLIB"; then
5647
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5648
$as_echo "$ac_ct_RANLIB" >&6; }
5650
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651
$as_echo "no" >&6; }
5654
if test "x$ac_ct_RANLIB" = x; then
5657
case $cross_compiling:$ac_tool_warned in
5659
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5660
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5661
ac_tool_warned=yes ;;
5663
RANLIB=$ac_ct_RANLIB
5666
RANLIB="$ac_cv_prog_RANLIB"
5669
test -z "$RANLIB" && RANLIB=:
5676
# Determine commands to create old-style static archives.
5677
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5678
old_postinstall_cmds='chmod 644 $oldlib'
5679
old_postuninstall_cmds=
5681
if test -n "$RANLIB"; then
5684
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5687
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5690
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5726
# If no C compiler was specified, use CC.
5729
# If no C compiler flags were specified, use CFLAGS.
5730
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5732
# Allow CC to be a program name with arguments.
5736
# Check for command to grab the raw symbol name followed by C symbol from nm.
5737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5738
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5739
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5740
$as_echo_n "(cached) " >&6
5743
# These are sane defaults that work on at least a few old systems.
5744
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5746
# Character class describing NM global symbol codes.
5747
symcode='[BCDEGRST]'
5749
# Regexp to match symbols that can be accessed directly from C.
5750
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5752
# Define system-specific variables.
5757
cygwin* | mingw* | pw32* | cegcc*)
5758
symcode='[ABCDGISTW]'
5761
if test "$host_cpu" = ia64; then
5762
symcode='[ABCDEGRST]'
5766
symcode='[BCDEGRST]'
5769
symcode='[BCDEGQRST]'
5780
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5788
# If we're using GNU nm, then use its standard symbol codes.
5789
case `$NM -V 2>&1` in
5790
*GNU* | *'with BFD'*)
5791
symcode='[ABCDGIRSTW]' ;;
5794
# Transform an extracted symbol line into a proper C declaration.
5795
# Some systems (esp. on ia64) link data and code symbols differently,
5796
# so use this general approach.
5797
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5799
# Transform an extracted symbol line into symbol name and symbol address
5800
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5801
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'"
5803
# Handle CRLF in mingw tool chain
5807
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5811
# Try without a prefix underscore, then with it.
5812
for ac_symprfx in "" "_"; do
5814
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5815
symxfrm="\\1 $ac_symprfx\\2 \\2"
5817
# Write the raw and C identifiers.
5818
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5819
# Fake it for dumpbin and say T for any non-static function
5820
# and D for any global variable.
5821
# Also find C++ and __fastcall symbols from MSVC++,
5822
# which start with @ or ?.
5823
lt_cv_sys_global_symbol_pipe="$AWK '"\
5824
" {last_section=section; section=\$ 3};"\
5825
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5826
" \$ 0!~/External *\|/{next};"\
5827
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5828
" {if(hide[section]) next};"\
5829
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5830
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5831
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5832
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5833
" ' prfx=^$ac_symprfx"
5835
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5838
# Check to see that the pipe works correctly.
5842
cat > conftest.$ac_ext <<_LT_EOF
5847
void nm_test_func(void);
5848
void nm_test_func(void){}
5852
int main(){nm_test_var='a';nm_test_func();return(0);}
5855
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5856
(eval $ac_compile) 2>&5
5858
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5859
test $ac_status = 0; }; then
5860
# Now try to grab the symbols.
5862
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5863
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5865
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5866
test $ac_status = 0; } && test -s "$nlist"; then
5867
# Try sorting and uniquifying the output.
5868
if sort "$nlist" | uniq > "$nlist"T; then
5869
mv -f "$nlist"T "$nlist"
5874
# Make sure that we snagged all the symbols we need.
5875
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5876
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5877
cat <<_LT_EOF > conftest.$ac_ext
5883
# Now generate the symbol file.
5884
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5886
cat <<_LT_EOF >> conftest.$ac_ext
5888
/* The mapping between symbol names and symbols. */
5893
lt__PROGRAM__LTX_preloaded_symbols[] =
5895
{ "@PROGRAM@", (void *) 0 },
5897
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5898
cat <<\_LT_EOF >> conftest.$ac_ext
5902
/* This works around a problem in FreeBSD linker */
5903
#ifdef FREEBSD_WORKAROUND
5904
static const void *lt_preloaded_setup() {
5905
return lt__PROGRAM__LTX_preloaded_symbols;
5913
# Now try linking the two files.
5914
mv conftest.$ac_objext conftstm.$ac_objext
5915
lt_save_LIBS="$LIBS"
5916
lt_save_CFLAGS="$CFLAGS"
5917
LIBS="conftstm.$ac_objext"
5918
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5919
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5920
(eval $ac_link) 2>&5
5922
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5923
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5926
LIBS="$lt_save_LIBS"
5927
CFLAGS="$lt_save_CFLAGS"
5929
echo "cannot find nm_test_func in $nlist" >&5
5932
echo "cannot find nm_test_var in $nlist" >&5
5935
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5938
echo "$progname: failed program was:" >&5
5939
cat conftest.$ac_ext >&5
5941
rm -rf conftest* conftst*
5943
# Do not use the global_symbol_pipe unless it works.
5944
if test "$pipe_works" = yes; then
5947
lt_cv_sys_global_symbol_pipe=
5953
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5954
lt_cv_sys_global_symbol_to_cdecl=
5956
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5957
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5958
$as_echo "failed" >&6; }
5960
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5961
$as_echo "ok" >&6; }
5985
# Check whether --enable-libtool-lock was given.
5986
if test "${enable_libtool_lock+set}" = set; then :
5987
enableval=$enable_libtool_lock;
5990
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5992
# Some flags need to be propagated to the compiler or linker for good
5996
# Find out which ABI we are using.
5997
echo 'int i;' > conftest.$ac_ext
5998
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5999
(eval $ac_compile) 2>&5
6001
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6002
test $ac_status = 0; }; then
6003
case `/usr/bin/file conftest.$ac_objext` in
6015
# Find out which ABI we are using.
6016
echo '#line 6016 "configure"' > conftest.$ac_ext
6017
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6018
(eval $ac_compile) 2>&5
6020
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6021
test $ac_status = 0; }; then
6022
if test "$lt_cv_prog_gnu_ld" = yes; then
6023
case `/usr/bin/file conftest.$ac_objext` in
6025
LD="${LD-ld} -melf32bsmip"
6028
LD="${LD-ld} -melf32bmipn32"
6031
LD="${LD-ld} -melf64bmip"
6035
case `/usr/bin/file conftest.$ac_objext` in
6051
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6052
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6053
# Find out which ABI we are using.
6054
echo 'int i;' > conftest.$ac_ext
6055
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6056
(eval $ac_compile) 2>&5
6058
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6059
test $ac_status = 0; }; then
6060
case `/usr/bin/file conftest.o` in
6063
x86_64-*kfreebsd*-gnu)
6064
LD="${LD-ld} -m elf_i386_fbsd"
6067
LD="${LD-ld} -m elf_i386"
6069
ppc64-*linux*|powerpc64-*linux*)
6070
LD="${LD-ld} -m elf32ppclinux"
6073
LD="${LD-ld} -m elf_s390"
6076
LD="${LD-ld} -m elf32_sparc"
6082
x86_64-*kfreebsd*-gnu)
6083
LD="${LD-ld} -m elf_x86_64_fbsd"
6086
LD="${LD-ld} -m elf_x86_64"
6088
ppc*-*linux*|powerpc*-*linux*)
6089
LD="${LD-ld} -m elf64ppc"
6091
s390*-*linux*|s390*-*tpf*)
6092
LD="${LD-ld} -m elf64_s390"
6095
LD="${LD-ld} -m elf64_sparc"
6105
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6106
SAVE_CFLAGS="$CFLAGS"
6107
CFLAGS="$CFLAGS -belf"
6108
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6109
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6110
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6111
$as_echo_n "(cached) " >&6
6114
ac_cpp='$CPP $CPPFLAGS'
6115
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6116
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6117
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6119
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120
/* end confdefs.h. */
6130
if ac_fn_c_try_link "$LINENO"; then :
6131
lt_cv_cc_needs_belf=yes
6133
lt_cv_cc_needs_belf=no
6135
rm -f core conftest.err conftest.$ac_objext \
6136
conftest$ac_exeext conftest.$ac_ext
6138
ac_cpp='$CPP $CPPFLAGS'
6139
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6145
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6146
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6147
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6148
CFLAGS="$SAVE_CFLAGS"
6152
# Find out which ABI we are using.
6153
echo 'int i;' > conftest.$ac_ext
6154
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6155
(eval $ac_compile) 2>&5
6157
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6158
test $ac_status = 0; }; then
6159
case `/usr/bin/file conftest.o` in
6161
case $lt_cv_prog_gnu_ld in
6162
yes*) LD="${LD-ld} -m elf64_sparc" ;;
6164
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6176
need_locks="$enable_libtool_lock"
6180
rhapsody* | darwin*)
6181
if test -n "$ac_tool_prefix"; then
6182
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6183
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6184
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185
$as_echo_n "checking for $ac_word... " >&6; }
6186
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6187
$as_echo_n "(cached) " >&6
6189
if test -n "$DSYMUTIL"; then
6190
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6192
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196
test -z "$as_dir" && as_dir=.
6197
for ac_exec_ext in '' $ac_executable_extensions; do
6198
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6200
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6210
if test -n "$DSYMUTIL"; then
6211
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6212
$as_echo "$DSYMUTIL" >&6; }
6214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215
$as_echo "no" >&6; }
6220
if test -z "$ac_cv_prog_DSYMUTIL"; then
6221
ac_ct_DSYMUTIL=$DSYMUTIL
6222
# Extract the first word of "dsymutil", so it can be a program name with args.
6223
set dummy dsymutil; ac_word=$2
6224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225
$as_echo_n "checking for $ac_word... " >&6; }
6226
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6227
$as_echo_n "(cached) " >&6
6229
if test -n "$ac_ct_DSYMUTIL"; then
6230
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6232
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236
test -z "$as_dir" && as_dir=.
6237
for ac_exec_ext in '' $ac_executable_extensions; do
6238
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6240
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6250
if test -n "$ac_ct_DSYMUTIL"; then
6251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6252
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255
$as_echo "no" >&6; }
6258
if test "x$ac_ct_DSYMUTIL" = x; then
6261
case $cross_compiling:$ac_tool_warned in
6263
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6264
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6265
ac_tool_warned=yes ;;
6267
DSYMUTIL=$ac_ct_DSYMUTIL
6270
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6273
if test -n "$ac_tool_prefix"; then
6274
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6275
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277
$as_echo_n "checking for $ac_word... " >&6; }
6278
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6279
$as_echo_n "(cached) " >&6
6281
if test -n "$NMEDIT"; then
6282
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6284
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288
test -z "$as_dir" && as_dir=.
6289
for ac_exec_ext in '' $ac_executable_extensions; do
6290
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6292
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301
NMEDIT=$ac_cv_prog_NMEDIT
6302
if test -n "$NMEDIT"; then
6303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6304
$as_echo "$NMEDIT" >&6; }
6306
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307
$as_echo "no" >&6; }
6312
if test -z "$ac_cv_prog_NMEDIT"; then
6313
ac_ct_NMEDIT=$NMEDIT
6314
# Extract the first word of "nmedit", so it can be a program name with args.
6315
set dummy nmedit; ac_word=$2
6316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317
$as_echo_n "checking for $ac_word... " >&6; }
6318
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6319
$as_echo_n "(cached) " >&6
6321
if test -n "$ac_ct_NMEDIT"; then
6322
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6324
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328
test -z "$as_dir" && as_dir=.
6329
for ac_exec_ext in '' $ac_executable_extensions; do
6330
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6332
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6342
if test -n "$ac_ct_NMEDIT"; then
6343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6344
$as_echo "$ac_ct_NMEDIT" >&6; }
6346
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347
$as_echo "no" >&6; }
6350
if test "x$ac_ct_NMEDIT" = x; then
6353
case $cross_compiling:$ac_tool_warned in
6355
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357
ac_tool_warned=yes ;;
6359
NMEDIT=$ac_ct_NMEDIT
6362
NMEDIT="$ac_cv_prog_NMEDIT"
6365
if test -n "$ac_tool_prefix"; then
6366
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6367
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369
$as_echo_n "checking for $ac_word... " >&6; }
6370
if test "${ac_cv_prog_LIPO+set}" = set; then :
6371
$as_echo_n "(cached) " >&6
6373
if test -n "$LIPO"; then
6374
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6376
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380
test -z "$as_dir" && as_dir=.
6381
for ac_exec_ext in '' $ac_executable_extensions; do
6382
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6383
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6384
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6393
LIPO=$ac_cv_prog_LIPO
6394
if test -n "$LIPO"; then
6395
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6396
$as_echo "$LIPO" >&6; }
6398
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399
$as_echo "no" >&6; }
6404
if test -z "$ac_cv_prog_LIPO"; then
6406
# Extract the first word of "lipo", so it can be a program name with args.
6407
set dummy lipo; ac_word=$2
6408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409
$as_echo_n "checking for $ac_word... " >&6; }
6410
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6411
$as_echo_n "(cached) " >&6
6413
if test -n "$ac_ct_LIPO"; then
6414
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6416
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420
test -z "$as_dir" && as_dir=.
6421
for ac_exec_ext in '' $ac_executable_extensions; do
6422
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423
ac_cv_prog_ac_ct_LIPO="lipo"
6424
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6434
if test -n "$ac_ct_LIPO"; then
6435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6436
$as_echo "$ac_ct_LIPO" >&6; }
6438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439
$as_echo "no" >&6; }
6442
if test "x$ac_ct_LIPO" = x; then
6445
case $cross_compiling:$ac_tool_warned in
6447
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449
ac_tool_warned=yes ;;
6454
LIPO="$ac_cv_prog_LIPO"
6457
if test -n "$ac_tool_prefix"; then
6458
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6459
set dummy ${ac_tool_prefix}otool; ac_word=$2
6460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461
$as_echo_n "checking for $ac_word... " >&6; }
6462
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6463
$as_echo_n "(cached) " >&6
6465
if test -n "$OTOOL"; then
6466
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6468
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472
test -z "$as_dir" && as_dir=.
6473
for ac_exec_ext in '' $ac_executable_extensions; do
6474
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6475
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6476
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6485
OTOOL=$ac_cv_prog_OTOOL
6486
if test -n "$OTOOL"; then
6487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6488
$as_echo "$OTOOL" >&6; }
6490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491
$as_echo "no" >&6; }
6496
if test -z "$ac_cv_prog_OTOOL"; then
6498
# Extract the first word of "otool", so it can be a program name with args.
6499
set dummy otool; ac_word=$2
6500
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501
$as_echo_n "checking for $ac_word... " >&6; }
6502
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6503
$as_echo_n "(cached) " >&6
6505
if test -n "$ac_ct_OTOOL"; then
6506
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512
test -z "$as_dir" && as_dir=.
6513
for ac_exec_ext in '' $ac_executable_extensions; do
6514
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515
ac_cv_prog_ac_ct_OTOOL="otool"
6516
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6525
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6526
if test -n "$ac_ct_OTOOL"; then
6527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6528
$as_echo "$ac_ct_OTOOL" >&6; }
6530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531
$as_echo "no" >&6; }
6534
if test "x$ac_ct_OTOOL" = x; then
6537
case $cross_compiling:$ac_tool_warned in
6539
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6540
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6541
ac_tool_warned=yes ;;
6546
OTOOL="$ac_cv_prog_OTOOL"
6549
if test -n "$ac_tool_prefix"; then
6550
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6551
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6552
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553
$as_echo_n "checking for $ac_word... " >&6; }
6554
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6555
$as_echo_n "(cached) " >&6
6557
if test -n "$OTOOL64"; then
6558
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6560
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564
test -z "$as_dir" && as_dir=.
6565
for ac_exec_ext in '' $ac_executable_extensions; do
6566
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6567
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6568
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6577
OTOOL64=$ac_cv_prog_OTOOL64
6578
if test -n "$OTOOL64"; then
6579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6580
$as_echo "$OTOOL64" >&6; }
6582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583
$as_echo "no" >&6; }
6588
if test -z "$ac_cv_prog_OTOOL64"; then
6589
ac_ct_OTOOL64=$OTOOL64
6590
# Extract the first word of "otool64", so it can be a program name with args.
6591
set dummy otool64; ac_word=$2
6592
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593
$as_echo_n "checking for $ac_word... " >&6; }
6594
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6595
$as_echo_n "(cached) " >&6
6597
if test -n "$ac_ct_OTOOL64"; then
6598
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6600
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604
test -z "$as_dir" && as_dir=.
6605
for ac_exec_ext in '' $ac_executable_extensions; do
6606
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6607
ac_cv_prog_ac_ct_OTOOL64="otool64"
6608
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6617
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6618
if test -n "$ac_ct_OTOOL64"; then
6619
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6620
$as_echo "$ac_ct_OTOOL64" >&6; }
6622
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623
$as_echo "no" >&6; }
6626
if test "x$ac_ct_OTOOL64" = x; then
6629
case $cross_compiling:$ac_tool_warned in
6631
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6632
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6633
ac_tool_warned=yes ;;
6635
OTOOL64=$ac_ct_OTOOL64
6638
OTOOL64="$ac_cv_prog_OTOOL64"
6667
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6668
$as_echo_n "checking for -single_module linker flag... " >&6; }
6669
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6670
$as_echo_n "(cached) " >&6
6672
lt_cv_apple_cc_single_mod=no
6673
if test -z "${LT_MULTI_MODULE}"; then
6674
# By default we will add the -single_module flag. You can override
6675
# by either setting the environment variable LT_MULTI_MODULE
6676
# non-empty at configure time, or by adding -multi_module to the
6678
rm -rf libconftest.dylib*
6679
echo "int foo(void){return 1;}" > conftest.c
6680
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6681
-dynamiclib -Wl,-single_module conftest.c" >&5
6682
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6683
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6685
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6686
lt_cv_apple_cc_single_mod=yes
6688
cat conftest.err >&5
6690
rm -rf libconftest.dylib*
6694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6695
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6696
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6697
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6698
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6699
$as_echo_n "(cached) " >&6
6701
lt_cv_ld_exported_symbols_list=no
6702
save_LDFLAGS=$LDFLAGS
6703
echo "_main" > conftest.sym
6704
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6705
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706
/* end confdefs.h. */
6716
if ac_fn_c_try_link "$LINENO"; then :
6717
lt_cv_ld_exported_symbols_list=yes
6719
lt_cv_ld_exported_symbols_list=no
6721
rm -f core conftest.err conftest.$ac_objext \
6722
conftest$ac_exeext conftest.$ac_ext
6723
LDFLAGS="$save_LDFLAGS"
6726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6727
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6729
rhapsody* | darwin1.[012])
6730
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6732
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6733
darwin*) # darwin 5.x on
6734
# if running on 10.5 or later, the deployment target defaults
6735
# to the OS version, if on x86, and 10.4, the deployment
6736
# target defaults to 10.4. Don't you love it?
6737
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6738
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6739
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6741
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6743
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6747
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6748
_lt_dar_single_mod='$single_module'
6750
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6751
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6753
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6755
if test "$DSYMUTIL" != ":"; then
6756
_lt_dsymutil='~$DSYMUTIL $lib || :'
6763
for ac_header in dlfcn.h
6765
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6767
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6768
cat >>confdefs.h <<_ACEOF
6769
#define HAVE_DLFCN_H 1
6788
# Check whether --enable-shared was given.
6789
if test "${enable_shared+set}" = set; then :
6790
enableval=$enable_shared; p=${PACKAGE-default}
6792
yes) enable_shared=yes ;;
6793
no) enable_shared=no ;;
6796
# Look at the argument we got. We use all the common list separators.
6797
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6798
for pkg in $enableval; do
6800
if test "X$pkg" = "X$p"; then
6821
# Check whether --with-pic was given.
6822
if test "${with_pic+set}" = set; then :
6823
withval=$with_pic; pic_mode="$withval"
6829
test -z "$pic_mode" && pic_mode=default
6837
# Check whether --enable-fast-install was given.
6838
if test "${enable_fast_install+set}" = set; then :
6839
enableval=$enable_fast_install; p=${PACKAGE-default}
6841
yes) enable_fast_install=yes ;;
6842
no) enable_fast_install=no ;;
6844
enable_fast_install=no
6845
# Look at the argument we got. We use all the common list separators.
6846
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6847
for pkg in $enableval; do
6849
if test "X$pkg" = "X$p"; then
6850
enable_fast_install=yes
6857
enable_fast_install=yes
6870
# This can be used to rebuild libtool when needed
6871
LIBTOOL_DEPS="$ltmain"
6873
# Always use our own libtool.
6874
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6900
test -z "$LN_S" && LN_S="ln -s"
6915
if test -n "${ZSH_VERSION+set}" ; then
6916
setopt NO_GLOB_SUBST
6919
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6920
$as_echo_n "checking for objdir... " >&6; }
6921
if test "${lt_cv_objdir+set}" = set; then :
6922
$as_echo_n "(cached) " >&6
6924
rm -f .libs 2>/dev/null
6925
mkdir .libs 2>/dev/null
6926
if test -d .libs; then
6929
# MS-DOS does not allow filenames that begin with a dot.
6932
rmdir .libs 2>/dev/null
6934
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6935
$as_echo "$lt_cv_objdir" >&6; }
6936
objdir=$lt_cv_objdir
6942
cat >>confdefs.h <<_ACEOF
6943
#define LT_OBJDIR "$lt_cv_objdir/"
6964
# AIX sometimes has problems with the GCC collect2 program. For some
6965
# reason, if we set the COLLECT_NAMES environment variable, the problems
6966
# vanish in a puff of smoke.
6967
if test "X${COLLECT_NAMES+set}" != Xset; then
6969
export COLLECT_NAMES
6974
# Sed substitution that helps us do robust quoting. It backslashifies
6975
# metacharacters that are still active within double-quoted strings.
6976
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6978
# Same as above, but do not quote variable references.
6979
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6981
# Sed substitution to delay expansion of an escaped shell variable in a
6982
# double_quote_subst'ed string.
6983
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6985
# Sed substitution to delay expansion of an escaped single quote.
6986
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6988
# Sed substitution to avoid accidental globbing in evaled expressions
6989
no_glob_subst='s/\*/\\\*/g'
6993
can_build_shared=yes
6995
# All known linkers require a `.a' archive for static linking (except MSVC,
6996
# which needs '.lib').
6999
with_gnu_ld="$lt_cv_prog_gnu_ld"
7002
old_CFLAGS="$CFLAGS"
7004
# Set sane defaults for various variables
7005
test -z "$CC" && CC=cc
7006
test -z "$LTCC" && LTCC=$CC
7007
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7008
test -z "$LD" && LD=ld
7009
test -z "$ac_objext" && ac_objext=o
7011
for cc_temp in $compiler""; do
7013
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7014
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7019
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7022
# Only perform the check for file, if the check method requires it
7023
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7024
case $deplibs_check_method in
7026
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7027
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7028
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7029
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7030
$as_echo_n "(cached) " >&6
7034
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7037
lt_save_MAGIC_CMD="$MAGIC_CMD"
7038
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7039
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7040
for ac_dir in $ac_dummy; do
7042
test -z "$ac_dir" && ac_dir=.
7043
if test -f $ac_dir/${ac_tool_prefix}file; then
7044
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7045
if test -n "$file_magic_test_file"; then
7046
case $deplibs_check_method in
7048
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7049
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7050
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7051
$EGREP "$file_magic_regex" > /dev/null; then
7056
*** Warning: the command libtool uses to detect shared libraries,
7057
*** $file_magic_cmd, produces output that libtool cannot recognize.
7058
*** The result is that libtool may fail to recognize shared libraries
7059
*** as such. This will affect the creation of libtool libraries that
7060
*** depend on shared libraries, but programs linked with such libtool
7061
*** libraries will work regardless of this problem. Nevertheless, you
7062
*** may want to report the problem to your system manager and/or to
7063
*** bug-libtool@gnu.org
7073
MAGIC_CMD="$lt_save_MAGIC_CMD"
7078
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7079
if test -n "$MAGIC_CMD"; then
7080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7081
$as_echo "$MAGIC_CMD" >&6; }
7083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084
$as_echo "no" >&6; }
7091
if test -z "$lt_cv_path_MAGIC_CMD"; then
7092
if test -n "$ac_tool_prefix"; then
7093
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7094
$as_echo_n "checking for file... " >&6; }
7095
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7096
$as_echo_n "(cached) " >&6
7100
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7103
lt_save_MAGIC_CMD="$MAGIC_CMD"
7104
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7105
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7106
for ac_dir in $ac_dummy; do
7108
test -z "$ac_dir" && ac_dir=.
7109
if test -f $ac_dir/file; then
7110
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7111
if test -n "$file_magic_test_file"; then
7112
case $deplibs_check_method in
7114
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7115
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7116
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7117
$EGREP "$file_magic_regex" > /dev/null; then
7122
*** Warning: the command libtool uses to detect shared libraries,
7123
*** $file_magic_cmd, produces output that libtool cannot recognize.
7124
*** The result is that libtool may fail to recognize shared libraries
7125
*** as such. This will affect the creation of libtool libraries that
7126
*** depend on shared libraries, but programs linked with such libtool
7127
*** libraries will work regardless of this problem. Nevertheless, you
7128
*** may want to report the problem to your system manager and/or to
7129
*** bug-libtool@gnu.org
7139
MAGIC_CMD="$lt_save_MAGIC_CMD"
7144
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7145
if test -n "$MAGIC_CMD"; then
7146
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7147
$as_echo "$MAGIC_CMD" >&6; }
7149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150
$as_echo "no" >&6; }
7163
# Use C for the default configuration in the libtool script
7167
ac_cpp='$CPP $CPPFLAGS'
7168
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7169
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7170
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7173
# Source file extension for C test sources.
7176
# Object file extension for compiled C test sources.
7180
# Code to be used in simple compile tests
7181
lt_simple_compile_test_code="int some_variable = 0;"
7183
# Code to be used in simple link tests
7184
lt_simple_link_test_code='int main(){return(0);}'
7192
# If no C compiler was specified, use CC.
7195
# If no C compiler flags were specified, use CFLAGS.
7196
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7198
# Allow CC to be a program name with arguments.
7201
# Save the default compiler, since it gets overwritten when the other
7202
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7203
compiler_DEFAULT=$CC
7205
# save warnings/boilerplate of simple test code
7206
ac_outfile=conftest.$ac_objext
7207
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7208
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7209
_lt_compiler_boilerplate=`cat conftest.err`
7212
ac_outfile=conftest.$ac_objext
7213
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7214
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7215
_lt_linker_boilerplate=`cat conftest.err`
7219
if test -n "$compiler"; then
7221
lt_prog_compiler_no_builtin_flag=
7223
if test "$GCC" = yes; then
7224
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7226
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7227
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7228
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7229
$as_echo_n "(cached) " >&6
7231
lt_cv_prog_compiler_rtti_exceptions=no
7232
ac_outfile=conftest.$ac_objext
7233
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7234
lt_compiler_flag="-fno-rtti -fno-exceptions"
7235
# Insert the option either (1) after the last *FLAGS variable, or
7236
# (2) before a word containing "conftest.", or (3) at the end.
7237
# Note that $ac_compile itself does not contain backslashes and begins
7238
# with a dollar sign (not a hyphen), so the echo should work correctly.
7239
# The option is referenced via a variable to avoid confusing sed.
7240
lt_compile=`echo "$ac_compile" | $SED \
7241
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7242
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7243
-e 's:$: $lt_compiler_flag:'`
7244
(eval echo "\"\$as_me:7244: $lt_compile\"" >&5)
7245
(eval "$lt_compile" 2>conftest.err)
7247
cat conftest.err >&5
7248
echo "$as_me:7248: \$? = $ac_status" >&5
7249
if (exit $ac_status) && test -s "$ac_outfile"; then
7250
# The compiler can only warn and ignore the option if not recognized
7251
# So say no if there are warnings other than the usual output.
7252
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7253
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7254
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7255
lt_cv_prog_compiler_rtti_exceptions=yes
7261
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7262
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7264
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7265
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7277
lt_prog_compiler_wl=
7278
lt_prog_compiler_pic=
7279
lt_prog_compiler_static=
7281
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7282
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7284
if test "$GCC" = yes; then
7285
lt_prog_compiler_wl='-Wl,'
7286
lt_prog_compiler_static='-static'
7290
# All AIX code is PIC.
7291
if test "$host_cpu" = ia64; then
7292
# AIX 5 now supports IA64 processor
7293
lt_prog_compiler_static='-Bstatic'
7300
# see comment about AmigaOS4 .so support
7301
lt_prog_compiler_pic='-fPIC'
7304
# FIXME: we need at least 68020 code to build shared libraries, but
7305
# adding the `-m68020' flag to GCC prevents building anything better,
7307
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7312
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7313
# PIC is the default for these OSes.
7316
mingw* | cygwin* | pw32* | os2* | cegcc*)
7317
# This hack is so that the source file can tell whether it is being
7318
# built for inclusion in a dll (and should export symbols for example).
7319
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7320
# (--disable-auto-import) libraries
7321
lt_prog_compiler_pic='-DDLL_EXPORT'
7324
darwin* | rhapsody*)
7325
# PIC is the default on this platform
7326
# Common symbols not allowed in MH_DYLIB files
7327
lt_prog_compiler_pic='-fno-common'
7331
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7332
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7333
# sets the default TLS model and affects inlining.
7339
lt_prog_compiler_pic='-fPIC'
7345
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7346
# Instead, we relocate shared libraries at runtime.
7350
# Just because we use GCC doesn't mean we suddenly get shared libraries
7351
# on systems that don't support them.
7352
lt_prog_compiler_can_build_shared=no
7357
# QNX uses GNU C++, but need to define -shared option too, otherwise
7359
lt_prog_compiler_pic='-fPIC -shared'
7363
if test -d /usr/nec; then
7364
lt_prog_compiler_pic=-Kconform_pic
7369
lt_prog_compiler_pic='-fPIC'
7373
# PORTME Check for flag to pass linker flags through the system compiler.
7376
lt_prog_compiler_wl='-Wl,'
7377
if test "$host_cpu" = ia64; then
7378
# AIX 5 now supports IA64 processor
7379
lt_prog_compiler_static='-Bstatic'
7381
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7385
mingw* | cygwin* | pw32* | os2* | cegcc*)
7386
# This hack is so that the source file can tell whether it is being
7387
# built for inclusion in a dll (and should export symbols for example).
7388
lt_prog_compiler_pic='-DDLL_EXPORT'
7391
hpux9* | hpux10* | hpux11*)
7392
lt_prog_compiler_wl='-Wl,'
7393
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7400
lt_prog_compiler_pic='+Z'
7403
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7404
lt_prog_compiler_static='${wl}-a ${wl}archive'
7407
irix5* | irix6* | nonstopux*)
7408
lt_prog_compiler_wl='-Wl,'
7409
# PIC (with -KPIC) is the default.
7410
lt_prog_compiler_static='-non_shared'
7413
linux* | k*bsd*-gnu)
7414
case $cc_basename in
7415
# old Intel for x86_64 which still supported -KPIC.
7417
lt_prog_compiler_wl='-Wl,'
7418
lt_prog_compiler_pic='-KPIC'
7419
lt_prog_compiler_static='-static'
7421
# icc used to be incompatible with GCC.
7422
# ICC 10 doesn't accept -KPIC any more.
7424
lt_prog_compiler_wl='-Wl,'
7425
lt_prog_compiler_pic='-fPIC'
7426
lt_prog_compiler_static='-static'
7428
# Lahey Fortran 8.1.
7430
lt_prog_compiler_wl='-Wl,'
7431
lt_prog_compiler_pic='--shared'
7432
lt_prog_compiler_static='--static'
7434
pgcc* | pgf77* | pgf90* | pgf95*)
7435
# Portland Group compilers (*not* the Pentium gcc compiler,
7436
# which looks to be a dead project)
7437
lt_prog_compiler_wl='-Wl,'
7438
lt_prog_compiler_pic='-fpic'
7439
lt_prog_compiler_static='-Bstatic'
7442
lt_prog_compiler_wl='-Wl,'
7443
# All Alpha code is PIC.
7444
lt_prog_compiler_static='-non_shared'
7447
# IBM XL C 8.0/Fortran 10.1 on PPC
7448
lt_prog_compiler_wl='-Wl,'
7449
lt_prog_compiler_pic='-qpic'
7450
lt_prog_compiler_static='-qstaticlink'
7453
case `$CC -V 2>&1 | sed 5q` in
7456
lt_prog_compiler_pic='-KPIC'
7457
lt_prog_compiler_static='-Bstatic'
7458
lt_prog_compiler_wl='-Wl,'
7461
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7462
lt_prog_compiler_pic='-KPIC'
7463
lt_prog_compiler_static='-Bstatic'
7464
lt_prog_compiler_wl=''
7472
lt_prog_compiler_pic='-KPIC'
7473
lt_prog_compiler_static='-Bstatic'
7477
# QNX uses GNU C++, but need to define -shared option too, otherwise
7479
lt_prog_compiler_pic='-fPIC -shared'
7482
osf3* | osf4* | osf5*)
7483
lt_prog_compiler_wl='-Wl,'
7484
# All OSF/1 code is PIC.
7485
lt_prog_compiler_static='-non_shared'
7489
lt_prog_compiler_static='-non_shared'
7493
lt_prog_compiler_pic='-KPIC'
7494
lt_prog_compiler_static='-Bstatic'
7495
case $cc_basename in
7497
lt_prog_compiler_wl='-Qoption ld ';;
7499
lt_prog_compiler_wl='-Wl,';;
7504
lt_prog_compiler_wl='-Qoption ld '
7505
lt_prog_compiler_pic='-PIC'
7506
lt_prog_compiler_static='-Bstatic'
7509
sysv4 | sysv4.2uw2* | sysv4.3*)
7510
lt_prog_compiler_wl='-Wl,'
7511
lt_prog_compiler_pic='-KPIC'
7512
lt_prog_compiler_static='-Bstatic'
7516
if test -d /usr/nec ;then
7517
lt_prog_compiler_pic='-Kconform_pic'
7518
lt_prog_compiler_static='-Bstatic'
7522
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7523
lt_prog_compiler_wl='-Wl,'
7524
lt_prog_compiler_pic='-KPIC'
7525
lt_prog_compiler_static='-Bstatic'
7529
lt_prog_compiler_wl='-Wl,'
7530
lt_prog_compiler_can_build_shared=no
7534
lt_prog_compiler_pic='-pic'
7535
lt_prog_compiler_static='-Bstatic'
7539
lt_prog_compiler_can_build_shared=no
7545
# For platforms which do not support PIC, -DPIC is meaningless:
7547
lt_prog_compiler_pic=
7550
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7554
$as_echo "$lt_prog_compiler_pic" >&6; }
7562
# Check to make sure the PIC flag actually works.
7564
if test -n "$lt_prog_compiler_pic"; then
7565
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7566
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7567
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7568
$as_echo_n "(cached) " >&6
7570
lt_cv_prog_compiler_pic_works=no
7571
ac_outfile=conftest.$ac_objext
7572
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7573
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7574
# Insert the option either (1) after the last *FLAGS variable, or
7575
# (2) before a word containing "conftest.", or (3) at the end.
7576
# Note that $ac_compile itself does not contain backslashes and begins
7577
# with a dollar sign (not a hyphen), so the echo should work correctly.
7578
# The option is referenced via a variable to avoid confusing sed.
7579
lt_compile=`echo "$ac_compile" | $SED \
7580
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7581
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7582
-e 's:$: $lt_compiler_flag:'`
7583
(eval echo "\"\$as_me:7583: $lt_compile\"" >&5)
7584
(eval "$lt_compile" 2>conftest.err)
7586
cat conftest.err >&5
7587
echo "$as_me:7587: \$? = $ac_status" >&5
7588
if (exit $ac_status) && test -s "$ac_outfile"; then
7589
# The compiler can only warn and ignore the option if not recognized
7590
# So say no if there are warnings other than the usual output.
7591
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7592
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7593
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7594
lt_cv_prog_compiler_pic_works=yes
7600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7601
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7603
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7604
case $lt_prog_compiler_pic in
7606
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7609
lt_prog_compiler_pic=
7610
lt_prog_compiler_can_build_shared=no
7621
# Check to make sure the static flag actually works.
7623
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7625
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7626
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7627
$as_echo_n "(cached) " >&6
7629
lt_cv_prog_compiler_static_works=no
7630
save_LDFLAGS="$LDFLAGS"
7631
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7632
echo "$lt_simple_link_test_code" > conftest.$ac_ext
7633
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7634
# The linker can only warn and ignore the option if not recognized
7635
# So say no if there are warnings
7636
if test -s conftest.err; then
7637
# Append any errors to the config.log.
7638
cat conftest.err 1>&5
7639
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7640
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7641
if diff conftest.exp conftest.er2 >/dev/null; then
7642
lt_cv_prog_compiler_static_works=yes
7645
lt_cv_prog_compiler_static_works=yes
7649
LDFLAGS="$save_LDFLAGS"
7652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7653
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7655
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7658
lt_prog_compiler_static=
7667
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7668
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7669
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7670
$as_echo_n "(cached) " >&6
7672
lt_cv_prog_compiler_c_o=no
7673
$RM -r conftest 2>/dev/null
7677
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7679
lt_compiler_flag="-o out/conftest2.$ac_objext"
7680
# Insert the option either (1) after the last *FLAGS variable, or
7681
# (2) before a word containing "conftest.", or (3) at the end.
7682
# Note that $ac_compile itself does not contain backslashes and begins
7683
# with a dollar sign (not a hyphen), so the echo should work correctly.
7684
lt_compile=`echo "$ac_compile" | $SED \
7685
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7686
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7687
-e 's:$: $lt_compiler_flag:'`
7688
(eval echo "\"\$as_me:7688: $lt_compile\"" >&5)
7689
(eval "$lt_compile" 2>out/conftest.err)
7691
cat out/conftest.err >&5
7692
echo "$as_me:7692: \$? = $ac_status" >&5
7693
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7695
# The compiler can only warn and ignore the option if not recognized
7696
# So say no if there are warnings
7697
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7698
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7699
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7700
lt_cv_prog_compiler_c_o=yes
7705
# SGI C++ compiler will create directory out/ii_files/ for
7706
# template instantiation
7707
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7708
$RM out/* && rmdir out
7714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7715
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7722
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7723
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7724
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7725
$as_echo_n "(cached) " >&6
7727
lt_cv_prog_compiler_c_o=no
7728
$RM -r conftest 2>/dev/null
7732
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7734
lt_compiler_flag="-o out/conftest2.$ac_objext"
7735
# Insert the option either (1) after the last *FLAGS variable, or
7736
# (2) before a word containing "conftest.", or (3) at the end.
7737
# Note that $ac_compile itself does not contain backslashes and begins
7738
# with a dollar sign (not a hyphen), so the echo should work correctly.
7739
lt_compile=`echo "$ac_compile" | $SED \
7740
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7741
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7742
-e 's:$: $lt_compiler_flag:'`
7743
(eval echo "\"\$as_me:7743: $lt_compile\"" >&5)
7744
(eval "$lt_compile" 2>out/conftest.err)
7746
cat out/conftest.err >&5
7747
echo "$as_me:7747: \$? = $ac_status" >&5
7748
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7750
# The compiler can only warn and ignore the option if not recognized
7751
# So say no if there are warnings
7752
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7753
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7754
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7755
lt_cv_prog_compiler_c_o=yes
7760
# SGI C++ compiler will create directory out/ii_files/ for
7761
# template instantiation
7762
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7763
$RM out/* && rmdir out
7769
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7770
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7775
hard_links="nottested"
7776
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7777
# do not overwrite the value of need_locks provided by the user
7778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7779
$as_echo_n "checking if we can lock with hard links... " >&6; }
7782
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7784
ln conftest.a conftest.b 2>&5 || hard_links=no
7785
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7787
$as_echo "$hard_links" >&6; }
7788
if test "$hard_links" = no; then
7789
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7790
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7803
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7806
allow_undefined_flag=
7807
always_export_symbols=no
7809
archive_expsym_cmds=
7810
compiler_needs_object=no
7811
enable_shared_with_static_runtimes=no
7812
export_dynamic_flag_spec=
7813
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7814
hardcode_automatic=no
7816
hardcode_direct_absolute=no
7817
hardcode_libdir_flag_spec=
7818
hardcode_libdir_flag_spec_ld=
7819
hardcode_libdir_separator=
7821
hardcode_shlibpath_var=unsupported
7823
link_all_deplibs=unknown
7826
old_archive_from_new_cmds=
7827
old_archive_from_expsyms_cmds=
7828
thread_safe_flag_spec=
7829
whole_archive_flag_spec=
7830
# include_expsyms should be a list of space-separated symbols to be *always*
7831
# included in the symbol list
7833
# exclude_expsyms can be an extended regexp of symbols to exclude
7834
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7835
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7836
# as well as any symbol that contains `d'.
7837
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7838
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7839
# platforms (ab)use it in PIC code, but their linkers get confused if
7840
# the symbol is explicitly referenced. Since portable code cannot
7841
# rely on this symbol name, it's probably fine to never include it in
7842
# preloaded symbol tables.
7843
# Exclude shared library initialization/finalization symbols.
7844
extract_expsyms_cmds=
7847
cygwin* | mingw* | pw32* | cegcc*)
7848
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7849
# When not using gcc, we currently assume that we are using
7850
# Microsoft Visual C++.
7851
if test "$GCC" != yes; then
7856
# we just hope/assume this is gcc and not c89 (= MSVC++)
7862
linux* | k*bsd*-gnu)
7868
if test "$with_gnu_ld" = yes; then
7869
# If archive_cmds runs LD, not CC, wlarc should be empty
7872
# Set some defaults for GNU ld with shared library support. These
7873
# are reset later if shared libraries are not supported. Putting them
7874
# here allows them to be overridden if necessary.
7875
runpath_var=LD_RUN_PATH
7876
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7877
export_dynamic_flag_spec='${wl}--export-dynamic'
7878
# ancient GNU ld didn't support --whole-archive et. al.
7879
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7880
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7882
whole_archive_flag_spec=
7884
supports_anon_versioning=no
7885
case `$LD -v 2>&1` in
7886
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7887
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7888
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7889
*\ 2.11.*) ;; # other 2.11 versions
7890
*) supports_anon_versioning=yes ;;
7893
# See if GNU ld supports shared libraries.
7896
# On AIX/PPC, the GNU linker is very broken
7897
if test "$host_cpu" != ia64; then
7901
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7902
*** to be unable to reliably create shared libraries on AIX.
7903
*** Therefore, libtool is disabling shared libraries support. If you
7904
*** really care for shared libraries, you may want to modify your PATH
7905
*** so that a non-GNU linker is found, and then restart.
7914
# see comment about AmigaOS4 .so support
7915
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7916
archive_expsym_cmds=''
7919
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)'
7920
hardcode_libdir_flag_spec='-L$libdir'
7921
hardcode_minus_L=yes
7927
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7928
allow_undefined_flag=unsupported
7929
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7930
# support --undefined. This deserves some investigation. FIXME
7931
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7937
cygwin* | mingw* | pw32* | cegcc*)
7938
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7939
# as there is no search path for DLLs.
7940
hardcode_libdir_flag_spec='-L$libdir'
7941
allow_undefined_flag=unsupported
7942
always_export_symbols=no
7943
enable_shared_with_static_runtimes=yes
7944
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7946
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7947
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7948
# If the export-symbols file already is a .def file (1st line
7949
# is EXPORTS), use it as is; otherwise, prepend...
7950
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7951
cp $export_symbols $output_objdir/$soname.def;
7953
echo EXPORTS > $output_objdir/$soname.def;
7954
cat $export_symbols >> $output_objdir/$soname.def;
7956
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7964
hardcode_shlibpath_var=no
7965
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7966
export_dynamic_flag_spec='${wl}-E'
7967
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7968
# Instead, shared libraries are loaded at an image base (0x10000000 by
7969
# default) and relocated if they conflict, which is a slow very memory
7970
# consuming and fragmenting process. To avoid this, we pick a random,
7971
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7972
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
7973
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7974
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'
7977
gnu* | linux* | tpf* | k*bsd*-gnu)
7979
if test "$host_os" = linux-dietlibc; then
7980
case $cc_basename in
7981
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7984
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7985
&& test "$tmp_diet" = no
7988
tmp_sharedflag='-shared'
7989
case $cc_basename,$host_cpu in
7990
pgcc*) # Portland Group C compiler
7991
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7992
tmp_addflag=' $pic_flag'
7994
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7995
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7996
tmp_addflag=' $pic_flag -Mnomain' ;;
7997
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7998
tmp_addflag=' -i_dynamic' ;;
7999
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8000
tmp_addflag=' -i_dynamic -nofor_main' ;;
8001
ifc* | ifort*) # Intel Fortran compiler
8002
tmp_addflag=' -nofor_main' ;;
8003
lf95*) # Lahey Fortran 8.1
8004
whole_archive_flag_spec=
8005
tmp_sharedflag='--shared' ;;
8006
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8007
tmp_sharedflag='-qmkshrobj'
8010
case `$CC -V 2>&1 | sed 5q` in
8011
*Sun\ C*) # Sun C 5.9
8012
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8013
compiler_needs_object=yes
8014
tmp_sharedflag='-G' ;;
8015
*Sun\ F*) # Sun Fortran 8.3
8016
tmp_sharedflag='-G' ;;
8018
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8020
if test "x$supports_anon_versioning" = xyes; then
8021
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8022
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8023
echo "local: *; };" >> $output_objdir/$libname.ver~
8024
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8027
case $cc_basename in
8029
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8030
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8031
hardcode_libdir_flag_spec=
8032
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8033
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8034
if test "x$supports_anon_versioning" = xyes; then
8035
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8036
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8037
echo "local: *; };" >> $output_objdir/$libname.ver~
8038
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8047
netbsd* | netbsdelf*-gnu)
8048
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8049
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8052
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8053
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8058
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8062
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8063
*** create shared libraries on Solaris systems. Therefore, libtool
8064
*** is disabling shared libraries support. We urge you to upgrade GNU
8065
*** binutils to release 2.9.1 or newer. Another option is to modify
8066
*** your PATH or compiler configuration so that the native linker is
8067
*** used, and then restart.
8070
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8071
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8072
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8078
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8079
case `$LD -v 2>&1` in
8080
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8084
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8085
*** reliably create shared libraries on SCO systems. Therefore, libtool
8086
*** is disabling shared libraries support. We urge you to upgrade GNU
8087
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8088
*** your PATH or compiler configuration so that the native linker is
8089
*** used, and then restart.
8094
# For security reasons, it is highly recommended that you always
8095
# use absolute paths for naming shared libraries, and exclude the
8096
# DT_RUNPATH tag from executables and libraries. But doing so
8097
# requires that you compile everything twice, which is a pain.
8098
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8099
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8100
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8101
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8110
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8113
hardcode_shlibpath_var=no
8117
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8118
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8119
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8126
if test "$ld_shlibs" = no; then
8128
hardcode_libdir_flag_spec=
8129
export_dynamic_flag_spec=
8130
whole_archive_flag_spec=
8133
# PORTME fill in a description of your system's linker (not GNU ld)
8136
allow_undefined_flag=unsupported
8137
always_export_symbols=yes
8138
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'
8139
# Note: this linker hardcodes the directories in LIBPATH if there
8140
# are no directories specified by -L.
8141
hardcode_minus_L=yes
8142
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8143
# Neither direct hardcoding nor static linking is supported with a
8145
hardcode_direct=unsupported
8150
if test "$host_cpu" = ia64; then
8151
# On IA64, the linker does run time linking by default, so we don't
8152
# have to do anything special.
8153
aix_use_runtimelinking=no
8154
exp_sym_flag='-Bexport'
8157
# If we're using GNU nm, then we don't want the "-C" option.
8158
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8159
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8160
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8162
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'
8164
aix_use_runtimelinking=no
8166
# Test if we are trying to use run time linking or normal
8167
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8168
# need to do runtime linking.
8169
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8170
for ld_flag in $LDFLAGS; do
8171
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8172
aix_use_runtimelinking=yes
8179
exp_sym_flag='-bexport'
8180
no_entry_flag='-bnoentry'
8183
# When large executables or shared objects are built, AIX ld can
8184
# have problems creating the table of contents. If linking a library
8185
# or program results in "error TOC overflow" add -mminimal-toc to
8186
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8187
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8191
hardcode_direct_absolute=yes
8192
hardcode_libdir_separator=':'
8193
link_all_deplibs=yes
8194
file_list_spec='${wl}-f,'
8196
if test "$GCC" = yes; then
8197
case $host_os in aix4.[012]|aix4.[012].*)
8198
# We only want to do this on AIX 4.2 and lower, the check
8199
# below for broken collect2 doesn't work under 4.3+
8200
collect2name=`${CC} -print-prog-name=collect2`
8201
if test -f "$collect2name" &&
8202
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8204
# We have reworked collect2
8207
# We have old collect2
8208
hardcode_direct=unsupported
8209
# It fails to find uninstalled libraries when the uninstalled
8210
# path is not listed in the libpath. Setting hardcode_minus_L
8211
# to unsupported forces relinking
8212
hardcode_minus_L=yes
8213
hardcode_libdir_flag_spec='-L$libdir'
8214
hardcode_libdir_separator=
8218
shared_flag='-shared'
8219
if test "$aix_use_runtimelinking" = yes; then
8220
shared_flag="$shared_flag "'${wl}-G'
8225
if test "$host_cpu" = ia64; then
8226
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8227
# chokes on -Wl,-G. The following line is correct:
8230
if test "$aix_use_runtimelinking" = yes; then
8231
shared_flag='${wl}-G'
8233
shared_flag='${wl}-bM:SRE'
8238
export_dynamic_flag_spec='${wl}-bexpall'
8239
# It seems that -bexpall does not export symbols beginning with
8240
# underscore (_), so it is better to generate a list of symbols to export.
8241
always_export_symbols=yes
8242
if test "$aix_use_runtimelinking" = yes; then
8243
# Warning - without using the other runtime loading flags (-brtl),
8244
# -berok will link without error, but may produce a broken library.
8245
allow_undefined_flag='-berok'
8246
# Determine the default libpath from the value encoded in an
8248
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249
/* end confdefs.h. */
8259
if ac_fn_c_try_link "$LINENO"; then :
8261
lt_aix_libpath_sed='
8262
/Import File Strings/,/^$/ {
8268
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8269
# Check for a 64-bit object if we didn't find anything.
8270
if test -z "$aix_libpath"; then
8271
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8274
rm -f core conftest.err conftest.$ac_objext \
8275
conftest$ac_exeext conftest.$ac_ext
8276
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8278
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8279
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8281
if test "$host_cpu" = ia64; then
8282
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8283
allow_undefined_flag="-z nodefs"
8284
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"
8286
# Determine the default libpath from the value encoded in an
8288
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289
/* end confdefs.h. */
8299
if ac_fn_c_try_link "$LINENO"; then :
8301
lt_aix_libpath_sed='
8302
/Import File Strings/,/^$/ {
8308
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8309
# Check for a 64-bit object if we didn't find anything.
8310
if test -z "$aix_libpath"; then
8311
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8314
rm -f core conftest.err conftest.$ac_objext \
8315
conftest$ac_exeext conftest.$ac_ext
8316
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8318
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8319
# Warning - without using the other run time loading flags,
8320
# -berok will link without error, but may produce a broken library.
8321
no_undefined_flag=' ${wl}-bernotok'
8322
allow_undefined_flag=' ${wl}-berok'
8323
# Exported symbols can be pulled into shared objects from archives
8324
whole_archive_flag_spec='$convenience'
8325
archive_cmds_need_lc=yes
8326
# This is similar to how AIX traditionally builds its shared libraries.
8327
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'
8335
# see comment about AmigaOS4 .so support
8336
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8337
archive_expsym_cmds=''
8340
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)'
8341
hardcode_libdir_flag_spec='-L$libdir'
8342
hardcode_minus_L=yes
8348
export_dynamic_flag_spec=-rdynamic
8351
cygwin* | mingw* | pw32* | cegcc*)
8352
# When not using gcc, we currently assume that we are using
8353
# Microsoft Visual C++.
8354
# hardcode_libdir_flag_spec is actually meaningless, as there is
8355
# no search path for DLLs.
8356
hardcode_libdir_flag_spec=' '
8357
allow_undefined_flag=unsupported
8358
# Tell ltmain to make .lib files, not .a files.
8360
# Tell ltmain to make .dll files, not .so files.
8362
# FIXME: Setting linknames here is a bad hack.
8363
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8364
# The linker will automatically build a .lib file if we build a DLL.
8365
old_archive_from_new_cmds='true'
8366
# FIXME: Should let the user specify the lib program.
8367
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8368
fix_srcfile_path='`cygpath -w "$srcfile"`'
8369
enable_shared_with_static_runtimes=yes
8372
darwin* | rhapsody*)
8375
archive_cmds_need_lc=no
8377
hardcode_automatic=yes
8378
hardcode_shlibpath_var=unsupported
8379
whole_archive_flag_spec=''
8380
link_all_deplibs=yes
8381
allow_undefined_flag="$_lt_dar_allow_undefined"
8382
case $cc_basename in
8383
ifort*) _lt_dar_can_shared=yes ;;
8384
*) _lt_dar_can_shared=$GCC ;;
8386
if test "$_lt_dar_can_shared" = "yes"; then
8387
output_verbose_link_cmd=echo
8388
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8389
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8390
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}"
8391
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}"
8400
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8401
hardcode_libdir_flag_spec='-L$libdir'
8402
hardcode_shlibpath_var=no
8409
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8410
# support. Future versions do this automatically, but an explicit c++rt0.o
8411
# does not break anything, and helps significantly (at the cost of a little
8414
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8415
hardcode_libdir_flag_spec='-R$libdir'
8417
hardcode_shlibpath_var=no
8420
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8422
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8424
hardcode_minus_L=yes
8425
hardcode_shlibpath_var=no
8428
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8429
freebsd* | dragonfly*)
8430
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8431
hardcode_libdir_flag_spec='-R$libdir'
8433
hardcode_shlibpath_var=no
8437
if test "$GCC" = yes; then
8438
archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8440
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'
8442
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8443
hardcode_libdir_separator=:
8446
# hardcode_minus_L: Not really in the search PATH,
8447
# but as the default location of the library.
8448
hardcode_minus_L=yes
8449
export_dynamic_flag_spec='${wl}-E'
8453
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8454
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8456
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8458
if test "$with_gnu_ld" = no; then
8459
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8460
hardcode_libdir_flag_spec_ld='+b $libdir'
8461
hardcode_libdir_separator=:
8463
hardcode_direct_absolute=yes
8464
export_dynamic_flag_spec='${wl}-E'
8465
# hardcode_minus_L: Not really in the search PATH,
8466
# but as the default location of the library.
8467
hardcode_minus_L=yes
8472
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8475
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8478
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8481
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8487
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8490
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8493
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8497
if test "$with_gnu_ld" = no; then
8498
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8499
hardcode_libdir_separator=:
8504
hardcode_shlibpath_var=no
8508
hardcode_direct_absolute=yes
8509
export_dynamic_flag_spec='${wl}-E'
8511
# hardcode_minus_L: Not really in the search PATH,
8512
# but as the default location of the library.
8513
hardcode_minus_L=yes
8519
irix5* | irix6* | nonstopux*)
8520
if test "$GCC" = yes; then
8521
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8522
# Try to use the -exported_symbol ld option, if it does not
8523
# work, assume that -exports_file does not work either and
8524
# implicitly export all symbols.
8525
save_LDFLAGS="$LDFLAGS"
8526
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8527
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528
/* end confdefs.h. */
8531
if ac_fn_c_try_link "$LINENO"; then :
8532
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8535
rm -f core conftest.err conftest.$ac_objext \
8536
conftest$ac_exeext conftest.$ac_ext
8537
LDFLAGS="$save_LDFLAGS"
8539
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8540
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8542
archive_cmds_need_lc='no'
8543
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8544
hardcode_libdir_separator=:
8546
link_all_deplibs=yes
8549
netbsd* | netbsdelf*-gnu)
8550
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8551
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8553
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8555
hardcode_libdir_flag_spec='-R$libdir'
8557
hardcode_shlibpath_var=no
8561
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8563
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8564
hardcode_libdir_separator=:
8565
hardcode_shlibpath_var=no
8572
if test -f /usr/libexec/ld.so; then
8574
hardcode_shlibpath_var=no
8575
hardcode_direct_absolute=yes
8576
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8577
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8578
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8579
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8580
export_dynamic_flag_spec='${wl}-E'
8583
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8584
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8585
hardcode_libdir_flag_spec='-R$libdir'
8588
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8589
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8599
hardcode_libdir_flag_spec='-L$libdir'
8600
hardcode_minus_L=yes
8601
allow_undefined_flag=unsupported
8602
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'
8603
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8607
if test "$GCC" = yes; then
8608
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8609
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8611
allow_undefined_flag=' -expect_unresolved \*'
8612
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8614
archive_cmds_need_lc='no'
8615
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8616
hardcode_libdir_separator=:
8619
osf4* | osf5*) # as osf3* with the addition of -msym flag
8620
if test "$GCC" = yes; then
8621
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8622
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8623
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8625
allow_undefined_flag=' -expect_unresolved \*'
8626
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8627
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~
8628
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8630
# Both c and cxx compiler support -rpath directly
8631
hardcode_libdir_flag_spec='-rpath $libdir'
8633
archive_cmds_need_lc='no'
8634
hardcode_libdir_separator=:
8638
no_undefined_flag=' -z defs'
8639
if test "$GCC" = yes; then
8641
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8642
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8643
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8645
case `$CC -V 2>&1` in
8648
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8649
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8650
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8654
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8655
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8656
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8660
hardcode_libdir_flag_spec='-R$libdir'
8661
hardcode_shlibpath_var=no
8663
solaris2.[0-5] | solaris2.[0-5].*) ;;
8665
# The compiler driver will combine and reorder linker options,
8666
# but understands `-z linker_flag'. GCC discards it without `$wl',
8667
# but is careful enough not to reorder.
8668
# Supported since Solaris 2.6 (maybe 2.5.1?)
8669
if test "$GCC" = yes; then
8670
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8672
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8676
link_all_deplibs=yes
8680
if test "x$host_vendor" = xsequent; then
8681
# Use $CC to link under sequent, because it throws in some extra .o
8682
# files that make .init and .fini sections work.
8683
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8685
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8687
hardcode_libdir_flag_spec='-L$libdir'
8689
hardcode_minus_L=yes
8690
hardcode_shlibpath_var=no
8694
case $host_vendor in
8696
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8697
hardcode_direct=yes # is this really true???
8700
## LD is ld it makes a PLAMLIB
8701
## CC just makes a GrossModule.
8702
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8703
reload_cmds='$CC -r -o $output$reload_objs'
8707
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8708
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8711
runpath_var='LD_RUN_PATH'
8712
hardcode_shlibpath_var=no
8716
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8717
hardcode_shlibpath_var=no
8718
export_dynamic_flag_spec='-Bexport'
8722
if test -d /usr/nec; then
8723
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8724
hardcode_shlibpath_var=no
8725
runpath_var=LD_RUN_PATH
8726
hardcode_runpath_var=yes
8731
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8732
no_undefined_flag='${wl}-z,text'
8733
archive_cmds_need_lc=no
8734
hardcode_shlibpath_var=no
8735
runpath_var='LD_RUN_PATH'
8737
if test "$GCC" = yes; then
8738
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8739
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8741
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8742
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8746
sysv5* | sco3.2v5* | sco5v6*)
8747
# Note: We can NOT use -z defs as we might desire, because we do not
8748
# link with -lc, and that would cause any symbols used from libc to
8749
# always be unresolved, which means just about no library would
8750
# ever link correctly. If we're not using GNU ld we use -z text
8751
# though, which does catch some bad symbols but isn't as heavy-handed
8753
no_undefined_flag='${wl}-z,text'
8754
allow_undefined_flag='${wl}-z,nodefs'
8755
archive_cmds_need_lc=no
8756
hardcode_shlibpath_var=no
8757
hardcode_libdir_flag_spec='${wl}-R,$libdir'
8758
hardcode_libdir_separator=':'
8759
link_all_deplibs=yes
8760
export_dynamic_flag_spec='${wl}-Bexport'
8761
runpath_var='LD_RUN_PATH'
8763
if test "$GCC" = yes; then
8764
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8765
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8767
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8768
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8773
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8774
hardcode_libdir_flag_spec='-L$libdir'
8775
hardcode_shlibpath_var=no
8783
if test x$host_vendor = xsni; then
8785
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8786
export_dynamic_flag_spec='${wl}-Blargedynsym'
8792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8793
$as_echo "$ld_shlibs" >&6; }
8794
test "$ld_shlibs" = no && can_build_shared=no
8796
with_gnu_ld=$with_gnu_ld
8813
# Do we need to explicitly link libc?
8815
case "x$archive_cmds_need_lc" in
8817
# Assume -lc should be added
8818
archive_cmds_need_lc=yes
8820
if test "$enable_shared" = yes && test "$GCC" = yes; then
8821
case $archive_cmds in
8823
# FIXME: we may have to deal with multi-command sequences.
8826
# Test whether the compiler implicitly links with -lc since on some
8827
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8828
# to ld, don't add -lc before -lgcc.
8829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8830
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8832
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8834
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8835
(eval $ac_compile) 2>&5
8837
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8838
test $ac_status = 0; } 2>conftest.err; then
8841
libobjs=conftest.$ac_objext
8843
wl=$lt_prog_compiler_wl
8844
pic_flag=$lt_prog_compiler_pic
8850
lt_save_allow_undefined_flag=$allow_undefined_flag
8851
allow_undefined_flag=
8852
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8853
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8855
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8856
test $ac_status = 0; }
8858
archive_cmds_need_lc=no
8860
archive_cmds_need_lc=yes
8862
allow_undefined_flag=$lt_save_allow_undefined_flag
8864
cat conftest.err 1>&5
8867
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8868
$as_echo "$archive_cmds_need_lc" >&6; }
9031
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9032
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9034
if test "$GCC" = yes; then
9036
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9037
*) lt_awk_arg="/^libraries:/" ;;
9039
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9040
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9041
# if the path contains ";" then we assume it to be the separator
9042
# otherwise default to the standard path separator (i.e. ":") - it is
9043
# assumed that no part of a normal pathname contains ";" but that should
9044
# okay in the real world where ";" in dirpaths is itself problematic.
9045
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9047
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9049
# Ok, now we have the path, separated by spaces, we can step through it
9050
# and add multilib dir if necessary.
9051
lt_tmp_lt_search_path_spec=
9052
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9053
for lt_sys_path in $lt_search_path_spec; do
9054
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9055
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9057
test -d "$lt_sys_path" && \
9058
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9061
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9062
BEGIN {RS=" "; FS="/|\n";} {
9065
for (lt_i = NF; lt_i > 0; lt_i--) {
9066
if ($lt_i != "" && $lt_i != ".") {
9067
if ($lt_i == "..") {
9070
if (lt_count == 0) {
9071
lt_foo="/" $lt_i lt_foo;
9078
if (lt_foo != "") { lt_freq[lt_foo]++; }
9079
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9081
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9083
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9086
libname_spec='lib$name'
9094
shlibpath_overrides_runpath=unknown
9096
dynamic_linker="$host_os ld.so"
9097
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9098
need_lib_prefix=unknown
9099
hardcode_into_libs=no
9101
# when you set need_version to no, make sure it does not cause -set_version
9102
# flags to be left without arguments
9103
need_version=unknown
9108
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9109
shlibpath_var=LIBPATH
9111
# AIX 3 has no versioning support, so we append a major version to the name.
9112
soname_spec='${libname}${release}${shared_ext}$major'
9119
hardcode_into_libs=yes
9120
if test "$host_cpu" = ia64; then
9121
# AIX 5 supports IA64
9122
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9123
shlibpath_var=LD_LIBRARY_PATH
9125
# With GCC up to 2.95.x, collect2 would create an import file
9126
# for dependence libraries. The import file would start with
9127
# the line `#! .'. This would cause the generated library to
9128
# depend on `.', always an invalid library. This was fixed in
9129
# development snapshots of GCC prior to 3.0.
9131
aix4 | aix4.[01] | aix4.[01].*)
9132
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9134
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9141
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9142
# soname into executable. Probably we can add versioning support to
9143
# collect2, so additional links can be useful in future.
9144
if test "$aix_use_runtimelinking" = yes; then
9145
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9146
# instead of lib<name>.a to let people know that these are not
9147
# typical AIX shared libraries.
9148
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150
# We preserve .a as extension for shared libraries through AIX4.2
9151
# and later when we are not doing run time linking.
9152
library_names_spec='${libname}${release}.a $libname.a'
9153
soname_spec='${libname}${release}${shared_ext}$major'
9155
shlibpath_var=LIBPATH
9162
# Since July 2007 AmigaOS4 officially supports .so libraries.
9163
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9164
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9167
library_names_spec='$libname.ixlibrary $libname.a'
9168
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9169
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9175
library_names_spec='${libname}${shared_ext}'
9176
dynamic_linker="$host_os ld.so"
9177
shlibpath_var=LIBRARY_PATH
9183
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9184
soname_spec='${libname}${release}${shared_ext}$major'
9185
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9186
shlibpath_var=LD_LIBRARY_PATH
9187
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9188
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9189
# the default ld.so.conf also contains /usr/contrib/lib and
9190
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9191
# libtool to hard-code these into programs
9194
cygwin* | mingw* | pw32* | cegcc*)
9195
version_type=windows
9200
case $GCC,$host_os in
9201
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9202
library_names_spec='$libname.dll.a'
9203
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9204
postinstall_cmds='base_file=`basename \${file}`~
9205
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9206
dldir=$destdir/`dirname \$dlpath`~
9207
test -d \$dldir || mkdir -p \$dldir~
9208
$install_prog $dir/$dlname \$dldir/$dlname~
9209
chmod a+x \$dldir/$dlname~
9210
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9211
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9213
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9214
dlpath=$dir/\$dldll~
9216
shlibpath_overrides_runpath=yes
9220
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9221
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9222
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9225
# MinGW DLLs use traditional 'lib' prefix
9226
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9227
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9228
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9229
# It is most probably a Windows format PATH printed by
9230
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9231
# path with ; separators, and with drive letters. We can handle the
9232
# drive letters (cygwin fileutils understands them), so leave them,
9233
# especially as we might pass files found there to a mingw objdump,
9234
# which wouldn't understand a cygwinified path. Ahh.
9235
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9237
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9241
# pw32 DLLs use 'pw' prefix rather than 'lib'
9242
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9248
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9251
dynamic_linker='Win32 ld.exe'
9252
# FIXME: first we should search . and the directory the executable is in
9256
darwin* | rhapsody*)
9257
dynamic_linker="$host_os dyld"
9261
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9262
soname_spec='${libname}${release}${major}$shared_ext'
9263
shlibpath_overrides_runpath=yes
9264
shlibpath_var=DYLD_LIBRARY_PATH
9265
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9267
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9268
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9275
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9276
soname_spec='${libname}${release}${shared_ext}$major'
9277
shlibpath_var=LD_LIBRARY_PATH
9284
freebsd* | dragonfly*)
9285
# DragonFly does not have aout. When/if they implement a new
9286
# versioning mechanism, adjust this.
9287
if test -x /usr/bin/objformat; then
9288
objformat=`/usr/bin/objformat`
9291
freebsd[123]*) objformat=aout ;;
9295
version_type=freebsd-$objformat
9296
case $version_type in
9298
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9303
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9307
shlibpath_var=LD_LIBRARY_PATH
9310
shlibpath_overrides_runpath=yes
9312
freebsd3.[01]* | freebsdelf3.[01]*)
9313
shlibpath_overrides_runpath=yes
9314
hardcode_into_libs=yes
9316
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9317
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9318
shlibpath_overrides_runpath=no
9319
hardcode_into_libs=yes
9321
*) # from 4.6 on, and DragonFly
9322
shlibpath_overrides_runpath=yes
9323
hardcode_into_libs=yes
9332
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9333
soname_spec='${libname}${release}${shared_ext}$major'
9334
shlibpath_var=LD_LIBRARY_PATH
9335
hardcode_into_libs=yes
9338
hpux9* | hpux10* | hpux11*)
9339
# Give a soname corresponding to the major version so that dld.sl refuses to
9340
# link against other versions.
9347
hardcode_into_libs=yes
9348
dynamic_linker="$host_os dld.so"
9349
shlibpath_var=LD_LIBRARY_PATH
9350
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9351
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352
soname_spec='${libname}${release}${shared_ext}$major'
9353
if test "X$HPUX_IA64_MODE" = X32; then
9354
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9356
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9358
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9362
hardcode_into_libs=yes
9363
dynamic_linker="$host_os dld.sl"
9364
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9365
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9366
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367
soname_spec='${libname}${release}${shared_ext}$major'
9368
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9369
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9373
dynamic_linker="$host_os dld.sl"
9374
shlibpath_var=SHLIB_PATH
9375
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9376
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377
soname_spec='${libname}${release}${shared_ext}$major'
9380
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9381
postinstall_cmds='chmod 555 $lib'
9388
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9389
soname_spec='${libname}${release}${shared_ext}$major'
9390
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9391
shlibpath_var=LD_LIBRARY_PATH
9392
shlibpath_overrides_runpath=no
9393
hardcode_into_libs=yes
9396
irix5* | irix6* | nonstopux*)
9398
nonstopux*) version_type=nonstopux ;;
9400
if test "$lt_cv_prog_gnu_ld" = yes; then
9408
soname_spec='${libname}${release}${shared_ext}$major'
9409
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9411
irix5* | nonstopux*)
9415
case $LD in # libtool.m4 will add one of these switches to LD
9416
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9417
libsuff= shlibsuff= libmagic=32-bit;;
9418
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9419
libsuff=32 shlibsuff=N32 libmagic=N32;;
9420
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9421
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9422
*) libsuff= shlibsuff= libmagic=never-match;;
9426
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9427
shlibpath_overrides_runpath=no
9428
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9429
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9430
hardcode_into_libs=yes
9433
# No shared lib support for Linux oldld, aout, or coff.
9434
linux*oldld* | linux*aout* | linux*coff*)
9438
# This must be Linux ELF.
9439
linux* | k*bsd*-gnu)
9443
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9444
soname_spec='${libname}${release}${shared_ext}$major'
9445
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9446
shlibpath_var=LD_LIBRARY_PATH
9447
shlibpath_overrides_runpath=no
9448
# Some binutils ld are patched to set DT_RUNPATH
9449
save_LDFLAGS=$LDFLAGS
9451
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9452
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9453
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454
/* end confdefs.h. */
9464
if ac_fn_c_try_link "$LINENO"; then :
9465
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9466
shlibpath_overrides_runpath=yes
9469
rm -f core conftest.err conftest.$ac_objext \
9470
conftest$ac_exeext conftest.$ac_ext
9471
LDFLAGS=$save_LDFLAGS
9474
# This implies no fast_install, which is unacceptable.
9475
# Some rework will be needed to allow for fast_install
9476
# before this can be enabled.
9477
hardcode_into_libs=yes
9479
# Append ld.so.conf contents to the search path
9480
if test -f /etc/ld.so.conf; then
9481
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;/^$/d' | tr '\n' ' '`
9482
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9485
# We used to test for /lib/ld.so.1 and disable shared libraries on
9486
# powerpc, because MkLinux only supported shared libraries with the
9487
# GNU dynamic linker. Since this was broken with cross compilers,
9488
# most powerpc-linux boxes support dynamic linking these days and
9489
# people can always --disable-shared, the test was removed, and we
9490
# assume the GNU/Linux dynamic linker is in use.
9491
dynamic_linker='GNU/Linux ld.so'
9498
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9499
soname_spec='${libname}${release}${shared_ext}$major'
9500
shlibpath_var=LD_LIBRARY_PATH
9501
shlibpath_overrides_runpath=no
9502
hardcode_into_libs=yes
9503
dynamic_linker='NetBSD ld.elf_so'
9510
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9511
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9512
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9513
dynamic_linker='NetBSD (a.out) ld.so'
9515
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9516
soname_spec='${libname}${release}${shared_ext}$major'
9517
dynamic_linker='NetBSD ld.elf_so'
9519
shlibpath_var=LD_LIBRARY_PATH
9520
shlibpath_overrides_runpath=yes
9521
hardcode_into_libs=yes
9526
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9527
shlibpath_var=LD_LIBRARY_PATH
9528
shlibpath_overrides_runpath=yes
9535
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9536
soname_spec='${libname}${release}${shared_ext}$major'
9537
shlibpath_var=LD_LIBRARY_PATH
9538
shlibpath_overrides_runpath=no
9539
hardcode_into_libs=yes
9540
dynamic_linker='ldqnx.so'
9545
sys_lib_dlsearch_path_spec="/usr/lib"
9547
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9549
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9550
*) need_version=no ;;
9552
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9553
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9554
shlibpath_var=LD_LIBRARY_PATH
9555
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9557
openbsd2.[89] | openbsd2.[89].*)
9558
shlibpath_overrides_runpath=no
9561
shlibpath_overrides_runpath=yes
9565
shlibpath_overrides_runpath=yes
9570
libname_spec='$name'
9573
library_names_spec='$libname${shared_ext} $libname.a'
9574
dynamic_linker='OS/2 ld.exe'
9575
shlibpath_var=LIBPATH
9578
osf3* | osf4* | osf5*)
9582
soname_spec='${libname}${release}${shared_ext}$major'
9583
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9584
shlibpath_var=LD_LIBRARY_PATH
9585
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9586
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9597
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598
soname_spec='${libname}${release}${shared_ext}$major'
9599
shlibpath_var=LD_LIBRARY_PATH
9600
shlibpath_overrides_runpath=yes
9601
hardcode_into_libs=yes
9602
# ldd complains unless libraries are executable
9603
postinstall_cmds='chmod +x $lib'
9608
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9609
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9610
shlibpath_var=LD_LIBRARY_PATH
9611
shlibpath_overrides_runpath=yes
9612
if test "$with_gnu_ld" = yes; then
9620
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9621
soname_spec='${libname}${release}${shared_ext}$major'
9622
shlibpath_var=LD_LIBRARY_PATH
9623
case $host_vendor in
9625
shlibpath_overrides_runpath=no
9627
runpath_var=LD_RUN_PATH
9635
shlibpath_overrides_runpath=no
9636
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9642
if test -d /usr/nec ;then
9644
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9645
soname_spec='$libname${shared_ext}.$major'
9646
shlibpath_var=LD_LIBRARY_PATH
9650
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9651
version_type=freebsd-elf
9654
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9655
soname_spec='${libname}${release}${shared_ext}$major'
9656
shlibpath_var=LD_LIBRARY_PATH
9657
shlibpath_overrides_runpath=yes
9658
hardcode_into_libs=yes
9659
if test "$with_gnu_ld" = yes; then
9660
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9662
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9665
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9669
sys_lib_dlsearch_path_spec='/usr/lib'
9673
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9677
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678
shlibpath_var=LD_LIBRARY_PATH
9679
shlibpath_overrides_runpath=no
9680
hardcode_into_libs=yes
9685
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9686
soname_spec='${libname}${release}${shared_ext}$major'
9687
shlibpath_var=LD_LIBRARY_PATH
9694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9695
$as_echo "$dynamic_linker" >&6; }
9696
test "$dynamic_linker" = no && can_build_shared=no
9698
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9699
if test "$GCC" = yes; then
9700
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9703
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9704
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9706
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9707
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9797
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9799
if test -n "$hardcode_libdir_flag_spec" ||
9800
test -n "$runpath_var" ||
9801
test "X$hardcode_automatic" = "Xyes" ; then
9803
# We can hardcode non-existent directories.
9804
if test "$hardcode_direct" != no &&
9805
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9806
# have to relink, otherwise we might link with an installed library
9807
# when we should be linking with a yet-to-be-installed one
9808
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9809
test "$hardcode_minus_L" != no; then
9810
# Linking always hardcodes the temporary library directory.
9811
hardcode_action=relink
9813
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9814
hardcode_action=immediate
9817
# We cannot hardcode anything, or else we can only hardcode existing
9819
hardcode_action=unsupported
9821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9822
$as_echo "$hardcode_action" >&6; }
9824
if test "$hardcode_action" = relink ||
9825
test "$inherit_rpath" = yes; then
9826
# Fast installation is not supported
9827
enable_fast_install=no
9828
elif test "$shlibpath_overrides_runpath" = yes ||
9829
test "$enable_shared" = no; then
9830
# Fast installation is not necessary
9831
enable_fast_install=needless
9839
if test "x$enable_dlopen" != xyes; then
9840
enable_dlopen=unknown
9841
enable_dlopen_self=unknown
9842
enable_dlopen_self_static=unknown
9849
lt_cv_dlopen="load_add_on"
9851
lt_cv_dlopen_self=yes
9854
mingw* | pw32* | cegcc*)
9855
lt_cv_dlopen="LoadLibrary"
9860
lt_cv_dlopen="dlopen"
9865
# if libdl is installed we need to link against it
9866
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9867
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9868
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9869
$as_echo_n "(cached) " >&6
9871
ac_check_lib_save_LIBS=$LIBS
9873
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874
/* end confdefs.h. */
9876
/* Override any GCC internal prototype to avoid an error.
9877
Use char because int might match the return type of a GCC
9878
builtin and then its argument prototype would still apply. */
9891
if ac_fn_c_try_link "$LINENO"; then :
9892
ac_cv_lib_dl_dlopen=yes
9894
ac_cv_lib_dl_dlopen=no
9896
rm -f core conftest.err conftest.$ac_objext \
9897
conftest$ac_exeext conftest.$ac_ext
9898
LIBS=$ac_check_lib_save_LIBS
9900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9901
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9902
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9903
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9908
lt_cv_dlopen_self=yes
9915
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9916
if test "x$ac_cv_func_shl_load" = x""yes; then :
9917
lt_cv_dlopen="shl_load"
9919
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9920
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9921
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9922
$as_echo_n "(cached) " >&6
9924
ac_check_lib_save_LIBS=$LIBS
9926
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927
/* end confdefs.h. */
9929
/* Override any GCC internal prototype to avoid an error.
9930
Use char because int might match the return type of a GCC
9931
builtin and then its argument prototype would still apply. */
9944
if ac_fn_c_try_link "$LINENO"; then :
9945
ac_cv_lib_dld_shl_load=yes
9947
ac_cv_lib_dld_shl_load=no
9949
rm -f core conftest.err conftest.$ac_objext \
9950
conftest$ac_exeext conftest.$ac_ext
9951
LIBS=$ac_check_lib_save_LIBS
9953
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9954
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9955
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9956
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9958
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9959
if test "x$ac_cv_func_dlopen" = x""yes; then :
9960
lt_cv_dlopen="dlopen"
9962
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9963
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9964
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9965
$as_echo_n "(cached) " >&6
9967
ac_check_lib_save_LIBS=$LIBS
9969
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9970
/* end confdefs.h. */
9972
/* Override any GCC internal prototype to avoid an error.
9973
Use char because int might match the return type of a GCC
9974
builtin and then its argument prototype would still apply. */
9987
if ac_fn_c_try_link "$LINENO"; then :
9988
ac_cv_lib_dl_dlopen=yes
9990
ac_cv_lib_dl_dlopen=no
9992
rm -f core conftest.err conftest.$ac_objext \
9993
conftest$ac_exeext conftest.$ac_ext
9994
LIBS=$ac_check_lib_save_LIBS
9996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9997
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9998
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9999
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10001
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10002
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10003
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10004
$as_echo_n "(cached) " >&6
10006
ac_check_lib_save_LIBS=$LIBS
10007
LIBS="-lsvld $LIBS"
10008
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009
/* end confdefs.h. */
10011
/* Override any GCC internal prototype to avoid an error.
10012
Use char because int might match the return type of a GCC
10013
builtin and then its argument prototype would still apply. */
10026
if ac_fn_c_try_link "$LINENO"; then :
10027
ac_cv_lib_svld_dlopen=yes
10029
ac_cv_lib_svld_dlopen=no
10031
rm -f core conftest.err conftest.$ac_objext \
10032
conftest$ac_exeext conftest.$ac_ext
10033
LIBS=$ac_check_lib_save_LIBS
10035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10036
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10037
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10038
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10040
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10041
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10042
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10043
$as_echo_n "(cached) " >&6
10045
ac_check_lib_save_LIBS=$LIBS
10047
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048
/* end confdefs.h. */
10050
/* Override any GCC internal prototype to avoid an error.
10051
Use char because int might match the return type of a GCC
10052
builtin and then its argument prototype would still apply. */
10060
return dld_link ();
10065
if ac_fn_c_try_link "$LINENO"; then :
10066
ac_cv_lib_dld_dld_link=yes
10068
ac_cv_lib_dld_dld_link=no
10070
rm -f core conftest.err conftest.$ac_objext \
10071
conftest$ac_exeext conftest.$ac_ext
10072
LIBS=$ac_check_lib_save_LIBS
10074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10075
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10076
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10077
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10098
if test "x$lt_cv_dlopen" != xno; then
10104
case $lt_cv_dlopen in
10106
save_CPPFLAGS="$CPPFLAGS"
10107
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10109
save_LDFLAGS="$LDFLAGS"
10110
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10113
LIBS="$lt_cv_dlopen_libs $LIBS"
10115
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10116
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10117
if test "${lt_cv_dlopen_self+set}" = set; then :
10118
$as_echo_n "(cached) " >&6
10120
if test "$cross_compiling" = yes; then :
10121
lt_cv_dlopen_self=cross
10123
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10124
lt_status=$lt_dlunknown
10125
cat > conftest.$ac_ext <<_LT_EOF
10126
#line 10126 "configure"
10127
#include "confdefs.h"
10136
# define LT_DLGLOBAL RTLD_GLOBAL
10139
# define LT_DLGLOBAL DL_GLOBAL
10141
# define LT_DLGLOBAL 0
10145
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10146
find out it does not work in some platform. */
10147
#ifndef LT_DLLAZY_OR_NOW
10149
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10152
# define LT_DLLAZY_OR_NOW DL_LAZY
10155
# define LT_DLLAZY_OR_NOW RTLD_NOW
10158
# define LT_DLLAZY_OR_NOW DL_NOW
10160
# define LT_DLLAZY_OR_NOW 0
10167
void fnord() { int i=42;}
10170
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10171
int status = $lt_dlunknown;
10175
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10176
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10177
/* dlclose (self); */
10185
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10186
(eval $ac_link) 2>&5
10188
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10189
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10190
(./conftest; exit; ) >&5 2>/dev/null
10192
case x$lt_status in
10193
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10194
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10195
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10198
# compilation failed
10199
lt_cv_dlopen_self=no
10206
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10207
$as_echo "$lt_cv_dlopen_self" >&6; }
10209
if test "x$lt_cv_dlopen_self" = xyes; then
10210
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10211
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10212
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10213
if test "${lt_cv_dlopen_self_static+set}" = set; then :
10214
$as_echo_n "(cached) " >&6
10216
if test "$cross_compiling" = yes; then :
10217
lt_cv_dlopen_self_static=cross
10219
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10220
lt_status=$lt_dlunknown
10221
cat > conftest.$ac_ext <<_LT_EOF
10222
#line 10222 "configure"
10223
#include "confdefs.h"
10232
# define LT_DLGLOBAL RTLD_GLOBAL
10235
# define LT_DLGLOBAL DL_GLOBAL
10237
# define LT_DLGLOBAL 0
10241
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10242
find out it does not work in some platform. */
10243
#ifndef LT_DLLAZY_OR_NOW
10245
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10248
# define LT_DLLAZY_OR_NOW DL_LAZY
10251
# define LT_DLLAZY_OR_NOW RTLD_NOW
10254
# define LT_DLLAZY_OR_NOW DL_NOW
10256
# define LT_DLLAZY_OR_NOW 0
10263
void fnord() { int i=42;}
10266
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10267
int status = $lt_dlunknown;
10271
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10272
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10273
/* dlclose (self); */
10281
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10282
(eval $ac_link) 2>&5
10284
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10285
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10286
(./conftest; exit; ) >&5 2>/dev/null
10288
case x$lt_status in
10289
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10290
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10291
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10294
# compilation failed
10295
lt_cv_dlopen_self_static=no
10302
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10303
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10306
CPPFLAGS="$save_CPPFLAGS"
10307
LDFLAGS="$save_LDFLAGS"
10312
case $lt_cv_dlopen_self in
10313
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10314
*) enable_dlopen_self=unknown ;;
10317
case $lt_cv_dlopen_self_static in
10318
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10319
*) enable_dlopen_self_static=unknown ;;
10341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10342
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10343
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10344
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10345
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10346
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10347
$as_echo "yes" >&6; }
10349
# FIXME - insert some real tests, host_os isn't really good enough
10352
if test -n "$STRIP" ; then
10353
striplib="$STRIP -x"
10354
old_striplib="$STRIP -S"
10355
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10356
$as_echo "yes" >&6; }
10358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359
$as_echo "no" >&6; }
10363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364
$as_echo "no" >&6; }
10380
# Report which library types will actually be built
10381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10382
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10383
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10384
$as_echo "$can_build_shared" >&6; }
10386
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10387
$as_echo_n "checking whether to build shared libraries... " >&6; }
10388
test "$can_build_shared" = "no" && enable_shared=no
10390
# On AIX, shared libraries and static libraries use the same namespace, and
10391
# are all built from PIC.
10394
test "$enable_shared" = yes && enable_static=no
10395
if test -n "$RANLIB"; then
10396
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10397
postinstall_cmds='$RANLIB $lib'
10402
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10403
test "$enable_shared" = yes && enable_static=no
10407
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10408
$as_echo "$enable_shared" >&6; }
10410
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10411
$as_echo_n "checking whether to build static libraries... " >&6; }
10412
# Make sure either enable_shared or enable_static is yes.
10413
test "$enable_shared" = yes || enable_static=yes
10414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10415
$as_echo "$enable_static" >&6; }
10422
ac_cpp='$CPP $CPPFLAGS'
10423
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10424
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10425
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10441
ac_config_commands="$ac_config_commands libtool"
10446
# Only expand once:
10450
ac_cpp='$CPP $CPPFLAGS'
10451
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10452
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10453
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10454
if test -n "$ac_tool_prefix"; then
10455
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10456
set dummy ${ac_tool_prefix}gcc; ac_word=$2
10457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10458
$as_echo_n "checking for $ac_word... " >&6; }
10459
if test "${ac_cv_prog_CC+set}" = set; then :
10460
$as_echo_n "(cached) " >&6
10462
if test -n "$CC"; then
10463
ac_cv_prog_CC="$CC" # Let the user override the test.
10465
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10466
for as_dir in $PATH
10469
test -z "$as_dir" && as_dir=.
10470
for ac_exec_ext in '' $ac_executable_extensions; do
10471
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10472
ac_cv_prog_CC="${ac_tool_prefix}gcc"
10473
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10483
if test -n "$CC"; then
10484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10485
$as_echo "$CC" >&6; }
10487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10488
$as_echo "no" >&6; }
10493
if test -z "$ac_cv_prog_CC"; then
10495
# Extract the first word of "gcc", so it can be a program name with args.
10496
set dummy gcc; ac_word=$2
10497
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10498
$as_echo_n "checking for $ac_word... " >&6; }
10499
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10500
$as_echo_n "(cached) " >&6
10502
if test -n "$ac_ct_CC"; then
10503
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10505
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10506
for as_dir in $PATH
10509
test -z "$as_dir" && as_dir=.
10510
for ac_exec_ext in '' $ac_executable_extensions; do
10511
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10512
ac_cv_prog_ac_ct_CC="gcc"
10513
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10522
ac_ct_CC=$ac_cv_prog_ac_ct_CC
10523
if test -n "$ac_ct_CC"; then
10524
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10525
$as_echo "$ac_ct_CC" >&6; }
10527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528
$as_echo "no" >&6; }
10531
if test "x$ac_ct_CC" = x; then
10534
case $cross_compiling:$ac_tool_warned in
10536
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10537
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10538
ac_tool_warned=yes ;;
10543
CC="$ac_cv_prog_CC"
10546
if test -z "$CC"; then
10547
if test -n "$ac_tool_prefix"; then
10548
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10549
set dummy ${ac_tool_prefix}cc; ac_word=$2
10550
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10551
$as_echo_n "checking for $ac_word... " >&6; }
10552
if test "${ac_cv_prog_CC+set}" = set; then :
10553
$as_echo_n "(cached) " >&6
10555
if test -n "$CC"; then
10556
ac_cv_prog_CC="$CC" # Let the user override the test.
10558
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559
for as_dir in $PATH
10562
test -z "$as_dir" && as_dir=.
10563
for ac_exec_ext in '' $ac_executable_extensions; do
10564
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10565
ac_cv_prog_CC="${ac_tool_prefix}cc"
10566
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10576
if test -n "$CC"; then
10577
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10578
$as_echo "$CC" >&6; }
10580
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581
$as_echo "no" >&6; }
10587
if test -z "$CC"; then
10588
# Extract the first word of "cc", so it can be a program name with args.
10589
set dummy cc; ac_word=$2
10590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10591
$as_echo_n "checking for $ac_word... " >&6; }
10592
if test "${ac_cv_prog_CC+set}" = set; then :
10593
$as_echo_n "(cached) " >&6
10595
if test -n "$CC"; then
10596
ac_cv_prog_CC="$CC" # Let the user override the test.
10598
ac_prog_rejected=no
10599
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10600
for as_dir in $PATH
10603
test -z "$as_dir" && as_dir=.
10604
for ac_exec_ext in '' $ac_executable_extensions; do
10605
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10606
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10607
ac_prog_rejected=yes
10611
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10618
if test $ac_prog_rejected = yes; then
10619
# We found a bogon in the path, so make sure we never use it.
10620
set dummy $ac_cv_prog_CC
10622
if test $# != 0; then
10623
# We chose a different compiler from the bogus one.
10624
# However, it has the same basename, so the bogon will be chosen
10625
# first if we set CC to just the basename; use the full file name.
10627
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10633
if test -n "$CC"; then
10634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10635
$as_echo "$CC" >&6; }
10637
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10638
$as_echo "no" >&6; }
10643
if test -z "$CC"; then
10644
if test -n "$ac_tool_prefix"; then
10645
for ac_prog in cl.exe
10647
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10648
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10649
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10650
$as_echo_n "checking for $ac_word... " >&6; }
10651
if test "${ac_cv_prog_CC+set}" = set; then :
10652
$as_echo_n "(cached) " >&6
10654
if test -n "$CC"; then
10655
ac_cv_prog_CC="$CC" # Let the user override the test.
10657
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10658
for as_dir in $PATH
10661
test -z "$as_dir" && as_dir=.
10662
for ac_exec_ext in '' $ac_executable_extensions; do
10663
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10664
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10665
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10675
if test -n "$CC"; then
10676
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10677
$as_echo "$CC" >&6; }
10679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10680
$as_echo "no" >&6; }
10684
test -n "$CC" && break
10687
if test -z "$CC"; then
10689
for ac_prog in cl.exe
10691
# Extract the first word of "$ac_prog", so it can be a program name with args.
10692
set dummy $ac_prog; ac_word=$2
10693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10694
$as_echo_n "checking for $ac_word... " >&6; }
10695
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10696
$as_echo_n "(cached) " >&6
10698
if test -n "$ac_ct_CC"; then
10699
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10701
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702
for as_dir in $PATH
10705
test -z "$as_dir" && as_dir=.
10706
for ac_exec_ext in '' $ac_executable_extensions; do
10707
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10708
ac_cv_prog_ac_ct_CC="$ac_prog"
10709
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10718
ac_ct_CC=$ac_cv_prog_ac_ct_CC
10719
if test -n "$ac_ct_CC"; then
10720
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10721
$as_echo "$ac_ct_CC" >&6; }
10723
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724
$as_echo "no" >&6; }
10728
test -n "$ac_ct_CC" && break
10731
if test "x$ac_ct_CC" = x; then
10734
case $cross_compiling:$ac_tool_warned in
10736
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10737
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10738
ac_tool_warned=yes ;;
10747
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10748
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10749
as_fn_error "no acceptable C compiler found in \$PATH
10750
See \`config.log' for more details." "$LINENO" 5; }
10752
# Provide some information about the compiler.
10753
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10756
for ac_option in --version -v -V -qversion; do
10757
{ { ac_try="$ac_compiler $ac_option >&5"
10758
case "(($ac_try" in
10759
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760
*) ac_try_echo=$ac_try;;
10762
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10763
$as_echo "$ac_try_echo"; } >&5
10764
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
10766
if test -s conftest.err; then
10768
... rest of stderr output deleted ...
10769
10q' conftest.err >conftest.er1
10770
cat conftest.er1 >&5
10771
rm -f conftest.er1 conftest.err
10773
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10774
test $ac_status = 0; }
10777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10778
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10779
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
10780
$as_echo_n "(cached) " >&6
10782
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783
/* end confdefs.h. */
10796
if ac_fn_c_try_compile "$LINENO"; then :
10797
ac_compiler_gnu=yes
10801
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10802
ac_cv_c_compiler_gnu=$ac_compiler_gnu
10805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10806
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
10807
if test $ac_compiler_gnu = yes; then
10812
ac_test_CFLAGS=${CFLAGS+set}
10813
ac_save_CFLAGS=$CFLAGS
10814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10815
$as_echo_n "checking whether $CC accepts -g... " >&6; }
10816
if test "${ac_cv_prog_cc_g+set}" = set; then :
10817
$as_echo_n "(cached) " >&6
10819
ac_save_c_werror_flag=$ac_c_werror_flag
10820
ac_c_werror_flag=yes
10823
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824
/* end confdefs.h. */
10834
if ac_fn_c_try_compile "$LINENO"; then :
10835
ac_cv_prog_cc_g=yes
10838
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10839
/* end confdefs.h. */
10849
if ac_fn_c_try_compile "$LINENO"; then :
10852
ac_c_werror_flag=$ac_save_c_werror_flag
10854
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855
/* end confdefs.h. */
10865
if ac_fn_c_try_compile "$LINENO"; then :
10866
ac_cv_prog_cc_g=yes
10868
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10870
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10872
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10873
ac_c_werror_flag=$ac_save_c_werror_flag
10875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10876
$as_echo "$ac_cv_prog_cc_g" >&6; }
10877
if test "$ac_test_CFLAGS" = set; then
10878
CFLAGS=$ac_save_CFLAGS
10879
elif test $ac_cv_prog_cc_g = yes; then
10880
if test "$GCC" = yes; then
10886
if test "$GCC" = yes; then
10892
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
10893
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
10894
if test "${ac_cv_prog_cc_c89+set}" = set; then :
10895
$as_echo_n "(cached) " >&6
10897
ac_cv_prog_cc_c89=no
10899
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900
/* end confdefs.h. */
10901
#include <stdarg.h>
10903
#include <sys/types.h>
10904
#include <sys/stat.h>
10905
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10906
struct buf { int x; };
10907
FILE * (*rcsopen) (struct buf *, struct stat *, int);
10908
static char *e (p, i)
10914
static char *f (char * (*g) (char **, int), char **p, ...)
10919
s = g (p, va_arg (v,int));
10924
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10925
function prototypes and stuff, but not '\xHH' hex character constants.
10926
These don't provoke an error unfortunately, instead are silently treated
10927
as 'x'. The following induces an error, until -std is added to get
10928
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10929
array size at least. It's necessary to write '\x00'==0 to get something
10930
that's true only with -std. */
10931
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10933
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
10934
inside strings and character constants. */
10936
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
10938
int test (int i, double x);
10939
struct s1 {int (*f) (int a);};
10940
struct s2 {int (*f) (double a);};
10941
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10947
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10952
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
10953
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10955
CC="$ac_save_CC $ac_arg"
10956
if ac_fn_c_try_compile "$LINENO"; then :
10957
ac_cv_prog_cc_c89=$ac_arg
10959
rm -f core conftest.err conftest.$ac_objext
10960
test "x$ac_cv_prog_cc_c89" != "xno" && break
10962
rm -f conftest.$ac_ext
10967
case "x$ac_cv_prog_cc_c89" in
10969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10970
$as_echo "none needed" >&6; } ;;
10972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10973
$as_echo "unsupported" >&6; } ;;
10975
CC="$CC $ac_cv_prog_cc_c89"
10976
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
10977
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
10979
if test "x$ac_cv_prog_cc_c89" != xno; then :
10984
ac_cpp='$CPP $CPPFLAGS'
10985
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10986
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10987
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10990
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10991
$as_echo_n "checking for ANSI C header files... " >&6; }
10992
if test "${ac_cv_header_stdc+set}" = set; then :
10993
$as_echo_n "(cached) " >&6
10995
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996
/* end confdefs.h. */
10997
#include <stdlib.h>
10998
#include <stdarg.h>
10999
#include <string.h>
11010
if ac_fn_c_try_compile "$LINENO"; then :
11011
ac_cv_header_stdc=yes
11013
ac_cv_header_stdc=no
11015
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017
if test $ac_cv_header_stdc = yes; then
11018
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11019
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11020
/* end confdefs.h. */
11021
#include <string.h>
11024
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11025
$EGREP "memchr" >/dev/null 2>&1; then :
11028
ac_cv_header_stdc=no
11034
if test $ac_cv_header_stdc = yes; then
11035
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11036
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037
/* end confdefs.h. */
11038
#include <stdlib.h>
11041
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11042
$EGREP "free" >/dev/null 2>&1; then :
11045
ac_cv_header_stdc=no
11051
if test $ac_cv_header_stdc = yes; then
11052
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11053
if test "$cross_compiling" = yes; then :
11056
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057
/* end confdefs.h. */
11059
#include <stdlib.h>
11060
#if ((' ' & 0x0FF) == 0x020)
11061
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11062
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11064
# define ISLOWER(c) \
11065
(('a' <= (c) && (c) <= 'i') \
11066
|| ('j' <= (c) && (c) <= 'r') \
11067
|| ('s' <= (c) && (c) <= 'z'))
11068
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11071
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11076
for (i = 0; i < 256; i++)
11077
if (XOR (islower (i), ISLOWER (i))
11078
|| toupper (i) != TOUPPER (i))
11083
if ac_fn_c_try_run "$LINENO"; then :
11086
ac_cv_header_stdc=no
11088
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11089
conftest.$ac_objext conftest.beam conftest.$ac_ext
11094
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11095
$as_echo "$ac_cv_header_stdc" >&6; }
11096
if test $ac_cv_header_stdc = yes; then
11098
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11102
# Check whether --enable-largefile was given.
11103
if test "${enable_largefile+set}" = set; then :
11104
enableval=$enable_largefile;
11107
if test "$enable_largefile" != no; then
11109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11110
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11111
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11112
$as_echo_n "(cached) " >&6
11114
ac_cv_sys_largefile_CC=no
11115
if test "$GCC" != yes; then
11118
# IRIX 6.2 and later do not support large files by default,
11119
# so use the C compiler's -n32 option if that helps.
11120
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121
/* end confdefs.h. */
11122
#include <sys/types.h>
11123
/* Check that off_t can represent 2**63 - 1 correctly.
11124
We can't simply define LARGE_OFF_T to be 9223372036854775807,
11125
since some C++ compilers masquerading as C compilers
11126
incorrectly reject 9223372036854775807. */
11127
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11128
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11129
&& LARGE_OFF_T % 2147483647 == 1)
11139
if ac_fn_c_try_compile "$LINENO"; then :
11142
rm -f core conftest.err conftest.$ac_objext
11144
if ac_fn_c_try_compile "$LINENO"; then :
11145
ac_cv_sys_largefile_CC=' -n32'; break
11147
rm -f core conftest.err conftest.$ac_objext
11151
rm -f conftest.$ac_ext
11154
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11155
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11156
if test "$ac_cv_sys_largefile_CC" != no; then
11157
CC=$CC$ac_cv_sys_largefile_CC
11160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11161
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11162
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11163
$as_echo_n "(cached) " >&6
11166
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11167
/* end confdefs.h. */
11168
#include <sys/types.h>
11169
/* Check that off_t can represent 2**63 - 1 correctly.
11170
We can't simply define LARGE_OFF_T to be 9223372036854775807,
11171
since some C++ compilers masquerading as C compilers
11172
incorrectly reject 9223372036854775807. */
11173
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11174
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11175
&& LARGE_OFF_T % 2147483647 == 1)
11185
if ac_fn_c_try_compile "$LINENO"; then :
11186
ac_cv_sys_file_offset_bits=no; break
11188
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11189
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190
/* end confdefs.h. */
11191
#define _FILE_OFFSET_BITS 64
11192
#include <sys/types.h>
11193
/* Check that off_t can represent 2**63 - 1 correctly.
11194
We can't simply define LARGE_OFF_T to be 9223372036854775807,
11195
since some C++ compilers masquerading as C compilers
11196
incorrectly reject 9223372036854775807. */
11197
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11198
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11199
&& LARGE_OFF_T % 2147483647 == 1)
11209
if ac_fn_c_try_compile "$LINENO"; then :
11210
ac_cv_sys_file_offset_bits=64; break
11212
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11213
ac_cv_sys_file_offset_bits=unknown
11217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11218
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11219
case $ac_cv_sys_file_offset_bits in #(
11222
cat >>confdefs.h <<_ACEOF
11223
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11228
if test $ac_cv_sys_file_offset_bits = unknown; then
11229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11230
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11231
if test "${ac_cv_sys_large_files+set}" = set; then :
11232
$as_echo_n "(cached) " >&6
11235
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236
/* end confdefs.h. */
11237
#include <sys/types.h>
11238
/* Check that off_t can represent 2**63 - 1 correctly.
11239
We can't simply define LARGE_OFF_T to be 9223372036854775807,
11240
since some C++ compilers masquerading as C compilers
11241
incorrectly reject 9223372036854775807. */
11242
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11243
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11244
&& LARGE_OFF_T % 2147483647 == 1)
11254
if ac_fn_c_try_compile "$LINENO"; then :
11255
ac_cv_sys_large_files=no; break
11257
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11258
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11259
/* end confdefs.h. */
11260
#define _LARGE_FILES 1
11261
#include <sys/types.h>
11262
/* Check that off_t can represent 2**63 - 1 correctly.
11263
We can't simply define LARGE_OFF_T to be 9223372036854775807,
11264
since some C++ compilers masquerading as C compilers
11265
incorrectly reject 9223372036854775807. */
11266
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11267
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11268
&& LARGE_OFF_T % 2147483647 == 1)
11278
if ac_fn_c_try_compile "$LINENO"; then :
11279
ac_cv_sys_large_files=1; break
11281
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11282
ac_cv_sys_large_files=unknown
11286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11287
$as_echo "$ac_cv_sys_large_files" >&6; }
11288
case $ac_cv_sys_large_files in #(
11291
cat >>confdefs.h <<_ACEOF
11292
#define _LARGE_FILES $ac_cv_sys_large_files
11303
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11304
if test -n "$ac_tool_prefix"; then
11305
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11306
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11307
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11308
$as_echo_n "checking for $ac_word... " >&6; }
11309
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11310
$as_echo_n "(cached) " >&6
11312
case $PKG_CONFIG in
11314
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11317
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11318
for as_dir in $PATH
11321
test -z "$as_dir" && as_dir=.
11322
for ac_exec_ext in '' $ac_executable_extensions; do
11323
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11324
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11325
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11335
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11336
if test -n "$PKG_CONFIG"; then
11337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11338
$as_echo "$PKG_CONFIG" >&6; }
11340
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341
$as_echo "no" >&6; }
11346
if test -z "$ac_cv_path_PKG_CONFIG"; then
11347
ac_pt_PKG_CONFIG=$PKG_CONFIG
11348
# Extract the first word of "pkg-config", so it can be a program name with args.
11349
set dummy pkg-config; ac_word=$2
11350
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11351
$as_echo_n "checking for $ac_word... " >&6; }
11352
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11353
$as_echo_n "(cached) " >&6
11355
case $ac_pt_PKG_CONFIG in
11357
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11360
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11361
for as_dir in $PATH
11364
test -z "$as_dir" && as_dir=.
11365
for ac_exec_ext in '' $ac_executable_extensions; do
11366
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11367
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11368
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11378
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11379
if test -n "$ac_pt_PKG_CONFIG"; then
11380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11381
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11383
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384
$as_echo "no" >&6; }
11387
if test "x$ac_pt_PKG_CONFIG" = x; then
11390
case $cross_compiling:$ac_tool_warned in
11392
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11393
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11394
ac_tool_warned=yes ;;
11396
PKG_CONFIG=$ac_pt_PKG_CONFIG
11399
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11403
if test -n "$PKG_CONFIG"; then
11404
_pkg_min_version=0.9.0
11405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11406
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11407
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11408
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11409
$as_echo "yes" >&6; }
11411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11412
$as_echo "no" >&6; }
11419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREADSTUBS" >&5
11420
$as_echo_n "checking for PTHREADSTUBS... " >&6; }
11422
if test -n "$PKG_CONFIG"; then
11423
if test -n "$PTHREADSTUBS_CFLAGS"; then
11424
pkg_cv_PTHREADSTUBS_CFLAGS="$PTHREADSTUBS_CFLAGS"
11426
if test -n "$PKG_CONFIG" && \
11427
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pthread-stubs\""; } >&5
11428
($PKG_CONFIG --exists --print-errors "pthread-stubs") 2>&5
11430
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11431
test $ac_status = 0; }; then
11432
pkg_cv_PTHREADSTUBS_CFLAGS=`$PKG_CONFIG --cflags "pthread-stubs" 2>/dev/null`
11440
if test -n "$PKG_CONFIG"; then
11441
if test -n "$PTHREADSTUBS_LIBS"; then
11442
pkg_cv_PTHREADSTUBS_LIBS="$PTHREADSTUBS_LIBS"
11444
if test -n "$PKG_CONFIG" && \
11445
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pthread-stubs\""; } >&5
11446
($PKG_CONFIG --exists --print-errors "pthread-stubs") 2>&5
11448
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11449
test $ac_status = 0; }; then
11450
pkg_cv_PTHREADSTUBS_LIBS=`$PKG_CONFIG --libs "pthread-stubs" 2>/dev/null`
11461
if test $pkg_failed = yes; then
11463
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11464
_pkg_short_errors_supported=yes
11466
_pkg_short_errors_supported=no
11468
if test $_pkg_short_errors_supported = yes; then
11469
PTHREADSTUBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pthread-stubs"`
11471
PTHREADSTUBS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pthread-stubs"`
11473
# Put the nasty error message in config.log where it belongs
11474
echo "$PTHREADSTUBS_PKG_ERRORS" >&5
11476
as_fn_error "Package requirements (pthread-stubs) were not met:
11478
$PTHREADSTUBS_PKG_ERRORS
11480
Consider adjusting the PKG_CONFIG_PATH environment variable if you
11481
installed software in a non-standard prefix.
11483
Alternatively, you may set the environment variables PTHREADSTUBS_CFLAGS
11484
and PTHREADSTUBS_LIBS to avoid the need to call pkg-config.
11485
See the pkg-config man page for more details.
11487
elif test $pkg_failed = untried; then
11488
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11489
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11490
as_fn_error "The pkg-config script could not be found or is too old. Make sure it
11491
is in your PATH or set the PKG_CONFIG environment variable to the full
11492
path to pkg-config.
11494
Alternatively, you may set the environment variables PTHREADSTUBS_CFLAGS
11495
and PTHREADSTUBS_LIBS to avoid the need to call pkg-config.
11496
See the pkg-config man page for more details.
11498
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11499
See \`config.log' for more details." "$LINENO" 5; }
11501
PTHREADSTUBS_CFLAGS=$pkg_cv_PTHREADSTUBS_CFLAGS
11502
PTHREADSTUBS_LIBS=$pkg_cv_PTHREADSTUBS_LIBS
11503
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11504
$as_echo "yes" >&6; }
11510
pkgconfigdir=${libdir}/pkgconfig
11512
# Check whether --enable-udev was given.
11513
if test "${enable_udev+set}" = set; then :
11514
enableval=$enable_udev; UDEV=$enableval
11520
# Check whether --enable-nouveau-experimental-api was given.
11521
if test "${enable_nouveau_experimental_api+set}" = set; then :
11522
enableval=$enable_nouveau_experimental_api; NOUVEAU=$enableval
11528
# Check whether --enable-radeon-experimental-api was given.
11529
if test "${enable_radeon_experimental_api+set}" = set; then :
11530
enableval=$enable_radeon_experimental_api; RADEON=$enableval
11539
for ac_func in clock_gettime
11541
ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
11542
if test "x$ac_cv_func_clock_gettime" = x""yes; then :
11543
cat >>confdefs.h <<_ACEOF
11544
#define HAVE_CLOCK_GETTIME 1
11548
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
11549
$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
11550
if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
11551
$as_echo_n "(cached) " >&6
11553
ac_check_lib_save_LIBS=$LIBS
11555
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556
/* end confdefs.h. */
11558
/* Override any GCC internal prototype to avoid an error.
11559
Use char because int might match the return type of a GCC
11560
builtin and then its argument prototype would still apply. */
11564
char clock_gettime ();
11568
return clock_gettime ();
11573
if ac_fn_c_try_link "$LINENO"; then :
11574
ac_cv_lib_rt_clock_gettime=yes
11576
ac_cv_lib_rt_clock_gettime=no
11578
rm -f core conftest.err conftest.$ac_objext \
11579
conftest$ac_exeext conftest.$ac_ext
11580
LIBS=$ac_check_lib_save_LIBS
11582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
11583
$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
11584
if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
11587
as_fn_error "Couldn't find clock_gettime" "$LINENO" 5
11597
MAYBE_WARN="-Wall -Wextra \
11598
-Wsign-compare -Werror-implicit-function-declaration \
11599
-Wpointer-arith -Wwrite-strings -Wstrict-prototypes \
11600
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
11601
-Wpacked -Wswitch-enum -Wmissing-format-attribute \
11602
-Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations \
11603
-Wdeclaration-after-statement -Wold-style-definition \
11604
-Wno-missing-field-initializers -Wno-unused-parameter \
11605
-Wno-attributes -Wno-long-long -Winline"
11607
# invalidate cached value if MAYBE_WARN has changed
11608
if test "x$libdrm_cv_warn_maybe" != "x$MAYBE_WARN"; then
11609
unset libdrm_cv_warn_cflags
11611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported warning flags" >&5
11612
$as_echo_n "checking for supported warning flags... " >&6; }
11613
if test "${libdrm_cv_warn_cflags+set}" = set; then :
11614
$as_echo_n "(cached) " >&6
11620
# Some warning options are not supported by all versions of
11621
# gcc, so test all desired options against the current
11624
# Note that there are some order dependencies
11625
# here. Specifically, an option that disables a warning will
11626
# have no net effect if a later option then enables that
11627
# warnings, (perhaps implicitly). So we put some grouped
11628
# options (-Wall and -Wextra) up front and the -Wno options
11631
for W in $MAYBE_WARN; do
11633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $W" >&5
11634
$as_echo_n "checking whether $CC supports $W... " >&6; }
11636
libdrm_save_CFLAGS="$CFLAGS"
11637
CFLAGS="$CFLAGS $W"
11639
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640
/* end confdefs.h. */
11643
if ac_fn_c_try_compile "$LINENO"; then :
11648
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11649
CFLAGS="$libdrm_save_CFLAGS"
11651
if test "x$libdrm_cc_flag" = "xyes"; then
11652
WARN_CFLAGS="$WARN_CFLAGS $W"
11656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_cc_flag" >&5
11657
$as_echo "$libdrm_cc_flag" >&6; }
11661
libdrm_cv_warn_cflags=$WARN_CFLAGS
11662
libdrm_cv_warn_maybe=$MAYBE_WARN
11664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which warning flags were supported" >&5
11665
$as_echo_n "checking which warning flags were supported... " >&6; }
11667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_cv_warn_cflags" >&5
11668
$as_echo "$libdrm_cv_warn_cflags" >&6; }
11669
WARN_CFLAGS="$libdrm_cv_warn_cflags"
11671
if test "x$UDEV" = xyes; then
11673
$as_echo "#define UDEV 1" >>confdefs.h
11677
if test "x$NOUVEAU" = xyes; then
11679
HAVE_NOUVEAU_FALSE='#'
11681
HAVE_NOUVEAU_TRUE='#'
11682
HAVE_NOUVEAU_FALSE=
11686
if test "x$RADEON" = xyes; then
11688
HAVE_RADEON_FALSE='#'
11690
HAVE_RADEON_TRUE='#'
11697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
11698
$as_echo_n "checking for CAIRO... " >&6; }
11700
if test -n "$PKG_CONFIG"; then
11701
if test -n "$CAIRO_CFLAGS"; then
11702
pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
11704
if test -n "$PKG_CONFIG" && \
11705
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
11706
($PKG_CONFIG --exists --print-errors "cairo") 2>&5
11708
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11709
test $ac_status = 0; }; then
11710
pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
11718
if test -n "$PKG_CONFIG"; then
11719
if test -n "$CAIRO_LIBS"; then
11720
pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
11722
if test -n "$PKG_CONFIG" && \
11723
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
11724
($PKG_CONFIG --exists --print-errors "cairo") 2>&5
11726
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11727
test $ac_status = 0; }; then
11728
pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
11739
if test $pkg_failed = yes; then
11741
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11742
_pkg_short_errors_supported=yes
11744
_pkg_short_errors_supported=no
11746
if test $_pkg_short_errors_supported = yes; then
11747
CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
11749
CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
11751
# Put the nasty error message in config.log where it belongs
11752
echo "$CAIRO_PKG_ERRORS" >&5
11754
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755
$as_echo "no" >&6; }
11757
elif test $pkg_failed = untried; then
11760
CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
11761
CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
11762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11763
$as_echo "yes" >&6; }
11766
if test "x$HAVE_CAIRO" = xyes; then
11768
$as_echo "#define HAVE_CAIRO 1" >>confdefs.h
11771
if test "x$HAVE_CAIRO" = xyes; then
11773
HAVE_CAIRO_FALSE='#'
11775
HAVE_CAIRO_TRUE='#'
11780
# For enumerating devices in test case
11783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
11784
$as_echo_n "checking for LIBUDEV... " >&6; }
11786
if test -n "$PKG_CONFIG"; then
11787
if test -n "$LIBUDEV_CFLAGS"; then
11788
pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
11790
if test -n "$PKG_CONFIG" && \
11791
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
11792
($PKG_CONFIG --exists --print-errors "libudev") 2>&5
11794
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11795
test $ac_status = 0; }; then
11796
pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
11804
if test -n "$PKG_CONFIG"; then
11805
if test -n "$LIBUDEV_LIBS"; then
11806
pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
11808
if test -n "$PKG_CONFIG" && \
11809
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
11810
($PKG_CONFIG --exists --print-errors "libudev") 2>&5
11812
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11813
test $ac_status = 0; }; then
11814
pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
11825
if test $pkg_failed = yes; then
11827
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11828
_pkg_short_errors_supported=yes
11830
_pkg_short_errors_supported=no
11832
if test $_pkg_short_errors_supported = yes; then
11833
LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libudev"`
11835
LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libudev"`
11837
# Put the nasty error message in config.log where it belongs
11838
echo "$LIBUDEV_PKG_ERRORS" >&5
11840
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841
$as_echo "no" >&6; }
11843
elif test $pkg_failed = untried; then
11846
LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
11847
LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
11848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11849
$as_echo "yes" >&6; }
11852
if test "x$HAVE_LIBUDEV" = xyes; then
11854
$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
11857
if test "x$HAVE_LIBUDEV" = xyes; then
11859
HAVE_LIBUDEV_FALSE='#'
11861
HAVE_LIBUDEV_TRUE='#'
11862
HAVE_LIBUDEV_FALSE=
11867
ac_config_files="$ac_config_files Makefile libdrm/Makefile libdrm/intel/Makefile libdrm/radeon/Makefile libdrm/radeon/libdrm_radeon.pc libdrm/nouveau/Makefile libdrm/nouveau/libdrm_nouveau.pc shared-core/Makefile tests/Makefile tests/modeprint/Makefile tests/modetest/Makefile libdrm.pc libdrm_intel.pc"
11869
cat >confcache <<\_ACEOF
11870
# This file is a shell script that caches the results of configure
11871
# tests run on this system so they can be shared between configure
11872
# scripts and configure runs, see configure's option --config-cache.
11873
# It is not useful on other systems. If it contains results you don't
11874
# want to keep, you may remove or edit it.
11876
# config.status only pays attention to the cache file if you give it
11877
# the --recheck option to rerun configure.
11879
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11880
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11881
# following values.
11885
# The following way of writing the cache mishandles newlines in values,
11886
# but we know of no workaround that is simple, portable, and efficient.
11887
# So, we kill variables containing newlines.
11888
# Ultrix sh set writes to stderr and can't be redirected directly,
11889
# and sets the high bit in the cache file unless we assign to the vars.
11891
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11892
eval ac_val=\$$ac_var
11896
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11897
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11900
_ | IFS | as_nl) ;; #(
11901
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11902
*) { eval $ac_var=; unset $ac_var;} ;;
11908
case $as_nl`(ac_space=' '; set) 2>&1` in #(
11909
*${as_nl}ac_space=\ *)
11910
# `set' does not quote correctly, so add quotes: double-quote
11911
# substitution turns \\\\ into \\, and sed turns \\ into \.
11914
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11917
# `set' quotes correctly as required by POSIX, so do not add quotes.
11918
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11927
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11929
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11931
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11932
if test -w "$cache_file"; then
11933
test "x$cache_file" != "x/dev/null" &&
11934
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11935
$as_echo "$as_me: updating cache $cache_file" >&6;}
11936
cat confcache >$cache_file
11938
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11939
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11944
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11945
# Let make expand exec_prefix.
11946
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11948
DEFS=-DHAVE_CONFIG_H
11952
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11953
# 1. Remove the extension, and $U if already installed.
11954
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11955
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11956
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11957
# will be set to the directory where LIBOBJS objects are built.
11958
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11959
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11961
LIBOBJS=$ac_libobjs
11963
LTLIBOBJS=$ac_ltlibobjs
11966
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11967
as_fn_error "conditional \"AMDEP\" was never defined.
11968
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11970
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11971
as_fn_error "conditional \"am__fastdepCC\" was never defined.
11972
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11974
if test -z "${HAVE_NOUVEAU_TRUE}" && test -z "${HAVE_NOUVEAU_FALSE}"; then
11975
as_fn_error "conditional \"HAVE_NOUVEAU\" was never defined.
11976
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11978
if test -z "${HAVE_RADEON_TRUE}" && test -z "${HAVE_RADEON_FALSE}"; then
11979
as_fn_error "conditional \"HAVE_RADEON\" was never defined.
11980
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11982
if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
11983
as_fn_error "conditional \"HAVE_CAIRO\" was never defined.
11984
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11986
if test -z "${HAVE_LIBUDEV_TRUE}" && test -z "${HAVE_LIBUDEV_FALSE}"; then
11987
as_fn_error "conditional \"HAVE_LIBUDEV\" was never defined.
11988
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11991
: ${CONFIG_STATUS=./config.status}
11993
ac_clean_files_save=$ac_clean_files
11994
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11995
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11996
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11998
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12000
# Generated by $as_me.
12001
# Run this file to recreate the current configuration.
12002
# Compiler output produced by configure, useful for debugging
12003
# configure, is in config.log if it exists.
12006
ac_cs_recheck=false
12009
SHELL=\${CONFIG_SHELL-$SHELL}
12012
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12013
## -------------------- ##
12014
## M4sh Initialization. ##
12015
## -------------------- ##
12017
# Be more Bourne compatible
12018
DUALCASE=1; export DUALCASE # for MKS sh
12019
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12022
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12023
# is contrary to our usage. Disable this feature.
12024
alias -g '${1+"$@"}'='"$@"'
12025
setopt NO_GLOB_SUBST
12027
case `(set -o) 2>/dev/null` in #(
12039
# Printing a long string crashes Solaris 7 /usr/bin/printf.
12040
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12041
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12042
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12043
# Prefer a ksh shell builtin over an external printf program on Solaris,
12044
# but without wasting forks for bash or zsh.
12045
if test -z "$BASH_VERSION$ZSH_VERSION" \
12046
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12047
as_echo='print -r --'
12048
as_echo_n='print -rn --'
12049
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12050
as_echo='printf %s\n'
12051
as_echo_n='printf %s'
12053
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12054
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12055
as_echo_n='/usr/ucb/echo -n'
12057
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12058
as_echo_n_body='eval
12062
expr "X$arg" : "X\\(.*\\)$as_nl";
12063
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12065
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12067
export as_echo_n_body
12068
as_echo_n='sh -c $as_echo_n_body as_echo'
12070
export as_echo_body
12071
as_echo='sh -c $as_echo_body as_echo'
12074
# The user is always right.
12075
if test "${PATH_SEPARATOR+set}" != set; then
12077
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12078
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12085
# We need space, tab and new line, in precisely that order. Quoting is
12086
# there to prevent editors from complaining about space-tab.
12087
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12088
# splitting by setting IFS to empty value.)
12091
# Find who we are. Look in the path if we contain no directory separator.
12093
*[\\/]* ) as_myself=$0 ;;
12094
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095
for as_dir in $PATH
12098
test -z "$as_dir" && as_dir=.
12099
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12105
# We did not find ourselves, most probably we were run as `sh COMMAND'
12106
# in which case we are not to be found in the path.
12107
if test "x$as_myself" = x; then
12110
if test ! -f "$as_myself"; then
12111
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12115
# Unset variables that we do not need and which cause bugs (e.g. in
12116
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12117
# suppresses any "Segmentation fault" message there. '((' could
12118
# trigger a bug in pdksh 5.2.14.
12119
for as_var in BASH_ENV ENV MAIL MAILPATH
12120
do eval test x\${$as_var+set} = xset \
12121
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12137
# as_fn_error ERROR [LINENO LOG_FD]
12138
# ---------------------------------
12139
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12140
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12141
# script with status $?, using 1 if that was 0.
12144
as_status=$?; test $as_status -eq 0 && as_status=1
12146
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12147
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12149
$as_echo "$as_me: error: $1" >&2
12150
as_fn_exit $as_status
12154
# as_fn_set_status STATUS
12155
# -----------------------
12156
# Set $? to STATUS, without forking.
12157
as_fn_set_status ()
12160
} # as_fn_set_status
12162
# as_fn_exit STATUS
12163
# -----------------
12164
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12168
as_fn_set_status $1
12174
# Portably unset VAR.
12177
{ eval $1=; unset $1;}
12179
as_unset=as_fn_unset
12180
# as_fn_append VAR VALUE
12181
# ----------------------
12182
# Append the text in VALUE to the end of the definition contained in VAR. Take
12183
# advantage of any shell optimizations that allow amortized linear growth over
12184
# repeated appends, instead of the typical quadratic growth present in naive
12186
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12187
eval 'as_fn_append ()
12198
# as_fn_arith ARG...
12199
# ------------------
12200
# Perform arithmetic evaluation on the ARGs, and store the result in the
12201
# global $as_val. Take advantage of shells that can avoid forks. The arguments
12202
# must be portable across $(()) and expr.
12203
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12204
eval 'as_fn_arith ()
12211
as_val=`expr "$@" || test $? -eq 1`
12216
if expr a : '\(a\)' >/dev/null 2>&1 &&
12217
test "X`expr 00001 : '.*\(...\)'`" = X001; then
12223
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12224
as_basename=basename
12229
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12235
as_me=`$as_basename -- "$0" ||
12236
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12237
X"$0" : 'X\(//\)$' \| \
12238
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12240
sed '/^.*\/\([^/][^/]*\)\/*$/{
12254
# Avoid depending upon Character Ranges.
12255
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12256
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12257
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12258
as_cr_digits='0123456789'
12259
as_cr_alnum=$as_cr_Letters$as_cr_digits
12261
ECHO_C= ECHO_N= ECHO_T=
12262
case `echo -n x` in #(((((
12264
case `echo 'xy\c'` in
12265
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
12267
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12274
rm -f conf$$ conf$$.exe conf$$.file
12275
if test -d conf$$.dir; then
12276
rm -f conf$$.dir/conf$$.file
12279
mkdir conf$$.dir 2>/dev/null
12281
if (echo >conf$$.file) 2>/dev/null; then
12282
if ln -s conf$$.file conf$$ 2>/dev/null; then
12284
# ... but there are two gotchas:
12285
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12286
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12287
# In both cases, we have to default to `cp -p'.
12288
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12290
elif ln conf$$.file conf$$ 2>/dev/null; then
12298
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12299
rmdir conf$$.dir 2>/dev/null
12304
# Create "$as_dir" as a directory, including parents if necessary.
12309
-*) as_dir=./$as_dir;;
12311
test -d "$as_dir" || eval $as_mkdir_p || {
12315
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12316
*) as_qdir=$as_dir;;
12318
as_dirs="'$as_qdir' $as_dirs"
12319
as_dir=`$as_dirname -- "$as_dir" ||
12320
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12321
X"$as_dir" : 'X\(//\)[^/]' \| \
12322
X"$as_dir" : 'X\(//\)$' \| \
12323
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12324
$as_echo X"$as_dir" |
12325
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12329
/^X\(\/\/\)[^/].*/{
12342
test -d "$as_dir" && break
12344
test -z "$as_dirs" || eval "mkdir $as_dirs"
12345
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12349
if mkdir -p . 2>/dev/null; then
12350
as_mkdir_p='mkdir -p "$as_dir"'
12352
test -d ./-p && rmdir ./-p
12356
if test -x / >/dev/null 2>&1; then
12357
as_test_x='test -x'
12359
if ls -dL / >/dev/null 2>&1; then
12366
if test -d "$1"; then
12372
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12373
???[sx]*):;;*)false;;esac;fi
12377
as_executable_p=$as_test_x
12379
# Sed expression to map a string onto a valid CPP name.
12380
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12382
# Sed expression to map a string onto a valid variable name.
12383
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12387
## ----------------------------------- ##
12388
## Main body of $CONFIG_STATUS script. ##
12389
## ----------------------------------- ##
12391
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12393
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12394
# Save the log message, to keep $0 and so on meaningful, and to
12395
# report actual input values of CONFIG_FILES etc. instead of their
12396
# values after options handling.
12398
This file was extended by libdrm $as_me 2.4.14, which was
12399
generated by GNU Autoconf 2.64. Invocation command line was
12401
CONFIG_FILES = $CONFIG_FILES
12402
CONFIG_HEADERS = $CONFIG_HEADERS
12403
CONFIG_LINKS = $CONFIG_LINKS
12404
CONFIG_COMMANDS = $CONFIG_COMMANDS
12407
on `(hostname || uname -n) 2>/dev/null | sed 1q`
12412
case $ac_config_files in *"
12413
"*) set x $ac_config_files; shift; ac_config_files=$*;;
12416
case $ac_config_headers in *"
12417
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12421
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12422
# Files that config.status was made for.
12423
config_files="$ac_config_files"
12424
config_headers="$ac_config_headers"
12425
config_commands="$ac_config_commands"
12429
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12431
\`$as_me' instantiates files and other configuration actions
12432
from templates according to the current configuration. Unless the files
12433
and actions are specified as TAGs, all are instantiated by default.
12435
Usage: $0 [OPTION]... [TAG]...
12437
-h, --help print this help, then exit
12438
-V, --version print version number and configuration settings, then exit
12439
-q, --quiet, --silent
12440
do not print progress messages
12441
-d, --debug don't remove temporary files
12442
--recheck update $as_me by reconfiguring in the same conditions
12443
--file=FILE[:TEMPLATE]
12444
instantiate the configuration file FILE
12445
--header=FILE[:TEMPLATE]
12446
instantiate the configuration header FILE
12448
Configuration files:
12451
Configuration headers:
12454
Configuration commands:
12457
Report bugs to <dri-devel@lists.sourceforge.net>."
12460
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12462
libdrm config.status 2.4.14
12463
configured by $0, generated by GNU Autoconf 2.64,
12464
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12466
Copyright (C) 2009 Free Software Foundation, Inc.
12467
This config.status script is free software; the Free Software Foundation
12468
gives unlimited permission to copy, distribute and modify it."
12475
test -n "\$AWK" || AWK=awk
12478
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12479
# The default lists apply if the user does not specify any file.
12485
ac_option=`expr "X$1" : 'X\([^=]*\)='`
12486
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12497
# Handling of the options.
12498
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12500
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12501
$as_echo "$ac_cs_version"; exit ;;
12502
--debug | --debu | --deb | --de | --d | -d )
12504
--file | --fil | --fi | --f )
12507
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12509
as_fn_append CONFIG_FILES " '$ac_optarg'"
12510
ac_need_defaults=false;;
12511
--header | --heade | --head | --hea )
12514
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12516
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12517
ac_need_defaults=false;;
12519
# Conflict between --help and --header
12520
as_fn_error "ambiguous option: \`$1'
12521
Try \`$0 --help' for more information.";;
12522
--help | --hel | -h )
12523
$as_echo "$ac_cs_usage"; exit ;;
12524
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
12525
| -silent | --silent | --silen | --sile | --sil | --si | --s)
12528
# This is an error.
12529
-*) as_fn_error "unrecognized option: \`$1'
12530
Try \`$0 --help' for more information." ;;
12532
*) as_fn_append ac_config_targets " $1"
12533
ac_need_defaults=false ;;
12539
ac_configure_extra_args=
12541
if $ac_cs_silent; then
12543
ac_configure_extra_args="$ac_configure_extra_args --silent"
12547
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12548
if \$ac_cs_recheck; then
12549
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12551
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12552
CONFIG_SHELL='$SHELL'
12553
export CONFIG_SHELL
12558
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12562
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12563
## Running $as_me. ##
12569
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12573
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12576
# The HP-UX ksh and POSIX shell print the target directory to stdout
12577
# if CDPATH is set.
12578
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12580
sed_quote_subst='$sed_quote_subst'
12581
double_quote_subst='$double_quote_subst'
12582
delay_variable_subst='$delay_variable_subst'
12583
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12584
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12585
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12586
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12587
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12588
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12589
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12590
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12591
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12592
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12593
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12594
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12595
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12596
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12597
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12598
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12599
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12600
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12601
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12602
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12603
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12604
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12605
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12606
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12607
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12608
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12609
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12610
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12611
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12612
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12613
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12614
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12615
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12616
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12617
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12618
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12619
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12620
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12621
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12622
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12623
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12624
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12625
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12626
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12627
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12628
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12629
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12630
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12631
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12632
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12633
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12634
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12635
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12636
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12637
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12638
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12639
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12640
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12641
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12642
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12643
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12644
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12645
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12646
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12647
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12648
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12649
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12650
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12651
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12652
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12653
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12654
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12655
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12656
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12657
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12658
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12659
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12660
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12661
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12662
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12663
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12664
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12665
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12666
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12667
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12668
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12669
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12670
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12671
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12672
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12673
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12674
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12675
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12676
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12677
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12678
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12679
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12680
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12681
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12682
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12683
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12684
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12685
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12686
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12687
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12688
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12689
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12690
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12691
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12692
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12693
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12694
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12695
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12696
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12697
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12698
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12699
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12700
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12703
LTCFLAGS='$LTCFLAGS'
12704
compiler='$compiler_DEFAULT'
12706
# Quote evaled strings.
12718
deplibs_check_method \
12727
lt_cv_sys_global_symbol_pipe \
12728
lt_cv_sys_global_symbol_to_cdecl \
12729
lt_cv_sys_global_symbol_to_c_name_address \
12730
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12733
lt_prog_compiler_no_builtin_flag \
12734
lt_prog_compiler_wl \
12735
lt_prog_compiler_pic \
12736
lt_prog_compiler_static \
12737
lt_cv_prog_compiler_c_o \
12745
export_dynamic_flag_spec \
12746
whole_archive_flag_spec \
12747
compiler_needs_object \
12749
allow_undefined_flag \
12750
no_undefined_flag \
12751
hardcode_libdir_flag_spec \
12752
hardcode_libdir_flag_spec_ld \
12753
hardcode_libdir_separator \
12758
variables_saved_for_relink \
12760
library_names_spec \
12765
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12766
*[\\\\\\\`\\"\\\$]*)
12767
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12770
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12775
# Double-quote double-evaled strings.
12776
for var in reload_cmds \
12777
old_postinstall_cmds \
12778
old_postuninstall_cmds \
12780
extract_expsyms_cmds \
12781
old_archive_from_new_cmds \
12782
old_archive_from_expsyms_cmds \
12784
archive_expsym_cmds \
12786
module_expsym_cmds \
12787
export_symbols_cmds \
12790
postuninstall_cmds \
12792
sys_lib_search_path_spec \
12793
sys_lib_dlsearch_path_spec; do
12794
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12795
*[\\\\\\\`\\"\\\$]*)
12796
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12799
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12804
# Fix-up fallback echo if it was mangled by the above quoting rules.
12806
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12810
ac_aux_dir='$ac_aux_dir'
12811
xsi_shell='$xsi_shell'
12812
lt_shell_append='$lt_shell_append'
12814
# See if we are running on zsh, and set the options which allow our
12815
# commands through without removal of \ escapes INIT.
12816
if test -n "\${ZSH_VERSION+set}" ; then
12817
setopt NO_GLOB_SUBST
12823
TIMESTAMP='$TIMESTAMP'
12832
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12834
# Handling of arguments.
12835
for ac_config_target in $ac_config_targets
12837
case $ac_config_target in
12838
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12839
"libdrm/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libdrm/config.h" ;;
12840
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12841
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12842
"libdrm/Makefile") CONFIG_FILES="$CONFIG_FILES libdrm/Makefile" ;;
12843
"libdrm/intel/Makefile") CONFIG_FILES="$CONFIG_FILES libdrm/intel/Makefile" ;;
12844
"libdrm/radeon/Makefile") CONFIG_FILES="$CONFIG_FILES libdrm/radeon/Makefile" ;;
12845
"libdrm/radeon/libdrm_radeon.pc") CONFIG_FILES="$CONFIG_FILES libdrm/radeon/libdrm_radeon.pc" ;;
12846
"libdrm/nouveau/Makefile") CONFIG_FILES="$CONFIG_FILES libdrm/nouveau/Makefile" ;;
12847
"libdrm/nouveau/libdrm_nouveau.pc") CONFIG_FILES="$CONFIG_FILES libdrm/nouveau/libdrm_nouveau.pc" ;;
12848
"shared-core/Makefile") CONFIG_FILES="$CONFIG_FILES shared-core/Makefile" ;;
12849
"tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12850
"tests/modeprint/Makefile") CONFIG_FILES="$CONFIG_FILES tests/modeprint/Makefile" ;;
12851
"tests/modetest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/modetest/Makefile" ;;
12852
"libdrm.pc") CONFIG_FILES="$CONFIG_FILES libdrm.pc" ;;
12853
"libdrm_intel.pc") CONFIG_FILES="$CONFIG_FILES libdrm_intel.pc" ;;
12855
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12860
# If the user did not use the arguments to specify the items to instantiate,
12861
# then the envvar interface is used. Set only those that are not.
12862
# We use the long form for the default assignment because of an extremely
12863
# bizarre bug on SunOS 4.1.3.
12864
if $ac_need_defaults; then
12865
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12866
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12867
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12870
# Have a temporary directory for convenience. Make it in the build tree
12871
# simply because there is no reason against having it here, and in addition,
12872
# creating and moving files from /tmp can sometimes cause problems.
12873
# Hook for its removal unless debugging.
12874
# Note that there is a small window in which the directory will not be cleaned:
12875
# after its creation but before its name has been assigned to `$tmp'.
12879
trap 'exit_status=$?
12880
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12882
trap 'as_fn_exit 1' 1 2 13 15
12884
# Create a (secure) tmp directory for tmp files.
12887
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12888
test -n "$tmp" && test -d "$tmp"
12891
tmp=./conf$$-$RANDOM
12892
(umask 077 && mkdir "$tmp")
12893
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12895
# Set up the scripts for CONFIG_FILES section.
12896
# No need to generate them if there are no CONFIG_FILES.
12897
# This happens for instance with `./config.status config.h'.
12898
if test -n "$CONFIG_FILES"; then
12901
ac_cr=`echo X | tr X '\015'`
12902
# On cygwin, bash can eat \r inside `` if the user requested igncr.
12903
# But we know of no other shell where ac_cr would be empty at this
12904
# point, so we can use a bashism as a fallback.
12905
if test "x$ac_cr" = x; then
12906
eval ac_cr=\$\'\\r\'
12908
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12909
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12912
ac_cs_awk_cr=$ac_cr
12915
echo 'BEGIN {' >"$tmp/subs1.awk" &&
12920
echo "cat >conf$$subs.awk <<_ACEOF" &&
12921
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12923
} >conf$$subs.sh ||
12924
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12925
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12927
for ac_last_try in false false false false false :; do
12928
. ./conf$$subs.sh ||
12929
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12931
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12932
if test $ac_delim_n = $ac_delim_num; then
12934
elif $ac_last_try; then
12935
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12937
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12940
rm -f conf$$subs.sh
12942
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12943
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12947
s/^/S["/; s/!.*/"]=/
12957
s/\(.\{148\}\).*/\1/
12959
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12964
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12971
s/\(.\{148\}\).*/\1/
12973
s/["\\]/\\&/g; s/^/"/; s/$/"/
12977
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12982
' <conf$$subs.awk | sed '
12987
' >>$CONFIG_STATUS || ac_write_fail=1
12988
rm -f conf$$subs.awk
12989
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12991
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12992
for (key in S) S_is_set[key] = 1
12998
nfields = split(line, field, "@")
13000
len = length(field[1])
13001
for (i = 2; i < nfields; i++) {
13003
keylen = length(key)
13004
if (S_is_set[key]) {
13006
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13007
len += length(value) + length(field[++i])
13018
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13019
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13020
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13023
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13024
|| as_fn_error "could not setup config files machinery" "$LINENO" 5
13027
# VPATH may cause trouble with some makes, so we remove $(srcdir),
13028
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13029
# trailing colons and then remove the whole line if VPATH becomes empty
13030
# (actually we leave an empty line to preserve line numbers).
13031
if test "x$srcdir" = x.; then
13032
ac_vpsub='/^[ ]*VPATH[ ]*=/{
13033
s/:*\$(srcdir):*/:/
13034
s/:*\${srcdir}:*/:/
13036
s/^\([^=]*=[ ]*\):*/\1/
13042
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13043
fi # test -n "$CONFIG_FILES"
13045
# Set up the scripts for CONFIG_HEADERS section.
13046
# No need to generate them if there are no CONFIG_HEADERS.
13047
# This happens for instance with `./config.status Makefile'.
13048
if test -n "$CONFIG_HEADERS"; then
13049
cat >"$tmp/defines.awk" <<\_ACAWK ||
13053
# Transform confdefs.h into an awk script `defines.awk', embedded as
13054
# here-document in config.status, that substitutes the proper values into
13055
# config.h.in to produce config.h.
13057
# Create a delimiter string that does not exist in confdefs.h, to ease
13058
# handling of long lines.
13060
for ac_last_try in false false :; do
13061
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13062
if test -z "$ac_t"; then
13064
elif $ac_last_try; then
13065
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13067
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13071
# For the awk script, D is an array of macro values keyed by name,
13072
# likewise P contains macro parameters if any. Preserve backslash
13073
# newline sequences.
13075
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13077
s/.\{148\}/&'"$ac_delim"'/g
13080
s/^[ ]*#[ ]*define[ ][ ]*/ /
13087
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13089
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13093
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13094
D["\1"]=" \3\\\\\\n"\\/p
13096
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13101
s/.\{148\}/&'"$ac_delim"'/g
13106
s/["\\]/\\&/g; s/^/"/; s/$/"/p
13109
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13111
' <confdefs.h | sed '
13112
s/'"$ac_delim"'/"\\\
13113
"/g' >>$CONFIG_STATUS || ac_write_fail=1
13115
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13116
for (key in D) D_is_set[key] = 1
13119
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13121
split(line, arg, " ")
13122
if (arg[1] == "#") {
13126
defundef = substr(arg[1], 2)
13129
split(mac1, mac2, "(") #)
13131
prefix = substr(line, 1, index(line, defundef) - 1)
13132
if (D_is_set[macro]) {
13133
# Preserve the white space surrounding the "#".
13134
print prefix "define", macro P[macro] D[macro]
13137
# Replace #undef with comments. This is necessary, for example,
13138
# in the case of _POSIX_SOURCE, which is predefined and required
13139
# on some systems where configure will not decide to define it.
13140
if (defundef == "undef") {
13141
print "/*", prefix defundef, macro, "*/"
13149
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13150
as_fn_error "could not setup config headers machinery" "$LINENO" 5
13151
fi # test -n "$CONFIG_HEADERS"
13154
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13159
:[FHLC]) ac_mode=$ac_tag; continue;;
13161
case $ac_mode$ac_tag in
13163
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13164
:[FH]-) ac_tag=-:-;;
13165
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13182
-) ac_f="$tmp/stdin";;
13183
*) # Look for the file first in the build tree, then in the source tree
13184
# (if the path is not absolute). The absolute path cannot be DOS-style,
13185
# because $ac_f cannot contain `:'.
13189
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13191
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13193
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13194
as_fn_append ac_file_inputs " '$ac_f'"
13197
# Let's still pretend it is `configure' which instantiates (i.e., don't
13198
# use $as_me), people would be surprised to read:
13199
# /* config.h. Generated by config.status. */
13200
configure_input='Generated from '`
13201
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13203
if test x"$ac_file" != x-; then
13204
configure_input="$ac_file. $configure_input"
13205
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13206
$as_echo "$as_me: creating $ac_file" >&6;}
13208
# Neutralize special characters interpreted by sed in replacement strings.
13209
case $configure_input in #(
13210
*\&* | *\|* | *\\* )
13211
ac_sed_conf_input=`$as_echo "$configure_input" |
13212
sed 's/[\\\\&|]/\\\\&/g'`;; #(
13213
*) ac_sed_conf_input=$configure_input;;
13217
*:-:* | *:-) cat >"$tmp/stdin" \
13218
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13223
ac_dir=`$as_dirname -- "$ac_file" ||
13224
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13225
X"$ac_file" : 'X\(//\)[^/]' \| \
13226
X"$ac_file" : 'X\(//\)$' \| \
13227
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13228
$as_echo X"$ac_file" |
13229
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13233
/^X\(\/\/\)[^/].*/{
13246
as_dir="$ac_dir"; as_fn_mkdir_p
13250
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13252
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13253
# A ".." for each directory in $ac_dir_suffix.
13254
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13255
case $ac_top_builddir_sub in
13256
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13257
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13260
ac_abs_top_builddir=$ac_pwd
13261
ac_abs_builddir=$ac_pwd$ac_dir_suffix
13262
# for backward compatibility:
13263
ac_top_builddir=$ac_top_build_prefix
13266
.) # We are building in place.
13268
ac_top_srcdir=$ac_top_builddir_sub
13269
ac_abs_top_srcdir=$ac_pwd ;;
13270
[\\/]* | ?:[\\/]* ) # Absolute name.
13271
ac_srcdir=$srcdir$ac_dir_suffix;
13272
ac_top_srcdir=$srcdir
13273
ac_abs_top_srcdir=$srcdir ;;
13274
*) # Relative name.
13275
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13276
ac_top_srcdir=$ac_top_build_prefix$srcdir
13277
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13279
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13289
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13290
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13292
ac_MKDIR_P=$MKDIR_P
13294
[\\/$]* | ?:[\\/]* ) ;;
13295
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13299
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13300
# If the template does not know about datarootdir, expand it.
13301
# FIXME: This hack should be removed a few years after 2.60.
13302
ac_datarootdir_hack=; ac_datarootdir_seen=
13313
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13314
*datarootdir*) ac_datarootdir_seen=yes;;
13315
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13316
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13317
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13319
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13320
ac_datarootdir_hack='
13321
s&@datadir@&$datadir&g
13322
s&@docdir@&$docdir&g
13323
s&@infodir@&$infodir&g
13324
s&@localedir@&$localedir&g
13325
s&@mandir@&$mandir&g
13326
s&\\\${datarootdir}&$datarootdir&g' ;;
13330
# Neutralize VPATH when `$srcdir' = `.'.
13331
# Shell code in configure.ac might set extrasub.
13332
# FIXME: do we really want to maintain this feature?
13333
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13334
ac_sed_extra="$ac_vpsub
13337
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13339
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13340
s|@configure_input@|$ac_sed_conf_input|;t t
13341
s&@top_builddir@&$ac_top_builddir_sub&;t t
13342
s&@top_build_prefix@&$ac_top_build_prefix&;t t
13343
s&@srcdir@&$ac_srcdir&;t t
13344
s&@abs_srcdir@&$ac_abs_srcdir&;t t
13345
s&@top_srcdir@&$ac_top_srcdir&;t t
13346
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13347
s&@builddir@&$ac_builddir&;t t
13348
s&@abs_builddir@&$ac_abs_builddir&;t t
13349
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13350
s&@INSTALL@&$ac_INSTALL&;t t
13351
s&@MKDIR_P@&$ac_MKDIR_P&;t t
13352
$ac_datarootdir_hack
13354
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13355
|| as_fn_error "could not create $ac_file" "$LINENO" 5
13357
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13358
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13359
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13360
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13361
which seems to be undefined. Please make sure it is defined." >&5
13362
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13363
which seems to be undefined. Please make sure it is defined." >&2;}
13367
-) cat "$tmp/out" && rm -f "$tmp/out";;
13368
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13370
|| as_fn_error "could not create $ac_file" "$LINENO" 5
13376
if test x"$ac_file" != x-; then
13378
$as_echo "/* $configure_input */" \
13379
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13380
} >"$tmp/config.h" \
13381
|| as_fn_error "could not create $ac_file" "$LINENO" 5
13382
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13383
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13384
$as_echo "$as_me: $ac_file is unchanged" >&6;}
13387
mv "$tmp/config.h" "$ac_file" \
13388
|| as_fn_error "could not create $ac_file" "$LINENO" 5
13391
$as_echo "/* $configure_input */" \
13392
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13393
|| as_fn_error "could not create -" "$LINENO" 5
13395
# Compute "$ac_file"'s index in $config_headers.
13398
for _am_header in $config_headers :; do
13399
case $_am_header in
13400
$_am_arg | $_am_arg:* )
13403
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
13406
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13407
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13408
X"$_am_arg" : 'X\(//\)[^/]' \| \
13409
X"$_am_arg" : 'X\(//\)$' \| \
13410
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13411
$as_echo X"$_am_arg" |
13412
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13416
/^X\(\/\/\)[^/].*/{
13428
s/.*/./; q'`/stamp-h$_am_stamp_count
13431
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13432
$as_echo "$as_me: executing $ac_file commands" >&6;}
13437
case $ac_file$ac_mode in
13438
"depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
13439
# are listed without --file. Let's play safe and only enable the eval
13440
# if we detect the quoting.
13441
case $CONFIG_FILES in
13442
*\'*) eval set x "$CONFIG_FILES" ;;
13443
*) set x $CONFIG_FILES ;;
13448
# Strip MF so we end up with the name of the file.
13449
mf=`echo "$mf" | sed -e 's/:.*$//'`
13450
# Check whether this is an Automake generated Makefile or not.
13451
# We used to match only the files named `Makefile.in', but
13452
# some people rename them; so instead we look at the file content.
13453
# Grep'ing the first line is not enough: some people post-process
13454
# each Makefile.in and add a new line on top of each file to say so.
13455
# Grep'ing the whole file is not good either: AIX grep has a line
13456
# limit of 2048, but all sed's we know have understand at least 4000.
13457
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13458
dirpart=`$as_dirname -- "$mf" ||
13459
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13460
X"$mf" : 'X\(//\)[^/]' \| \
13461
X"$mf" : 'X\(//\)$' \| \
13462
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13464
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13468
/^X\(\/\/\)[^/].*/{
13484
# Extract the definition of DEPDIR, am__include, and am__quote
13485
# from the Makefile without running `make'.
13486
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13487
test -z "$DEPDIR" && continue
13488
am__include=`sed -n 's/^am__include = //p' < "$mf"`
13489
test -z "am__include" && continue
13490
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13491
# When using ansi2knr, U may be empty or an underscore; expand it
13492
U=`sed -n 's/^U = //p' < "$mf"`
13493
# Find all dependency output files, they are included files with
13494
# $(DEPDIR) in their names. We invoke sed twice because it is the
13495
# simplest approach to changing $(DEPDIR) to its actual value in the
13497
for file in `sed -n "
13498
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13499
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13500
# Make sure the directory exists.
13501
test -f "$dirpart/$file" && continue
13502
fdir=`$as_dirname -- "$file" ||
13503
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13504
X"$file" : 'X\(//\)[^/]' \| \
13505
X"$file" : 'X\(//\)$' \| \
13506
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13507
$as_echo X"$file" |
13508
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13512
/^X\(\/\/\)[^/].*/{
13525
as_dir=$dirpart/$fdir; as_fn_mkdir_p
13526
# echo "creating $dirpart/$file"
13527
echo '# dummy' > "$dirpart/$file"
13533
# See if we are running on zsh, and set the options which allow our
13534
# commands through without removal of \ escapes.
13535
if test -n "${ZSH_VERSION+set}" ; then
13536
setopt NO_GLOB_SUBST
13539
cfgfile="${ofile}T"
13540
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13543
cat <<_LT_EOF >> "$cfgfile"
13546
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13547
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13548
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13549
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13551
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13552
# 2006, 2007, 2008 Free Software Foundation, Inc.
13553
# Written by Gordon Matzigkeit, 1996
13555
# This file is part of GNU Libtool.
13557
# GNU Libtool is free software; you can redistribute it and/or
13558
# modify it under the terms of the GNU General Public License as
13559
# published by the Free Software Foundation; either version 2 of
13560
# the License, or (at your option) any later version.
13562
# As a special exception to the GNU General Public License,
13563
# if you distribute this file as part of a program or library that
13564
# is built using GNU Libtool, you may include this file under the
13565
# same distribution terms that you use for the rest of that program.
13567
# GNU Libtool is distributed in the hope that it will be useful,
13568
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13569
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13570
# GNU General Public License for more details.
13572
# You should have received a copy of the GNU General Public License
13573
# along with GNU Libtool; see the file COPYING. If not, a copy
13574
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13575
# obtained by writing to the Free Software Foundation, Inc.,
13576
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13579
# The names of the tagged configurations supported by this script.
13582
# ### BEGIN LIBTOOL CONFIG
13584
# Whether or not to build static libraries.
13585
build_old_libs=$enable_static
13587
# Which release of libtool.m4 was used?
13588
macro_version=$macro_version
13589
macro_revision=$macro_revision
13591
# Whether or not to build shared libraries.
13592
build_libtool_libs=$enable_shared
13594
# What type of objects to build.
13597
# Whether or not to optimize for fast installation.
13598
fast_install=$enable_fast_install
13601
host_alias=$host_alias
13605
# The build system.
13606
build_alias=$build_alias
13610
# A sed program that does not truncate output.
13613
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13614
Xsed="\$SED -e 1s/^X//"
13616
# A grep program that handles long lines.
13622
# A literal string matcher.
13625
# A BSD- or MS-compatible name lister.
13628
# Whether we need soft or hard links.
13631
# What is the maximum length of a command?
13632
max_cmd_len=$max_cmd_len
13634
# Object file suffix (normally "o").
13637
# Executable file suffix (normally "").
13640
# whether the shell understands "unset".
13643
# turn spaces into newlines.
13646
# turn newlines into spaces.
13649
# How to create reloadable object files.
13650
reload_flag=$lt_reload_flag
13651
reload_cmds=$lt_reload_cmds
13653
# An object symbol dumper.
13654
OBJDUMP=$lt_OBJDUMP
13656
# Method to check whether dependent libraries are shared objects.
13657
deplibs_check_method=$lt_deplibs_check_method
13659
# Command to use when deplibs_check_method == "file_magic".
13660
file_magic_cmd=$lt_file_magic_cmd
13664
AR_FLAGS=$lt_AR_FLAGS
13666
# A symbol stripping program.
13669
# Commands used to install an old-style archive.
13671
old_postinstall_cmds=$lt_old_postinstall_cmds
13672
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13677
# LTCC compiler flags.
13678
LTCFLAGS=$lt_CFLAGS
13680
# Take the output of nm and produce a listing of raw symbols and C names.
13681
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13683
# Transform the output of nm in a proper C declaration.
13684
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13686
# Transform the output of nm in a C name address pair.
13687
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13689
# Transform the output of nm in a C name address pair when lib prefix is needed.
13690
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13692
# The name of the directory that contains temporary libtool files.
13695
# Shell to use when invoking shell scripts.
13698
# An echo program that does not interpret backslashes.
13701
# Used to examine libraries when file_magic_cmd begins with "file".
13702
MAGIC_CMD=$MAGIC_CMD
13704
# Must we lock files when doing compilation?
13705
need_locks=$lt_need_locks
13707
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13708
DSYMUTIL=$lt_DSYMUTIL
13710
# Tool to change global to local symbols on Mac OS X.
13713
# Tool to manipulate fat objects and archives on Mac OS X.
13716
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13719
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13720
OTOOL64=$lt_OTOOL64
13722
# Old archive suffix (normally "a").
13725
# Shared library suffix (normally ".so").
13726
shrext_cmds=$lt_shrext_cmds
13728
# The commands to extract the exported symbol list from a shared archive.
13729
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13731
# Variables whose values should be saved in libtool wrapper scripts and
13732
# restored at link time.
13733
variables_saved_for_relink=$lt_variables_saved_for_relink
13735
# Do we need the "lib" prefix for modules?
13736
need_lib_prefix=$need_lib_prefix
13738
# Do we need a version for libraries?
13739
need_version=$need_version
13741
# Library versioning type.
13742
version_type=$version_type
13744
# Shared library runtime path variable.
13745
runpath_var=$runpath_var
13747
# Shared library path variable.
13748
shlibpath_var=$shlibpath_var
13750
# Is shlibpath searched before the hard-coded library search path?
13751
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13753
# Format of library name prefix.
13754
libname_spec=$lt_libname_spec
13756
# List of archive names. First name is the real one, the rest are links.
13757
# The last name is the one that the linker finds with -lNAME
13758
library_names_spec=$lt_library_names_spec
13760
# The coded name of the library, if different from the real name.
13761
soname_spec=$lt_soname_spec
13763
# Command to use after installation of a shared archive.
13764
postinstall_cmds=$lt_postinstall_cmds
13766
# Command to use after uninstallation of a shared archive.
13767
postuninstall_cmds=$lt_postuninstall_cmds
13769
# Commands used to finish a libtool library installation in a directory.
13770
finish_cmds=$lt_finish_cmds
13772
# As "finish_cmds", except a single script fragment to be evaled but
13774
finish_eval=$lt_finish_eval
13776
# Whether we should hardcode library paths into libraries.
13777
hardcode_into_libs=$hardcode_into_libs
13779
# Compile-time system search path for libraries.
13780
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13782
# Run-time system search path for libraries.
13783
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13785
# Whether dlopen is supported.
13786
dlopen_support=$enable_dlopen
13788
# Whether dlopen of programs is supported.
13789
dlopen_self=$enable_dlopen_self
13791
# Whether dlopen of statically linked programs is supported.
13792
dlopen_self_static=$enable_dlopen_self_static
13794
# Commands to strip libraries.
13795
old_striplib=$lt_old_striplib
13796
striplib=$lt_striplib
13799
# The linker used to build libraries.
13802
# Commands used to build an old-style archive.
13803
old_archive_cmds=$lt_old_archive_cmds
13805
# A language specific compiler.
13808
# Is the compiler the GNU compiler?
13811
# Compiler flag to turn off builtin functions.
13812
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13814
# How to pass a linker flag through the compiler.
13815
wl=$lt_lt_prog_compiler_wl
13817
# Additional compiler flags for building library objects.
13818
pic_flag=$lt_lt_prog_compiler_pic
13820
# Compiler flag to prevent dynamic linking.
13821
link_static_flag=$lt_lt_prog_compiler_static
13823
# Does compiler simultaneously support -c and -o options?
13824
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13826
# Whether or not to add -lc for building shared libraries.
13827
build_libtool_need_lc=$archive_cmds_need_lc
13829
# Whether or not to disallow shared libs when runtime libs are static.
13830
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13832
# Compiler flag to allow reflexive dlopens.
13833
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13835
# Compiler flag to generate shared objects directly from archives.
13836
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13838
# Whether the compiler copes with passing no objects directly.
13839
compiler_needs_object=$lt_compiler_needs_object
13841
# Create an old-style archive from a shared archive.
13842
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13844
# Create a temporary old-style archive to link instead of a shared archive.
13845
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13847
# Commands used to build a shared archive.
13848
archive_cmds=$lt_archive_cmds
13849
archive_expsym_cmds=$lt_archive_expsym_cmds
13851
# Commands used to build a loadable module if different from building
13852
# a shared archive.
13853
module_cmds=$lt_module_cmds
13854
module_expsym_cmds=$lt_module_expsym_cmds
13856
# Whether we are building with GNU ld or not.
13857
with_gnu_ld=$lt_with_gnu_ld
13859
# Flag that allows shared libraries with undefined symbols to be built.
13860
allow_undefined_flag=$lt_allow_undefined_flag
13862
# Flag that enforces no undefined symbols.
13863
no_undefined_flag=$lt_no_undefined_flag
13865
# Flag to hardcode \$libdir into a binary during linking.
13866
# This must work even if \$libdir does not exist
13867
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13869
# If ld is used when linking, flag to hardcode \$libdir into a binary
13870
# during linking. This must work even if \$libdir does not exist.
13871
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13873
# Whether we need a single "-rpath" flag with a separated argument.
13874
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13876
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13877
# DIR into the resulting binary.
13878
hardcode_direct=$hardcode_direct
13880
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13881
# DIR into the resulting binary and the resulting library dependency is
13882
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13883
# library is relocated.
13884
hardcode_direct_absolute=$hardcode_direct_absolute
13886
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13887
# into the resulting binary.
13888
hardcode_minus_L=$hardcode_minus_L
13890
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13891
# into the resulting binary.
13892
hardcode_shlibpath_var=$hardcode_shlibpath_var
13894
# Set to "yes" if building a shared library automatically hardcodes DIR
13895
# into the library and all subsequent libraries and executables linked
13897
hardcode_automatic=$hardcode_automatic
13899
# Set to yes if linker adds runtime paths of dependent libraries
13900
# to runtime path list.
13901
inherit_rpath=$inherit_rpath
13903
# Whether libtool must link a program against all its dependency libraries.
13904
link_all_deplibs=$link_all_deplibs
13906
# Fix the shell variable \$srcfile for the compiler.
13907
fix_srcfile_path=$lt_fix_srcfile_path
13909
# Set to "yes" if exported symbols are required.
13910
always_export_symbols=$always_export_symbols
13912
# The commands to list exported symbols.
13913
export_symbols_cmds=$lt_export_symbols_cmds
13915
# Symbols that should not be listed in the preloaded symbols.
13916
exclude_expsyms=$lt_exclude_expsyms
13918
# Symbols that must always be exported.
13919
include_expsyms=$lt_include_expsyms
13921
# Commands necessary for linking programs (against libraries) with templates.
13922
prelink_cmds=$lt_prelink_cmds
13924
# Specify filename containing input files.
13925
file_list_spec=$lt_file_list_spec
13927
# How to hardcode a shared library path into an executable.
13928
hardcode_action=$hardcode_action
13930
# ### END LIBTOOL CONFIG
13936
cat <<\_LT_EOF >> "$cfgfile"
13937
# AIX sometimes has problems with the GCC collect2 program. For some
13938
# reason, if we set the COLLECT_NAMES environment variable, the problems
13939
# vanish in a puff of smoke.
13940
if test "X${COLLECT_NAMES+set}" != Xset; then
13942
export COLLECT_NAMES
13949
ltmain="$ac_aux_dir/ltmain.sh"
13952
# We use sed instead of cat because bash on DJGPP gets confused if
13953
# if finds mixed CR/LF and LF-only lines. Since sed operates in
13954
# text mode, it properly converts lines to CR/LF. This bash problem
13955
# is reportedly fixed, but why not run on old versions too?
13956
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13957
|| (rm -f "$cfgfile"; exit 1)
13961
cat << \_LT_EOF >> "$cfgfile"
13963
# func_dirname file append nondir_replacement
13964
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13965
# otherwise set result to NONDIR_REPLACEMENT.
13969
*/*) func_dirname_result="${1%/*}${2}" ;;
13970
* ) func_dirname_result="${3}" ;;
13974
# func_basename file
13977
func_basename_result="${1##*/}"
13980
# func_dirname_and_basename file append nondir_replacement
13981
# perform func_basename and func_dirname in a single function
13983
# dirname: Compute the dirname of FILE. If nonempty,
13984
# add APPEND to the result, otherwise set result
13985
# to NONDIR_REPLACEMENT.
13986
# value returned in "$func_dirname_result"
13987
# basename: Compute filename of FILE.
13988
# value retuned in "$func_basename_result"
13989
# Implementation must be kept synchronized with func_dirname
13990
# and func_basename. For efficiency, we do not delegate to
13991
# those functions but instead duplicate the functionality here.
13992
func_dirname_and_basename ()
13995
*/*) func_dirname_result="${1%/*}${2}" ;;
13996
* ) func_dirname_result="${3}" ;;
13998
func_basename_result="${1##*/}"
14001
# func_stripname prefix suffix name
14002
# strip PREFIX and SUFFIX off of NAME.
14003
# PREFIX and SUFFIX must not contain globbing or regex special
14004
# characters, hashes, percent signs, but SUFFIX may contain a leading
14005
# dot (in which case that matches only a dot).
14008
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14009
# positional parameters, so assign one to ordinary parameter first.
14010
func_stripname_result=${3}
14011
func_stripname_result=${func_stripname_result#"${1}"}
14012
func_stripname_result=${func_stripname_result%"${2}"}
14018
func_opt_split_opt=${1%%=*}
14019
func_opt_split_arg=${1#*=}
14026
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14027
*) func_lo2o_result=${1} ;;
14031
# func_xform libobj-or-source
14034
func_xform_result=${1%.*}.lo
14037
# func_arith arithmetic-term...
14040
func_arith_result=$(( $* ))
14044
# STRING may not start with a hyphen.
14047
func_len_result=${#1}
14052
*) # Bourne compatible functions.
14053
cat << \_LT_EOF >> "$cfgfile"
14055
# func_dirname file append nondir_replacement
14056
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14057
# otherwise set result to NONDIR_REPLACEMENT.
14060
# Extract subdirectory from the argument.
14061
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14062
if test "X$func_dirname_result" = "X${1}"; then
14063
func_dirname_result="${3}"
14065
func_dirname_result="$func_dirname_result${2}"
14069
# func_basename file
14072
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14076
# func_stripname prefix suffix name
14077
# strip PREFIX and SUFFIX off of NAME.
14078
# PREFIX and SUFFIX must not contain globbing or regex special
14079
# characters, hashes, percent signs, but SUFFIX may contain a leading
14080
# dot (in which case that matches only a dot).
14081
# func_strip_suffix prefix name
14085
.*) func_stripname_result=`$ECHO "X${3}" \
14086
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14087
*) func_stripname_result=`$ECHO "X${3}" \
14088
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14093
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14094
my_sed_long_arg='1s/^-[^=]*=//'
14099
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14100
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14106
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14109
# func_xform libobj-or-source
14112
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14115
# func_arith arithmetic-term...
14118
func_arith_result=`expr "$@"`
14122
# STRING may not start with a hyphen.
14125
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14131
case $lt_shell_append in
14133
cat << \_LT_EOF >> "$cfgfile"
14135
# func_append var value
14136
# Append VALUE to the end of shell variable VAR.
14144
cat << \_LT_EOF >> "$cfgfile"
14146
# func_append var value
14147
# Append VALUE to the end of shell variable VAR.
14158
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14159
|| (rm -f "$cfgfile"; exit 1)
14161
mv -f "$cfgfile" "$ofile" ||
14162
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14173
ac_clean_files=$ac_clean_files_save
14175
test $ac_write_fail = 0 ||
14176
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14179
# configure is writing to config.log, and then calls config.status.
14180
# config.status does its own redirection, appending to config.log.
14181
# Unfortunately, on DOS this fails, as config.log is still kept open
14182
# by configure, so config.status won't be able to write to it; its
14183
# output is simply discarded. So we exec the FD to /dev/null,
14184
# effectively closing config.log, so it can be properly (re)opened and
14185
# appended to by config.status. When coming back to configure, we
14186
# need to make the FD available again.
14187
if test "$no_create" != yes; then
14189
ac_config_status_args=
14190
test "$silent" = yes &&
14191
ac_config_status_args="$ac_config_status_args --quiet"
14193
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14195
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
14196
# would make configure fail if this is the last instruction.
14197
$ac_cs_success || as_fn_exit $?
14199
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14200
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14201
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}