widget-factory: Remove libcanberra support
GTK cannot depend on libcanberra-gtk which depends on GTK. This causes a circular dependency and is especially neat if installed GTK is different enough from uninstalled GTK.
This commit is contained in:
		
							
								
								
									
										38
									
								
								configure.ac
									
									
									
									
									
								
							
							
						
						
									
										38
									
								
								configure.ac
									
									
									
									
									
								
							| @ -1677,43 +1677,6 @@ if test "$have_colord" = "yes"; then | ||||
| fi | ||||
| AM_CONDITIONAL(HAVE_COLORD, test "x$have_colord" = "xyes") | ||||
|  | ||||
| ################################################## | ||||
| # Check for libcanberra (only used in examples) | ||||
| ################################################## | ||||
|  | ||||
| AC_ARG_ENABLE(libcanberra, | ||||
|               [AS_HELP_STRING([--enable-libcanberra], | ||||
|                               [enable libcanberra support in examples [default=auto]])], | ||||
|               [enable_libcanberra="$enableval"], | ||||
|               [enable_libcanberra=auto]) | ||||
|  | ||||
| if test "$enable_x11_backend" != "yes"; then | ||||
|   enable_libcanberra=no | ||||
| fi | ||||
|  | ||||
| AC_MSG_CHECKING([whether to use libcanberra]) | ||||
| if test "$enable_libcanberra" != "no"; then | ||||
|   AC_MSG_RESULT([yes]) | ||||
| else | ||||
|   AC_MSG_RESULT([no]) | ||||
| fi | ||||
|  | ||||
| have_libcanberra=no | ||||
| if test "$enable_libcanberra" != "no"; then | ||||
|     PKG_CHECK_MODULES(LIBCANBERRA, libcanberra-gtk3, | ||||
|                       have_libcanberra=yes, have_libcanberra=no) | ||||
|     if test "$enable_libcanberra" = "yes"; then | ||||
|         if test "$have_libcanberra" = "no"; then | ||||
|             AC_MSG_ERROR([--enable-libcanberra specified, but not available]) | ||||
|         fi | ||||
|     fi | ||||
| fi | ||||
|  | ||||
| if test "$have_libcanberra" = "yes"; then | ||||
|     AC_DEFINE(HAVE_LIBCANBERRA, 1, [define if we have libcanberra]) | ||||
| fi | ||||
| AM_CONDITIONAL(HAVE_LIBCANBERRA, test "x$have_libcanberra" = "xyes") | ||||
|  | ||||
| ################################################## | ||||
| # Checks for gtk-doc and docbook-tools | ||||
| ################################################## | ||||
| @ -1988,7 +1951,6 @@ echo "        Print backends:       $PRINT_BACKENDS" | ||||
| echo "        Dynamic modules:      $build_dynamic_modules" | ||||
| echo "        Included immodules:   $included_immodules" | ||||
| echo "        colord support:       $have_colord" | ||||
| echo "        libcanberra support:  $have_libcanberra" | ||||
| echo "        Introspection:        $found_introspection" | ||||
| echo "        Debugging:            $enable_debug" | ||||
| echo "        Documentation:        $enable_gtk_doc" | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Benjamin Otte
					Benjamin Otte