summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2009-09-20 13:45:47 +0530
committerMukund Sivaraman <muks@banu.com>2009-09-20 13:45:47 +0530
commit0978decbacde880b990e6d7deba09607ea4a7d84 (patch)
treee08e79f5f065ff5469cbec46b309df0c6ad3dbc8
parenta1725f6297b365818ecb269130f780448cdd14ad (diff)
downloadtinyproxy-0978decbacde880b990e6d7deba09607ea4a7d84.tar.gz
tinyproxy-0978decbacde880b990e6d7deba09607ea4a7d84.zip
build: Rename autoconf variable
Diffstat (limited to '')
-rw-r--r--configure.ac11
-rw-r--r--src/main.c4
2 files changed, 6 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index 8697606..3eb860d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -57,17 +57,14 @@ AM_CONDITIONAL(TINYPROXY_UNSTABLE, test "x$TINYPROXY_UNSTABLE" = "xyes")
dnl Check if we're compiling on a weird platform :)
AC_USE_SYSTEM_EXTENSIONS
-dnl
-dnl Command line options
-dnl
-dnl Set the URL name for find the statistics of tinyproxy
-AH_TEMPLATE([DEFAULT_STATHOST],
+dnl Set the domain name for find the statistics of tinyproxy
+AH_TEMPLATE([TINYPROXY_STATHOST],
[This controls remote proxy stats display.])
AC_ARG_WITH(stathost,
[AC_HELP_STRING([--with-stathost=HOST], [Default status host])],
- [AC_DEFINE_UNQUOTED(DEFAULT_STATHOST, "$withval")],
- [AC_DEFINE_UNQUOTED(DEFAULT_STATHOST, "tinyproxy.stats")])
+ [AC_DEFINE_UNQUOTED(TINYPROXY_STATHOST, "$withval")],
+ [AC_DEFINE_UNQUOTED(TINYPROXY_STATHOST, "tinyproxy.stats")])
dnl Add compiler-specific optimization flags
TP_ARG_ENABLE(debug,
diff --git a/src/main.c b/src/main.c
index a6dfb05..c5d080f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -350,8 +350,8 @@ main (int argc, char **argv)
if (!config.stathost) {
log_message (LOG_INFO, "Setting stathost to \"%s\".",
- DEFAULT_STATHOST);
- config.stathost = DEFAULT_STATHOST;
+ TINYPROXY_STATHOST);
+ config.stathost = TINYPROXY_STATHOST;
}
if (!config.user) {