From: Colin Patrick McCabe Date: Fri, 29 Oct 2010 19:10:28 +0000 (-0700) Subject: configure.ac: default to --enable-gtk X-Git-Tag: v0.23~72 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9f86a79d717ff84742c26d354ac79cd7f77696c6;p=ceph.git configure.ac: default to --enable-gtk Default to enabling gtk rather than disabling it. Gracefully handle cases where the user tries to enable it but it cannot be enabled. Makefile.am: Add missing headers to noinst_HEADERS. Signed-off-by: Colin McCabe --- diff --git a/configure.ac b/configure.ac index 5805ad818410..a4c14636cd2a 100644 --- a/configure.ac +++ b/configure.ac @@ -210,19 +210,16 @@ AC_CHECK_FUNC([sync_file_range], #AC_FUNC_UTIME_NULL #AC_CHECK_FUNCS([bzero fchdir fdatasync floor ftruncate getcwd gethostbyname gethostname gettimeofday inet_ntoa localtime_r memmove memset mkdir munmap pow rmdir select socket sqrt strcasecmp strchr strerror strstr utime]) -AC_ARG_WITH(gtk2, - AC_HELP_STRING([--with-gtk2], - [Build the graphical tools. Default=no]), - [HAVE_GTK2=yes],[HAVE_GTK2=no] - ) - -AM_CONDITIONAL(WITH_GTK2, [test "x$HAVE_GTK2" = "xyes"]) - -if test "x$HAVE_GTK2" == "xyes"; then - PKG_CHECK_MODULES(GTKMM, [gtkmm-2.4 >= 1.0.0]) - AC_DEFINE([HAVE_GTK2], [1], - [Define if you have GTK2]) -fi +AC_ARG_WITH([gtk2], + [AS_HELP_STRING([--with-gtk2], [Build the graphical tools. Default=yes.])], + [try_with_gtk2=$withval], + []) +AS_IF([test "x$try_with_gtk2" != "xno"], + [PKG_CHECK_MODULES(GTKMM, [gtkmm-2.4 >= 1.0.0], + [AC_DEFINE([HAVE_GTK2], [1], [we have gtk2])], + [try_with_gtk2=no + AC_MSG_RESULT([Sorry, a usable version of gtkmm was not found. We will build without it.])])]) +AM_CONDITIONAL(WITH_GTK2, [test "x$try_with_gtk2" != "xno"]) AC_CONFIG_HEADERS([src/acconfig.h]) AC_CONFIG_FILES([Makefile diff --git a/src/Makefile.am b/src/Makefile.am index 437f54a28ad7..a00f2f7cfeab 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -824,7 +824,9 @@ noinst_HEADERS = \ rgw/rgw_rest.h\ rgw/rgw_common.h\ rgw/rgw_user.h\ - sample.ceph.conf + sample.ceph.conf\ + tools/ceph.h\ + tools/gui.h all_sources = $(cmon_SOURCES) $(ceph_SOURCES) $(cephfs_SOURCES) $(cauthtool_SOURCES) $(monmaptool_SOURCES) \ $(crushtool_SOURCES) $(osdmaptool_SOURCES) $(cconf_SOURCES) $(mount_ceph_SOURCES) $(cmds_SOURCES) \