Skip to content

Commit

Permalink
Merge pull request allinurl#1101 from millsjustin/config-options
Browse files Browse the repository at this point in the history
added configure arguments to --version output
  • Loading branch information
allinurl authored Apr 28, 2018
2 parents 999b35d + 2a73b19 commit d1ee0c8
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/commons.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,39 @@ display_version (void)
fprintf (stdout, "GoAccess - %s.\n", GO_VERSION);
fprintf (stdout, "%s: http://goaccess.io\n", INFO_MORE_INFO);
fprintf (stdout, "Copyright (C) 2009-2016 by Gerardo Orellana\n");
fprintf (stdout, "\nBuild configure arguments:\n");
#ifdef DEBUG
fprintf (stdout, " --enable-debug\n");
#endif
#ifdef HAVE_NCURSESW_NCURSES_H
fprintf (stdout, " --enable-utf8\n");
#endif
#ifdef HAVE_LIBGEOIP
fprintf (stdout, " --enable-geoip=legacy\n");
#endif
#ifdef HAVE_LIBMAXMINDDB
fprintf (stdout, " --enable-geoip=mmdb\n");
#endif
#ifdef TCB_MEMHASH
fprintf (stdout, " --enable-tcb=memhash\n");
#endif
#ifdef TCB_BTREE
fprintf (stdout, " --enable-tcb=btree\n");
#endif
#if defined(TCB_MEMHASH) || defined(TCB_BTREE)
#ifndef HAVE_ZLIB
fprintf (stdout, " --disable-zlib\n");
#endif
#ifndef HAVE_BZ2
fprintf (stdout, " --disable-bzip\n");
#endif
#endif
#ifdef WITH_GETLINE
fprintf (stdout, " --with-getline\n");
#endif
#ifdef HAVE_LIBSSL
fprintf (stdout, " --with-openssl\n");
#endif
}

/* Get the enumerated value given a string.
Expand Down

0 comments on commit d1ee0c8

Please sign in to comment.