]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
dhcpcd --version now shows what compile time options were used.
authorRoy Marples <roy@marples.name>
Mon, 22 Oct 2007 13:06:18 +0000 (13:06 +0000)
committerRoy Marples <roy@marples.name>
Mon, 22 Oct 2007 13:06:18 +0000 (13:06 +0000)
ChangeLog
dhcpcd.c

index 9cca3ff38561bd23399998bfdb1bbed58f58590e..d3d393b209630d85551a7a04e2e2e53968dd7bf7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,5 @@
+dhcpcd --version now shows what compile time options were used.
+
 dhcpcd-3.1.7
 Add warnings about requesting a link local address.
 Always add a link local route unless we're given a non-private
index e053bf2c3150a2be29c7607fb3fe807a1c07d34c..2f0c4bbff3f49b9784ca7a32ea295c5820a5a086 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -391,8 +391,35 @@ int main(int argc, char **argv)
                                exit (EXIT_FAILURE);
                }
        }
-       if (doversion)
+       if (doversion) {
                printf (""PACKAGE" "VERSION"\n");
+               printf ("Compile time options:"
+#ifdef ENABLE_ARP
+                               " ARP"
+#endif
+#ifdef ENABLE_DUID
+                               " DUID"
+#endif
+#ifdef ENABLE_INFO
+                               " INFO"
+#endif
+#ifdef ENABLE_INFO_COMPAT
+                               " INFO_COMPAT"
+#endif
+#ifdef ENABLE_IPV4LL
+                               " IPV4LL"
+#endif
+#ifdef ENABLE_NIS
+                               " NIS"
+#endif
+#ifdef ENABLE_NTP
+                               " NTP"
+#endif
+#ifdef THERE_IS_NO_FORK
+                               " THERE_IS_NO_FORK"
+#endif
+                               "\n");
+       }
 
        if (dohelp)
                usage ();