I have a header file named api.h
which contains my library's public functions. I would like the function void func_xxx();
to be declared in api.h
only if the user enables it using ./configure --enable-xxx
. Is this possible? Ideally I do not want to use #ifdef
for this? I know how to implement the --enable-xxx
flag in my configure.ac
script but I do not know how to add the function declaration to api.h
if --enable-xxx
is used.
Thanks for your help