From 2569c54743c887ec6fbbba74efe56fb113b933fc Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Fri, 10 May 2013 16:07:44 +0200 Subject: docs: make 'gmake dist-docs' work doc: buildsystem fixes - use correct pathes (make gmake dist-docs from toplevel directory work) - configure detects perl as tools/configure does Signed-off-by: Christoph Egger Reviewed-by: Matthew Wilson Acked-by: Ian Campbell [ ijc -- reran autogen.sh ] --- docs/configure | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) (limited to 'docs/configure') diff --git a/docs/configure b/docs/configure index d623d19446..a778bda09a 100755 --- a/docs/configure +++ b/docs/configure @@ -559,6 +559,7 @@ PACKAGE_URL='http://www.xen.org/' ac_unique_file="misc/xen-command-line.markdown" ac_subst_vars='LTLIBOBJS LIBOBJS +PERL MARKDOWN POD2TEXT POD2HTML @@ -613,7 +614,8 @@ FIG2DEV POD2MAN POD2HTML POD2TEXT -MARKDOWN' +MARKDOWN +PERL' # Initialize some variables set by options. @@ -1227,6 +1229,7 @@ Some influential environment variables: POD2HTML Path to pod2html tool POD2TEXT Path to pod2text tool MARKDOWN Path to markdown tool + PERL Path to Perl parser Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. @@ -1701,6 +1704,8 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + # Extract the first word of "fig2dev", so it can be a program name with args. set dummy fig2dev; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 @@ -1950,6 +1955,53 @@ $as_echo "$as_me: WARNING: markdown is not available so some documentation won't fi + +# Extract the first word of "perl", so it can be a program name with args. +set dummy perl; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_PERL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $PERL in + [\\/]* | ?:[\\/]*) + ac_cv_path_PERL="$PERL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" + ;; +esac +fi +PERL=$ac_cv_path_PERL +if test -n "$PERL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 +$as_echo "$PERL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test x"${PERL}" = x"no" +then + as_fn_error $? "Unable to find perl, please install perl" "$LINENO" 5 +fi + cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure -- cgit v1.2.3