From 7a1fd4ecfdb3af30a23b4cd028a5c7402f1f6a38 Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Fri, 29 May 2009 15:15:42 -0400 Subject: Don't build the file instead of #if the whole file --- libempathy-gtk/Makefile.am | 10 ++++++++-- libempathy-gtk/empathy-location-manager.c | 3 --- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/Makefile.am b/libempathy-gtk/Makefile.am index b31bd3f4c..4fd0fa562 100644 --- a/libempathy-gtk/Makefile.am +++ b/libempathy-gtk/Makefile.am @@ -47,7 +47,6 @@ libempathy_gtk_handwritten_source = \ empathy-video-src.c \ empathy-video-widget.c \ empathy-irc-network-dialog.c \ - empathy-location-manager.c \ empathy-log-window.c \ empathy-new-message-dialog.c \ empathy-presence-chooser.c \ @@ -106,7 +105,6 @@ libempathy_gtk_headers = \ empathy-video-widget.h \ empathy-images.h \ empathy-irc-network-dialog.h \ - empathy-location-manager.h \ empathy-log-window.h \ empathy-new-message-dialog.h \ empathy-presence-chooser.h \ @@ -119,6 +117,14 @@ libempathy_gtk_headers = \ empathy-theme-manager.h \ empathy-ui-utils.h +if HAVE_GEOCLUE +libempathy_gtk_handwritten_source += \ + empathy-location-manager.c + +libempathy_gtk_headers += \ + empathy-location-manager.h +endif + check_c_sources = \ $(libempathy_gtk_handwritten_source) \ $(libempathy_gtk_headers) diff --git a/libempathy-gtk/empathy-location-manager.c b/libempathy-gtk/empathy-location-manager.c index 7009a91db..5842e5f73 100644 --- a/libempathy-gtk/empathy-location-manager.c +++ b/libempathy-gtk/empathy-location-manager.c @@ -28,7 +28,6 @@ #include -#if HAVE_GEOCLUE #include #include @@ -652,5 +651,3 @@ resource_cb (EmpathyConf *conf, if (priv->is_setup) update_resources (manager); } - -#endif -- cgit v1.2.3