diff options
author | Manish Katiyar <mkatiyar@gmail.com> | 2008-04-14 17:20:03 +0530 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-04-21 20:30:48 -0400 |
commit | 7321d94eb084ff6164ff3588f86332a420919373 (patch) | |
tree | 718e62df372686503d0aea01c415ad08b1abf50a | |
parent | 8bcaaabb1a023af4852dbf0dba76249982c62e40 (diff) | |
download | e2fsprogs-7321d94eb084ff6164ff3588f86332a420919373.tar.gz |
Fix "make docs" rule in Makefile for doc folder.
Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rwxr-xr-x | configure | 56 | ||||
-rw-r--r-- | configure.in | 14 | ||||
-rw-r--r-- | doc/Makefile.in | 2 |
3 files changed, 70 insertions, 2 deletions
@@ -747,6 +747,7 @@ PERL LDCONFIG AR STRIP +MAKEINFO BUILD_CC SIZEOF_SHORT SIZEOF_INT @@ -11624,6 +11625,58 @@ else STRIP="$ac_cv_prog_STRIP" fi +# Extract the first word of "makeinfo", so it can be a program name with args. +set dummy makeinfo; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_MAKEINFO+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$MAKEINFO"; then + ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. +else +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_prog_MAKEINFO="makeinfo" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +MAKEINFO=$ac_cv_prog_MAKEINFO +if test -n "$MAKEINFO"; then + { echo "$as_me:$LINENO: result: $MAKEINFO" >&5 +echo "${ECHO_T}$MAKEINFO" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + +if test "_$MAKEINFO" = "_"; then + MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" +else + case "$MAKEINFO" in + */missing.*) + { echo "$as_me:$LINENO: WARNING: +*** Makeinfo is missing. Info documentation will not be built." >&5 +echo "$as_me: WARNING: +*** Makeinfo is missing. Info documentation will not be built." >&2;} + ;; + *) + ;; + esac +fi + # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: @@ -16167,6 +16220,7 @@ PERL!$PERL$ac_delim LDCONFIG!$LDCONFIG$ac_delim AR!$AR$ac_delim STRIP!$STRIP$ac_delim +MAKEINFO!$MAKEINFO$ac_delim BUILD_CC!$BUILD_CC$ac_delim SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim SIZEOF_INT!$SIZEOF_INT$ac_delim @@ -16194,7 +16248,7 @@ LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 diff --git a/configure.in b/configure.in index 157816e9..d057af54 100644 --- a/configure.in +++ b/configure.in @@ -615,6 +615,20 @@ AC_PATH_PROG(LDCONFIG, ldconfig, :) AC_CHECK_TOOL(AR, ar, ar) AC_CHECK_TOOL(RANLIB, ranlib, :) AC_CHECK_TOOL(STRIP, strip, :) +AC_CHECK_PROG(MAKEINFO, makeinfo, makeinfo, ) +if test "_$MAKEINFO" = "_"; then + MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" +else + case "$MAKEINFO" in + */missing.*) + AC_MSG_WARN([ +*** Makeinfo is missing. Info documentation will not be built.]) + ;; + *) + ;; + esac +fi +AC_SUBST(MAKEINFO) AC_PROG_INSTALL # See if we need a separate native compiler. if test $cross_compiling = no; then diff --git a/doc/Makefile.in b/doc/Makefile.in index 5494cf08..9c961f3a 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -13,7 +13,7 @@ INSTALL = @INSTALL@ DVI=texi2dvi DVIPS=dvips -o "$@" -INFO=makeinfo +INFO=@MAKEINFO@ HTML=texi2html all:: libext2fs.info libext2fs.dvi |