For the "-v" flag, dump the "libpcap" version number, if we were built
authorGuy Harris <guy@alum.mit.edu>
Thu, 4 Nov 1999 21:04:35 +0000 (21:04 -0000)
committerGuy Harris <guy@alum.mit.edu>
Thu, 4 Nov 1999 21:04:35 +0000 (21:04 -0000)
with "libpcap".

svn path=/trunk/; revision=974

gtk/main.c

index e974e7a3daac20bf43b6e8db2f0b7970e399abd5..655c89e5df3ec98e55c87884d83c0399f632cd3f 100644 (file)
@@ -1,6 +1,6 @@
 /* main.c
  *
- * $Id: main.c,v 1.30 1999/10/30 06:41:51 guy Exp $
+ * $Id: main.c,v 1.31 1999/11/04 21:04:35 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -628,6 +628,9 @@ main(int argc, char *argv[])
 #ifndef WIN32
   int                  opt;
   extern char         *optarg;
+#endif
+#ifdef HAVE_LIBPCAP
+  extern char         pcap_version[];
 #endif
   char                *pf_path;
   int                 pf_open_errno = 0;
@@ -724,16 +727,16 @@ main(int argc, char *argv[])
   /* Assemble the compile-time options */
   snprintf(comp_info_str, 256,
 #ifdef GTK_MAJOR_VERSION
-    "GTK+ %d.%d.%d, %s libpcap", GTK_MAJOR_VERSION, GTK_MINOR_VERSION,
+    "GTK+ %d.%d.%d, %s%s", GTK_MAJOR_VERSION, GTK_MINOR_VERSION,
     GTK_MICRO_VERSION,
 #else
-    "GTK+ (version unknown), %s libpcap",
+    "GTK+ (version unknown), %s%s",
 #endif
 
 #ifdef HAVE_LIBPCAP
-   "with"
+   "with libpcap ", pcap_version
 #else
-   "without"
+   "without libpcap", ""
 #endif
    );