4421
4419
lt_cv_nm_interface="BSD nm"
4422
4420
echo "int some_variable = 0;" > conftest.$ac_ext
4423
(eval echo "\"\$as_me:4423: $ac_compile\"" >&5)
4421
(eval echo "\"\$as_me:4421: $ac_compile\"" >&5)
4424
4422
(eval "$ac_compile" 2>conftest.err)
4425
4423
cat conftest.err >&5
4426
(eval echo "\"\$as_me:4426: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4424
(eval echo "\"\$as_me:4424: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4427
4425
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4428
4426
cat conftest.err >&5
4429
(eval echo "\"\$as_me:4429: output\"" >&5)
4427
(eval echo "\"\$as_me:4427: output\"" >&5)
4430
4428
cat conftest.out >&5
4431
4429
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4432
4430
lt_cv_nm_interface="MS dumpbin"
7455
7453
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7456
7454
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7457
7455
-e 's:$: $lt_compiler_flag:'`
7458
(eval echo "\"\$as_me:7458: $lt_compile\"" >&5)
7456
(eval echo "\"\$as_me:7456: $lt_compile\"" >&5)
7459
7457
(eval "$lt_compile" 2>conftest.err)
7461
7459
cat conftest.err >&5
7462
echo "$as_me:7462: \$? = $ac_status" >&5
7460
echo "$as_me:7460: \$? = $ac_status" >&5
7463
7461
if (exit $ac_status) && test -s "$ac_outfile"; then
7464
7462
# The compiler can only warn and ignore the option if not recognized
7465
7463
# So say no if there are warnings other than the usual output.
7794
7792
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7795
7793
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7796
7794
-e 's:$: $lt_compiler_flag:'`
7797
(eval echo "\"\$as_me:7797: $lt_compile\"" >&5)
7795
(eval echo "\"\$as_me:7795: $lt_compile\"" >&5)
7798
7796
(eval "$lt_compile" 2>conftest.err)
7800
7798
cat conftest.err >&5
7801
echo "$as_me:7801: \$? = $ac_status" >&5
7799
echo "$as_me:7799: \$? = $ac_status" >&5
7802
7800
if (exit $ac_status) && test -s "$ac_outfile"; then
7803
7801
# The compiler can only warn and ignore the option if not recognized
7804
7802
# So say no if there are warnings other than the usual output.
7899
7897
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7900
7898
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7901
7899
-e 's:$: $lt_compiler_flag:'`
7902
(eval echo "\"\$as_me:7902: $lt_compile\"" >&5)
7900
(eval echo "\"\$as_me:7900: $lt_compile\"" >&5)
7903
7901
(eval "$lt_compile" 2>out/conftest.err)
7905
7903
cat out/conftest.err >&5
7906
echo "$as_me:7906: \$? = $ac_status" >&5
7904
echo "$as_me:7904: \$? = $ac_status" >&5
7907
7905
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7909
7907
# The compiler can only warn and ignore the option if not recognized
7954
7952
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7955
7953
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7956
7954
-e 's:$: $lt_compiler_flag:'`
7957
(eval echo "\"\$as_me:7957: $lt_compile\"" >&5)
7955
(eval echo "\"\$as_me:7955: $lt_compile\"" >&5)
7958
7956
(eval "$lt_compile" 2>out/conftest.err)
7960
7958
cat out/conftest.err >&5
7961
echo "$as_me:7961: \$? = $ac_status" >&5
7959
echo "$as_me:7959: \$? = $ac_status" >&5
7962
7960
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7964
7962
# The compiler can only warn and ignore the option if not recognized
12481
12482
sdkdir=$(pkg-config --variable=sdkdir xorg-server)
12483
12484
# Checks for libraries.
12484
{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
12485
$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
12486
if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
12487
$as_echo_n "(cached) " >&6
12489
cat >conftest.$ac_ext <<_ACEOF
12492
cat confdefs.h >>conftest.$ac_ext
12493
cat >>conftest.$ac_ext <<_ACEOF
12494
/* end confdefs.h. */
12495
#include "xorg/xorg-server.h"
12500
#ifndef XSERVER_LIBPCIACCESS
12501
(void) XSERVER_LIBPCIACCESS;
12508
rm -f conftest.$ac_objext
12509
if { (ac_try="$ac_compile"
12510
case "(($ac_try" in
12511
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12512
*) ac_try_echo=$ac_try;;
12514
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12515
$as_echo "$ac_try_echo") >&5
12516
(eval "$ac_compile") 2>conftest.er1
12518
grep -v '^ *+' conftest.er1 >conftest.err
12520
cat conftest.err >&5
12521
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522
(exit $ac_status); } && {
12523
test -z "$ac_c_werror_flag" ||
12524
test ! -s conftest.err
12525
} && test -s conftest.$ac_objext; then
12526
ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
12528
$as_echo "$as_me: failed program was:" >&5
12529
sed 's/^/| /' conftest.$ac_ext >&5
12531
ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
12534
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12536
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
12537
$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
12538
if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
12539
XSERVER_LIBPCIACCESS=yes
12541
XSERVER_LIBPCIACCESS=no
12545
if test x$XSERVER_LIBPCIACCESS = xyes; then
12547
12486
pkg_failed=no
12548
12487
{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
12656
12595
$as_echo "yes" >&6; }
12661
if test "x$XSERVER_LIBPCIACCESS" = xyes; then
12662
XSERVER_LIBPCIACCESS_TRUE=
12663
XSERVER_LIBPCIACCESS_FALSE='#'
12665
XSERVER_LIBPCIACCESS_TRUE='#'
12666
XSERVER_LIBPCIACCESS_FALSE=
12670
12599
# Checks for header files.
12671
12600
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13214
13143
Usually this means the macro was only invoked conditionally." >&2;}
13215
13144
{ (exit 1); exit 1; }; }
13217
if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
13218
{ { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13219
Usually this means the macro was only invoked conditionally." >&5
13220
$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
13221
Usually this means the macro was only invoked conditionally." >&2;}
13222
{ (exit 1); exit 1; }; }
13225
13147
: ${CONFIG_STATUS=./config.status}
13226
13148
ac_write_fail=0
14646
14568
case $ac_file$ac_mode in
14647
"depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
14648
# are listed without --file. Let's play safe and only enable the eval
14649
# if we detect the quoting.
14650
case $CONFIG_FILES in
14651
*\'*) eval set x "$CONFIG_FILES" ;;
14652
*) set x $CONFIG_FILES ;;
14657
# Strip MF so we end up with the name of the file.
14658
mf=`echo "$mf" | sed -e 's/:.*$//'`
14659
# Check whether this is an Automake generated Makefile or not.
14660
# We used to match only the files named `Makefile.in', but
14661
# some people rename them; so instead we look at the file content.
14662
# Grep'ing the first line is not enough: some people post-process
14663
# each Makefile.in and add a new line on top of each file to say so.
14664
# Grep'ing the whole file is not good either: AIX grep has a line
14665
# limit of 2048, but all sed's we know have understand at least 4000.
14666
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14667
dirpart=`$as_dirname -- "$mf" ||
14569
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14570
# Autoconf 2.62 quotes --file arguments for eval, but not when files
14571
# are listed without --file. Let's play safe and only enable the eval
14572
# if we detect the quoting.
14573
case $CONFIG_FILES in
14574
*\'*) eval set x "$CONFIG_FILES" ;;
14575
*) set x $CONFIG_FILES ;;
14580
# Strip MF so we end up with the name of the file.
14581
mf=`echo "$mf" | sed -e 's/:.*$//'`
14582
# Check whether this is an Automake generated Makefile or not.
14583
# We used to match only the files named `Makefile.in', but
14584
# some people rename them; so instead we look at the file content.
14585
# Grep'ing the first line is not enough: some people post-process
14586
# each Makefile.in and add a new line on top of each file to say so.
14587
# Grep'ing the whole file is not good either: AIX grep has a line
14588
# limit of 2048, but all sed's we know have understand at least 4000.
14589
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14590
dirpart=`$as_dirname -- "$mf" ||
14668
14591
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14669
14592
X"$mf" : 'X\(//\)[^/]' \| \
14670
14593
X"$mf" : 'X\(//\)$' \| \
14693
# Extract the definition of DEPDIR, am__include, and am__quote
14694
# from the Makefile without running `make'.
14695
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14696
test -z "$DEPDIR" && continue
14697
am__include=`sed -n 's/^am__include = //p' < "$mf"`
14698
test -z "am__include" && continue
14699
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14700
# When using ansi2knr, U may be empty or an underscore; expand it
14701
U=`sed -n 's/^U = //p' < "$mf"`
14702
# Find all dependency output files, they are included files with
14703
# $(DEPDIR) in their names. We invoke sed twice because it is the
14704
# simplest approach to changing $(DEPDIR) to its actual value in the
14706
for file in `sed -n "
14707
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14708
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14709
# Make sure the directory exists.
14710
test -f "$dirpart/$file" && continue
14711
fdir=`$as_dirname -- "$file" ||
14616
# Extract the definition of DEPDIR, am__include, and am__quote
14617
# from the Makefile without running `make'.
14618
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14619
test -z "$DEPDIR" && continue
14620
am__include=`sed -n 's/^am__include = //p' < "$mf"`
14621
test -z "am__include" && continue
14622
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14623
# When using ansi2knr, U may be empty or an underscore; expand it
14624
U=`sed -n 's/^U = //p' < "$mf"`
14625
# Find all dependency output files, they are included files with
14626
# $(DEPDIR) in their names. We invoke sed twice because it is the
14627
# simplest approach to changing $(DEPDIR) to its actual value in the
14629
for file in `sed -n "
14630
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14631
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14632
# Make sure the directory exists.
14633
test -f "$dirpart/$file" && continue
14634
fdir=`$as_dirname -- "$file" ||
14712
14635
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14713
14636
X"$file" : 'X\(//\)[^/]' \| \
14714
14637
X"$file" : 'X\(//\)$' \| \
14772
14695
} || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14773
14696
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14774
14697
{ (exit 1); exit 1; }; }; }
14775
# echo "creating $dirpart/$file"
14776
echo '# dummy' > "$dirpart/$file"
14698
# echo "creating $dirpart/$file"
14699
echo '# dummy' > "$dirpart/$file"