cburstedde / libsc

The "sc" auxiliary library
www.p4est.org/
GNU Lesser General Public License v2.1
35 stars 34 forks source link

sc_include.m4: prefix the HAVE_JSON shell variable #137

Closed cburstedde closed 11 months ago

cburstedde commented 12 months ago

Use prefix for HAVE_JSON shell variable

Proposed changes: in the autoconf code, move the AC_SUBST macro into the JSON check macro itself.

cburstedde commented 12 months ago

I'm wondering whether the have* variables etc. in the pkgconfig file should be prefixed with sc?

tim-griesbach commented 12 months ago

This looks good to me!

I'm wondering whether the have* variables etc. in the pkgconfig file should be prefixed with sc?

Since we already use libsc_CC and libsc_CFLAGS in pkgconf.pc.in it may be more consistent to also use prefixes for the remaining variables. If we use prefixes for all variables, we may want to decide whether we use sc_ or libsc_ throughout the pkgconf.pc.in file.

cburstedde commented 11 months ago

This looks good to me!

Thanks for checking!

I'm wondering whether the have* variables etc. in the pkgconfig file should be prefixed with sc?

Since we already use libsc_CC and libsc_CFLAGS in pkgconf.pc.in it may be more consistent to also use prefixes for the remaining variables. If we use prefixes for all variables, we may want to decide whether we use sc_ or libsc_ throughout the pkgconf.pc.in file.

I agree, a common libsc_ prefix would be nice. @scivision, would there be consequences to prefix have_mpi, have_json, build_zlib and debug_build that we'd need to catch elsewhere?

cburstedde commented 11 months ago

Merging for now. It seems we have little test coverage and user feedback wrt. pkgconfig. Any experts out there?