[PATCH weston] Automatically generate weston.ini with the right paths

Neil Roberts neil at linux.intel.com
Sat Nov 23 01:22:25 PST 2013


Kristian Høgsberg <hoegsberg at gmail.com> writes:

> That's a nice idea.  Could we just generate it from configure.ac by
> listing it in AC_CONFIG_FILES?

Sadly that doesn't work because the autoconf expansions still include
variables for make. Eg, @bindir@ expands to ${exec_prefix}/bin. I think
that is needed so that you can use DESTDIR to change the prefix without
rerunning configure. This trick of doing it with sed is recommended in
the autoconf manual: http://is.gd/YivZyl (near the bottom).

> Also, I was thinking that we should add a comment to the top of the
> file saying that this is a sample weston.ini, that there's a
> weston.ini man page, and that you can copy the sample weston.ini to
> ~/.config/weston.ini or /etc/xdg/weston/weston.ini.

Yes, that would be nice. I didn't discover that until yesterday! Perhaps
that would make more sense as a separate patch.

Regards,
- Neil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20131123/47306e3e/attachment.pgp>


More information about the wayland-devel mailing list