path: root/configure.in
diff options
authorBalint Reczey <balint.reczey@ericsson.com>2010-08-01 10:45:42 +0000
committerBalint Reczey <balint.reczey@ericsson.com>2010-08-01 10:45:42 +0000
commita89c52939f265909c82e4ba14bf55f4529564cb8 (patch)
treed005452f072def279fb6d400af0fabae1954da9e /configure.in
parented7871ca54a08c7b173d4825bae5d2afb10cf868 (diff)
Use local copy of Wireshark documentation on UNIX if it's available.
Installation has to be done manually to the location specified by --docdir configure option. svn path=/trunk/; revision=33683
Diffstat (limited to 'configure.in')
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 75f7d9a6d7..e00431334e 100644
--- a/configure.in
+++ b/configure.in
@@ -654,6 +654,17 @@ datafiledir=`(
AC_DEFINE_UNQUOTED(DATAFILE_DIR,"$datafiledir", [Directory for data])
+# Create DOC_DIR #define for config.h
+ test "x$prefix" = xNONE && prefix=$ac_default_prefix
+ test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
+ # Ugly hack, but I don't see how this problem can be solved
+ # properly that DOC_DIR had a value starting with
+ # "${prefix}/" instead of e.g. "/usr/local/"
+ eval eval echo "$docdir"
+AC_DEFINE_UNQUOTED(DOC_DIR, "$docdir", [Directory for docs])
# GTK checks; we require GTK+ 2.4 or later.
# We don't add $GLIB_LIBS to LIBS, because we don't want to force all
# programs to be built with GTK+.