@@ -7463,6 +7463,185 @@ fi
74637463fi
74647464
74657465
7466+ #
7467+ # Check for DocBook and tools
7468+ #
7469+ for ac_prog in onsgmls nsgmls
7470+ do
7471+ # Extract the first word of "$ac_prog", so it can be a program name with args.
7472+ set dummy $ac_prog ; ac_word=$2
7473+ echo $ac_n " checking for $ac_word " " ... $ac_c " 1>&6
7474+ echo " configure:7475: checking for $ac_word " >&5
7475+ if eval " test \" ` echo ' $' ' {' ac_cv_prog_NSGMLS' +set}' ` \" = set" ; then
7476+ echo $ac_n " (cached) $ac_c " 1>&6
7477+ else
7478+ if test -n " $NSGMLS " ; then
7479+ ac_cv_prog_NSGMLS=" $NSGMLS " # Let the user override the test.
7480+ else
7481+ IFS=" ${IFS= } " ; ac_save_ifs=" $IFS " ; IFS=" :"
7482+ ac_dummy=" $PATH "
7483+ for ac_dir in $ac_dummy ; do
7484+ test -z " $ac_dir " && ac_dir=.
7485+ if test -f $ac_dir /$ac_word ; then
7486+ ac_cv_prog_NSGMLS=" $ac_prog "
7487+ break
7488+ fi
7489+ done
7490+ IFS=" $ac_save_ifs "
7491+ fi
7492+ fi
7493+ NSGMLS=" $ac_cv_prog_NSGMLS "
7494+ if test -n " $NSGMLS " ; then
7495+ echo " $ac_t " " $NSGMLS " 1>&6
7496+ else
7497+ echo " $ac_t " " no" 1>&6
7498+ fi
7499+
7500+ test -n " $NSGMLS " && break
7501+ done
7502+
7503+ # If you don't have nsgmls you won't get very far, so save the cycles.
7504+ if test -n " $NSGMLS " ; then
7505+ for ac_prog in openjade jade
7506+ do
7507+ # Extract the first word of "$ac_prog", so it can be a program name with args.
7508+ set dummy $ac_prog ; ac_word=$2
7509+ echo $ac_n " checking for $ac_word " " ... $ac_c " 1>&6
7510+ echo " configure:7511: checking for $ac_word " >&5
7511+ if eval " test \" ` echo ' $' ' {' ac_cv_prog_JADE' +set}' ` \" = set" ; then
7512+ echo $ac_n " (cached) $ac_c " 1>&6
7513+ else
7514+ if test -n " $JADE " ; then
7515+ ac_cv_prog_JADE=" $JADE " # Let the user override the test.
7516+ else
7517+ IFS=" ${IFS= } " ; ac_save_ifs=" $IFS " ; IFS=" :"
7518+ ac_dummy=" $PATH "
7519+ for ac_dir in $ac_dummy ; do
7520+ test -z " $ac_dir " && ac_dir=.
7521+ if test -f $ac_dir /$ac_word ; then
7522+ ac_cv_prog_JADE=" $ac_prog "
7523+ break
7524+ fi
7525+ done
7526+ IFS=" $ac_save_ifs "
7527+ fi
7528+ fi
7529+ JADE=" $ac_cv_prog_JADE "
7530+ if test -n " $JADE " ; then
7531+ echo " $ac_t " " $JADE " 1>&6
7532+ else
7533+ echo " $ac_t " " no" 1>&6
7534+ fi
7535+
7536+ test -n " $JADE " && break
7537+ done
7538+
7539+
7540+ echo $ac_n " checking for DocBook V3.1" " ... $ac_c " 1>&6
7541+ echo " configure:7542: checking for DocBook V3.1" >&5
7542+ if eval " test \" ` echo ' $' ' {' pgac_cv_check_docbook' +set}' ` \" = set" ; then
7543+ echo $ac_n " (cached) $ac_c " 1>&6
7544+ else
7545+ cat > conftest.sgml << EOF
7546+ <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
7547+ <book>
7548+ <title>test</title>
7549+ <chapter>
7550+ <title>random</title>
7551+ <sect1>
7552+ <title>testsect</title>
7553+ <para>text</para>
7554+ </sect1>
7555+ </chapter>
7556+ </book>
7557+ EOF
7558+
7559+ ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
7560+ if test $? -eq 0; then
7561+ pgac_cv_check_docbook=yes
7562+ else
7563+ pgac_cv_check_docbook=no
7564+ fi
7565+ rm -f conftest.sgml
7566+ fi
7567+
7568+ echo " $ac_t " " $pgac_cv_check_docbook " 1>&6
7569+
7570+ have_docbook=$pgac_cv_check_docbook
7571+
7572+
7573+ echo $ac_n " checking for DocBook stylesheets" " ... $ac_c " 1>&6
7574+ echo " configure:7575: checking for DocBook stylesheets" >&5
7575+ if eval " test \" ` echo ' $' ' {' pgac_cv_path_stylesheets' +set}' ` \" = set" ; then
7576+ echo $ac_n " (cached) $ac_c " 1>&6
7577+ else
7578+ if test -n " $DOCBOOKSTYLE " ; then
7579+ pgac_cv_path_stylesheets=$DOCBOOKSTYLE
7580+ else
7581+ for pgac_prefix in /usr /usr/local /opt; do
7582+ for pgac_infix in share lib; do
7583+ for pgac_postfix in \
7584+ sgml/stylesheets/nwalsh-modular \
7585+ sgml/stylesheets/docbook \
7586+ sgml/docbook/dsssl/modular
7587+ do
7588+ pgac_candidate=$pgac_prefix /$pgac_infix /$pgac_postfix
7589+ if test -r " $pgac_candidate /html/docbook.dsl" \
7590+ && test -r " $pgac_candidate /print/docbook.dsl"
7591+ then
7592+ pgac_cv_path_stylesheets=$pgac_candidate
7593+ break 3
7594+ fi
7595+ done
7596+ done
7597+ done
7598+ fi
7599+ fi
7600+
7601+ DOCBOOKSTYLE=$pgac_cv_path_stylesheets
7602+
7603+ if test -n " $DOCBOOKSTYLE " ; then
7604+ echo " $ac_t " " $DOCBOOKSTYLE " 1>&6
7605+ else
7606+ echo " $ac_t " " no" 1>&6
7607+ fi
7608+ for ac_prog in sgmlspl
7609+ do
7610+ # Extract the first word of "$ac_prog", so it can be a program name with args.
7611+ set dummy $ac_prog ; ac_word=$2
7612+ echo $ac_n " checking for $ac_word " " ... $ac_c " 1>&6
7613+ echo " configure:7614: checking for $ac_word " >&5
7614+ if eval " test \" ` echo ' $' ' {' ac_cv_prog_SGMLSPL' +set}' ` \" = set" ; then
7615+ echo $ac_n " (cached) $ac_c " 1>&6
7616+ else
7617+ if test -n " $SGMLSPL " ; then
7618+ ac_cv_prog_SGMLSPL=" $SGMLSPL " # Let the user override the test.
7619+ else
7620+ IFS=" ${IFS= } " ; ac_save_ifs=" $IFS " ; IFS=" :"
7621+ ac_dummy=" $PATH "
7622+ for ac_dir in $ac_dummy ; do
7623+ test -z " $ac_dir " && ac_dir=.
7624+ if test -f $ac_dir /$ac_word ; then
7625+ ac_cv_prog_SGMLSPL=" $ac_prog "
7626+ break
7627+ fi
7628+ done
7629+ IFS=" $ac_save_ifs "
7630+ fi
7631+ fi
7632+ SGMLSPL=" $ac_cv_prog_SGMLSPL "
7633+ if test -n " $SGMLSPL " ; then
7634+ echo " $ac_t " " $SGMLSPL " 1>&6
7635+ else
7636+ echo " $ac_t " " no" 1>&6
7637+ fi
7638+
7639+ test -n " $SGMLSPL " && break
7640+ done
7641+
7642+ fi
7643+
7644+
74667645# Finally ready to produce output files ...
74677646
74687647if test x" $abs_top_srcdir " ! = x" $abs_top_builddir " ; then
@@ -7686,6 +7865,11 @@ s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
76867865s%@TCLSH@%$TCLSH %g
76877866s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH %g
76887867s%@TK_CONFIG_SH@%$TK_CONFIG_SH %g
7868+ s%@NSGMLS@%$NSGMLS %g
7869+ s%@JADE@%$JADE %g
7870+ s%@have_docbook@%$have_docbook %g
7871+ s%@DOCBOOKSTYLE@%$DOCBOOKSTYLE %g
7872+ s%@SGMLSPL@%$SGMLSPL %g
76897873
76907874CEOF
76917875EOF
0 commit comments