comparison configure @ 87016:178e4648e5d6

* configure.in: Use PKG_CHECK_MODULES to check for D-Bus. * configure: Regenerate.
author Magnus Henoch <mange@freemail.hu>
date Mon, 03 Dec 2007 22:04:25 +0000
parents ce6a9097341e
children dcc98b45b61d
comparison
equal deleted inserted replaced
87015:eb85998bbcf9 87016:178e4648e5d6
12002 fi 12002 fi
12003 fi 12003 fi
12004 12004
12005 HAVE_DBUS=no 12005 HAVE_DBUS=no
12006 if test "${with_dbus}" = "yes"; then 12006 if test "${with_dbus}" = "yes"; then
12007 { echo "$as_me:$LINENO: checking for dbus_bus_get in -ldbus-1" >&5 12007
12008 echo $ECHO_N "checking for dbus_bus_get in -ldbus-1... $ECHO_C" >&6; } 12008 succeeded=no
12009 if test "${ac_cv_lib_dbus_1_dbus_bus_get+set}" = set; then 12009
12010 if test -z "$PKG_CONFIG"; then
12011 # Extract the first word of "pkg-config", so it can be a program name with args.
12012 set dummy pkg-config; ac_word=$2
12013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12015 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12010 echo $ECHO_N "(cached) $ECHO_C" >&6 12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12011 else 12017 else
12012 ac_check_lib_save_LIBS=$LIBS 12018 case $PKG_CONFIG in
12013 LIBS="-ldbus-1 $LIBS" 12019 [\\/]* | ?:[\\/]*)
12014 cat >conftest.$ac_ext <<_ACEOF 12020 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12015 /* confdefs.h. */ 12021 ;;
12016 _ACEOF 12022 *)
12017 cat confdefs.h >>conftest.$ac_ext 12023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018 cat >>conftest.$ac_ext <<_ACEOF 12024 for as_dir in $PATH
12019 /* end confdefs.h. */ 12025 do
12020 12026 IFS=$as_save_IFS
12021 /* Override any GCC internal prototype to avoid an error. 12027 test -z "$as_dir" && as_dir=.
12022 Use char because int might match the return type of a GCC 12028 for ac_exec_ext in '' $ac_executable_extensions; do
12023 builtin and then its argument prototype would still apply. */ 12029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12024 #ifdef __cplusplus 12030 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12025 extern "C" 12031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12026 #endif 12032 break 2
12027 char dbus_bus_get (); 12033 fi
12028 int 12034 done
12029 main () 12035 done
12030 { 12036 IFS=$as_save_IFS
12031 return dbus_bus_get (); 12037
12032 ; 12038 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12033 return 0; 12039 ;;
12034 } 12040 esac
12035 _ACEOF 12041 fi
12036 rm -f conftest.$ac_objext conftest$ac_exeext 12042 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12037 if { (ac_try="$ac_link" 12043 if test -n "$PKG_CONFIG"; then
12038 case "(($ac_try" in 12044 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12045 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12040 *) ac_try_echo=$ac_try;; 12046 else
12041 esac 12047 { echo "$as_me:$LINENO: result: no" >&5
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12048 echo "${ECHO_T}no" >&6; }
12043 (eval "$ac_link") 2>conftest.er1 12049 fi
12044 ac_status=$? 12050
12045 grep -v '^ *+' conftest.er1 >conftest.err 12051
12046 rm -f conftest.er1 12052 fi
12047 cat conftest.err >&5 12053
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12054 if test "$PKG_CONFIG" = "no" ; then
12049 (exit $ac_status); } && { 12055 HAVE_DBUS=no
12050 test -z "$ac_c_werror_flag" || 12056 else
12051 test ! -s conftest.err 12057 PKG_CONFIG_MIN_VERSION=0.9.0
12052 } && test -s conftest$ac_exeext && 12058 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12053 $as_test_x conftest$ac_exeext; then 12059 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12054 ac_cv_lib_dbus_1_dbus_bus_get=yes 12060 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
12055 else 12061
12056 echo "$as_me: failed program was:" >&5 12062 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12057 sed 's/^/| /' conftest.$ac_ext >&5 12063 { echo "$as_me:$LINENO: result: yes" >&5
12058 12064 echo "${ECHO_T}yes" >&6; }
12059 ac_cv_lib_dbus_1_dbus_bus_get=no 12065 succeeded=yes
12060 fi 12066
12061 12067 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12068 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
12063 conftest$ac_exeext conftest.$ac_ext 12069 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12064 LIBS=$ac_check_lib_save_LIBS 12070 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12065 fi 12071 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
12066 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_bus_get" >&5 12072
12067 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_bus_get" >&6; } 12073 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12068 if test $ac_cv_lib_dbus_1_dbus_bus_get = yes; then 12074 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
12069 HAVE_DBUS=yes 12075 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12070 fi 12076 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12077 echo "${ECHO_T}$DBUS_LIBS" >&6; }
12078 else
12079 { echo "$as_me:$LINENO: result: no" >&5
12080 echo "${ECHO_T}no" >&6; }
12081 DBUS_CFLAGS=""
12082 DBUS_LIBS=""
12083 ## If we have a custom action on failure, don't print errors, but
12084 ## do set a variable so people can do so.
12085 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12086
12087 fi
12088
12089
12090
12091 else
12092 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12093 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12094 fi
12095 fi
12096
12097 if test $succeeded = yes; then
12098 HAVE_DBUS=yes
12099 else
12100 HAVE_DBUS=no
12101 fi
12071 12102
12072 if test "$HAVE_DBUS" = yes; then 12103 if test "$HAVE_DBUS" = yes; then
12073 12104
12074 cat >>confdefs.h <<\_ACEOF 12105 cat >>confdefs.h <<\_ACEOF
12075 #define HAVE_DBUS 1 12106 #define HAVE_DBUS 1
12076 _ACEOF 12107 _ACEOF
12077
12078 DBUS_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include"
12079
12080 DBUS_LIBS="-ldbus-1"
12081 12108
12082 fi 12109 fi
12083 fi 12110 fi
12084 12111
12085 ### Link with -lXft if available to work around a bug. 12112 ### Link with -lXft if available to work around a bug.
18558 /* confdefs.h. */ 18585 /* confdefs.h. */
18559 _ACEOF 18586 _ACEOF
18560 cat confdefs.h >>conftest.$ac_ext 18587 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF 18588 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h. */ 18589 /* end confdefs.h. */
18563 #include <sys/types.h> /* for off_t */ 18590 #include <stdio.h>
18564 #include <stdio.h>
18565 int 18591 int
18566 main () 18592 main ()
18567 { 18593 {
18568 int (*fp) (FILE *, off_t, int) = fseeko; 18594 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18569 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18570 ; 18595 ;
18571 return 0; 18596 return 0;
18572 } 18597 }
18573 _ACEOF 18598 _ACEOF
18574 rm -f conftest.$ac_objext conftest$ac_exeext 18599 rm -f conftest.$ac_objext conftest$ac_exeext
18604 _ACEOF 18629 _ACEOF
18605 cat confdefs.h >>conftest.$ac_ext 18630 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF 18631 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h. */ 18632 /* end confdefs.h. */
18608 #define _LARGEFILE_SOURCE 1 18633 #define _LARGEFILE_SOURCE 1
18609 #include <sys/types.h> /* for off_t */ 18634 #include <stdio.h>
18610 #include <stdio.h>
18611 int 18635 int
18612 main () 18636 main ()
18613 { 18637 {
18614 int (*fp) (FILE *, off_t, int) = fseeko; 18638 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18615 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18616 ; 18639 ;
18617 return 0; 18640 return 0;
18618 } 18641 }
18619 _ACEOF 18642 _ACEOF
18620 rm -f conftest.$ac_objext conftest$ac_exeext 18643 rm -f conftest.$ac_objext conftest$ac_exeext