aboutsummaryrefslogtreecommitdiff
path: root/src/app/config/config.c
diff options
context:
space:
mode:
authorMicah Elizabeth Scott <beth@torproject.org>2023-03-08 09:08:23 -0800
committerMicah Elizabeth Scott <beth@torproject.org>2023-05-10 07:38:28 -0700
commit9d1a57397739b869ab102783b858889bcc2e5066 (patch)
treed4ebeb078074afba8e9f311199fef9c57e43314c /src/app/config/config.c
parent557eb814863285986039699ce92c6c4f11ee7426 (diff)
downloadtor-9d1a57397739b869ab102783b858889bcc2e5066.tar.gz
tor-9d1a57397739b869ab102783b858889bcc2e5066.zip
configure: Add --enable-gpl option
This change on its own doesn't use the option for anything, but it includes support for configure and a message in 'tor --version' Signed-off-by: Micah Elizabeth Scott <beth@torproject.org>
Diffstat (limited to 'src/app/config/config.c')
-rw-r--r--src/app/config/config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c
index 0618622db9..cb71d0fb6d 100644
--- a/src/app/config/config.c
+++ b/src/app/config/config.c
@@ -4476,6 +4476,10 @@ options_init_from_torrc(int argc, char **argv)
if (config_line_find(cmdline_only_options, "--version")) {
printf("Tor version %s.\n",get_version());
+#ifdef ENABLE_GPL
+ printf("This build of Tor is covered by the GNU General Public License "
+ "(https://www.gnu.org/licenses/gpl-3.0.en.html)\n");
+#endif
printf("Tor is running on %s with Libevent %s, "
"%s %s, Zlib %s, Liblzma %s, Libzstd %s and %s %s as libc.\n",
get_uname(),