@@ -99,6 +99,7 @@ pub struct Config {
99
99
// Fallback musl-root for all targets
100
100
pub musl_root : Option < PathBuf > ,
101
101
pub prefix : Option < PathBuf > ,
102
+ pub sysconfdir : Option < PathBuf > ,
102
103
pub docdir : Option < PathBuf > ,
103
104
pub bindir : Option < PathBuf > ,
104
105
pub libdir : Option < PathBuf > ,
@@ -166,6 +167,7 @@ struct Build {
166
167
#[ derive( RustcDecodable , Default , Clone ) ]
167
168
struct Install {
168
169
prefix : Option < String > ,
170
+ sysconfdir : Option < String > ,
169
171
docdir : Option < String > ,
170
172
bindir : Option < String > ,
171
173
libdir : Option < String > ,
@@ -317,6 +319,7 @@ impl Config {
317
319
318
320
if let Some ( ref install) = toml. install {
319
321
config. prefix = install. prefix . clone ( ) . map ( PathBuf :: from) ;
322
+ config. sysconfdir = install. sysconfdir . clone ( ) . map ( PathBuf :: from) ;
320
323
config. docdir = install. docdir . clone ( ) . map ( PathBuf :: from) ;
321
324
config. bindir = install. bindir . clone ( ) . map ( PathBuf :: from) ;
322
325
config. libdir = install. libdir . clone ( ) . map ( PathBuf :: from) ;
@@ -526,6 +529,9 @@ impl Config {
526
529
"CFG_PREFIX" => {
527
530
self . prefix = Some ( PathBuf :: from ( value) ) ;
528
531
}
532
+ "CFG_SYSCONFDIR" => {
533
+ self . sysconfdir = Some ( PathBuf :: from ( value) ) ;
534
+ }
529
535
"CFG_DOCDIR" => {
530
536
self . docdir = Some ( PathBuf :: from ( value) ) ;
531
537
}
0 commit comments