For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > September 2005 > Specifying sysconfdir file path in config.h with autoconf?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Specifying sysconfdir file path in config.h with autoconf?
Qaxi

2005-09-23, 7:58 am

Hi
I want to have a configuration file in the sysconfdir for my program,
but if
I put AC_DEFINE_UNQUOTED(CONFFILE, "$sysconfdir/file.conf"), I end up
with
the path being "${prefix}/etc/file.conf" which is pretty meaningless to
C.
I've seen people hack it by just saying "$prefix/etc/file.conf" in the
configure.in, but this doesn't seem to be the right thing to do.
Should I
do that, or is there a way to use the sysconfdir?


Petr klima

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com