How to conditionally compile plug-in source file to only support dhcpcd or dhclient?

Hi Dan,

Gentoo NM plugin has to read dhcp hostname and clientid from
configuration file of dhcpcd or dhclient.

Currently I just test whether the configuration file of dhcpcd or
dhclient exists to determine which one is used. Could I make use of the
switch "--with-dhcpcd=yes" to enable conditional compilation?
for example:
//handling dhcpcd configuration file
//handling dhclient configuration file

If this could be achieved, what should follow "#ifdef"? Should I include
any header file?

Mu Qiao
GnuPG fingerprint: 92B1 B0C4 8D14 F8C4 EFA5 3ACC 30B3 0DE4 17B1 57E9

Attachment: signature.asc
Description: OpenPGP digital signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]