17393
# Check for libintl.h. When configuring using "--without-x", /usr/local/include
17394
# may not be added to the include path, so code that use glib's i18n functions
17395
# would fail to compile because it can't find libintl.h.
17397
if test "${ac_cv_header_libintl_h+set}" = set; then
17398
{ echo "$as_me:$LINENO: checking for libintl.h" >&5
17399
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
17400
if test "${ac_cv_header_libintl_h+set}" = set; then
17401
echo $ECHO_N "(cached) $ECHO_C" >&6
17403
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17404
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
17406
# Is the header compilable?
17407
{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
17408
echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
17409
cat >conftest.$ac_ext <<_ACEOF
17412
cat confdefs.h >>conftest.$ac_ext
17413
cat >>conftest.$ac_ext <<_ACEOF
17414
/* end confdefs.h. */
17415
$ac_includes_default
17416
#include <libintl.h>
17418
rm -f conftest.$ac_objext
17419
if { (ac_try="$ac_compile"
17420
case "(($ac_try" in
17421
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422
*) ac_try_echo=$ac_try;;
17424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425
(eval "$ac_compile") 2>conftest.er1
17427
grep -v '^ *+' conftest.er1 >conftest.err
17429
cat conftest.err >&5
17430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431
(exit $ac_status); } && {
17432
test -z "$ac_c_werror_flag" ||
17433
test ! -s conftest.err
17434
} && test -s conftest.$ac_objext; then
17435
ac_header_compiler=yes
17437
echo "$as_me: failed program was:" >&5
17438
sed 's/^/| /' conftest.$ac_ext >&5
17440
ac_header_compiler=no
17443
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17444
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17445
echo "${ECHO_T}$ac_header_compiler" >&6; }
17447
# Is the header present?
17448
{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
17449
echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
17450
cat >conftest.$ac_ext <<_ACEOF
17453
cat confdefs.h >>conftest.$ac_ext
17454
cat >>conftest.$ac_ext <<_ACEOF
17455
/* end confdefs.h. */
17456
#include <libintl.h>
17458
if { (ac_try="$ac_cpp conftest.$ac_ext"
17459
case "(($ac_try" in
17460
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461
*) ac_try_echo=$ac_try;;
17463
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17466
grep -v '^ *+' conftest.er1 >conftest.err
17468
cat conftest.err >&5
17469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470
(exit $ac_status); } >/dev/null && {
17471
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17472
test ! -s conftest.err
17474
ac_header_preproc=yes
17476
echo "$as_me: failed program was:" >&5
17477
sed 's/^/| /' conftest.$ac_ext >&5
17479
ac_header_preproc=no
17482
rm -f conftest.err conftest.$ac_ext
17483
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17484
echo "${ECHO_T}$ac_header_preproc" >&6; }
17486
# So? What about this header?
17487
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17489
{ echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17490
echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17491
{ echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
17492
echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
17493
ac_header_preproc=yes
17496
{ echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17497
echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17498
{ echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17499
echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17500
{ echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
17501
echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
17502
{ echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
17503
echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
17504
{ echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17505
echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
17506
{ echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
17507
echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
17509
## -------------------------------------------------------- ##
17510
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
17511
## -------------------------------------------------------- ##
17513
) | sed "s/^/$as_me: WARNING: /" >&2
17516
{ echo "$as_me:$LINENO: checking for libintl.h" >&5
17517
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
17518
if test "${ac_cv_header_libintl_h+set}" = set; then
17519
echo $ECHO_N "(cached) $ECHO_C" >&6
17521
ac_cv_header_libintl_h=$ac_header_preproc
17523
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17524
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
17527
if test $ac_cv_header_libintl_h = yes; then
17534
if test "$have_libintl" = "no"; then
17535
unset ac_cv_header_libintl_h
17536
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
17537
if test "${ac_cv_header_libintl_h+set}" = set; then
17538
{ echo "$as_me:$LINENO: checking for libintl.h" >&5
17539
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
17540
if test "${ac_cv_header_libintl_h+set}" = set; then
17541
echo $ECHO_N "(cached) $ECHO_C" >&6
17543
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17544
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
17546
# Is the header compilable?
17547
{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
17548
echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
17549
cat >conftest.$ac_ext <<_ACEOF
17552
cat confdefs.h >>conftest.$ac_ext
17553
cat >>conftest.$ac_ext <<_ACEOF
17554
/* end confdefs.h. */
17555
$ac_includes_default
17556
#include <libintl.h>
17558
rm -f conftest.$ac_objext
17559
if { (ac_try="$ac_compile"
17560
case "(($ac_try" in
17561
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17562
*) ac_try_echo=$ac_try;;
17564
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17565
(eval "$ac_compile") 2>conftest.er1
17567
grep -v '^ *+' conftest.er1 >conftest.err
17569
cat conftest.err >&5
17570
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571
(exit $ac_status); } && {
17572
test -z "$ac_c_werror_flag" ||
17573
test ! -s conftest.err
17574
} && test -s conftest.$ac_objext; then
17575
ac_header_compiler=yes
17577
echo "$as_me: failed program was:" >&5
17578
sed 's/^/| /' conftest.$ac_ext >&5
17580
ac_header_compiler=no
17583
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17584
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17585
echo "${ECHO_T}$ac_header_compiler" >&6; }
17587
# Is the header present?
17588
{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
17589
echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
17590
cat >conftest.$ac_ext <<_ACEOF
17593
cat confdefs.h >>conftest.$ac_ext
17594
cat >>conftest.$ac_ext <<_ACEOF
17595
/* end confdefs.h. */
17596
#include <libintl.h>
17598
if { (ac_try="$ac_cpp conftest.$ac_ext"
17599
case "(($ac_try" in
17600
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17601
*) ac_try_echo=$ac_try;;
17603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17604
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17606
grep -v '^ *+' conftest.er1 >conftest.err
17608
cat conftest.err >&5
17609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610
(exit $ac_status); } >/dev/null && {
17611
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17612
test ! -s conftest.err
17614
ac_header_preproc=yes
17616
echo "$as_me: failed program was:" >&5
17617
sed 's/^/| /' conftest.$ac_ext >&5
17619
ac_header_preproc=no
17622
rm -f conftest.err conftest.$ac_ext
17623
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17624
echo "${ECHO_T}$ac_header_preproc" >&6; }
17626
# So? What about this header?
17627
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17629
{ echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17630
echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17631
{ echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
17632
echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
17633
ac_header_preproc=yes
17636
{ echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17637
echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17638
{ echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17639
echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17640
{ echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
17641
echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
17642
{ echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
17643
echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
17644
{ echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17645
echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
17646
{ echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
17647
echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
17649
## -------------------------------------------------------- ##
17650
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
17651
## -------------------------------------------------------- ##
17653
) | sed "s/^/$as_me: WARNING: /" >&2
17656
{ echo "$as_me:$LINENO: checking for libintl.h" >&5
17657
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
17658
if test "${ac_cv_header_libintl_h+set}" = set; then
17659
echo $ECHO_N "(cached) $ECHO_C" >&6
17661
ac_cv_header_libintl_h=$ac_header_preproc
17663
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17664
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
17667
if test $ac_cv_header_libintl_h = yes; then
17670
{ { echo "$as_me:$LINENO: error: libintl.h not found. Make sure you have the gettext headers installed." >&5
17671
echo "$as_me: error: libintl.h not found. Make sure you have the gettext headers installed." >&2;}
17672
{ (exit 1); exit 1; }; }
17679
# Check for glib 2.6.0 or greater.
17683
if test -z "glib-2.0"; then
17684
{ { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
17685
echo "$as_me: error: 'library' parameter is required.'" >&2;}
17686
{ (exit 1); exit 1; }; }
17688
if test -z "GLIB2"; then
17689
{ { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
17690
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
17691
{ (exit 1); exit 1; }; }
17695
ac_vmw_have_lib_func=0
17696
ac_vmw_have_lib_header=0
17699
# First, try any user-defined CUSTOM_* flags.
17701
if test -n "${CUSTOM_GLIB2_CPPFLAGS}" || test -n "${CUSTOM_GLIB2_LIBS}"; then
17702
CUSTOM_GLIB2_LIBS="${CUSTOM_GLIB2_LIBS} -lglib-2.0"
17703
if test -n "glib.h"; then
17704
ORIGINAL_CPPFLAGS="$CPPFLAGS"
17705
CPPFLAGS="${CUSTOM_GLIB2_CPPFLAGS} $CPPFLAGS"
17707
if test "${ac_cv_header_glib_h+set}" = set; then
17708
{ echo "$as_me:$LINENO: checking for glib.h" >&5
17709
echo $ECHO_N "checking for glib.h... $ECHO_C" >&6; }
17710
if test "${ac_cv_header_glib_h+set}" = set; then
17711
echo $ECHO_N "(cached) $ECHO_C" >&6
17713
{ echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
17714
echo "${ECHO_T}$ac_cv_header_glib_h" >&6; }
17716
# Is the header compilable?
17717
{ echo "$as_me:$LINENO: checking glib.h usability" >&5
17718
echo $ECHO_N "checking glib.h usability... $ECHO_C" >&6; }
17719
cat >conftest.$ac_ext <<_ACEOF
17722
cat confdefs.h >>conftest.$ac_ext
17723
cat >>conftest.$ac_ext <<_ACEOF
17724
/* end confdefs.h. */
17725
$ac_includes_default
17728
rm -f conftest.$ac_objext
17729
if { (ac_try="$ac_compile"
17730
case "(($ac_try" in
17731
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732
*) ac_try_echo=$ac_try;;
17734
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17735
(eval "$ac_compile") 2>conftest.er1
17737
grep -v '^ *+' conftest.er1 >conftest.err
17739
cat conftest.err >&5
17740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741
(exit $ac_status); } && {
17742
test -z "$ac_c_werror_flag" ||
17743
test ! -s conftest.err
17744
} && test -s conftest.$ac_objext; then
17745
ac_header_compiler=yes
17747
echo "$as_me: failed program was:" >&5
17748
sed 's/^/| /' conftest.$ac_ext >&5
17750
ac_header_compiler=no
17753
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17754
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17755
echo "${ECHO_T}$ac_header_compiler" >&6; }
17757
# Is the header present?
17758
{ echo "$as_me:$LINENO: checking glib.h presence" >&5
17759
echo $ECHO_N "checking glib.h presence... $ECHO_C" >&6; }
17760
cat >conftest.$ac_ext <<_ACEOF
17763
cat confdefs.h >>conftest.$ac_ext
17764
cat >>conftest.$ac_ext <<_ACEOF
17765
/* end confdefs.h. */
17768
if { (ac_try="$ac_cpp conftest.$ac_ext"
17769
case "(($ac_try" in
17770
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771
*) ac_try_echo=$ac_try;;
17773
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17776
grep -v '^ *+' conftest.er1 >conftest.err
17778
cat conftest.err >&5
17779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780
(exit $ac_status); } >/dev/null && {
17781
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17782
test ! -s conftest.err
17784
ac_header_preproc=yes
17786
echo "$as_me: failed program was:" >&5
17787
sed 's/^/| /' conftest.$ac_ext >&5
17789
ac_header_preproc=no
17792
rm -f conftest.err conftest.$ac_ext
17793
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17794
echo "${ECHO_T}$ac_header_preproc" >&6; }
17796
# So? What about this header?
17797
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17799
{ echo "$as_me:$LINENO: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17800
echo "$as_me: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17801
{ echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the compiler's result" >&5
17802
echo "$as_me: WARNING: glib.h: proceeding with the compiler's result" >&2;}
17803
ac_header_preproc=yes
17806
{ echo "$as_me:$LINENO: WARNING: glib.h: present but cannot be compiled" >&5
17807
echo "$as_me: WARNING: glib.h: present but cannot be compiled" >&2;}
17808
{ echo "$as_me:$LINENO: WARNING: glib.h: check for missing prerequisite headers?" >&5
17809
echo "$as_me: WARNING: glib.h: check for missing prerequisite headers?" >&2;}
17810
{ echo "$as_me:$LINENO: WARNING: glib.h: see the Autoconf documentation" >&5
17811
echo "$as_me: WARNING: glib.h: see the Autoconf documentation" >&2;}
17812
{ echo "$as_me:$LINENO: WARNING: glib.h: section \"Present But Cannot Be Compiled\"" >&5
17813
echo "$as_me: WARNING: glib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17814
{ echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the preprocessor's result" >&5
17815
echo "$as_me: WARNING: glib.h: proceeding with the preprocessor's result" >&2;}
17816
{ echo "$as_me:$LINENO: WARNING: glib.h: in the future, the compiler will take precedence" >&5
17817
echo "$as_me: WARNING: glib.h: in the future, the compiler will take precedence" >&2;}
17819
## -------------------------------------------------------- ##
17820
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
17821
## -------------------------------------------------------- ##
17823
) | sed "s/^/$as_me: WARNING: /" >&2
17826
{ echo "$as_me:$LINENO: checking for glib.h" >&5
17827
echo $ECHO_N "checking for glib.h... $ECHO_C" >&6; }
17828
if test "${ac_cv_header_glib_h+set}" = set; then
17829
echo $ECHO_N "(cached) $ECHO_C" >&6
17831
ac_cv_header_glib_h=$ac_header_preproc
17833
{ echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
17834
echo "${ECHO_T}$ac_cv_header_glib_h" >&6; }
17837
if test $ac_cv_header_glib_h = yes; then
17838
ac_vmw_have_lib_header=1
17843
CPPFLAGS="$ORIGINAL_CPPFLAGS"
17845
ac_vmw_have_lib_header=1
17848
# Check a specific function in the library if requested.
17849
# If it hasn't, just pick a random function from libc, just to make
17850
# sure the linker can find the library being tested.
17851
if test $ac_vmw_have_lib_header -eq 1; then
17852
if test -n "g_key_file_new"; then
17853
ac_vmw_function=g_key_file_new
17855
ac_vmw_function=strlen
17857
as_ac_Lib=`echo "ac_cv_lib_glib-2.0_$ac_vmw_function" | $as_tr_sh`
17858
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -lglib-2.0" >&5
17859
echo $ECHO_N "checking for $ac_vmw_function in -lglib-2.0... $ECHO_C" >&6; }
17860
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
17861
echo $ECHO_N "(cached) $ECHO_C" >&6
17863
ac_check_lib_save_LIBS=$LIBS
17864
LIBS="-lglib-2.0 ${CUSTOM_GLIB2_LIBS} $LIBS"
17865
cat >conftest.$ac_ext <<_ACEOF
17868
cat confdefs.h >>conftest.$ac_ext
17869
cat >>conftest.$ac_ext <<_ACEOF
17870
/* end confdefs.h. */
17872
/* Override any GCC internal prototype to avoid an error.
17873
Use char because int might match the return type of a GCC
17874
builtin and then its argument prototype would still apply. */
17878
char $ac_vmw_function ();
17882
return $ac_vmw_function ();
17887
rm -f conftest.$ac_objext conftest$ac_exeext
17888
if { (ac_try="$ac_link"
17889
case "(($ac_try" in
17890
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891
*) ac_try_echo=$ac_try;;
17893
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17894
(eval "$ac_link") 2>conftest.er1
17896
grep -v '^ *+' conftest.er1 >conftest.err
17898
cat conftest.err >&5
17899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900
(exit $ac_status); } && {
17901
test -z "$ac_c_werror_flag" ||
17902
test ! -s conftest.err
17903
} && test -s conftest$ac_exeext &&
17904
$as_test_x conftest$ac_exeext; then
17905
eval "$as_ac_Lib=yes"
17907
echo "$as_me: failed program was:" >&5
17908
sed 's/^/| /' conftest.$ac_ext >&5
17910
eval "$as_ac_Lib=no"
17913
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17914
conftest$ac_exeext conftest.$ac_ext
17915
LIBS=$ac_check_lib_save_LIBS
17917
ac_res=`eval echo '${'$as_ac_Lib'}'`
17918
{ echo "$as_me:$LINENO: result: $ac_res" >&5
17919
echo "${ECHO_T}$ac_res" >&6; }
17920
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17921
ac_vmw_have_lib_func=1
17926
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
17927
GLIB2_CPPFLAGS="${CUSTOM_GLIB2_CPPFLAGS}"
17928
GLIB2_LIBS="${CUSTOM_GLIB2_LIBS}"
17933
# If that didn't work, try with pkg-config.
17934
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "glib-2.0"; then
17935
if test -n "2.6.0"; then
17936
{ echo "$as_me:$LINENO: checking for glib-2.0 >= 2.6.0 (via pkg-config)" >&5
17937
echo $ECHO_N "checking for glib-2.0 >= 2.6.0 (via pkg-config)... $ECHO_C" >&6; }
17938
if pkg-config --exists 'glib-2.0 >= 2.6.0'; then
17942
{ echo "$as_me:$LINENO: checking for glib-2.0 (via pkg-config)" >&5
17943
echo $ECHO_N "checking for glib-2.0 (via pkg-config)... $ECHO_C" >&6; }
17944
if pkg-config --exists 'glib-2.0'; then
17949
if test $ac_vmw_have_lib -eq 1; then
17950
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
17951
# fails on OpenSolaris B71. So be pessimistic.
17952
ac_vmw_cppflags="`pkg-config --cflags glib-2.0`"
17954
ac_vmw_libs="`pkg-config --libs glib-2.0`"
17956
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
17957
{ echo "$as_me:$LINENO: result: yes" >&5
17958
echo "${ECHO_T}yes" >&6; }
17959
GLIB2_CPPFLAGS="$ac_vmw_cppflags"
17960
GLIB2_LIBS="$ac_vmw_libs"
17962
{ echo "$as_me:$LINENO: result: no" >&5
17963
echo "${ECHO_T}no" >&6; }
17966
{ echo "$as_me:$LINENO: result: no" >&5
17967
echo "${ECHO_T}no" >&6; }
17971
# If we still haven't found the lib, try with the library's custom "config" script.
17972
# Before checking, flush the AC_PATH_PROG cached variable.
17973
unset ac_cv_path_ac_vmw_lib_cfg
17974
unset ac_vmw_lib_cfg
17975
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
17976
# Extract the first word of "", so it can be a program name with args.
17977
set dummy ; ac_word=$2
17978
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17979
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17980
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
17981
echo $ECHO_N "(cached) $ECHO_C" >&6
17983
case $ac_vmw_lib_cfg in
17985
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
17988
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17989
for as_dir in $PATH
17992
test -z "$as_dir" && as_dir=.
17993
for ac_exec_ext in '' $ac_executable_extensions; do
17994
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17995
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
17996
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18003
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
18007
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
18008
if test -n "$ac_vmw_lib_cfg"; then
18009
{ echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
18010
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
18012
{ echo "$as_me:$LINENO: result: no" >&5
18013
echo "${ECHO_T}no" >&6; }
18017
if test "$ac_vmw_lib_cfg" != "no"; then
18018
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
18019
# so single it out here to avoid having to replicate all the rest of the
18021
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
18022
GLIB2_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
18023
GLIB2_LIBS="`$ac_vmw_lib_cfg --ldflags`"
18025
GLIB2_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
18026
GLIB2_LIBS="`$ac_vmw_lib_cfg --libs`"
18032
# Finish by executing the user provided action. The call to "true" is needed
18033
# because the actions are optional, and we need something inside the block.
18034
if test $ac_vmw_have_lib -eq 1; then
18041
{ { echo "$as_me:$LINENO: error: glib >= 2.6.0 is required." >&5
18042
echo "$as_me: error: glib >= 2.6.0 is required." >&2;}
18043
{ (exit 1); exit 1; }; }
18048
if test -z "gmodule-2.0"; then
18049
{ { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
18050
echo "$as_me: error: 'library' parameter is required.'" >&2;}
18051
{ (exit 1); exit 1; }; }
18053
if test -z "GMODULE"; then
18054
{ { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
18055
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
18056
{ (exit 1); exit 1; }; }
18060
ac_vmw_have_lib_func=0
18061
ac_vmw_have_lib_header=0
18064
# First, try any user-defined CUSTOM_* flags.
18066
if test -n "${CUSTOM_GMODULE_CPPFLAGS}" || test -n "${CUSTOM_GMODULE_LIBS}"; then
18067
CUSTOM_GMODULE_LIBS="${CUSTOM_GMODULE_LIBS} -lgmodule-2.0"
18068
if test -n ""; then
18069
ORIGINAL_CPPFLAGS="$CPPFLAGS"
18070
CPPFLAGS="${CUSTOM_GMODULE_CPPFLAGS} $CPPFLAGS"
18072
if test "${ac_cv_header_+set}" = set; then
18073
{ echo "$as_me:$LINENO: checking for " >&5
18074
echo $ECHO_N "checking for ... $ECHO_C" >&6; }
18075
if test "${ac_cv_header_+set}" = set; then
18076
echo $ECHO_N "(cached) $ECHO_C" >&6
18078
{ echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
18079
echo "${ECHO_T}$ac_cv_header_" >&6; }
18081
# Is the header compilable?
18082
{ echo "$as_me:$LINENO: checking usability" >&5
18083
echo $ECHO_N "checking usability... $ECHO_C" >&6; }
18084
cat >conftest.$ac_ext <<_ACEOF
18087
cat confdefs.h >>conftest.$ac_ext
18088
cat >>conftest.$ac_ext <<_ACEOF
18089
/* end confdefs.h. */
18090
$ac_includes_default
18093
rm -f conftest.$ac_objext
18094
if { (ac_try="$ac_compile"
18095
case "(($ac_try" in
18096
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097
*) ac_try_echo=$ac_try;;
18099
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18100
(eval "$ac_compile") 2>conftest.er1
18102
grep -v '^ *+' conftest.er1 >conftest.err
18104
cat conftest.err >&5
18105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106
(exit $ac_status); } && {
18107
test -z "$ac_c_werror_flag" ||
18108
test ! -s conftest.err
18109
} && test -s conftest.$ac_objext; then
18110
ac_header_compiler=yes
18112
echo "$as_me: failed program was:" >&5
18113
sed 's/^/| /' conftest.$ac_ext >&5
18115
ac_header_compiler=no
18118
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18119
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18120
echo "${ECHO_T}$ac_header_compiler" >&6; }
18122
# Is the header present?
18123
{ echo "$as_me:$LINENO: checking presence" >&5
18124
echo $ECHO_N "checking presence... $ECHO_C" >&6; }
18125
cat >conftest.$ac_ext <<_ACEOF
18128
cat confdefs.h >>conftest.$ac_ext
18129
cat >>conftest.$ac_ext <<_ACEOF
18130
/* end confdefs.h. */
18133
if { (ac_try="$ac_cpp conftest.$ac_ext"
18134
case "(($ac_try" in
18135
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136
*) ac_try_echo=$ac_try;;
18138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18139
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18141
grep -v '^ *+' conftest.er1 >conftest.err
18143
cat conftest.err >&5
18144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145
(exit $ac_status); } >/dev/null && {
18146
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18147
test ! -s conftest.err
18149
ac_header_preproc=yes
18151
echo "$as_me: failed program was:" >&5
18152
sed 's/^/| /' conftest.$ac_ext >&5
18154
ac_header_preproc=no
18157
rm -f conftest.err conftest.$ac_ext
18158
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18159
echo "${ECHO_T}$ac_header_preproc" >&6; }
18161
# So? What about this header?
18162
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18164
{ echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
18165
echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
18166
{ echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
18167
echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
18168
ac_header_preproc=yes
18171
{ echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
18172
echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
18173
{ echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
18174
echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
18175
{ echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
18176
echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
18177
{ echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
18178
echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
18179
{ echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
18180
echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
18181
{ echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
18182
echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
18184
## -------------------------------------------------------- ##
18185
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
18186
## -------------------------------------------------------- ##
18188
) | sed "s/^/$as_me: WARNING: /" >&2
18191
{ echo "$as_me:$LINENO: checking for " >&5
18192
echo $ECHO_N "checking for ... $ECHO_C" >&6; }
18193
if test "${ac_cv_header_+set}" = set; then
18194
echo $ECHO_N "(cached) $ECHO_C" >&6
18196
ac_cv_header_=$ac_header_preproc
18198
{ echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
18199
echo "${ECHO_T}$ac_cv_header_" >&6; }
18202
if test $ac_cv_header_ = yes; then
18203
ac_vmw_have_lib_header=1
18208
CPPFLAGS="$ORIGINAL_CPPFLAGS"
18210
ac_vmw_have_lib_header=1
18213
# Check a specific function in the library if requested.
18214
# If it hasn't, just pick a random function from libc, just to make
18215
# sure the linker can find the library being tested.
18216
if test $ac_vmw_have_lib_header -eq 1; then
18217
if test -n ""; then
18220
ac_vmw_function=strlen
18222
as_ac_Lib=`echo "ac_cv_lib_gmodule-2.0_$ac_vmw_function" | $as_tr_sh`
18223
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -lgmodule-2.0" >&5
18224
echo $ECHO_N "checking for $ac_vmw_function in -lgmodule-2.0... $ECHO_C" >&6; }
18225
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18226
echo $ECHO_N "(cached) $ECHO_C" >&6
18228
ac_check_lib_save_LIBS=$LIBS
18229
LIBS="-lgmodule-2.0 ${CUSTOM_GMODULE_LIBS} $LIBS"
18230
cat >conftest.$ac_ext <<_ACEOF
18233
cat confdefs.h >>conftest.$ac_ext
18234
cat >>conftest.$ac_ext <<_ACEOF
18235
/* end confdefs.h. */
18237
/* Override any GCC internal prototype to avoid an error.
18238
Use char because int might match the return type of a GCC
18239
builtin and then its argument prototype would still apply. */
18243
char $ac_vmw_function ();
18247
return $ac_vmw_function ();
18252
rm -f conftest.$ac_objext conftest$ac_exeext
18253
if { (ac_try="$ac_link"
18254
case "(($ac_try" in
18255
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256
*) ac_try_echo=$ac_try;;
18258
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259
(eval "$ac_link") 2>conftest.er1
18261
grep -v '^ *+' conftest.er1 >conftest.err
18263
cat conftest.err >&5
18264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265
(exit $ac_status); } && {
18266
test -z "$ac_c_werror_flag" ||
18267
test ! -s conftest.err
18268
} && test -s conftest$ac_exeext &&
18269
$as_test_x conftest$ac_exeext; then
18270
eval "$as_ac_Lib=yes"
18272
echo "$as_me: failed program was:" >&5
18273
sed 's/^/| /' conftest.$ac_ext >&5
18275
eval "$as_ac_Lib=no"
18278
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18279
conftest$ac_exeext conftest.$ac_ext
18280
LIBS=$ac_check_lib_save_LIBS
18282
ac_res=`eval echo '${'$as_ac_Lib'}'`
18283
{ echo "$as_me:$LINENO: result: $ac_res" >&5
18284
echo "${ECHO_T}$ac_res" >&6; }
18285
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18286
ac_vmw_have_lib_func=1
18291
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
18292
GMODULE_CPPFLAGS="${CUSTOM_GMODULE_CPPFLAGS}"
18293
GMODULE_LIBS="${CUSTOM_GMODULE_LIBS}"
18298
# If that didn't work, try with pkg-config.
18299
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "gmodule-2.0"; then
18300
if test -n "2.6.0"; then
18301
{ echo "$as_me:$LINENO: checking for gmodule-2.0 >= 2.6.0 (via pkg-config)" >&5
18302
echo $ECHO_N "checking for gmodule-2.0 >= 2.6.0 (via pkg-config)... $ECHO_C" >&6; }
18303
if pkg-config --exists 'gmodule-2.0 >= 2.6.0'; then
18307
{ echo "$as_me:$LINENO: checking for gmodule-2.0 (via pkg-config)" >&5
18308
echo $ECHO_N "checking for gmodule-2.0 (via pkg-config)... $ECHO_C" >&6; }
18309
if pkg-config --exists 'gmodule-2.0'; then
18314
if test $ac_vmw_have_lib -eq 1; then
18315
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
18316
# fails on OpenSolaris B71. So be pessimistic.
18317
ac_vmw_cppflags="`pkg-config --cflags gmodule-2.0`"
18319
ac_vmw_libs="`pkg-config --libs gmodule-2.0`"
18321
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
18322
{ echo "$as_me:$LINENO: result: yes" >&5
18323
echo "${ECHO_T}yes" >&6; }
18324
GMODULE_CPPFLAGS="$ac_vmw_cppflags"
18325
GMODULE_LIBS="$ac_vmw_libs"
18327
{ echo "$as_me:$LINENO: result: no" >&5
18328
echo "${ECHO_T}no" >&6; }
18331
{ echo "$as_me:$LINENO: result: no" >&5
18332
echo "${ECHO_T}no" >&6; }
18336
# If we still haven't found the lib, try with the library's custom "config" script.
18337
# Before checking, flush the AC_PATH_PROG cached variable.
18338
unset ac_cv_path_ac_vmw_lib_cfg
18339
unset ac_vmw_lib_cfg
18340
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
18341
# Extract the first word of "", so it can be a program name with args.
18342
set dummy ; ac_word=$2
18343
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18344
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18345
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
18346
echo $ECHO_N "(cached) $ECHO_C" >&6
18348
case $ac_vmw_lib_cfg in
18350
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
18353
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18354
for as_dir in $PATH
18357
test -z "$as_dir" && as_dir=.
18358
for ac_exec_ext in '' $ac_executable_extensions; do
18359
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18360
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
18361
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18368
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
18372
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
18373
if test -n "$ac_vmw_lib_cfg"; then
18374
{ echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
18375
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
18377
{ echo "$as_me:$LINENO: result: no" >&5
18378
echo "${ECHO_T}no" >&6; }
18382
if test "$ac_vmw_lib_cfg" != "no"; then
18383
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
18384
# so single it out here to avoid having to replicate all the rest of the
18386
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
18387
GMODULE_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
18388
GMODULE_LIBS="`$ac_vmw_lib_cfg --ldflags`"
18390
GMODULE_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
18391
GMODULE_LIBS="`$ac_vmw_lib_cfg --libs`"
18397
# Finish by executing the user provided action. The call to "true" is needed
18398
# because the actions are optional, and we need something inside the block.
18399
if test $ac_vmw_have_lib -eq 1; then
18406
{ { echo "$as_me:$LINENO: error: gmodule >= 2.6.0 is required." >&5
18407
echo "$as_me: error: gmodule >= 2.6.0 is required." >&2;}
18408
{ (exit 1); exit 1; }; }
18413
if test -z "gobject-2.0"; then
18414
{ { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
18415
echo "$as_me: error: 'library' parameter is required.'" >&2;}
18416
{ (exit 1); exit 1; }; }
18418
if test -z "GOBJECT"; then
18419
{ { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
18420
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
18421
{ (exit 1); exit 1; }; }
18425
ac_vmw_have_lib_func=0
18426
ac_vmw_have_lib_header=0
18429
# First, try any user-defined CUSTOM_* flags.
18431
if test -n "${CUSTOM_GOBJECT_CPPFLAGS}" || test -n "${CUSTOM_GOBJECT_LIBS}"; then
18432
CUSTOM_GOBJECT_LIBS="${CUSTOM_GOBJECT_LIBS} -lgobject-2.0"
18433
if test -n "glib-object.h"; then
18434
ORIGINAL_CPPFLAGS="$CPPFLAGS"
18435
CPPFLAGS="${CUSTOM_GOBJECT_CPPFLAGS} $CPPFLAGS"
18437
if test "${ac_cv_header_glib_object_h+set}" = set; then
18438
{ echo "$as_me:$LINENO: checking for glib-object.h" >&5
18439
echo $ECHO_N "checking for glib-object.h... $ECHO_C" >&6; }
18440
if test "${ac_cv_header_glib_object_h+set}" = set; then
18441
echo $ECHO_N "(cached) $ECHO_C" >&6
18443
{ echo "$as_me:$LINENO: result: $ac_cv_header_glib_object_h" >&5
18444
echo "${ECHO_T}$ac_cv_header_glib_object_h" >&6; }
18446
# Is the header compilable?
18447
{ echo "$as_me:$LINENO: checking glib-object.h usability" >&5
18448
echo $ECHO_N "checking glib-object.h usability... $ECHO_C" >&6; }
18449
cat >conftest.$ac_ext <<_ACEOF
18452
cat confdefs.h >>conftest.$ac_ext
18453
cat >>conftest.$ac_ext <<_ACEOF
18454
/* end confdefs.h. */
18455
$ac_includes_default
18456
#include <glib-object.h>
18458
rm -f conftest.$ac_objext
18459
if { (ac_try="$ac_compile"
18460
case "(($ac_try" in
18461
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462
*) ac_try_echo=$ac_try;;
18464
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465
(eval "$ac_compile") 2>conftest.er1
18467
grep -v '^ *+' conftest.er1 >conftest.err
18469
cat conftest.err >&5
18470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471
(exit $ac_status); } && {
18472
test -z "$ac_c_werror_flag" ||
18473
test ! -s conftest.err
18474
} && test -s conftest.$ac_objext; then
18475
ac_header_compiler=yes
18477
echo "$as_me: failed program was:" >&5
18478
sed 's/^/| /' conftest.$ac_ext >&5
18480
ac_header_compiler=no
18483
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18484
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18485
echo "${ECHO_T}$ac_header_compiler" >&6; }
18487
# Is the header present?
18488
{ echo "$as_me:$LINENO: checking glib-object.h presence" >&5
18489
echo $ECHO_N "checking glib-object.h presence... $ECHO_C" >&6; }
18490
cat >conftest.$ac_ext <<_ACEOF
18493
cat confdefs.h >>conftest.$ac_ext
18494
cat >>conftest.$ac_ext <<_ACEOF
18495
/* end confdefs.h. */
18496
#include <glib-object.h>
18498
if { (ac_try="$ac_cpp conftest.$ac_ext"
18499
case "(($ac_try" in
18500
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18501
*) ac_try_echo=$ac_try;;
18503
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18504
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18506
grep -v '^ *+' conftest.er1 >conftest.err
18508
cat conftest.err >&5
18509
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510
(exit $ac_status); } >/dev/null && {
18511
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18512
test ! -s conftest.err
18514
ac_header_preproc=yes
18516
echo "$as_me: failed program was:" >&5
18517
sed 's/^/| /' conftest.$ac_ext >&5
18519
ac_header_preproc=no
18522
rm -f conftest.err conftest.$ac_ext
18523
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18524
echo "${ECHO_T}$ac_header_preproc" >&6; }
18526
# So? What about this header?
18527
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18529
{ echo "$as_me:$LINENO: WARNING: glib-object.h: accepted by the compiler, rejected by the preprocessor!" >&5
18530
echo "$as_me: WARNING: glib-object.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18531
{ echo "$as_me:$LINENO: WARNING: glib-object.h: proceeding with the compiler's result" >&5
18532
echo "$as_me: WARNING: glib-object.h: proceeding with the compiler's result" >&2;}
18533
ac_header_preproc=yes
18536
{ echo "$as_me:$LINENO: WARNING: glib-object.h: present but cannot be compiled" >&5
18537
echo "$as_me: WARNING: glib-object.h: present but cannot be compiled" >&2;}
18538
{ echo "$as_me:$LINENO: WARNING: glib-object.h: check for missing prerequisite headers?" >&5
18539
echo "$as_me: WARNING: glib-object.h: check for missing prerequisite headers?" >&2;}
18540
{ echo "$as_me:$LINENO: WARNING: glib-object.h: see the Autoconf documentation" >&5
18541
echo "$as_me: WARNING: glib-object.h: see the Autoconf documentation" >&2;}
18542
{ echo "$as_me:$LINENO: WARNING: glib-object.h: section \"Present But Cannot Be Compiled\"" >&5
18543
echo "$as_me: WARNING: glib-object.h: section \"Present But Cannot Be Compiled\"" >&2;}
18544
{ echo "$as_me:$LINENO: WARNING: glib-object.h: proceeding with the preprocessor's result" >&5
18545
echo "$as_me: WARNING: glib-object.h: proceeding with the preprocessor's result" >&2;}
18546
{ echo "$as_me:$LINENO: WARNING: glib-object.h: in the future, the compiler will take precedence" >&5
18547
echo "$as_me: WARNING: glib-object.h: in the future, the compiler will take precedence" >&2;}
18549
## -------------------------------------------------------- ##
18550
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
18551
## -------------------------------------------------------- ##
18553
) | sed "s/^/$as_me: WARNING: /" >&2
18556
{ echo "$as_me:$LINENO: checking for glib-object.h" >&5
18557
echo $ECHO_N "checking for glib-object.h... $ECHO_C" >&6; }
18558
if test "${ac_cv_header_glib_object_h+set}" = set; then
18559
echo $ECHO_N "(cached) $ECHO_C" >&6
18561
ac_cv_header_glib_object_h=$ac_header_preproc
18563
{ echo "$as_me:$LINENO: result: $ac_cv_header_glib_object_h" >&5
18564
echo "${ECHO_T}$ac_cv_header_glib_object_h" >&6; }
18567
if test $ac_cv_header_glib_object_h = yes; then
18568
ac_vmw_have_lib_header=1
18573
CPPFLAGS="$ORIGINAL_CPPFLAGS"
18575
ac_vmw_have_lib_header=1
18578
# Check a specific function in the library if requested.
18579
# If it hasn't, just pick a random function from libc, just to make
18580
# sure the linker can find the library being tested.
18581
if test $ac_vmw_have_lib_header -eq 1; then
18582
if test -n ""; then
18585
ac_vmw_function=strlen
18587
as_ac_Lib=`echo "ac_cv_lib_gobject-2.0_$ac_vmw_function" | $as_tr_sh`
18588
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -lgobject-2.0" >&5
18589
echo $ECHO_N "checking for $ac_vmw_function in -lgobject-2.0... $ECHO_C" >&6; }
18590
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18591
echo $ECHO_N "(cached) $ECHO_C" >&6
18593
ac_check_lib_save_LIBS=$LIBS
18594
LIBS="-lgobject-2.0 ${CUSTOM_GOBJECT_LIBS} $LIBS"
18595
cat >conftest.$ac_ext <<_ACEOF
18598
cat confdefs.h >>conftest.$ac_ext
18599
cat >>conftest.$ac_ext <<_ACEOF
18600
/* end confdefs.h. */
18602
/* Override any GCC internal prototype to avoid an error.
18603
Use char because int might match the return type of a GCC
18604
builtin and then its argument prototype would still apply. */
18608
char $ac_vmw_function ();
18612
return $ac_vmw_function ();
18617
rm -f conftest.$ac_objext conftest$ac_exeext
18618
if { (ac_try="$ac_link"
18619
case "(($ac_try" in
18620
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621
*) ac_try_echo=$ac_try;;
18623
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18624
(eval "$ac_link") 2>conftest.er1
18626
grep -v '^ *+' conftest.er1 >conftest.err
18628
cat conftest.err >&5
18629
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630
(exit $ac_status); } && {
18631
test -z "$ac_c_werror_flag" ||
18632
test ! -s conftest.err
18633
} && test -s conftest$ac_exeext &&
18634
$as_test_x conftest$ac_exeext; then
18635
eval "$as_ac_Lib=yes"
18637
echo "$as_me: failed program was:" >&5
18638
sed 's/^/| /' conftest.$ac_ext >&5
18640
eval "$as_ac_Lib=no"
18643
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18644
conftest$ac_exeext conftest.$ac_ext
18645
LIBS=$ac_check_lib_save_LIBS
18647
ac_res=`eval echo '${'$as_ac_Lib'}'`
18648
{ echo "$as_me:$LINENO: result: $ac_res" >&5
18649
echo "${ECHO_T}$ac_res" >&6; }
18650
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18651
ac_vmw_have_lib_func=1
18656
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
18657
GOBJECT_CPPFLAGS="${CUSTOM_GOBJECT_CPPFLAGS}"
18658
GOBJECT_LIBS="${CUSTOM_GOBJECT_LIBS}"
18663
# If that didn't work, try with pkg-config.
18664
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "gobject-2.0"; then
18665
if test -n "2.6.0"; then
18666
{ echo "$as_me:$LINENO: checking for gobject-2.0 >= 2.6.0 (via pkg-config)" >&5
18667
echo $ECHO_N "checking for gobject-2.0 >= 2.6.0 (via pkg-config)... $ECHO_C" >&6; }
18668
if pkg-config --exists 'gobject-2.0 >= 2.6.0'; then
18672
{ echo "$as_me:$LINENO: checking for gobject-2.0 (via pkg-config)" >&5
18673
echo $ECHO_N "checking for gobject-2.0 (via pkg-config)... $ECHO_C" >&6; }
18674
if pkg-config --exists 'gobject-2.0'; then
18679
if test $ac_vmw_have_lib -eq 1; then
18680
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
18681
# fails on OpenSolaris B71. So be pessimistic.
18682
ac_vmw_cppflags="`pkg-config --cflags gobject-2.0`"
18684
ac_vmw_libs="`pkg-config --libs gobject-2.0`"
18686
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
18687
{ echo "$as_me:$LINENO: result: yes" >&5
18688
echo "${ECHO_T}yes" >&6; }
18689
GOBJECT_CPPFLAGS="$ac_vmw_cppflags"
18690
GOBJECT_LIBS="$ac_vmw_libs"
18692
{ echo "$as_me:$LINENO: result: no" >&5
18693
echo "${ECHO_T}no" >&6; }
18696
{ echo "$as_me:$LINENO: result: no" >&5
18697
echo "${ECHO_T}no" >&6; }
18701
# If we still haven't found the lib, try with the library's custom "config" script.
18702
# Before checking, flush the AC_PATH_PROG cached variable.
18703
unset ac_cv_path_ac_vmw_lib_cfg
18704
unset ac_vmw_lib_cfg
18705
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
18706
# Extract the first word of "", so it can be a program name with args.
18707
set dummy ; ac_word=$2
18708
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18709
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18710
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
18711
echo $ECHO_N "(cached) $ECHO_C" >&6
18713
case $ac_vmw_lib_cfg in
18715
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
18718
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18719
for as_dir in $PATH
18722
test -z "$as_dir" && as_dir=.
18723
for ac_exec_ext in '' $ac_executable_extensions; do
18724
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18725
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
18726
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18733
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
18737
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
18738
if test -n "$ac_vmw_lib_cfg"; then
18739
{ echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
18740
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
18742
{ echo "$as_me:$LINENO: result: no" >&5
18743
echo "${ECHO_T}no" >&6; }
18747
if test "$ac_vmw_lib_cfg" != "no"; then
18748
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
18749
# so single it out here to avoid having to replicate all the rest of the
18751
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
18752
GOBJECT_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
18753
GOBJECT_LIBS="`$ac_vmw_lib_cfg --ldflags`"
18755
GOBJECT_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
18756
GOBJECT_LIBS="`$ac_vmw_lib_cfg --libs`"
18762
# Finish by executing the user provided action. The call to "true" is needed
18763
# because the actions are optional, and we need something inside the block.
18764
if test $ac_vmw_have_lib -eq 1; then
18771
{ { echo "$as_me:$LINENO: error: gobject >= 2.6.0 is required." >&5
18772
echo "$as_me: error: gobject >= 2.6.0 is required." >&2;}
18773
{ (exit 1); exit 1; }; }
18778
if test -z "gthread-2.0"; then
18779
{ { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
18780
echo "$as_me: error: 'library' parameter is required.'" >&2;}
18781
{ (exit 1); exit 1; }; }
18783
if test -z "GTHREAD"; then
18784
{ { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
18785
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
18786
{ (exit 1); exit 1; }; }
18790
ac_vmw_have_lib_func=0
18791
ac_vmw_have_lib_header=0
18794
# First, try any user-defined CUSTOM_* flags.
18796
if test -n "${CUSTOM_GTHREAD_CPPFLAGS}" || test -n "${CUSTOM_GTHREAD_LIBS}"; then
18797
CUSTOM_GTHREAD_LIBS="${CUSTOM_GTHREAD_LIBS} -lgthread-2.0"
18798
if test -n ""; then
18799
ORIGINAL_CPPFLAGS="$CPPFLAGS"
18800
CPPFLAGS="${CUSTOM_GTHREAD_CPPFLAGS} $CPPFLAGS"
18802
if test "${ac_cv_header_+set}" = set; then
18803
{ echo "$as_me:$LINENO: checking for " >&5
18804
echo $ECHO_N "checking for ... $ECHO_C" >&6; }
18805
if test "${ac_cv_header_+set}" = set; then
18806
echo $ECHO_N "(cached) $ECHO_C" >&6
18808
{ echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
18809
echo "${ECHO_T}$ac_cv_header_" >&6; }
18811
# Is the header compilable?
18812
{ echo "$as_me:$LINENO: checking usability" >&5
18813
echo $ECHO_N "checking usability... $ECHO_C" >&6; }
18814
cat >conftest.$ac_ext <<_ACEOF
18817
cat confdefs.h >>conftest.$ac_ext
18818
cat >>conftest.$ac_ext <<_ACEOF
18819
/* end confdefs.h. */
18820
$ac_includes_default
18823
rm -f conftest.$ac_objext
18824
if { (ac_try="$ac_compile"
18825
case "(($ac_try" in
18826
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827
*) ac_try_echo=$ac_try;;
18829
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830
(eval "$ac_compile") 2>conftest.er1
18832
grep -v '^ *+' conftest.er1 >conftest.err
18834
cat conftest.err >&5
18835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836
(exit $ac_status); } && {
18837
test -z "$ac_c_werror_flag" ||
18838
test ! -s conftest.err
18839
} && test -s conftest.$ac_objext; then
18840
ac_header_compiler=yes
18842
echo "$as_me: failed program was:" >&5
18843
sed 's/^/| /' conftest.$ac_ext >&5
18845
ac_header_compiler=no
18848
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18849
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18850
echo "${ECHO_T}$ac_header_compiler" >&6; }
18852
# Is the header present?
18853
{ echo "$as_me:$LINENO: checking presence" >&5
18854
echo $ECHO_N "checking presence... $ECHO_C" >&6; }
18855
cat >conftest.$ac_ext <<_ACEOF
18858
cat confdefs.h >>conftest.$ac_ext
18859
cat >>conftest.$ac_ext <<_ACEOF
18860
/* end confdefs.h. */
18863
if { (ac_try="$ac_cpp conftest.$ac_ext"
18864
case "(($ac_try" in
18865
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866
*) ac_try_echo=$ac_try;;
18868
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18871
grep -v '^ *+' conftest.er1 >conftest.err
18873
cat conftest.err >&5
18874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875
(exit $ac_status); } >/dev/null && {
18876
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18877
test ! -s conftest.err
18879
ac_header_preproc=yes
18881
echo "$as_me: failed program was:" >&5
18882
sed 's/^/| /' conftest.$ac_ext >&5
18884
ac_header_preproc=no
18887
rm -f conftest.err conftest.$ac_ext
18888
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18889
echo "${ECHO_T}$ac_header_preproc" >&6; }
18891
# So? What about this header?
18892
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18894
{ echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
18895
echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
18896
{ echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
18897
echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
18898
ac_header_preproc=yes
18901
{ echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
18902
echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
18903
{ echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
18904
echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
18905
{ echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
18906
echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
18907
{ echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
18908
echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
18909
{ echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
18910
echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
18911
{ echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
18912
echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
18914
## -------------------------------------------------------- ##
18915
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
18916
## -------------------------------------------------------- ##
18918
) | sed "s/^/$as_me: WARNING: /" >&2
18921
{ echo "$as_me:$LINENO: checking for " >&5
18922
echo $ECHO_N "checking for ... $ECHO_C" >&6; }
18923
if test "${ac_cv_header_+set}" = set; then
18924
echo $ECHO_N "(cached) $ECHO_C" >&6
18926
ac_cv_header_=$ac_header_preproc
18928
{ echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
18929
echo "${ECHO_T}$ac_cv_header_" >&6; }
18932
if test $ac_cv_header_ = yes; then
18933
ac_vmw_have_lib_header=1
18938
CPPFLAGS="$ORIGINAL_CPPFLAGS"
18940
ac_vmw_have_lib_header=1
18943
# Check a specific function in the library if requested.
18944
# If it hasn't, just pick a random function from libc, just to make
18945
# sure the linker can find the library being tested.
18946
if test $ac_vmw_have_lib_header -eq 1; then
18947
if test -n ""; then
18950
ac_vmw_function=strlen
18952
as_ac_Lib=`echo "ac_cv_lib_gthread-2.0_$ac_vmw_function" | $as_tr_sh`
18953
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -lgthread-2.0" >&5
18954
echo $ECHO_N "checking for $ac_vmw_function in -lgthread-2.0... $ECHO_C" >&6; }
18955
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18956
echo $ECHO_N "(cached) $ECHO_C" >&6
18958
ac_check_lib_save_LIBS=$LIBS
18959
LIBS="-lgthread-2.0 ${CUSTOM_GTHREAD_LIBS} $LIBS"
18960
cat >conftest.$ac_ext <<_ACEOF
18963
cat confdefs.h >>conftest.$ac_ext
18964
cat >>conftest.$ac_ext <<_ACEOF
18965
/* end confdefs.h. */
18967
/* Override any GCC internal prototype to avoid an error.
18968
Use char because int might match the return type of a GCC
18969
builtin and then its argument prototype would still apply. */
18973
char $ac_vmw_function ();
18977
return $ac_vmw_function ();
18982
rm -f conftest.$ac_objext conftest$ac_exeext
18983
if { (ac_try="$ac_link"
18984
case "(($ac_try" in
18985
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986
*) ac_try_echo=$ac_try;;
18988
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989
(eval "$ac_link") 2>conftest.er1
18991
grep -v '^ *+' conftest.er1 >conftest.err
18993
cat conftest.err >&5
18994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995
(exit $ac_status); } && {
18996
test -z "$ac_c_werror_flag" ||
18997
test ! -s conftest.err
18998
} && test -s conftest$ac_exeext &&
18999
$as_test_x conftest$ac_exeext; then
19000
eval "$as_ac_Lib=yes"
19002
echo "$as_me: failed program was:" >&5
19003
sed 's/^/| /' conftest.$ac_ext >&5
19005
eval "$as_ac_Lib=no"
19008
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19009
conftest$ac_exeext conftest.$ac_ext
19010
LIBS=$ac_check_lib_save_LIBS
19012
ac_res=`eval echo '${'$as_ac_Lib'}'`
19013
{ echo "$as_me:$LINENO: result: $ac_res" >&5
19014
echo "${ECHO_T}$ac_res" >&6; }
19015
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19016
ac_vmw_have_lib_func=1
19021
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
19022
GTHREAD_CPPFLAGS="${CUSTOM_GTHREAD_CPPFLAGS}"
19023
GTHREAD_LIBS="${CUSTOM_GTHREAD_LIBS}"
19028
# If that didn't work, try with pkg-config.
19029
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "gthread-2.0"; then
19030
if test -n "2.6.0"; then
19031
{ echo "$as_me:$LINENO: checking for gthread-2.0 >= 2.6.0 (via pkg-config)" >&5
19032
echo $ECHO_N "checking for gthread-2.0 >= 2.6.0 (via pkg-config)... $ECHO_C" >&6; }
19033
if pkg-config --exists 'gthread-2.0 >= 2.6.0'; then
19037
{ echo "$as_me:$LINENO: checking for gthread-2.0 (via pkg-config)" >&5
19038
echo $ECHO_N "checking for gthread-2.0 (via pkg-config)... $ECHO_C" >&6; }
19039
if pkg-config --exists 'gthread-2.0'; then
19044
if test $ac_vmw_have_lib -eq 1; then
19045
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
19046
# fails on OpenSolaris B71. So be pessimistic.
19047
ac_vmw_cppflags="`pkg-config --cflags gthread-2.0`"
19049
ac_vmw_libs="`pkg-config --libs gthread-2.0`"
19051
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
19052
{ echo "$as_me:$LINENO: result: yes" >&5
19053
echo "${ECHO_T}yes" >&6; }
19054
GTHREAD_CPPFLAGS="$ac_vmw_cppflags"
19055
GTHREAD_LIBS="$ac_vmw_libs"
19057
{ echo "$as_me:$LINENO: result: no" >&5
19058
echo "${ECHO_T}no" >&6; }
19061
{ echo "$as_me:$LINENO: result: no" >&5
19062
echo "${ECHO_T}no" >&6; }
19066
# If we still haven't found the lib, try with the library's custom "config" script.
19067
# Before checking, flush the AC_PATH_PROG cached variable.
19068
unset ac_cv_path_ac_vmw_lib_cfg
19069
unset ac_vmw_lib_cfg
19070
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
19071
# Extract the first word of "", so it can be a program name with args.
19072
set dummy ; ac_word=$2
19073
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19074
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19075
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
19076
echo $ECHO_N "(cached) $ECHO_C" >&6
19078
case $ac_vmw_lib_cfg in
19080
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
19083
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19084
for as_dir in $PATH
19087
test -z "$as_dir" && as_dir=.
19088
for ac_exec_ext in '' $ac_executable_extensions; do
19089
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19090
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
19091
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19098
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
19102
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
19103
if test -n "$ac_vmw_lib_cfg"; then
19104
{ echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
19105
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
19107
{ echo "$as_me:$LINENO: result: no" >&5
19108
echo "${ECHO_T}no" >&6; }
19112
if test "$ac_vmw_lib_cfg" != "no"; then
19113
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
19114
# so single it out here to avoid having to replicate all the rest of the
19116
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
19117
GTHREAD_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
19118
GTHREAD_LIBS="`$ac_vmw_lib_cfg --ldflags`"
19120
GTHREAD_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
19121
GTHREAD_LIBS="`$ac_vmw_lib_cfg --libs`"
19127
# Finish by executing the user provided action. The call to "true" is needed
19128
# because the actions are optional, and we need something inside the block.
19129
if test $ac_vmw_have_lib -eq 1; then
19136
{ { echo "$as_me:$LINENO: error: glib >= 2.6.0 is required." >&5
19137
echo "$as_me: error: glib >= 2.6.0 is required." >&2;}
19138
{ (exit 1); exit 1; }; }
19141
# Extract the first word of "glib-genmarshal", so it can be a program name with args.
19142
set dummy glib-genmarshal; ac_word=$2
19143
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19144
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19145
if test "${ac_cv_prog_have_genmarshal+set}" = set; then
19146
echo $ECHO_N "(cached) $ECHO_C" >&6
19148
if test -n "$have_genmarshal"; then
19149
ac_cv_prog_have_genmarshal="$have_genmarshal" # Let the user override the test.
19151
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19152
for as_dir in $PATH
19155
test -z "$as_dir" && as_dir=.
19156
for ac_exec_ext in '' $ac_executable_extensions; do
19157
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19158
ac_cv_prog_have_genmarshal="yes"
19159
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19166
test -z "$ac_cv_prog_have_genmarshal" && ac_cv_prog_have_genmarshal="no"
19169
have_genmarshal=$ac_cv_prog_have_genmarshal
19170
if test -n "$have_genmarshal"; then
19171
{ echo "$as_me:$LINENO: result: $have_genmarshal" >&5
19172
echo "${ECHO_T}$have_genmarshal" >&6; }
19174
{ echo "$as_me:$LINENO: result: no" >&5
19175
echo "${ECHO_T}no" >&6; }
19180
if test "$have_genmarshal" != "yes"; then
19181
{ { echo "$as_me:$LINENO: error: glib-genmarshal is required; make sure it's available in your path." >&5
19182
echo "$as_me: error: glib-genmarshal is required; make sure it's available in your path." >&2;}
19183
{ (exit 1); exit 1; }; }
19191
if test -z "fuse"; then
19192
{ { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
19193
echo "$as_me: error: 'library' parameter is required.'" >&2;}
19194
{ (exit 1); exit 1; }; }
19196
if test -z "FUSE"; then
19197
{ { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
19198
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
19199
{ (exit 1); exit 1; }; }
19203
ac_vmw_have_lib_func=0
19204
ac_vmw_have_lib_header=0
19207
# First, try any user-defined CUSTOM_* flags.
19209
if test -n "${CUSTOM_FUSE_CPPFLAGS}" || test -n "${CUSTOM_FUSE_LIBS}"; then
19210
CUSTOM_FUSE_LIBS="${CUSTOM_FUSE_LIBS} -lfuse"
19211
if test -n "fuse.h"; then
19212
ORIGINAL_CPPFLAGS="$CPPFLAGS"
19213
CPPFLAGS="${CUSTOM_FUSE_CPPFLAGS} $CPPFLAGS"
19215
if test "${ac_cv_header_fuse_h+set}" = set; then
19216
{ echo "$as_me:$LINENO: checking for fuse.h" >&5
19217
echo $ECHO_N "checking for fuse.h... $ECHO_C" >&6; }
19218
if test "${ac_cv_header_fuse_h+set}" = set; then
19219
echo $ECHO_N "(cached) $ECHO_C" >&6
19221
{ echo "$as_me:$LINENO: result: $ac_cv_header_fuse_h" >&5
19222
echo "${ECHO_T}$ac_cv_header_fuse_h" >&6; }
19224
# Is the header compilable?
19225
{ echo "$as_me:$LINENO: checking fuse.h usability" >&5
19226
echo $ECHO_N "checking fuse.h usability... $ECHO_C" >&6; }
19227
cat >conftest.$ac_ext <<_ACEOF
19230
cat confdefs.h >>conftest.$ac_ext
19231
cat >>conftest.$ac_ext <<_ACEOF
19232
/* end confdefs.h. */
19233
$ac_includes_default
19236
rm -f conftest.$ac_objext
19237
if { (ac_try="$ac_compile"
19238
case "(($ac_try" in
19239
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240
*) ac_try_echo=$ac_try;;
19242
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243
(eval "$ac_compile") 2>conftest.er1
19245
grep -v '^ *+' conftest.er1 >conftest.err
19247
cat conftest.err >&5
19248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249
(exit $ac_status); } && {
19250
test -z "$ac_c_werror_flag" ||
19251
test ! -s conftest.err
19252
} && test -s conftest.$ac_objext; then
19253
ac_header_compiler=yes
19255
echo "$as_me: failed program was:" >&5
19256
sed 's/^/| /' conftest.$ac_ext >&5
19258
ac_header_compiler=no
19261
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19262
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19263
echo "${ECHO_T}$ac_header_compiler" >&6; }
19265
# Is the header present?
19266
{ echo "$as_me:$LINENO: checking fuse.h presence" >&5
19267
echo $ECHO_N "checking fuse.h presence... $ECHO_C" >&6; }
19268
cat >conftest.$ac_ext <<_ACEOF
19271
cat confdefs.h >>conftest.$ac_ext
19272
cat >>conftest.$ac_ext <<_ACEOF
19273
/* end confdefs.h. */
19276
if { (ac_try="$ac_cpp conftest.$ac_ext"
19277
case "(($ac_try" in
19278
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19279
*) ac_try_echo=$ac_try;;
19281
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19282
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19284
grep -v '^ *+' conftest.er1 >conftest.err
19286
cat conftest.err >&5
19287
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288
(exit $ac_status); } >/dev/null && {
19289
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19290
test ! -s conftest.err
19292
ac_header_preproc=yes
19294
echo "$as_me: failed program was:" >&5
19295
sed 's/^/| /' conftest.$ac_ext >&5
19297
ac_header_preproc=no
19300
rm -f conftest.err conftest.$ac_ext
19301
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19302
echo "${ECHO_T}$ac_header_preproc" >&6; }
19304
# So? What about this header?
19305
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19307
{ echo "$as_me:$LINENO: WARNING: fuse.h: accepted by the compiler, rejected by the preprocessor!" >&5
19308
echo "$as_me: WARNING: fuse.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19309
{ echo "$as_me:$LINENO: WARNING: fuse.h: proceeding with the compiler's result" >&5
19310
echo "$as_me: WARNING: fuse.h: proceeding with the compiler's result" >&2;}
19311
ac_header_preproc=yes
19314
{ echo "$as_me:$LINENO: WARNING: fuse.h: present but cannot be compiled" >&5
19315
echo "$as_me: WARNING: fuse.h: present but cannot be compiled" >&2;}
19316
{ echo "$as_me:$LINENO: WARNING: fuse.h: check for missing prerequisite headers?" >&5
19317
echo "$as_me: WARNING: fuse.h: check for missing prerequisite headers?" >&2;}
19318
{ echo "$as_me:$LINENO: WARNING: fuse.h: see the Autoconf documentation" >&5
19319
echo "$as_me: WARNING: fuse.h: see the Autoconf documentation" >&2;}
19320
{ echo "$as_me:$LINENO: WARNING: fuse.h: section \"Present But Cannot Be Compiled\"" >&5
19321
echo "$as_me: WARNING: fuse.h: section \"Present But Cannot Be Compiled\"" >&2;}
19322
{ echo "$as_me:$LINENO: WARNING: fuse.h: proceeding with the preprocessor's result" >&5
19323
echo "$as_me: WARNING: fuse.h: proceeding with the preprocessor's result" >&2;}
19324
{ echo "$as_me:$LINENO: WARNING: fuse.h: in the future, the compiler will take precedence" >&5
19325
echo "$as_me: WARNING: fuse.h: in the future, the compiler will take precedence" >&2;}
19327
## -------------------------------------------------------- ##
19328
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
19329
## -------------------------------------------------------- ##
19331
) | sed "s/^/$as_me: WARNING: /" >&2
19334
{ echo "$as_me:$LINENO: checking for fuse.h" >&5
19335
echo $ECHO_N "checking for fuse.h... $ECHO_C" >&6; }
19336
if test "${ac_cv_header_fuse_h+set}" = set; then
19337
echo $ECHO_N "(cached) $ECHO_C" >&6
19339
ac_cv_header_fuse_h=$ac_header_preproc
19341
{ echo "$as_me:$LINENO: result: $ac_cv_header_fuse_h" >&5
19342
echo "${ECHO_T}$ac_cv_header_fuse_h" >&6; }
19345
if test $ac_cv_header_fuse_h = yes; then
19346
ac_vmw_have_lib_header=1
19351
CPPFLAGS="$ORIGINAL_CPPFLAGS"
19353
ac_vmw_have_lib_header=1
19356
# Check a specific function in the library if requested.
19357
# If it hasn't, just pick a random function from libc, just to make
19358
# sure the linker can find the library being tested.
19359
if test $ac_vmw_have_lib_header -eq 1; then
19360
if test -n "fuse_main"; then
19361
ac_vmw_function=fuse_main
19363
ac_vmw_function=strlen
19365
as_ac_Lib=`echo "ac_cv_lib_fuse_$ac_vmw_function" | $as_tr_sh`
19366
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -lfuse" >&5
19367
echo $ECHO_N "checking for $ac_vmw_function in -lfuse... $ECHO_C" >&6; }
19368
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19369
echo $ECHO_N "(cached) $ECHO_C" >&6
19371
ac_check_lib_save_LIBS=$LIBS
19372
LIBS="-lfuse ${CUSTOM_FUSE_LIBS} $LIBS"
19373
cat >conftest.$ac_ext <<_ACEOF
19376
cat confdefs.h >>conftest.$ac_ext
19377
cat >>conftest.$ac_ext <<_ACEOF
19378
/* end confdefs.h. */
19380
/* Override any GCC internal prototype to avoid an error.
19381
Use char because int might match the return type of a GCC
19382
builtin and then its argument prototype would still apply. */
19386
char $ac_vmw_function ();
19390
return $ac_vmw_function ();
19395
rm -f conftest.$ac_objext conftest$ac_exeext
19396
if { (ac_try="$ac_link"
19397
case "(($ac_try" in
19398
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399
*) ac_try_echo=$ac_try;;
19401
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402
(eval "$ac_link") 2>conftest.er1
19404
grep -v '^ *+' conftest.er1 >conftest.err
19406
cat conftest.err >&5
19407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408
(exit $ac_status); } && {
19409
test -z "$ac_c_werror_flag" ||
19410
test ! -s conftest.err
19411
} && test -s conftest$ac_exeext &&
19412
$as_test_x conftest$ac_exeext; then
19413
eval "$as_ac_Lib=yes"
19415
echo "$as_me: failed program was:" >&5
19416
sed 's/^/| /' conftest.$ac_ext >&5
19418
eval "$as_ac_Lib=no"
19421
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19422
conftest$ac_exeext conftest.$ac_ext
19423
LIBS=$ac_check_lib_save_LIBS
19425
ac_res=`eval echo '${'$as_ac_Lib'}'`
19426
{ echo "$as_me:$LINENO: result: $ac_res" >&5
19427
echo "${ECHO_T}$ac_res" >&6; }
19428
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19429
ac_vmw_have_lib_func=1
19434
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
19435
FUSE_CPPFLAGS="${CUSTOM_FUSE_CPPFLAGS}"
19436
FUSE_LIBS="${CUSTOM_FUSE_LIBS}"
19441
# If that didn't work, try with pkg-config.
19442
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "fuse"; then
19443
if test -n ""; then
19444
{ echo "$as_me:$LINENO: checking for fuse >= (via pkg-config)" >&5
19445
echo $ECHO_N "checking for fuse >= (via pkg-config)... $ECHO_C" >&6; }
19446
if pkg-config --exists 'fuse >= '; then
19450
{ echo "$as_me:$LINENO: checking for fuse (via pkg-config)" >&5
19451
echo $ECHO_N "checking for fuse (via pkg-config)... $ECHO_C" >&6; }
19452
if pkg-config --exists 'fuse'; then
19457
if test $ac_vmw_have_lib -eq 1; then
19458
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
19459
# fails on OpenSolaris B71. So be pessimistic.
19460
ac_vmw_cppflags="`pkg-config --cflags fuse`"
19462
ac_vmw_libs="`pkg-config --libs fuse`"
19464
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
19465
{ echo "$as_me:$LINENO: result: yes" >&5
19466
echo "${ECHO_T}yes" >&6; }
19467
FUSE_CPPFLAGS="$ac_vmw_cppflags"
19468
FUSE_LIBS="$ac_vmw_libs"
19470
{ echo "$as_me:$LINENO: result: no" >&5
19471
echo "${ECHO_T}no" >&6; }
19474
{ echo "$as_me:$LINENO: result: no" >&5
19475
echo "${ECHO_T}no" >&6; }
19479
# If we still haven't found the lib, try with the library's custom "config" script.
19480
# Before checking, flush the AC_PATH_PROG cached variable.
19481
unset ac_cv_path_ac_vmw_lib_cfg
19482
unset ac_vmw_lib_cfg
19483
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
19484
# Extract the first word of "", so it can be a program name with args.
19485
set dummy ; ac_word=$2
19486
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19487
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19488
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
19489
echo $ECHO_N "(cached) $ECHO_C" >&6
19491
case $ac_vmw_lib_cfg in
19493
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
19496
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19497
for as_dir in $PATH
19500
test -z "$as_dir" && as_dir=.
19501
for ac_exec_ext in '' $ac_executable_extensions; do
19502
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19503
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
19504
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19511
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
19515
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
19516
if test -n "$ac_vmw_lib_cfg"; then
19517
{ echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
19518
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
19520
{ echo "$as_me:$LINENO: result: no" >&5
19521
echo "${ECHO_T}no" >&6; }
19525
if test "$ac_vmw_lib_cfg" != "no"; then
19526
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
19527
# so single it out here to avoid having to replicate all the rest of the
19529
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
19530
FUSE_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
19531
FUSE_LIBS="`$ac_vmw_lib_cfg --ldflags`"
19533
FUSE_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
19534
FUSE_LIBS="`$ac_vmw_lib_cfg --libs`"
19540
# Finish by executing the user provided action. The call to "true" is needed
19541
# because the actions are optional, and we need something inside the block.
19542
if test $ac_vmw_have_lib -eq 1; then
19550
{ echo "$as_me:$LINENO: WARNING: Fuse is missing, vmblock-fuse will be disabled." >&5
19551
echo "$as_me: WARNING: Fuse is missing, vmblock-fuse will be disabled." >&2;}
17338
19555
# If the user explicitly disables X11, then don't try to detect the X-related libraries
17339
19556
if test "$have_x" = "disabled"; then
17340
19557
enable_multimon="no"
18058
20226
if test $ac_cv_header_Uri_h = yes; then
18061
{ { echo "$as_me:$LINENO: error: uriparser headers not found. Please configure without Unity (using --disable-unity) or install the liburiparser devel package" >&5
18062
echo "$as_me: error: uriparser headers not found. Please configure without Unity (using --disable-unity) or install the liburiparser devel package" >&2;}
18063
{ (exit 1); exit 1; }; }
18067
CPPFLAGS="$ORIGINAL_CPPFLAGS"
18069
# Check for libpng using pkg-config, or barring that, using
18071
if test "$HAVE_PKG_CONFIG" = "yes"; then
18072
{ echo "$as_me:$LINENO: checking for libpng (via pkg-config)" >&5
18073
echo $ECHO_N "checking for libpng (via pkg-config)... $ECHO_C" >&6; }
18074
if pkg-config --exists libpng12; then
18075
LIBPNG_CPPFLAGS="`pkg-config --cflags libpng12`"
18076
LIBPNG_LIBS="`pkg-config --libs libpng12`"
18077
{ echo "$as_me:$LINENO: result: yes" >&5
18078
echo "${ECHO_T}yes" >&6; }
18080
{ echo "$as_me:$LINENO: result: no" >&5
18081
echo "${ECHO_T}no" >&6; }
18084
# Extract the first word of "libpng-config", so it can be a program name with args.
20227
ac_vmw_have_lib_header=1
20232
CPPFLAGS="$ORIGINAL_CPPFLAGS"
20234
ac_vmw_have_lib_header=1
20237
# Check a specific function in the library if requested.
20238
# If it hasn't, just pick a random function from libc, just to make
20239
# sure the linker can find the library being tested.
20240
if test $ac_vmw_have_lib_header -eq 1; then
20241
if test -n "uriFreeQueryListA"; then
20242
ac_vmw_function=uriFreeQueryListA
20244
ac_vmw_function=strlen
20246
as_ac_Lib=`echo "ac_cv_lib_uriparser_$ac_vmw_function" | $as_tr_sh`
20247
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -luriparser" >&5
20248
echo $ECHO_N "checking for $ac_vmw_function in -luriparser... $ECHO_C" >&6; }
20249
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20250
echo $ECHO_N "(cached) $ECHO_C" >&6
20252
ac_check_lib_save_LIBS=$LIBS
20253
LIBS="-luriparser ${CUSTOM_URIPARSER_LIBS} $LIBS"
20254
cat >conftest.$ac_ext <<_ACEOF
20257
cat confdefs.h >>conftest.$ac_ext
20258
cat >>conftest.$ac_ext <<_ACEOF
20259
/* end confdefs.h. */
20261
/* Override any GCC internal prototype to avoid an error.
20262
Use char because int might match the return type of a GCC
20263
builtin and then its argument prototype would still apply. */
20267
char $ac_vmw_function ();
20271
return $ac_vmw_function ();
20276
rm -f conftest.$ac_objext conftest$ac_exeext
20277
if { (ac_try="$ac_link"
20278
case "(($ac_try" in
20279
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280
*) ac_try_echo=$ac_try;;
20282
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283
(eval "$ac_link") 2>conftest.er1
20285
grep -v '^ *+' conftest.er1 >conftest.err
20287
cat conftest.err >&5
20288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289
(exit $ac_status); } && {
20290
test -z "$ac_c_werror_flag" ||
20291
test ! -s conftest.err
20292
} && test -s conftest$ac_exeext &&
20293
$as_test_x conftest$ac_exeext; then
20294
eval "$as_ac_Lib=yes"
20296
echo "$as_me: failed program was:" >&5
20297
sed 's/^/| /' conftest.$ac_ext >&5
20299
eval "$as_ac_Lib=no"
20302
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20303
conftest$ac_exeext conftest.$ac_ext
20304
LIBS=$ac_check_lib_save_LIBS
20306
ac_res=`eval echo '${'$as_ac_Lib'}'`
20307
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20308
echo "${ECHO_T}$ac_res" >&6; }
20309
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20310
ac_vmw_have_lib_func=1
20315
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
20316
URIPARSER_CPPFLAGS="${CUSTOM_URIPARSER_CPPFLAGS}"
20317
URIPARSER_LIBS="${CUSTOM_URIPARSER_LIBS}"
20322
# If that didn't work, try with pkg-config.
20323
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
20324
if test -n ""; then
20325
{ echo "$as_me:$LINENO: checking for >= (via pkg-config)" >&5
20326
echo $ECHO_N "checking for >= (via pkg-config)... $ECHO_C" >&6; }
20327
if pkg-config --exists ' >= '; then
20331
{ echo "$as_me:$LINENO: checking for (via pkg-config)" >&5
20332
echo $ECHO_N "checking for (via pkg-config)... $ECHO_C" >&6; }
20333
if pkg-config --exists ''; then
20338
if test $ac_vmw_have_lib -eq 1; then
20339
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
20340
# fails on OpenSolaris B71. So be pessimistic.
20341
ac_vmw_cppflags="`pkg-config --cflags `"
20343
ac_vmw_libs="`pkg-config --libs `"
20345
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
20346
{ echo "$as_me:$LINENO: result: yes" >&5
20347
echo "${ECHO_T}yes" >&6; }
20348
URIPARSER_CPPFLAGS="$ac_vmw_cppflags"
20349
URIPARSER_LIBS="$ac_vmw_libs"
20351
{ echo "$as_me:$LINENO: result: no" >&5
20352
echo "${ECHO_T}no" >&6; }
20355
{ echo "$as_me:$LINENO: result: no" >&5
20356
echo "${ECHO_T}no" >&6; }
20360
# If we still haven't found the lib, try with the library's custom "config" script.
20361
# Before checking, flush the AC_PATH_PROG cached variable.
20362
unset ac_cv_path_ac_vmw_lib_cfg
20363
unset ac_vmw_lib_cfg
20364
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
20365
# Extract the first word of "", so it can be a program name with args.
20366
set dummy ; ac_word=$2
20367
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20368
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20369
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
20370
echo $ECHO_N "(cached) $ECHO_C" >&6
20372
case $ac_vmw_lib_cfg in
20374
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
20377
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20378
for as_dir in $PATH
20381
test -z "$as_dir" && as_dir=.
20382
for ac_exec_ext in '' $ac_executable_extensions; do
20383
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20384
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
20385
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20392
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
20396
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
20397
if test -n "$ac_vmw_lib_cfg"; then
20398
{ echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
20399
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
20401
{ echo "$as_me:$LINENO: result: no" >&5
20402
echo "${ECHO_T}no" >&6; }
20406
if test "$ac_vmw_lib_cfg" != "no"; then
20407
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
20408
# so single it out here to avoid having to replicate all the rest of the
20410
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
20411
URIPARSER_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
20412
URIPARSER_LIBS="`$ac_vmw_lib_cfg --ldflags`"
20414
URIPARSER_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
20415
URIPARSER_LIBS="`$ac_vmw_lib_cfg --libs`"
20421
# Finish by executing the user provided action. The call to "true" is needed
20422
# because the actions are optional, and we need something inside the block.
20423
if test $ac_vmw_have_lib -eq 1; then
20430
{ { echo "$as_me:$LINENO: error: uriparser library not found or is too old. Please configure without Unity (using --disable-unity) or install the liburiparser devel package." >&5
20431
echo "$as_me: error: uriparser library not found or is too old. Please configure without Unity (using --disable-unity) or install the liburiparser devel package." >&2;}
20432
{ (exit 1); exit 1; }; }
20436
# Check for libpng.
20439
if test -z "png12"; then
20440
{ { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
20441
echo "$as_me: error: 'library' parameter is required.'" >&2;}
20442
{ (exit 1); exit 1; }; }
20444
if test -z "LIBPNG"; then
20445
{ { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
20446
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
20447
{ (exit 1); exit 1; }; }
20451
ac_vmw_have_lib_func=0
20452
ac_vmw_have_lib_header=0
20455
# First, try any user-defined CUSTOM_* flags.
20457
if test -n "${CUSTOM_LIBPNG_CPPFLAGS}" || test -n "${CUSTOM_LIBPNG_LIBS}"; then
20458
CUSTOM_LIBPNG_LIBS="${CUSTOM_LIBPNG_LIBS} -lpng12"
20459
if test -n "png.h"; then
20460
ORIGINAL_CPPFLAGS="$CPPFLAGS"
20461
CPPFLAGS="${CUSTOM_LIBPNG_CPPFLAGS} $CPPFLAGS"
20463
if test "${ac_cv_header_png_h+set}" = set; then
20464
{ echo "$as_me:$LINENO: checking for png.h" >&5
20465
echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
20466
if test "${ac_cv_header_png_h+set}" = set; then
20467
echo $ECHO_N "(cached) $ECHO_C" >&6
20469
{ echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20470
echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
20472
# Is the header compilable?
20473
{ echo "$as_me:$LINENO: checking png.h usability" >&5
20474
echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
20475
cat >conftest.$ac_ext <<_ACEOF
20478
cat confdefs.h >>conftest.$ac_ext
20479
cat >>conftest.$ac_ext <<_ACEOF
20480
/* end confdefs.h. */
20481
$ac_includes_default
20484
rm -f conftest.$ac_objext
20485
if { (ac_try="$ac_compile"
20486
case "(($ac_try" in
20487
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20488
*) ac_try_echo=$ac_try;;
20490
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20491
(eval "$ac_compile") 2>conftest.er1
20493
grep -v '^ *+' conftest.er1 >conftest.err
20495
cat conftest.err >&5
20496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497
(exit $ac_status); } && {
20498
test -z "$ac_c_werror_flag" ||
20499
test ! -s conftest.err
20500
} && test -s conftest.$ac_objext; then
20501
ac_header_compiler=yes
20503
echo "$as_me: failed program was:" >&5
20504
sed 's/^/| /' conftest.$ac_ext >&5
20506
ac_header_compiler=no
20509
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20510
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20511
echo "${ECHO_T}$ac_header_compiler" >&6; }
20513
# Is the header present?
20514
{ echo "$as_me:$LINENO: checking png.h presence" >&5
20515
echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
20516
cat >conftest.$ac_ext <<_ACEOF
20519
cat confdefs.h >>conftest.$ac_ext
20520
cat >>conftest.$ac_ext <<_ACEOF
20521
/* end confdefs.h. */
20524
if { (ac_try="$ac_cpp conftest.$ac_ext"
20525
case "(($ac_try" in
20526
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527
*) ac_try_echo=$ac_try;;
20529
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20532
grep -v '^ *+' conftest.er1 >conftest.err
20534
cat conftest.err >&5
20535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536
(exit $ac_status); } >/dev/null && {
20537
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20538
test ! -s conftest.err
20540
ac_header_preproc=yes
20542
echo "$as_me: failed program was:" >&5
20543
sed 's/^/| /' conftest.$ac_ext >&5
20545
ac_header_preproc=no
20548
rm -f conftest.err conftest.$ac_ext
20549
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20550
echo "${ECHO_T}$ac_header_preproc" >&6; }
20552
# So? What about this header?
20553
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20555
{ echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20556
echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20557
{ echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20558
echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20559
ac_header_preproc=yes
20562
{ echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20563
echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
20564
{ echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20565
echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20566
{ echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20567
echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20568
{ echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20569
echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
20570
{ echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20571
echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
20572
{ echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20573
echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
20575
## -------------------------------------------------------- ##
20576
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
20577
## -------------------------------------------------------- ##
20579
) | sed "s/^/$as_me: WARNING: /" >&2
20582
{ echo "$as_me:$LINENO: checking for png.h" >&5
20583
echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
20584
if test "${ac_cv_header_png_h+set}" = set; then
20585
echo $ECHO_N "(cached) $ECHO_C" >&6
20587
ac_cv_header_png_h=$ac_header_preproc
20589
{ echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20590
echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
20593
if test $ac_cv_header_png_h = yes; then
20594
ac_vmw_have_lib_header=1
20599
CPPFLAGS="$ORIGINAL_CPPFLAGS"
20601
ac_vmw_have_lib_header=1
20604
# Check a specific function in the library if requested.
20605
# If it hasn't, just pick a random function from libc, just to make
20606
# sure the linker can find the library being tested.
20607
if test $ac_vmw_have_lib_header -eq 1; then
20608
if test -n "png_access_version_number"; then
20609
ac_vmw_function=png_access_version_number
20611
ac_vmw_function=strlen
20613
as_ac_Lib=`echo "ac_cv_lib_png12_$ac_vmw_function" | $as_tr_sh`
20614
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -lpng12" >&5
20615
echo $ECHO_N "checking for $ac_vmw_function in -lpng12... $ECHO_C" >&6; }
20616
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20617
echo $ECHO_N "(cached) $ECHO_C" >&6
20619
ac_check_lib_save_LIBS=$LIBS
20620
LIBS="-lpng12 ${CUSTOM_LIBPNG_LIBS} $LIBS"
20621
cat >conftest.$ac_ext <<_ACEOF
20624
cat confdefs.h >>conftest.$ac_ext
20625
cat >>conftest.$ac_ext <<_ACEOF
20626
/* end confdefs.h. */
20628
/* Override any GCC internal prototype to avoid an error.
20629
Use char because int might match the return type of a GCC
20630
builtin and then its argument prototype would still apply. */
20634
char $ac_vmw_function ();
20638
return $ac_vmw_function ();
20643
rm -f conftest.$ac_objext conftest$ac_exeext
20644
if { (ac_try="$ac_link"
20645
case "(($ac_try" in
20646
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647
*) ac_try_echo=$ac_try;;
20649
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650
(eval "$ac_link") 2>conftest.er1
20652
grep -v '^ *+' conftest.er1 >conftest.err
20654
cat conftest.err >&5
20655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656
(exit $ac_status); } && {
20657
test -z "$ac_c_werror_flag" ||
20658
test ! -s conftest.err
20659
} && test -s conftest$ac_exeext &&
20660
$as_test_x conftest$ac_exeext; then
20661
eval "$as_ac_Lib=yes"
20663
echo "$as_me: failed program was:" >&5
20664
sed 's/^/| /' conftest.$ac_ext >&5
20666
eval "$as_ac_Lib=no"
20669
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20670
conftest$ac_exeext conftest.$ac_ext
20671
LIBS=$ac_check_lib_save_LIBS
20673
ac_res=`eval echo '${'$as_ac_Lib'}'`
20674
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20675
echo "${ECHO_T}$ac_res" >&6; }
20676
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20677
ac_vmw_have_lib_func=1
20682
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
20683
LIBPNG_CPPFLAGS="${CUSTOM_LIBPNG_CPPFLAGS}"
20684
LIBPNG_LIBS="${CUSTOM_LIBPNG_LIBS}"
20689
# If that didn't work, try with pkg-config.
20690
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "libpng12"; then
20691
if test -n ""; then
20692
{ echo "$as_me:$LINENO: checking for libpng12 >= (via pkg-config)" >&5
20693
echo $ECHO_N "checking for libpng12 >= (via pkg-config)... $ECHO_C" >&6; }
20694
if pkg-config --exists 'libpng12 >= '; then
20698
{ echo "$as_me:$LINENO: checking for libpng12 (via pkg-config)" >&5
20699
echo $ECHO_N "checking for libpng12 (via pkg-config)... $ECHO_C" >&6; }
20700
if pkg-config --exists 'libpng12'; then
20705
if test $ac_vmw_have_lib -eq 1; then
20706
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
20707
# fails on OpenSolaris B71. So be pessimistic.
20708
ac_vmw_cppflags="`pkg-config --cflags libpng12`"
20710
ac_vmw_libs="`pkg-config --libs libpng12`"
20712
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
20713
{ echo "$as_me:$LINENO: result: yes" >&5
20714
echo "${ECHO_T}yes" >&6; }
20715
LIBPNG_CPPFLAGS="$ac_vmw_cppflags"
20716
LIBPNG_LIBS="$ac_vmw_libs"
20718
{ echo "$as_me:$LINENO: result: no" >&5
20719
echo "${ECHO_T}no" >&6; }
20722
{ echo "$as_me:$LINENO: result: no" >&5
20723
echo "${ECHO_T}no" >&6; }
20727
# If we still haven't found the lib, try with the library's custom "config" script.
20728
# Before checking, flush the AC_PATH_PROG cached variable.
20729
unset ac_cv_path_ac_vmw_lib_cfg
20730
unset ac_vmw_lib_cfg
20731
if test $ac_vmw_have_lib -eq 0 && test -n "libpng-config"; then
20732
# Extract the first word of "libpng-config", so it can be a program name with args.
18085
20733
set dummy libpng-config; ac_word=$2
18086
20734
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18087
20735
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18088
if test "${ac_cv_path_LIBPNG_CONFIG+set}" = set; then
20736
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
18089
20737
echo $ECHO_N "(cached) $ECHO_C" >&6
18091
case $LIBPNG_CONFIG in
20739
case $ac_vmw_lib_cfg in
18092
20740
[\\/]* | ?:[\\/]*)
18093
ac_cv_path_LIBPNG_CONFIG="$LIBPNG_CONFIG" # Let the user override the test with a path.
20741
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
18096
20744
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18354
20966
if test $ac_cv_header_zlib_h = yes; then
18357
{ { echo "$as_me:$LINENO: error: zlib headers not found. Please configure without Unity (using --disable-unity) or install the zlib devel package" >&5
18358
echo "$as_me: error: zlib headers not found. Please configure without Unity (using --disable-unity) or install the zlib devel package" >&2;}
20967
ac_vmw_have_lib_header=1
20972
CPPFLAGS="$ORIGINAL_CPPFLAGS"
20974
ac_vmw_have_lib_header=1
20977
# Check a specific function in the library if requested.
20978
# If it hasn't, just pick a random function from libc, just to make
20979
# sure the linker can find the library being tested.
20980
if test $ac_vmw_have_lib_header -eq 1; then
20981
if test -n "zlibVersion"; then
20982
ac_vmw_function=zlibVersion
20984
ac_vmw_function=strlen
20986
as_ac_Lib=`echo "ac_cv_lib_z_$ac_vmw_function" | $as_tr_sh`
20987
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -lz" >&5
20988
echo $ECHO_N "checking for $ac_vmw_function in -lz... $ECHO_C" >&6; }
20989
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20990
echo $ECHO_N "(cached) $ECHO_C" >&6
20992
ac_check_lib_save_LIBS=$LIBS
20993
LIBS="-lz ${CUSTOM_ZLIB_LIBS} $LIBS"
20994
cat >conftest.$ac_ext <<_ACEOF
20997
cat confdefs.h >>conftest.$ac_ext
20998
cat >>conftest.$ac_ext <<_ACEOF
20999
/* end confdefs.h. */
21001
/* Override any GCC internal prototype to avoid an error.
21002
Use char because int might match the return type of a GCC
21003
builtin and then its argument prototype would still apply. */
21007
char $ac_vmw_function ();
21011
return $ac_vmw_function ();
21016
rm -f conftest.$ac_objext conftest$ac_exeext
21017
if { (ac_try="$ac_link"
21018
case "(($ac_try" in
21019
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21020
*) ac_try_echo=$ac_try;;
21022
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21023
(eval "$ac_link") 2>conftest.er1
21025
grep -v '^ *+' conftest.er1 >conftest.err
21027
cat conftest.err >&5
21028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029
(exit $ac_status); } && {
21030
test -z "$ac_c_werror_flag" ||
21031
test ! -s conftest.err
21032
} && test -s conftest$ac_exeext &&
21033
$as_test_x conftest$ac_exeext; then
21034
eval "$as_ac_Lib=yes"
21036
echo "$as_me: failed program was:" >&5
21037
sed 's/^/| /' conftest.$ac_ext >&5
21039
eval "$as_ac_Lib=no"
21042
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21043
conftest$ac_exeext conftest.$ac_ext
21044
LIBS=$ac_check_lib_save_LIBS
21046
ac_res=`eval echo '${'$as_ac_Lib'}'`
21047
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21048
echo "${ECHO_T}$ac_res" >&6; }
21049
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21050
ac_vmw_have_lib_func=1
21055
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
21056
ZLIB_CPPFLAGS="${CUSTOM_ZLIB_CPPFLAGS}"
21057
ZLIB_LIBS="${CUSTOM_ZLIB_LIBS}"
21062
# If that didn't work, try with pkg-config.
21063
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
21064
if test -n ""; then
21065
{ echo "$as_me:$LINENO: checking for >= (via pkg-config)" >&5
21066
echo $ECHO_N "checking for >= (via pkg-config)... $ECHO_C" >&6; }
21067
if pkg-config --exists ' >= '; then
21071
{ echo "$as_me:$LINENO: checking for (via pkg-config)" >&5
21072
echo $ECHO_N "checking for (via pkg-config)... $ECHO_C" >&6; }
21073
if pkg-config --exists ''; then
21078
if test $ac_vmw_have_lib -eq 1; then
21079
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
21080
# fails on OpenSolaris B71. So be pessimistic.
21081
ac_vmw_cppflags="`pkg-config --cflags `"
21083
ac_vmw_libs="`pkg-config --libs `"
21085
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
21086
{ echo "$as_me:$LINENO: result: yes" >&5
21087
echo "${ECHO_T}yes" >&6; }
21088
ZLIB_CPPFLAGS="$ac_vmw_cppflags"
21089
ZLIB_LIBS="$ac_vmw_libs"
21091
{ echo "$as_me:$LINENO: result: no" >&5
21092
echo "${ECHO_T}no" >&6; }
21095
{ echo "$as_me:$LINENO: result: no" >&5
21096
echo "${ECHO_T}no" >&6; }
21100
# If we still haven't found the lib, try with the library's custom "config" script.
21101
# Before checking, flush the AC_PATH_PROG cached variable.
21102
unset ac_cv_path_ac_vmw_lib_cfg
21103
unset ac_vmw_lib_cfg
21104
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
21105
# Extract the first word of "", so it can be a program name with args.
21106
set dummy ; ac_word=$2
21107
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21108
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21109
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
21110
echo $ECHO_N "(cached) $ECHO_C" >&6
21112
case $ac_vmw_lib_cfg in
21114
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
21117
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21118
for as_dir in $PATH
21121
test -z "$as_dir" && as_dir=.
21122
for ac_exec_ext in '' $ac_executable_extensions; do
21123
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21124
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
21125
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21132
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
21136
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
21137
if test -n "$ac_vmw_lib_cfg"; then
21138
{ echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
21139
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
21141
{ echo "$as_me:$LINENO: result: no" >&5
21142
echo "${ECHO_T}no" >&6; }
21146
if test "$ac_vmw_lib_cfg" != "no"; then
21147
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
21148
# so single it out here to avoid having to replicate all the rest of the
21150
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
21151
ZLIB_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
21152
ZLIB_LIBS="`$ac_vmw_lib_cfg --ldflags`"
21154
ZLIB_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
21155
ZLIB_LIBS="`$ac_vmw_lib_cfg --libs`"
21161
# Finish by executing the user provided action. The call to "true" is needed
21162
# because the actions are optional, and we need something inside the block.
21163
if test $ac_vmw_have_lib -eq 1; then
21170
{ { echo "$as_me:$LINENO: error: zlib library not found. Please configure without Unity (using --disable-unity) or install the zlib devel package." >&5
21171
echo "$as_me: error: zlib library not found. Please configure without Unity (using --disable-unity) or install the zlib devel package." >&2;}
18359
21172
{ (exit 1); exit 1; }; }
18363
CPPFLAGS="$ORIGINAL_CPPFLAGS"
18364
21175
fi # End of library checks for Unity.
18366
if test -n "$CUSTOM_GTK_CPPFLAGS" -o -n "$CUSTOM_GTK_LIBS"; then
18367
# Check to see if we have some version of GTK. gtk_accel_group_add
18368
# is a random function that is present in Gtk 1.2 but not Gtk
18369
# 2.0. Similarly, gtk_tree_view_new is a random function in Gtk 2.0
18370
# which is not present in Gtk 1.2.
18371
{ echo "$as_me:$LINENO: checking for gtk_accel_group_add in -lgtk" >&5
18372
echo $ECHO_N "checking for gtk_accel_group_add in -lgtk... $ECHO_C" >&6; }
18373
if test "${ac_cv_lib_gtk_gtk_accel_group_add+set}" = set; then
18374
echo $ECHO_N "(cached) $ECHO_C" >&6
18376
ac_check_lib_save_LIBS=$LIBS
18377
LIBS="-lgtk $CUSTOM_GTK_LIBS $LIBS"
18378
cat >conftest.$ac_ext <<_ACEOF
18381
cat confdefs.h >>conftest.$ac_ext
18382
cat >>conftest.$ac_ext <<_ACEOF
18383
/* end confdefs.h. */
18385
/* Override any GCC internal prototype to avoid an error.
18386
Use char because int might match the return type of a GCC
18387
builtin and then its argument prototype would still apply. */
18391
char gtk_accel_group_add ();
18395
return gtk_accel_group_add ();
18400
rm -f conftest.$ac_objext conftest$ac_exeext
18401
if { (ac_try="$ac_link"
18402
case "(($ac_try" in
18403
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18404
*) ac_try_echo=$ac_try;;
18406
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18407
(eval "$ac_link") 2>conftest.er1
18409
grep -v '^ *+' conftest.er1 >conftest.err
18411
cat conftest.err >&5
18412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413
(exit $ac_status); } && {
18414
test -z "$ac_c_werror_flag" ||
18415
test ! -s conftest.err
18416
} && test -s conftest$ac_exeext &&
18417
$as_test_x conftest$ac_exeext; then
18418
ac_cv_lib_gtk_gtk_accel_group_add=yes
18420
echo "$as_me: failed program was:" >&5
18421
sed 's/^/| /' conftest.$ac_ext >&5
18423
ac_cv_lib_gtk_gtk_accel_group_add=no
18426
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18427
conftest$ac_exeext conftest.$ac_ext
18428
LIBS=$ac_check_lib_save_LIBS
18430
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gtk_gtk_accel_group_add" >&5
18431
echo "${ECHO_T}$ac_cv_lib_gtk_gtk_accel_group_add" >&6; }
18432
if test $ac_cv_lib_gtk_gtk_accel_group_add = yes; then
18436
if test "$with_gtk2" != "no"; then
18437
{ echo "$as_me:$LINENO: checking for gtk_tree_view_new in -lgtk-x11-2.0" >&5
18438
echo $ECHO_N "checking for gtk_tree_view_new in -lgtk-x11-2.0... $ECHO_C" >&6; }
18439
if test "${ac_cv_lib_gtk_x11_2_0_gtk_tree_view_new+set}" = set; then
18440
echo $ECHO_N "(cached) $ECHO_C" >&6
18442
ac_check_lib_save_LIBS=$LIBS
18443
LIBS="-lgtk-x11-2.0 $CUSTOM_GTK_LIBS $LIBS"
18444
cat >conftest.$ac_ext <<_ACEOF
18447
cat confdefs.h >>conftest.$ac_ext
18448
cat >>conftest.$ac_ext <<_ACEOF
18449
/* end confdefs.h. */
18451
/* Override any GCC internal prototype to avoid an error.
18452
Use char because int might match the return type of a GCC
18453
builtin and then its argument prototype would still apply. */
18457
char gtk_tree_view_new ();
18461
return gtk_tree_view_new ();
18466
rm -f conftest.$ac_objext conftest$ac_exeext
18467
if { (ac_try="$ac_link"
18468
case "(($ac_try" in
18469
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470
*) ac_try_echo=$ac_try;;
18472
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473
(eval "$ac_link") 2>conftest.er1
18475
grep -v '^ *+' conftest.er1 >conftest.err
18477
cat conftest.err >&5
18478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479
(exit $ac_status); } && {
18480
test -z "$ac_c_werror_flag" ||
18481
test ! -s conftest.err
18482
} && test -s conftest$ac_exeext &&
18483
$as_test_x conftest$ac_exeext; then
18484
ac_cv_lib_gtk_x11_2_0_gtk_tree_view_new=yes
18486
echo "$as_me: failed program was:" >&5
18487
sed 's/^/| /' conftest.$ac_ext >&5
18489
ac_cv_lib_gtk_x11_2_0_gtk_tree_view_new=no
18492
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18493
conftest$ac_exeext conftest.$ac_ext
18494
LIBS=$ac_check_lib_save_LIBS
18496
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gtk_x11_2_0_gtk_tree_view_new" >&5
18497
echo "${ECHO_T}$ac_cv_lib_gtk_x11_2_0_gtk_tree_view_new" >&6; }
18498
if test $ac_cv_lib_gtk_x11_2_0_gtk_tree_view_new = yes; then
18505
# Sometimes pkg-config can find stuff that AC_CHECK_LIB can't, so we use that as well.
18506
if test "$HAVE_PKG_CONFIG" = "yes"; then
18507
if test "$with_gtk2" != "no"; then
18508
{ echo "$as_me:$LINENO: checking for Gtk+ 2.0 (via pkg-config)" >&5
18509
echo $ECHO_N "checking for Gtk+ 2.0 (via pkg-config)... $ECHO_C" >&6; }
18510
if pkg-config --exists gtk+-2.0; then
21177
# Check whether we have gtk+ 2.0.
21178
if test "$with_gtk2" != "no"; then
21179
# gdk_display_get_default_group (added in gtk+ 2.4.0) is function currently
21180
# needed by vmware-user.
21183
if test -z "gtk-x11-2.0"; then
21184
{ { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
21185
echo "$as_me: error: 'library' parameter is required.'" >&2;}
21186
{ (exit 1); exit 1; }; }
21188
if test -z "GTK"; then
21189
{ { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
21190
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
21191
{ (exit 1); exit 1; }; }
21195
ac_vmw_have_lib_func=0
21196
ac_vmw_have_lib_header=0
21199
# First, try any user-defined CUSTOM_* flags.
21201
if test -n "${CUSTOM_GTK_CPPFLAGS}" || test -n "${CUSTOM_GTK_LIBS}"; then
21202
CUSTOM_GTK_LIBS="${CUSTOM_GTK_LIBS} -lgtk-x11-2.0"
21203
if test -n "gtk/gtk.h"; then
21204
ORIGINAL_CPPFLAGS="$CPPFLAGS"
21205
CPPFLAGS="${CUSTOM_GTK_CPPFLAGS} $CPPFLAGS"
21207
if test "${ac_cv_header_gtk_gtk_h+set}" = set; then
21208
{ echo "$as_me:$LINENO: checking for gtk/gtk.h" >&5
21209
echo $ECHO_N "checking for gtk/gtk.h... $ECHO_C" >&6; }
21210
if test "${ac_cv_header_gtk_gtk_h+set}" = set; then
21211
echo $ECHO_N "(cached) $ECHO_C" >&6
21213
{ echo "$as_me:$LINENO: result: $ac_cv_header_gtk_gtk_h" >&5
21214
echo "${ECHO_T}$ac_cv_header_gtk_gtk_h" >&6; }
21216
# Is the header compilable?
21217
{ echo "$as_me:$LINENO: checking gtk/gtk.h usability" >&5
21218
echo $ECHO_N "checking gtk/gtk.h usability... $ECHO_C" >&6; }
21219
cat >conftest.$ac_ext <<_ACEOF
21222
cat confdefs.h >>conftest.$ac_ext
21223
cat >>conftest.$ac_ext <<_ACEOF
21224
/* end confdefs.h. */
21225
$ac_includes_default
21226
#include <gtk/gtk.h>
21228
rm -f conftest.$ac_objext
21229
if { (ac_try="$ac_compile"
21230
case "(($ac_try" in
21231
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21232
*) ac_try_echo=$ac_try;;
21234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21235
(eval "$ac_compile") 2>conftest.er1
21237
grep -v '^ *+' conftest.er1 >conftest.err
21239
cat conftest.err >&5
21240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241
(exit $ac_status); } && {
21242
test -z "$ac_c_werror_flag" ||
21243
test ! -s conftest.err
21244
} && test -s conftest.$ac_objext; then
21245
ac_header_compiler=yes
21247
echo "$as_me: failed program was:" >&5
21248
sed 's/^/| /' conftest.$ac_ext >&5
21250
ac_header_compiler=no
21253
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21254
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21255
echo "${ECHO_T}$ac_header_compiler" >&6; }
21257
# Is the header present?
21258
{ echo "$as_me:$LINENO: checking gtk/gtk.h presence" >&5
21259
echo $ECHO_N "checking gtk/gtk.h presence... $ECHO_C" >&6; }
21260
cat >conftest.$ac_ext <<_ACEOF
21263
cat confdefs.h >>conftest.$ac_ext
21264
cat >>conftest.$ac_ext <<_ACEOF
21265
/* end confdefs.h. */
21266
#include <gtk/gtk.h>
21268
if { (ac_try="$ac_cpp conftest.$ac_ext"
21269
case "(($ac_try" in
21270
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21271
*) ac_try_echo=$ac_try;;
21273
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21274
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21276
grep -v '^ *+' conftest.er1 >conftest.err
21278
cat conftest.err >&5
21279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280
(exit $ac_status); } >/dev/null && {
21281
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21282
test ! -s conftest.err
21284
ac_header_preproc=yes
21286
echo "$as_me: failed program was:" >&5
21287
sed 's/^/| /' conftest.$ac_ext >&5
21289
ac_header_preproc=no
21292
rm -f conftest.err conftest.$ac_ext
21293
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21294
echo "${ECHO_T}$ac_header_preproc" >&6; }
21296
# So? What about this header?
21297
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21299
{ echo "$as_me:$LINENO: WARNING: gtk/gtk.h: accepted by the compiler, rejected by the preprocessor!" >&5
21300
echo "$as_me: WARNING: gtk/gtk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21301
{ echo "$as_me:$LINENO: WARNING: gtk/gtk.h: proceeding with the compiler's result" >&5
21302
echo "$as_me: WARNING: gtk/gtk.h: proceeding with the compiler's result" >&2;}
21303
ac_header_preproc=yes
21306
{ echo "$as_me:$LINENO: WARNING: gtk/gtk.h: present but cannot be compiled" >&5
21307
echo "$as_me: WARNING: gtk/gtk.h: present but cannot be compiled" >&2;}
21308
{ echo "$as_me:$LINENO: WARNING: gtk/gtk.h: check for missing prerequisite headers?" >&5
21309
echo "$as_me: WARNING: gtk/gtk.h: check for missing prerequisite headers?" >&2;}
21310
{ echo "$as_me:$LINENO: WARNING: gtk/gtk.h: see the Autoconf documentation" >&5
21311
echo "$as_me: WARNING: gtk/gtk.h: see the Autoconf documentation" >&2;}
21312
{ echo "$as_me:$LINENO: WARNING: gtk/gtk.h: section \"Present But Cannot Be Compiled\"" >&5
21313
echo "$as_me: WARNING: gtk/gtk.h: section \"Present But Cannot Be Compiled\"" >&2;}
21314
{ echo "$as_me:$LINENO: WARNING: gtk/gtk.h: proceeding with the preprocessor's result" >&5
21315
echo "$as_me: WARNING: gtk/gtk.h: proceeding with the preprocessor's result" >&2;}
21316
{ echo "$as_me:$LINENO: WARNING: gtk/gtk.h: in the future, the compiler will take precedence" >&5
21317
echo "$as_me: WARNING: gtk/gtk.h: in the future, the compiler will take precedence" >&2;}
21319
## -------------------------------------------------------- ##
21320
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
21321
## -------------------------------------------------------- ##
21323
) | sed "s/^/$as_me: WARNING: /" >&2
21326
{ echo "$as_me:$LINENO: checking for gtk/gtk.h" >&5
21327
echo $ECHO_N "checking for gtk/gtk.h... $ECHO_C" >&6; }
21328
if test "${ac_cv_header_gtk_gtk_h+set}" = set; then
21329
echo $ECHO_N "(cached) $ECHO_C" >&6
21331
ac_cv_header_gtk_gtk_h=$ac_header_preproc
21333
{ echo "$as_me:$LINENO: result: $ac_cv_header_gtk_gtk_h" >&5
21334
echo "${ECHO_T}$ac_cv_header_gtk_gtk_h" >&6; }
21337
if test $ac_cv_header_gtk_gtk_h = yes; then
21338
ac_vmw_have_lib_header=1
21343
CPPFLAGS="$ORIGINAL_CPPFLAGS"
21345
ac_vmw_have_lib_header=1
21348
# Check a specific function in the library if requested.
21349
# If it hasn't, just pick a random function from libc, just to make
21350
# sure the linker can find the library being tested.
21351
if test $ac_vmw_have_lib_header -eq 1; then
21352
if test -n "gdk_display_get_default_group"; then
21353
ac_vmw_function=gdk_display_get_default_group
21355
ac_vmw_function=strlen
21357
as_ac_Lib=`echo "ac_cv_lib_gtk-x11-2.0_$ac_vmw_function" | $as_tr_sh`
21358
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -lgtk-x11-2.0" >&5
21359
echo $ECHO_N "checking for $ac_vmw_function in -lgtk-x11-2.0... $ECHO_C" >&6; }
21360
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21361
echo $ECHO_N "(cached) $ECHO_C" >&6
21363
ac_check_lib_save_LIBS=$LIBS
21364
LIBS="-lgtk-x11-2.0 ${CUSTOM_GTK_LIBS} $LIBS"
21365
cat >conftest.$ac_ext <<_ACEOF
21368
cat confdefs.h >>conftest.$ac_ext
21369
cat >>conftest.$ac_ext <<_ACEOF
21370
/* end confdefs.h. */
21372
/* Override any GCC internal prototype to avoid an error.
21373
Use char because int might match the return type of a GCC
21374
builtin and then its argument prototype would still apply. */
21378
char $ac_vmw_function ();
21382
return $ac_vmw_function ();
21387
rm -f conftest.$ac_objext conftest$ac_exeext
21388
if { (ac_try="$ac_link"
21389
case "(($ac_try" in
21390
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21391
*) ac_try_echo=$ac_try;;
21393
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21394
(eval "$ac_link") 2>conftest.er1
21396
grep -v '^ *+' conftest.er1 >conftest.err
21398
cat conftest.err >&5
21399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400
(exit $ac_status); } && {
21401
test -z "$ac_c_werror_flag" ||
21402
test ! -s conftest.err
21403
} && test -s conftest$ac_exeext &&
21404
$as_test_x conftest$ac_exeext; then
21405
eval "$as_ac_Lib=yes"
21407
echo "$as_me: failed program was:" >&5
21408
sed 's/^/| /' conftest.$ac_ext >&5
21410
eval "$as_ac_Lib=no"
21413
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21414
conftest$ac_exeext conftest.$ac_ext
21415
LIBS=$ac_check_lib_save_LIBS
21417
ac_res=`eval echo '${'$as_ac_Lib'}'`
21418
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21419
echo "${ECHO_T}$ac_res" >&6; }
21420
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21421
ac_vmw_have_lib_func=1
21426
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
21427
GTK_CPPFLAGS="${CUSTOM_GTK_CPPFLAGS}"
21428
GTK_LIBS="${CUSTOM_GTK_LIBS}"
21433
# If that didn't work, try with pkg-config.
21434
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "gtk+-2.0"; then
21435
if test -n "2.4.0"; then
21436
{ echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4.0 (via pkg-config)" >&5
21437
echo $ECHO_N "checking for gtk+-2.0 >= 2.4.0 (via pkg-config)... $ECHO_C" >&6; }
21438
if pkg-config --exists 'gtk+-2.0 >= 2.4.0'; then
21442
{ echo "$as_me:$LINENO: checking for gtk+-2.0 (via pkg-config)" >&5
21443
echo $ECHO_N "checking for gtk+-2.0 (via pkg-config)... $ECHO_C" >&6; }
21444
if pkg-config --exists 'gtk+-2.0'; then
21449
if test $ac_vmw_have_lib -eq 1; then
21450
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
21451
# fails on OpenSolaris B71. So be pessimistic.
21452
ac_vmw_cppflags="`pkg-config --cflags gtk+-2.0`"
21454
ac_vmw_libs="`pkg-config --libs gtk+-2.0`"
21456
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
18512
21457
{ echo "$as_me:$LINENO: result: yes" >&5
18513
21458
echo "${ECHO_T}yes" >&6; }
21459
GTK_CPPFLAGS="$ac_vmw_cppflags"
21460
GTK_LIBS="$ac_vmw_libs"
18515
21462
{ echo "$as_me:$LINENO: result: no" >&5
18516
21463
echo "${ECHO_T}no" >&6; }
18520
{ echo "$as_me:$LINENO: checking for Gtk+ 1.x (via pkg-config)" >&5
18521
echo $ECHO_N "checking for Gtk+ 1.x (via pkg-config)... $ECHO_C" >&6; }
18522
# The latter half of the test is because pkg-config's fallback
18523
# to gtk-config is broken on systems such as Ubuntu that use
18524
# bash-completion for unknown commands. (On Ubuntu, typing
18525
# 'gtk-config' on a system that doesn't have libgtk1.2-dev
18526
# installed outputs hints about using apt-get, in addition to the
18527
# regular bash "command not found" message.)
18528
if pkg-config --exists gtk+ \
18529
&& test -n "`pkg-config --libs gtk+ 2>/dev/null | grep -v '^ *$'`"; then
18531
{ echo "$as_me:$LINENO: result: yes" >&5
18532
echo "${ECHO_T}yes" >&6; }
18534
21466
{ echo "$as_me:$LINENO: result: no" >&5
18535
21467
echo "${ECHO_T}no" >&6; }
18539
if test "$HAVE_GTK1" = "yes" -o "$HAVE_GTK2" = "yes"; then
18540
# This bit is to fix builds on OpenSolaris B71, where
18541
# 'pkg-config --cflags gtk+-2.0' gives an error.
18542
if test "$HAVE_GTK2" = "yes" -a "$HAVE_PKG_CONFIG" = "yes" \
18543
&& ! pkg-config --exists gtk+-2.0 \
18544
&& test -z "$CUSTOM_GTK_CPPFLAGS" -a -z "$CUSTOM_GTK_LIBS"; then
18548
if test "$HAVE_GTK2" = "yes"; then
18550
GTK_CPPFLAGS="$GTK_CPPFLAGS -DGTK2"
18551
gtkPackageName="gtk+-2.0"
18552
elif test "$HAVE_GTK1" = "yes"; then
18554
gtkPackageName="gtk+"
18556
# Unity requires Gtk 2.0.
18557
if test "$enable_unity" != "no"; then
18558
{ { echo "$as_me:$LINENO: error: The Unity feature requires Gtk+ 2.0. Please install the Gtk+ 2.0 devel packages or configure without Unity (using --disable-unity)" >&5
18559
echo "$as_me: error: The Unity feature requires Gtk+ 2.0. Please install the Gtk+ 2.0 devel packages or configure without Unity (using --disable-unity)" >&2;}
18560
{ (exit 1); exit 1; }; }
18563
# We found Gtk+ 2.0 that turned out to have a non-working
18564
# pkg-config setup, AND Gtk 1.2 wasn't installed.
18565
{ { echo "$as_me:$LINENO: error: The Gtk+ library installed on your system is not fully functional. Please contact your OS vendor." >&5
18566
echo "$as_me: error: The Gtk+ library installed on your system is not fully functional. Please contact your OS vendor." >&2;}
18567
{ (exit 1); exit 1; }; }
18570
# Prefer flags specified, in the environment, by the user.
18571
if test -n "$CUSTOM_GTK_CPPFLAGS" -o -n "$CUSTOM_GTK_LIBS"; then
18572
GTK_CPPFLAGS="$GTK_CPPFLAGS $CUSTOM_GTK_CPPFLAGS"
18573
GTK_LIBS="$GTK_LIBS $CUSTOM_GTK_LIBS"
18574
# Use pkg-config if available and there are no user-specified flags.
18575
elif test "$HAVE_PKG_CONFIG" = "yes"; then
18576
GTK_CPPFLAGS="$GTK_CPPFLAGS $(pkg-config --cflags $gtkPackageName)"
18577
GTK_LIBS="$GTK_LIBS $(pkg-config --libs $gtkPackageName)"
18578
# Otherwise, we have a problem.
18580
{ { echo "$as_me:$LINENO: error: pkg-config not found. Get pkg-config or set CUSTOM_GTK_CPPFLAGS and CUSTOM_GTK_LIBS to specify gtk header file and library locations." >&5
18581
echo "$as_me: error: pkg-config not found. Get pkg-config or set CUSTOM_GTK_CPPFLAGS and CUSTOM_GTK_LIBS to specify gtk header file and library locations." >&2;}
18582
{ (exit 1); exit 1; }; }
18585
# Check for a sufficiently new installation of Gtk 2.0. This symbol is, at
18586
# the time of writing, used in vmware-user. We must perform this check
18587
# after GTK_LIBS has been set up. Note: we don't actually use the
18588
# resultant HAVE_NEW_GTK2 variable; it's just set so that the default
18589
# action, which will append gdk-x11-2.0 to LIBS, isn't taken.
18590
if test "$HAVE_GTK2" == "yes"; then
18591
{ echo "$as_me:$LINENO: checking for gdk_display_get_default_group in -lgdk-x11-2.0" >&5
18592
echo $ECHO_N "checking for gdk_display_get_default_group in -lgdk-x11-2.0... $ECHO_C" >&6; }
18593
if test "${ac_cv_lib_gdk_x11_2_0_gdk_display_get_default_group+set}" = set; then
21471
# If we still haven't found the lib, try with the library's custom "config" script.
21472
# Before checking, flush the AC_PATH_PROG cached variable.
21473
unset ac_cv_path_ac_vmw_lib_cfg
21474
unset ac_vmw_lib_cfg
21475
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
21476
# Extract the first word of "", so it can be a program name with args.
21477
set dummy ; ac_word=$2
21478
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21479
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21480
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
18594
21481
echo $ECHO_N "(cached) $ECHO_C" >&6
18596
ac_check_lib_save_LIBS=$LIBS
18597
LIBS="-lgdk-x11-2.0 $LIBS"
18598
cat >conftest.$ac_ext <<_ACEOF
18601
cat confdefs.h >>conftest.$ac_ext
18602
cat >>conftest.$ac_ext <<_ACEOF
18603
/* end confdefs.h. */
21483
case $ac_vmw_lib_cfg in
21485
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
21488
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21489
for as_dir in $PATH
21492
test -z "$as_dir" && as_dir=.
21493
for ac_exec_ext in '' $ac_executable_extensions; do
21494
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21495
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
21496
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18605
/* Override any GCC internal prototype to avoid an error.
18606
Use char because int might match the return type of a GCC
18607
builtin and then its argument prototype would still apply. */
18611
char gdk_display_get_default_group ();
18615
return gdk_display_get_default_group ();
18620
rm -f conftest.$ac_objext conftest$ac_exeext
18621
if { (ac_try="$ac_link"
18622
case "(($ac_try" in
18623
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624
*) ac_try_echo=$ac_try;;
21503
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
18626
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627
(eval "$ac_link") 2>conftest.er1
18629
grep -v '^ *+' conftest.er1 >conftest.err
18631
cat conftest.err >&5
18632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633
(exit $ac_status); } && {
18634
test -z "$ac_c_werror_flag" ||
18635
test ! -s conftest.err
18636
} && test -s conftest$ac_exeext &&
18637
$as_test_x conftest$ac_exeext; then
18638
ac_cv_lib_gdk_x11_2_0_gdk_display_get_default_group=yes
18640
echo "$as_me: failed program was:" >&5
18641
sed 's/^/| /' conftest.$ac_ext >&5
18643
ac_cv_lib_gdk_x11_2_0_gdk_display_get_default_group=no
18646
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18647
conftest$ac_exeext conftest.$ac_ext
18648
LIBS=$ac_check_lib_save_LIBS
18650
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_x11_2_0_gdk_display_get_default_group" >&5
18651
echo "${ECHO_T}$ac_cv_lib_gdk_x11_2_0_gdk_display_get_default_group" >&6; }
18652
if test $ac_cv_lib_gdk_x11_2_0_gdk_display_get_default_group = yes; then
18653
HAVE_NEW_GTK2="yes"
18655
{ { echo "$as_me:$LINENO: error: Gtk 2.0 installation may be too old. Please upgrade your Gtk 2.0 packages or configure without Gtk 2.0 (using --without-gtk2)" >&5
18656
echo "$as_me: error: Gtk 2.0 installation may be too old. Please upgrade your Gtk 2.0 packages or configure without Gtk 2.0 (using --without-gtk2)" >&2;}
21507
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
21508
if test -n "$ac_vmw_lib_cfg"; then
21509
{ echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
21510
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
21512
{ echo "$as_me:$LINENO: result: no" >&5
21513
echo "${ECHO_T}no" >&6; }
21517
if test "$ac_vmw_lib_cfg" != "no"; then
21518
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
21519
# so single it out here to avoid having to replicate all the rest of the
21521
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
21522
GTK_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
21523
GTK_LIBS="`$ac_vmw_lib_cfg --ldflags`"
21525
GTK_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
21526
GTK_LIBS="`$ac_vmw_lib_cfg --libs`"
21532
# Finish by executing the user provided action. The call to "true" is needed
21533
# because the actions are optional, and we need something inside the block.
21534
if test $ac_vmw_have_lib -eq 1; then
21538
GTK_CPPFLAGS="$GTK_CPPFLAGS -DGTK2"
21541
{ { echo "$as_me:$LINENO: error: Gtk+ 2.0 library not found or too old. Please configure without Gtk+ support (using --without-gtk2) or install the Gtk+ 2.0 devel package." >&5
21542
echo "$as_me: error: Gtk+ 2.0 library not found or too old. Please configure without Gtk+ support (using --without-gtk2) or install the Gtk+ 2.0 devel package." >&2;}
18657
21543
{ (exit 1); exit 1; }; }
18663
21547
# Unity requires libgdk_pixbuf_xlib, which most systems don't seem to
18664
21548
# provide via "pkg-config --libs gtk+-2.0".
19461
23316
IFS=$as_save_IFS
19465
DNET_CONFIG=$ac_cv_prog_DNET_CONFIG
19466
if test -n "$DNET_CONFIG"; then
19467
{ echo "$as_me:$LINENO: result: $DNET_CONFIG" >&5
19468
echo "${ECHO_T}$DNET_CONFIG" >&6; }
23318
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
23322
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
23323
if test -n "$ac_vmw_lib_cfg"; then
23324
{ echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
23325
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
19470
23327
{ echo "$as_me:$LINENO: result: no" >&5
19471
23328
echo "${ECHO_T}no" >&6; }
19475
test -n "$DNET_CONFIG" && break
19477
test -n "$DNET_CONFIG" || DNET_CONFIG="no"
19480
if test "$DNET_CONFIG" != no; then
19481
DNET_CPPFLAGS="`$DNET_CONFIG --cflags`"
19482
DNET_LIBS="`$DNET_CONFIG --libs`"
19484
GUESTD_LDADD="$GUESTD_LDADD $DNET_LIBS"
19485
VMWARE_USER_LDADD="$VMWARE_USER_LDADD $DNET_LIBS"
19486
if test "$DNET_CONFIG" == dumbnet-config; then
23332
if test "$ac_vmw_lib_cfg" != "no"; then
23333
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
23334
# so single it out here to avoid having to replicate all the rest of the
23336
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
23337
DNET_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
23338
DNET_LIBS="`$ac_vmw_lib_cfg --ldflags`"
23340
DNET_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
23341
DNET_LIBS="`$ac_vmw_lib_cfg --libs`"
23347
# Finish by executing the user provided action. The call to "true" is needed
23348
# because the actions are optional, and we need something inside the block.
23349
if test $ac_vmw_have_lib -eq 1; then
19488
23355
cat >>confdefs.h <<\_ACEOF
19489
23356
#define DNET_IS_DUMBNET 1
23365
if test $have_dnet -eq 0; then
23368
if test -z "dnet"; then
23369
{ { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
23370
echo "$as_me: error: 'library' parameter is required.'" >&2;}
23371
{ (exit 1); exit 1; }; }
23373
if test -z "DNET"; then
23374
{ { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
23375
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
23376
{ (exit 1); exit 1; }; }
23380
ac_vmw_have_lib_func=0
23381
ac_vmw_have_lib_header=0
23384
# First, try any user-defined CUSTOM_* flags.
23386
if test -n "${CUSTOM_DNET_CPPFLAGS}" || test -n "${CUSTOM_DNET_LIBS}"; then
23387
CUSTOM_DNET_LIBS="${CUSTOM_DNET_LIBS} -ldnet"
23388
if test -n "dnet.h"; then
23389
ORIGINAL_CPPFLAGS="$CPPFLAGS"
23390
CPPFLAGS="${CUSTOM_DNET_CPPFLAGS} $CPPFLAGS"
23392
if test "${ac_cv_header_dnet_h+set}" = set; then
23393
{ echo "$as_me:$LINENO: checking for dnet.h" >&5
23394
echo $ECHO_N "checking for dnet.h... $ECHO_C" >&6; }
23395
if test "${ac_cv_header_dnet_h+set}" = set; then
23396
echo $ECHO_N "(cached) $ECHO_C" >&6
23398
{ echo "$as_me:$LINENO: result: $ac_cv_header_dnet_h" >&5
23399
echo "${ECHO_T}$ac_cv_header_dnet_h" >&6; }
23401
# Is the header compilable?
23402
{ echo "$as_me:$LINENO: checking dnet.h usability" >&5
23403
echo $ECHO_N "checking dnet.h usability... $ECHO_C" >&6; }
23404
cat >conftest.$ac_ext <<_ACEOF
23407
cat confdefs.h >>conftest.$ac_ext
23408
cat >>conftest.$ac_ext <<_ACEOF
23409
/* end confdefs.h. */
23410
$ac_includes_default
23413
rm -f conftest.$ac_objext
23414
if { (ac_try="$ac_compile"
23415
case "(($ac_try" in
23416
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23417
*) ac_try_echo=$ac_try;;
23419
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23420
(eval "$ac_compile") 2>conftest.er1
23422
grep -v '^ *+' conftest.er1 >conftest.err
23424
cat conftest.err >&5
23425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426
(exit $ac_status); } && {
23427
test -z "$ac_c_werror_flag" ||
23428
test ! -s conftest.err
23429
} && test -s conftest.$ac_objext; then
23430
ac_header_compiler=yes
23432
echo "$as_me: failed program was:" >&5
23433
sed 's/^/| /' conftest.$ac_ext >&5
23435
ac_header_compiler=no
23438
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23439
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23440
echo "${ECHO_T}$ac_header_compiler" >&6; }
23442
# Is the header present?
23443
{ echo "$as_me:$LINENO: checking dnet.h presence" >&5
23444
echo $ECHO_N "checking dnet.h presence... $ECHO_C" >&6; }
23445
cat >conftest.$ac_ext <<_ACEOF
23448
cat confdefs.h >>conftest.$ac_ext
23449
cat >>conftest.$ac_ext <<_ACEOF
23450
/* end confdefs.h. */
23453
if { (ac_try="$ac_cpp conftest.$ac_ext"
23454
case "(($ac_try" in
23455
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23456
*) ac_try_echo=$ac_try;;
23458
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23459
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23461
grep -v '^ *+' conftest.er1 >conftest.err
23463
cat conftest.err >&5
23464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465
(exit $ac_status); } >/dev/null && {
23466
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23467
test ! -s conftest.err
23469
ac_header_preproc=yes
23471
echo "$as_me: failed program was:" >&5
23472
sed 's/^/| /' conftest.$ac_ext >&5
23474
ac_header_preproc=no
23477
rm -f conftest.err conftest.$ac_ext
23478
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23479
echo "${ECHO_T}$ac_header_preproc" >&6; }
23481
# So? What about this header?
23482
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23484
{ echo "$as_me:$LINENO: WARNING: dnet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23485
echo "$as_me: WARNING: dnet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23486
{ echo "$as_me:$LINENO: WARNING: dnet.h: proceeding with the compiler's result" >&5
23487
echo "$as_me: WARNING: dnet.h: proceeding with the compiler's result" >&2;}
23488
ac_header_preproc=yes
23491
{ echo "$as_me:$LINENO: WARNING: dnet.h: present but cannot be compiled" >&5
23492
echo "$as_me: WARNING: dnet.h: present but cannot be compiled" >&2;}
23493
{ echo "$as_me:$LINENO: WARNING: dnet.h: check for missing prerequisite headers?" >&5
23494
echo "$as_me: WARNING: dnet.h: check for missing prerequisite headers?" >&2;}
23495
{ echo "$as_me:$LINENO: WARNING: dnet.h: see the Autoconf documentation" >&5
23496
echo "$as_me: WARNING: dnet.h: see the Autoconf documentation" >&2;}
23497
{ echo "$as_me:$LINENO: WARNING: dnet.h: section \"Present But Cannot Be Compiled\"" >&5
23498
echo "$as_me: WARNING: dnet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23499
{ echo "$as_me:$LINENO: WARNING: dnet.h: proceeding with the preprocessor's result" >&5
23500
echo "$as_me: WARNING: dnet.h: proceeding with the preprocessor's result" >&2;}
23501
{ echo "$as_me:$LINENO: WARNING: dnet.h: in the future, the compiler will take precedence" >&5
23502
echo "$as_me: WARNING: dnet.h: in the future, the compiler will take precedence" >&2;}
23504
## -------------------------------------------------------- ##
23505
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
23506
## -------------------------------------------------------- ##
23508
) | sed "s/^/$as_me: WARNING: /" >&2
23511
{ echo "$as_me:$LINENO: checking for dnet.h" >&5
23512
echo $ECHO_N "checking for dnet.h... $ECHO_C" >&6; }
23513
if test "${ac_cv_header_dnet_h+set}" = set; then
23514
echo $ECHO_N "(cached) $ECHO_C" >&6
23516
ac_cv_header_dnet_h=$ac_header_preproc
23518
{ echo "$as_me:$LINENO: result: $ac_cv_header_dnet_h" >&5
23519
echo "${ECHO_T}$ac_cv_header_dnet_h" >&6; }
23522
if test $ac_cv_header_dnet_h = yes; then
23523
ac_vmw_have_lib_header=1
23528
CPPFLAGS="$ORIGINAL_CPPFLAGS"
23530
ac_vmw_have_lib_header=1
23533
# Check a specific function in the library if requested.
23534
# If it hasn't, just pick a random function from libc, just to make
23535
# sure the linker can find the library being tested.
23536
if test $ac_vmw_have_lib_header -eq 1; then
23537
if test -n "intf_open"; then
23538
ac_vmw_function=intf_open
23540
ac_vmw_function=strlen
23542
as_ac_Lib=`echo "ac_cv_lib_dnet_$ac_vmw_function" | $as_tr_sh`
23543
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -ldnet" >&5
23544
echo $ECHO_N "checking for $ac_vmw_function in -ldnet... $ECHO_C" >&6; }
23545
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23546
echo $ECHO_N "(cached) $ECHO_C" >&6
23548
ac_check_lib_save_LIBS=$LIBS
23549
LIBS="-ldnet ${CUSTOM_DNET_LIBS} $LIBS"
23550
cat >conftest.$ac_ext <<_ACEOF
23553
cat confdefs.h >>conftest.$ac_ext
23554
cat >>conftest.$ac_ext <<_ACEOF
23555
/* end confdefs.h. */
23557
/* Override any GCC internal prototype to avoid an error.
23558
Use char because int might match the return type of a GCC
23559
builtin and then its argument prototype would still apply. */
23563
char $ac_vmw_function ();
23567
return $ac_vmw_function ();
23572
rm -f conftest.$ac_objext conftest$ac_exeext
23573
if { (ac_try="$ac_link"
23574
case "(($ac_try" in
23575
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23576
*) ac_try_echo=$ac_try;;
23578
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23579
(eval "$ac_link") 2>conftest.er1
23581
grep -v '^ *+' conftest.er1 >conftest.err
23583
cat conftest.err >&5
23584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585
(exit $ac_status); } && {
23586
test -z "$ac_c_werror_flag" ||
23587
test ! -s conftest.err
23588
} && test -s conftest$ac_exeext &&
23589
$as_test_x conftest$ac_exeext; then
23590
eval "$as_ac_Lib=yes"
23592
echo "$as_me: failed program was:" >&5
23593
sed 's/^/| /' conftest.$ac_ext >&5
23595
eval "$as_ac_Lib=no"
23598
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23599
conftest$ac_exeext conftest.$ac_ext
23600
LIBS=$ac_check_lib_save_LIBS
23602
ac_res=`eval echo '${'$as_ac_Lib'}'`
23603
{ echo "$as_me:$LINENO: result: $ac_res" >&5
23604
echo "${ECHO_T}$ac_res" >&6; }
23605
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23606
ac_vmw_have_lib_func=1
23611
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
23612
DNET_CPPFLAGS="${CUSTOM_DNET_CPPFLAGS}"
23613
DNET_LIBS="${CUSTOM_DNET_LIBS}"
23618
# If that didn't work, try with pkg-config.
23619
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
23620
if test -n ""; then
23621
{ echo "$as_me:$LINENO: checking for >= (via pkg-config)" >&5
23622
echo $ECHO_N "checking for >= (via pkg-config)... $ECHO_C" >&6; }
23623
if pkg-config --exists ' >= '; then
23627
{ echo "$as_me:$LINENO: checking for (via pkg-config)" >&5
23628
echo $ECHO_N "checking for (via pkg-config)... $ECHO_C" >&6; }
23629
if pkg-config --exists ''; then
23634
if test $ac_vmw_have_lib -eq 1; then
23635
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
23636
# fails on OpenSolaris B71. So be pessimistic.
23637
ac_vmw_cppflags="`pkg-config --cflags `"
23639
ac_vmw_libs="`pkg-config --libs `"
23641
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
23642
{ echo "$as_me:$LINENO: result: yes" >&5
23643
echo "${ECHO_T}yes" >&6; }
23644
DNET_CPPFLAGS="$ac_vmw_cppflags"
23645
DNET_LIBS="$ac_vmw_libs"
23647
{ echo "$as_me:$LINENO: result: no" >&5
23648
echo "${ECHO_T}no" >&6; }
23651
{ echo "$as_me:$LINENO: result: no" >&5
23652
echo "${ECHO_T}no" >&6; }
23656
# If we still haven't found the lib, try with the library's custom "config" script.
23657
# Before checking, flush the AC_PATH_PROG cached variable.
23658
unset ac_cv_path_ac_vmw_lib_cfg
23659
unset ac_vmw_lib_cfg
23660
if test $ac_vmw_have_lib -eq 0 && test -n "dnet-config"; then
23661
# Extract the first word of "dnet-config", so it can be a program name with args.
23662
set dummy dnet-config; ac_word=$2
23663
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23664
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23665
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
23666
echo $ECHO_N "(cached) $ECHO_C" >&6
23668
case $ac_vmw_lib_cfg in
23670
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
23673
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23674
for as_dir in $PATH
23677
test -z "$as_dir" && as_dir=.
23678
for ac_exec_ext in '' $ac_executable_extensions; do
23679
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23680
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
23681
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23688
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
23692
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
23693
if test -n "$ac_vmw_lib_cfg"; then
23694
{ echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
23695
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
23697
{ echo "$as_me:$LINENO: result: no" >&5
23698
echo "${ECHO_T}no" >&6; }
23702
if test "$ac_vmw_lib_cfg" != "no"; then
23703
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
23704
# so single it out here to avoid having to replicate all the rest of the
23706
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
23707
DNET_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
23708
DNET_LIBS="`$ac_vmw_lib_cfg --ldflags`"
23710
DNET_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
23711
DNET_LIBS="`$ac_vmw_lib_cfg --libs`"
23717
# Finish by executing the user provided action. The call to "true" is needed
23718
# because the actions are optional, and we need something inside the block.
23719
if test $ac_vmw_have_lib -eq 1; then
23731
if test $have_dnet -eq 1; then
23732
GUESTD_LDADD="$GUESTD_LDADD $DNET_LIBS"
23733
VMWARE_USER_LDADD="$VMWARE_USER_LDADD $DNET_LIBS"
19494
23735
{ { echo "$as_me:$LINENO: error: dnet-config was not found on your PATH. Please configure without dnet (using --without-dnet) or install dnet - http://libdnet.sourceforge.net" >&5
19495
23736
echo "$as_me: error: dnet-config was not found on your PATH. Please configure without dnet (using --without-dnet) or install dnet - http://libdnet.sourceforge.net" >&2;}
19496
23737
{ (exit 1); exit 1; }; }