Opened 10 years ago

Closed 10 years ago

#655 closed request (fixed)

avoid expanding variables in yat.pc

Reported by: Peter Owned by: Peter
Priority: minor Milestone: yat 0.8
Component: build Version: trunk
Keywords: Cc:

Description

yat.pc typically contains

prefix=/usr/local
exec_prefix=/usr/local
libdir=/usr/local/lib
includedir=/usr/local/include

which is sub-optimal because if we set prefix via pkg-config, we only change prefix and not libdir and includedir. I would prefer something similar to what the Makefile looks like but in the same time we should support that someone does for example

./configure make prefix=/opt/local

or

./configure make exec_prefix=/opt/local

Change History (3)

comment:1 Changed 10 years ago by Peter

Summary: avoid expanding variables in yat.psavoid expanding variables in yat.pc

comment:2 Changed 10 years ago by Peter

Milestone: yat 0.x+yat 0.8
Status: newassigned

comment:3 Changed 10 years ago by Peter

Resolution: fixed
Status: assignedclosed

(In [2418]) fixes #655. add a helper script, gen-yat-pc.sh, that generates yat.pc. Variables are now kept implicit if possible, for example, exec_prefix=${prefix} and similar for includedir and libdir which are defined via ${prefix} and ${exec_prefix}, respectively. Added yat-pc-check that is called within maintainer-check to check that generation of yat.pc is correct with different combinations of arguments to configure and make.

Note: See TracTickets for help on using tickets.