1 dnl macros to configure g10
4 dnl GNUPG_MSG_PRINT(STRING)
7 define(GNUPG_MSG_PRINT,
8 [ echo $ac_n "$1"" $ac_c" 1>&AC_FD_MSG
12 dnl GNUPG_CHECK_TYPEDEF(TYPE, HAVE_NAME)
13 dnl Check whether a typedef exists and create a #define $2 if it exists
15 AC_DEFUN(GNUPG_CHECK_TYPEDEF,
16 [ AC_MSG_CHECKING(for $1 typedef)
17 AC_CACHE_VAL(gnupg_cv_typedef_$1,
18 [AC_TRY_COMPILE([#include <stdlib.h>
19 #include <sys/types.h>], [
22 ], gnupg_cv_typedef_$1=yes, gnupg_cv_typedef_$1=no )])
23 AC_MSG_RESULT($gnupg_cv_typedef_$1)
24 if test "$gnupg_cv_typedef_$1" = yes; then
30 dnl GNUPG_FIX_HDR_VERSION(FILE, NAME)
31 dnl Make the version number in gcrypt/gcrypt.h the same as the one here.
32 dnl (this is easier than to have a .in file just for one substitution)
34 AC_DEFUN(GNUPG_FIX_HDR_VERSION,
35 [ sed "s/^#define $2 \".*/#define $2 \"$VERSION\"/" $srcdir/$1 > $srcdir/$1.tmp
36 if cmp -s $srcdir/$1 $srcdir/$1.tmp 2>/dev/null; then
40 if mv $srcdir/$1.tmp $srcdir/$1 ; then
44 *** Failed to fix the version string macro $2 in $1.
45 *** The old file has been saved as $1.tmp
48 AC_MSG_WARN([fixed the $2 macro in $1])
53 dnl GNUPG_CHECK_GNUMAKE
55 AC_DEFUN(GNUPG_CHECK_GNUMAKE,
57 if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
62 *** It seems that you are not using GNU make. Some make tools have serious
63 *** flaws and you may not be able to build this software at all. Before you
64 *** complain, please try GNU make: GNU make is easy to build and available
65 *** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
70 dnl GNUPG_CHECK_FAQPROG
72 AC_DEFUN(GNUPG_CHECK_FAQPROG,
73 [ AC_MSG_CHECKING(for faqprog.pl)
74 if faqprog.pl -V 2>/dev/null | grep '^faqprog.pl ' >/dev/null 2>&1; then
81 AC_MSG_RESULT($working_faqprog)
83 AM_CONDITIONAL(WORKING_FAQPROG, test "$working_faqprog" = "yes" )
85 if test $working_faqprog = no; then
88 *** It seems that the faqprog.pl program is not installed.
89 *** Unless you do not change the source of the FAQs it is not required.
90 *** The working version of this utility should be available at:
91 *** ftp://ftp.gnupg.org/pub/gcrypt/contrib/faqprog.pl
98 dnl GNUPG_LINK_FILES( SRC, DEST )
99 dnl same as AC_LINK_FILES, but collect the files to link in
100 dnl some special variables and do the link
101 dnl when GNUPG_DO_LINK_FILES is called
102 dnl This is a workaround for AC_LINK_FILES, because it does not work
103 dnl correct when using a caching scheme
105 define(GNUPG_LINK_FILES,
106 [ if test "x$wk_link_files_src" = "x"; then
107 wk_link_files_src="$1"
108 wk_link_files_dst="$2"
110 wk_link_files_src="$wk_link_files_src $1"
111 wk_link_files_dst="$wk_link_files_dst $2"
114 define(GNUPG_DO_LINK_FILES,
115 [ AC_LINK_FILES( $wk_link_files_src, $wk_link_files_dst )
121 dnl GNUPG_CHECK_ENDIAN
122 dnl define either LITTLE_ENDIAN_HOST or BIG_ENDIAN_HOST
124 define(GNUPG_CHECK_ENDIAN,
125 [ if test "$cross_compiling" = yes; then
126 AC_MSG_WARN(cross compiling; assuming little endianess)
128 AC_MSG_CHECKING(endianess)
129 AC_CACHE_VAL(gnupg_cv_c_endian,
130 [ gnupg_cv_c_endian=unknown
131 # See if sys/param.h defines the BYTE_ORDER macro.
132 AC_TRY_COMPILE([#include <sys/types.h>
133 #include <sys/param.h>], [
134 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
136 #endif], [# It does; now see whether it defined to BIG_ENDIAN or not.
137 AC_TRY_COMPILE([#include <sys/types.h>
138 #include <sys/param.h>], [
139 #if BYTE_ORDER != BIG_ENDIAN
141 #endif], gnupg_cv_c_endian=big, gnupg_cv_c_endian=little)])
142 if test "$gnupg_cv_c_endian" = unknown; then
143 AC_TRY_RUN([main () {
144 /* Are we little or big endian? From Harbison&Steele. */
148 char c[sizeof (long)];
151 exit (u.c[sizeof (long) - 1] == 1);
153 gnupg_cv_c_endian=little,
154 gnupg_cv_c_endian=big,
155 gnupg_cv_c_endian=little
159 AC_MSG_RESULT([$gnupg_cv_c_endian])
160 if test "$gnupg_cv_c_endian" = little; then
161 AC_DEFINE(LITTLE_ENDIAN_HOST)
163 AC_DEFINE(BIG_ENDIAN_HOST)
167 dnl GNUPG_CHECK_CACHE
169 define(GNUPG_CHECK_CACHE,
170 [ AC_MSG_CHECKING(cached information)
171 gnupg_hostcheck="$target"
172 AC_CACHE_VAL(gnupg_cv_hostcheck, [ gnupg_cv_hostcheck="$gnupg_hostcheck" ])
173 if test "$gnupg_cv_hostcheck" != "$gnupg_hostcheck"; then
174 AC_MSG_RESULT(changed)
175 AC_MSG_WARN(config.cache exists!)
176 AC_MSG_ERROR(you must do 'make distclean' first to compile for
177 different target or different parameters.)
184 ######################################################################
185 # Check for -fPIC etc (taken from libtool)
186 # This sets CFLAGS_PIC to the required flags
187 # NO_PIC to yes if it is not possible to
189 ######################################################################
192 define(GNUPG_CHECK_PIC,
193 [ AC_MSG_CHECKING(for option to create PIC)
196 if test "$cross_compiling" = yes; then
197 AC_MSG_RESULT(assume none)
199 if test "$GCC" = yes; then
204 # All rs/6000 code is PIC
205 # but is there any non-rs/6000 AIX platform?
213 # PIC (with -KPIC) is the default.
217 # FIXME - pic_flag is probably required for
218 # hppa*-osf* and i860-osf*
225 solaris2* | solaris7* )
240 rs6000 | powerpc | powerpcle)
241 # Yippee! All RS/6000 and PowerPC code is position-independent.
246 if test "$NO_PIC" = yes; then
247 AC_MSG_RESULT(not possible)
249 if test -z "$CFLAGS_PIC"; then
252 AC_MSG_RESULT($CFLAGS_PIC)
259 ######################################################################
260 # Check for export-dynamic flag
261 # This sets CFLAGS_EXPORTDYNAMIC to the required flags
262 ######################################################################
263 dnl GNUPG_CHECK_EXPORTDYNAMIC
265 define(GNUPG_CHECK_EXPORTDYNAMIC,
266 [ AC_MSG_CHECKING(how to specify -export-dynamic)
267 if test "$cross_compiling" = yes; then
268 AC_MSG_RESULT(assume none)
269 CFLAGS_EXPORTDYNAMIC=""
271 AC_CACHE_VAL(gnupg_cv_export_dynamic,[
272 if AC_TRY_COMMAND([${CC-cc} $CFLAGS -Wl,--version 2>&1 |
273 grep "GNU ld" >/dev/null]); then
275 gnupg_cv_export_dynamic="-Wl,-export-dynamic"
279 gnupg_cv_export_dynamic="-Wl,-E"
282 gnupg_cv_export_dynamic=""
287 AC_MSG_RESULT($gnupg_cv_export_dynamic)
288 CFLAGS_EXPORTDYNAMIC="$gnupg_cv_export_dynamic"
292 #####################################################################
293 # Check for SysV IPC (from GIMP)
294 # And see whether we have a SHM_LOCK (FreeBSD does not have it).
295 #####################################################################
298 define(GNUPG_CHECK_IPC,
299 [ AC_CHECK_HEADERS(sys/ipc.h sys/shm.h)
300 if test "$ac_cv_header_sys_shm_h" = "yes"; then
301 AC_MSG_CHECKING(whether IPC_RMID allowes subsequent attaches)
302 AC_CACHE_VAL(gnupg_cv_ipc_rmid_deferred_release,
304 #include <sys/types.h>
311 id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0777);
314 shmaddr = shmat (id, 0, 0);
315 shmctl (id, IPC_RMID, 0);
316 if ((char*) shmat (id, 0, 0) == (char*) -1)
326 gnupg_cv_ipc_rmid_deferred_release="yes",
327 gnupg_cv_ipc_rmid_deferred_release="no",
328 gnupg_cv_ipc_rmid_deferred_release="assume-no")
330 if test "$gnupg_cv_ipc_rmid_deferred_release" = "yes"; then
331 AC_DEFINE(IPC_RMID_DEFERRED_RELEASE)
334 if test "$gnupg_cv_ipc_rmid_deferred_release" = "no"; then
337 AC_MSG_RESULT([assuming no])
341 AC_MSG_CHECKING(whether SHM_LOCK is available)
342 AC_CACHE_VAL(gnupg_cv_ipc_have_shm_lock,
343 AC_TRY_COMPILE([#include <sys/types.h>
345 #include <sys/shm.h>],[
347 shmctl(shm_id, SHM_LOCK, 0);
349 gnupg_cv_ipc_have_shm_lock="yes",
350 gnupg_cv_ipc_have_shm_lock="no"
353 if test "$gnupg_cv_ipc_have_shm_lock" = "yes"; then
354 AC_DEFINE(IPC_HAVE_SHM_LOCK)
363 ######################################################################
364 # Check whether mlock is broken (hpux 10.20 raises a SIGBUS if mlock
365 # is not called from uid 0 (not tested whether uid 0 works)
366 # For DECs Tru64 we have also to check whether mlock is in librt
367 # mlock is there a macro using memlk()
368 ######################################################################
369 dnl GNUPG_CHECK_MLOCK
371 define(GNUPG_CHECK_MLOCK,
372 [ AC_CHECK_FUNCS(mlock)
373 if test "$ac_cv_func_mlock" = "no"; then
374 AC_CHECK_HEADERS(sys/mman.h)
375 if test "$ac_cv_header_sys_mman_h" = "yes"; then
377 AC_CHECK_LIB(rt, memlk)
378 AC_CACHE_CHECK([whether mlock is in sys/mman.h],
379 gnupg_cv_mlock_is_in_sys_mman,
382 #ifdef HAVE_SYS_MMAN_H
383 #include <sys/mman.h>
388 /* glibc defines this for functions which it implements
389 * to always fail with ENOSYS. Some functions are actually
390 * named something starting with __ and the normal name
392 #if defined (__stub_mlock) || defined (__stub___mlock)
399 gnupg_cv_mlock_is_in_sys_mman=yes,
400 gnupg_cv_mlock_is_in_sys_mman=no)])
401 if test "$gnupg_cv_mlock_is_in_sys_mman" = "yes"; then
402 AC_DEFINE(HAVE_MLOCK)
406 if test "$ac_cv_func_mlock" = "yes"; then
407 AC_MSG_CHECKING(whether mlock is broken)
408 AC_CACHE_VAL(gnupg_cv_have_broken_mlock,
413 #include <sys/mman.h>
414 #include <sys/types.h>
421 long int pgsize = getpagesize();
423 pool = malloc( 4096 + pgsize );
426 pool += (pgsize - ((long int)pool % pgsize));
428 err = mlock( pool, 4096 );
429 if( !err || errno == EPERM )
436 gnupg_cv_have_broken_mlock="no",
437 gnupg_cv_have_broken_mlock="yes",
438 gnupg_cv_have_broken_mlock="assume-no"
441 if test "$gnupg_cv_have_broken_mlock" = "yes"; then
442 AC_DEFINE(HAVE_BROKEN_MLOCK)
445 if test "$gnupg_cv_have_broken_mlock" = "no"; then
448 AC_MSG_RESULT(assuming no)
456 ################################################################
457 # GNUPG_PROG_NM - find the path to a BSD-compatible name lister
458 ################################################################
459 AC_DEFUN(GNUPG_PROG_NM,
460 [AC_MSG_CHECKING([for BSD-compatible nm])
461 AC_CACHE_VAL(ac_cv_path_NM,
462 [if test -n "$NM"; then
463 # Let the user override the test.
466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
467 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
468 test -z "$ac_dir" && ac_dir=.
469 if test -f $ac_dir/nm; then
470 # Check to see if the nm accepts a BSD-compat flag.
471 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
472 # nm: unknown option "B" ignored
473 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
474 ac_cv_path_NM="$ac_dir/nm -B"
475 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
476 ac_cv_path_NM="$ac_dir/nm -p"
478 ac_cv_path_NM="$ac_dir/nm"
484 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
491 # GNUPG_SYS_NM_PARSE - Check for command ro grab the raw symbol name followed
492 # by C symbol name from nm.
493 AC_DEFUN(GNUPG_SYS_NM_PARSE,
494 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
495 AC_REQUIRE([GNUPG_PROG_NM])dnl
496 # Check for command to grab the raw symbol name followed by C symbol from nm.
497 AC_MSG_CHECKING([command to parse $NM output])
498 AC_CACHE_VAL(ac_cv_sys_global_symbol_pipe,
499 [# These are sane defaults that work on at least a few old systems.
500 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
503 # Character class describing NM global symbol codes.
504 ac_symcode='[BCDEGRSTU]'
506 # Regexp to match symbols that can be accessed directly from C.
507 ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
509 # Transform the above into a raw symbol and a C symbol.
512 # Define system-specific variables.
517 freebsd* | netbsd* | openbsd* | bsdi* | sunos* | cygwin32* | mingw32*)
518 ac_sympat='_\([_A-Za-z][_A-Za-z0-9]*\)'
522 # Cannot use undefined symbols on IRIX because inlined functions mess us up.
523 ac_symcode='[BCDEGRST]'
530 # If we're using GNU nm, then use its standard symbol codes.
531 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
532 ac_symcode='[ABCDGISTUW]'
536 cygwin32* | mingw32*)
537 # We do not want undefined symbols on cygwin32. The user must
538 # arrange to define them via -l arguments.
539 ac_symcode='[ABCDGISTW]'
544 # Write the raw and C identifiers.
545 ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* $ac_symcode $ac_sympat$/$ac_symxfrm/p'"
547 # Check to see that the pipe works correctly.
549 cat > conftest.$ac_ext <<EOF
554 void nm_test_func(){}
558 int main(){nm_test_var='a';nm_test_func;return 0;}
560 if AC_TRY_EVAL(ac_compile); then
561 # Now try to grab the symbols.
563 if AC_TRY_EVAL(NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
565 # Try sorting and uniquifying the output.
566 if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
567 mv -f "$ac_nlist"T "$ac_nlist"
568 ac_wcout=`wc "$ac_nlist" 2>/dev/null`
570 ac_count=`echo "X$ac_wcout" | sed -e 's,^X,,' -e 's/^[ ]*\([0-9][0-9]*\).*$/\1/'`
572 (test "$ac_count" -ge 0) 2>/dev/null || ac_count=-1
578 # Make sure that we snagged all the symbols we need.
579 if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
580 if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
581 cat <<EOF > conftest.c
587 # Now generate the symbol file.
588 sed 's/^.* \(.*\)$/extern char \1;/' < "$ac_nlist" >> conftest.c
590 cat <<EOF >> conftest.c
591 #if defined (__STDC__) && __STDC__
592 # define __ptr_t void *
594 # define __ptr_t char *
597 /* The number of symbols in dld_preloaded_symbols, -1 if unsorted. */
598 int dld_preloaded_symbol_count = $ac_count;
600 /* The mapping between symbol names and symbols. */
606 dld_preloaded_symbols[] =
610 sed 's/^\(.*\) \(.*\)$/ {"\1", (__ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
611 cat <<\EOF >> conftest.c
619 # Now try linking the two files.
620 mv conftest.$ac_objext conftestm.$ac_objext
622 ac_save_CFLAGS="$CFLAGS"
623 LIBS="conftestm.$ac_objext"
624 CFLAGS="$CFLAGS$no_builtin_flag"
625 if AC_TRY_EVAL(ac_link) && test -s conftest; then
628 echo "configure: failed program was:" >&AC_FD_CC
629 cat conftest.c >&AC_FD_CC
632 CFLAGS="$ac_save_CFLAGS"
634 echo "cannot find nm_test_func in $ac_nlist" >&AC_FD_CC
637 echo "cannot find nm_test_var in $ac_nlist" >&AC_FD_CC
640 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&AC_FD_CC
643 echo "$progname: failed program was:" >&AC_FD_CC
644 cat conftest.c >&AC_FD_CC
648 # Do not use the global_symbol_pipe unless it works.
649 test "$ac_pipe_works" = yes || ac_cv_sys_global_symbol_pipe=
653 if test -z "$ac_cv_sys_global_symbol_pipe"; then
656 AC_MSG_RESULT($ac_result)
659 # GNUPG_SYS_LIBTOOL_CYGWIN32 - find tools needed on cygwin32
660 AC_DEFUN(GNUPG_SYS_LIBTOOL_CYGWIN32,
661 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
662 AC_CHECK_TOOL(AS, as, false)
665 # GNUPG_SYS_SYMBOL_UNDERSCORE - does the compiler prefix global symbols
666 # with an underscore?
667 AC_DEFUN(GNUPG_SYS_SYMBOL_UNDERSCORE,
670 i386-emx-os2 | i[3456]86-pc-os2*emx | i386-pc-msdosdjgpp)
671 ac_cv_sys_symbol_underscore=yes
674 if test "$cross_compiling" = yes; then
675 ac_cv_sys_symbol_underscore=yes
682 if test "$tmp_do_check" = "yes"; then
683 AC_REQUIRE([GNUPG_PROG_NM])dnl
684 AC_REQUIRE([GNUPG_SYS_NM_PARSE])dnl
685 AC_MSG_CHECKING([for _ prefix in compiled symbols])
686 AC_CACHE_VAL(ac_cv_sys_symbol_underscore,
687 [ac_cv_sys_symbol_underscore=no
688 cat > conftest.$ac_ext <<EOF
689 void nm_test_func(){}
690 int main(){nm_test_func;return 0;}
692 if AC_TRY_EVAL(ac_compile); then
693 # Now try to grab the symbols.
695 if AC_TRY_EVAL(NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
696 # See whether the symbols have a leading underscore.
697 if egrep '^_nm_test_func' "$ac_nlist" >/dev/null; then
698 ac_cv_sys_symbol_underscore=yes
700 if egrep '^nm_test_func ' "$ac_nlist" >/dev/null; then
703 echo "configure: cannot find nm_test_func in $ac_nlist" >&AC_FD_CC
707 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&AC_FD_CC
710 echo "configure: failed program was:" >&AC_FD_CC
711 cat conftest.c >&AC_FD_CC
716 AC_MSG_CHECKING([for _ prefix in compiled symbols])
718 AC_MSG_RESULT($ac_cv_sys_symbol_underscore)
719 if test x$ac_cv_sys_symbol_underscore = xyes; then
720 AC_DEFINE(WITH_SYMBOL_UNDERSCORE,1,
721 [define if compiled symbols have a leading underscore])
726 dnl Define MKDIR_TAKES_ONE_ARG if mkdir accepts only one argument instead
728 AC_DEFUN(GNUPG_FUNC_MKDIR_TAKES_ONE_ARG,
729 [AC_CHECK_HEADERS(sys/stat.h unistd.h direct.h)
730 AC_CACHE_CHECK([if mkdir takes one argument], gnupg_cv_mkdir_takes_one_arg,
732 #include <sys/types.h>
733 #ifdef HAVE_SYS_STAT_H
734 # include <sys/stat.h>
741 #endif], [mkdir ("foo", 0);],
742 gnupg_cv_mkdir_takes_one_arg=no, gnupg_cv_mkdir_takes_one_arg=yes)])
743 if test $gnupg_cv_mkdir_takes_one_arg = yes ; then
744 AC_DEFINE(MKDIR_TAKES_ONE_ARG)
748 dnl GPH_PROG_DOCBOOK()
749 dnl Check whether we have the needed Docbook environment
750 dnl and issue a warning if this is not the case.
752 dnl This test defines these variables for substitution:
753 dnl DB2HTML - command used to convert Docbook to HTML
754 dnl DB2TEX - command used to convert Docbook to TeX
755 dnl DB2MAN - command used to convert Docbook to man pages
756 dnl JADE - command to invoke jade
757 dnl JADETEX - command to invoke jadetex
758 dnl DSL_FOR_HTML - the stylesheet used to for the Docbook->HTML conversion
759 dnl The following make conditionals are defined
760 dnl HAVE_DB2MAN - defined when db2man is available
761 dnl HAVE_DB2TEX - defined when db2tex is available
762 dnl HAVE_DB2HTML - defined when db2html is available
763 dnl HAVE_DOCBOOK - defined when the entire Docbook environment is present
764 dnl HAVE_JADE - defined when jade is installed
765 dnl HAVE_JADETEX - defined when jadetex is installed
769 AC_DEFUN(GPH_PROG_DOCBOOK,
770 [ AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
772 AC_PATH_PROG(DB2MAN, docbook-to-man, no)
773 test "$DB2MAN" = no && all=no
774 AM_CONDITIONAL(HAVE_DB2MAN, test "$DB2MAN" != no )
776 AC_PATH_PROG(JADE, jade, no)
777 test "$JADE" = no && all=no
778 AM_CONDITIONAL(HAVE_JADE, test "$JADE" != no )
780 AC_PATH_PROG(JADETEX, jadetex, no)
781 test "$JADETEX" = no && all=no
782 AM_CONDITIONAL(HAVE_JADETEX, test "$JADETEX" != no )
785 /usr/local/lib/dsssl/stylesheets/docbook
786 /usr/local/share/dsssl/stylesheets/docbook
787 /usr/local/lib/sgml/stylesheet/dsssl/docbook/nwalsh
788 /usr/local/share/sgml/stylesheet/dsssl/docbook/nwalsh
789 /usr/lib/dsssl/stylesheets/docbook
790 /usr/share/dsssl/stylesheets/docbook
791 /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh
792 /usr/share/sgml/stylesheet/dsssl/docbook/nwalsh
795 AC_MSG_CHECKING(for TeX stylesheet)
797 for d in ${stylesheet_dirs}; do
798 file=${d}/print/docbook.dsl
799 if test -f $file; then
804 AC_MSG_RESULT([$dsl])
806 if test $dsl = none ; then
807 DB2TEX="$missing_dir/missing db2tex"
810 DB2TEX="$JADE -t tex -i tex -d $dsl"
814 AM_CONDITIONAL(HAVE_DB2TEX, test $okay = yes )
816 if ( $ac_aux_dir/db2html.in --version) < /dev/null > /dev/null 2>&1; then
819 AC_ERROR([needed $ac_aux_dir/db2html.in not found])
822 AC_MSG_CHECKING(for HTML stylesheet)
824 for d in ${stylesheet_dirs}; do
825 file=${d}/html/docbook.dsl
826 if test -f $file; then
831 AC_MSG_RESULT([$DSL_FOR_HTML])
833 if test $DSL_FOR_HTML = none ; then
834 DB2HTML="$missing_dir/missing db2html"
837 DB2HTML="`cd $ac_aux_dir && pwd`/db2html --copyfiles"
841 AC_SUBST(DSL_FOR_HTML)
842 AM_CONDITIONAL(HAVE_DB2HTML, test $okay = yes )
844 AM_CONDITIONAL(HAVE_DOCBOOK, test "$all" != yes )
845 if test $all = no ; then
848 *** It seems that the Docbook environment is not installed as required.
849 *** We will try to build everything, but if you either touch some files
850 *** or use a bogus make tool, you may run into problems.
851 *** Docbook is normally only needed to build the documentation.
859 dnl *-*wedit:notab*-* Please keep this as the last line.