dnl
-dnl Support for packaging CUPS in a Snap and have it work with client Snaps.
+dnl Support for packaging CUPS in different kinds of containers.
dnl
dnl Copyright © 2021 by OpenPrinting
dnl
dnl information.
dnl
+AC_ARG_WITH([container], AS_HELP_STRING([--with-container=...], [configure to use in container ('none', 'snap')]))
+AC_ARG_WITH([container_name], AS_HELP_STRING([--with-container-name=...], [specify the container name (default='cups')]))
+
+
+
+
AC_ARG_ENABLE([snapped_cupsd], AS_HELP_STRING([--enable-snapped-cupsd], [enable support for packaging CUPS in a Snap]))
AC_ARG_ENABLE([snapped_clients], AS_HELP_STRING([--enable-snapped-clients], [enable support for CUPS controlling admin access from snapped clients]))
AC_ARG_WITH([our-snap-name], AS_HELP_STRING([--with-our-snap-name], [Set name of the Snap we are snapped in, only needed with --enable-snapped-cupsd, default=cups]), [
#undef HAVE_SYS_STATVFS_H
#undef HAVE_SYS_VFS_H
-/*
- * Do we want Snap packaging support and have the needed libraries and
- * utilities?
- */
-
-#undef HAVE_APPARMOR
-#undef HAVE_SNAPDGLIB
-#undef HAVE_SNAPD_CLIENT_RUN_SNAPCTL2_SYNC
-#undef HAVE_SNAPCTL_IS_CONNECTED
-#undef OUR_SNAP_NAME
-#undef SNAPCTL
-#undef CUPS_CONTROL_SLOT
-#undef SUPPORT_SNAPPED_CUPSD
-#undef SUPPORT_SNAPPED_CLIENTS
/*
* Location of macOS localization bundle, if any.
# endif /* __GNUC__ || __STDC_VERSION__ */
#endif /* !HAVE_ABS && !abs */
+
+/*
+ * Do we have snap container support enabled?
+ */
+
+#undef CUPS_SNAP_NAME
+#undef CUPS_SNAP_CONTROL_SLOT
+
+#undef HAVE_APPARMOR
+#undef HAVE_SNAPDGLIB
+#undef HAVE_SNAPD_CLIENT_RUN_SNAPCTL2_SYNC
+#undef HAVE_SNAPCTL_IS_CONNECTED
+#undef SNAPCTL
+#undef SUPPORT_SNAPPED_CUPSD
+#undef SUPPORT_SNAPPED_CLIENTS
+
+
#endif /* !_CUPS_CONFIG_H_ */
sinclude(config-scripts/cups-pam.m4)
sinclude(config-scripts/cups-largefile.m4)
sinclude(config-scripts/cups-dnssd.m4)
-sinclude(config-scripts/cups-snap.m4)
+sinclude(config-scripts/cups-container.m4)
sinclude(config-scripts/cups-startup.m4)
sinclude(config-scripts/cups-defaults.m4)