summaryrefslogtreecommitdiff
path: root/src/mkhelp.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-03-26 13:22:10 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-03-26 13:22:10 +0100
commit38d582ff541353d738858299d4a2b78bafac03ed (patch)
tree0995935dde4ac76e41ccfd376cff79114e6db21a /src/mkhelp.pl
parent5a327f39d5e0d30838cc6be68e718bfcdfe0c39f (diff)
downloadcurl-38d582ff541353d738858299d4a2b78bafac03ed.tar.gz
mkhelp: generate code for --disable-manual as well
This allows configure --disable-manual to run and build without having to regenerate the src/tool_hugehelp.c file which otherwise is necessary since we ship tarballs with that file present. Reported-by: Remi Gacogne Bug: http://curl.haxx.se/bug/view.cgi?id=1350
Diffstat (limited to 'src/mkhelp.pl')
-rw-r--r--src/mkhelp.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mkhelp.pl b/src/mkhelp.pl
index 444b669ba..7ed86f7cd 100644
--- a/src/mkhelp.pl
+++ b/src/mkhelp.pl
@@ -6,7 +6,7 @@
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
-# Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -256,6 +256,10 @@ foot();
sub foot {
print <<FOOT
+#else /* !USE_MANUAL */
+/* built-in manual is disabled, blank function */
+#include "tool_hugehelp.h"
+void hugehelp(void) {}
#endif /* USE_MANUAL */
FOOT
;