1 # Autoconf macros for groff.
2 # Copyright (C) 1989-1995, 2001, 2002, 2003, 2004
3 # Free Software Foundation, Inc.
5 # This file is part of groff.
7 # groff is free software; you can redistribute it and/or modify it under
8 # the terms of the GNU General Public License as published by the Free
9 # Software Foundation; either version 2, or (at your option) any later
12 # groff is distributed in the hope that it will be useful, but WITHOUT ANY
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 # You should have received a copy of the GNU General Public License along
18 # with groff; see the file COPYING. If not, write to the Free Software
19 # Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 AC_DEFUN([GROFF_PRINT],
22 [if test -z "$PSPRINT"; then
23 AC_CHECK_PROGS([LPR], [lpr])
24 AC_CHECK_PROGS([LP], [lp])
25 if test -n "$LPR" && test -n "$LP"; then
26 # HP-UX provides an lpr command that emulates lpr using lp,
27 # but it doesn't have lpq; in this case we want to use lp
29 AC_CHECK_PROGS([LPQ], [lpq])
30 test -n "$LPQ" || LPR=
32 if test -n "$LPR"; then
34 elif test -n "$LP"; then
39 AC_MSG_CHECKING([for command to use for printing PostScript files])
40 AC_MSG_RESULT([$PSPRINT])
42 # Figure out DVIPRINT from PSPRINT.
43 AC_MSG_CHECKING([for command to use for printing dvi files])
44 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
45 if test "x$PSPRINT" = "xlpr"; then
52 AC_MSG_RESULT([$DVIPRINT])])
54 # Bison generated parsers have problems with C++ compilers other than g++.
55 # So byacc is preferred over bison.
57 AC_DEFUN([GROFF_PROG_YACC],
58 [AC_CHECK_PROGS([YACC], [byacc 'bison -y'], [yacc])])
60 # The following programs are needed for grohtml.
62 AC_DEFUN([GROFF_HTML_PROGRAMS],
64 make_install_html=install_html
67 AC_FOREACH([groff_prog],
68 [pnmcut pnmcrop pnmtopng psselect pnmtops gs],
69 [AC_CHECK_PROG(groff_prog, groff_prog, [found], [missing])
70 if test $[]groff_prog = missing; then
71 missing="$missing groff_prog"
74 if test -n "$missing"; then
87 progs="\`$prog1' and \`$prog2'" ;;
89 progs="\`$prog1', \`$prog2', and \`$prog3'" ;;
91 progs="\`$prog1', \`$prog2', \`$prog3', and \`$prog4'" ;;
93 progs="\`$prog1', \`$prog2', \`$prog3', \`$prog4', and \`$prog5'" ;;
95 progs="\`$prog1', \`$prog2', \`$prog3', \`$prog4', \`$prog5', and \`$prog6'" ;;
105 can't be found in the path, thus the HTML backend of groff (grohtml)
106 won't work properly. Consequently, no documentation in HTML format
107 is built and installed.
111 AC_SUBST([make_html])
112 AC_SUBST([make_install_html])])
114 # Check whether pnmtops can handle the -nosetpage option.
116 AC_DEFUN([GROFF_PNMTOPS_NOSETPAGE],
117 [AC_MSG_CHECKING([whether pnmtops can handle the -nosetpage option])
118 if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
120 pnmtops_nosetpage="pnmtops -nosetpage"
123 pnmtops_nosetpage="pnmtops"
125 AC_SUBST([pnmtops_nosetpage])])
127 # Check location of `gs'.
129 AC_DEFUN([GROFF_GHOSTSCRIPT_PATH],
130 [AC_PATH_TOOL(GHOSTSCRIPT, gs gsos2, missing)
131 AC_SUBST(GHOSTSCRIPT)])
133 # GROFF_CSH_HACK(if hack present, if not present)
135 AC_DEFUN([GROFF_CSH_HACK],
136 [AC_MSG_CHECKING([for csh hash hack])
138 cat <<EOF >conftest.sh
141 export PATH || exit 0
146 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
155 # From udodo!hans@relay.NL.net (Hans Zuidam)
157 AC_DEFUN([GROFF_ISC_SYSV3],
158 [AC_MSG_CHECKING([for ISC 3.x or 4.x])
159 if grep ['[34]\.'] /usr/options/cb.name >/dev/null 2>&1
162 AC_DEFINE([_SYSV3], [1], [Define if you have ISC 3.x or 4.x.])
167 AC_DEFUN([GROFF_POSIX],
168 [AC_MSG_CHECKING([whether -D_POSIX_SOURCE is necessary])
174 extern "C" { void fileno(int); }
178 [AC_MSG_RESULT([yes])
179 AC_DEFINE([_POSIX_SOURCE], [1],
180 [Define if -D_POSIX_SOURCE is necessary.])],
181 [AC_MSG_RESULT([no])])
184 # srand() of SunOS 4.1.3 has return type int instead of void
186 AC_DEFUN([GROFF_SRAND],
188 AC_MSG_CHECKING([for return type of srand])
193 extern "C" { void srand(unsigned int); }
197 [AC_MSG_RESULT([void])
198 AC_DEFINE([RET_TYPE_SRAND_IS_VOID], [1],
199 [Define if srand() returns void not int.])],
200 [AC_MSG_RESULT([int])])
203 AC_DEFUN([GROFF_SYS_NERR],
205 AC_MSG_CHECKING([for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>])
221 [AC_MSG_RESULT([yes])
222 AC_DEFINE([HAVE_SYS_NERR], [1],
223 [Define if you have sys_nerr in <errno.h>, <stdio.h>, or <stdio.h>.])],
224 [AC_MSG_RESULT([no])])
227 AC_DEFUN([GROFF_SYS_ERRLIST],
228 [AC_MSG_CHECKING([for sys_errlist[] in <errno.h>, <stdio.h>, or <stdlib.h>])
240 k = (int)sys_errlist[0];
244 [AC_MSG_RESULT([yes])
245 AC_DEFINE([HAVE_SYS_ERRLIST], [1],
246 [Define if you have sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>.])],
247 [AC_MSG_RESULT([no])])])
249 AC_DEFUN([GROFF_OSFCN_H],
251 AC_MSG_CHECKING([C++ <osfcn.h>])
265 [AC_MSG_RESULT([yes])
266 AC_DEFINE([HAVE_CC_OSFCN_H], [1],
267 [Define if you have a C++ <osfcn.h>.])],
268 [AC_MSG_RESULT([no])])
271 AC_DEFUN([GROFF_LIMITS_H],
273 AC_MSG_CHECKING([C++ <limits.h>])
288 [AC_MSG_RESULT([yes])
289 AC_DEFINE([HAVE_CC_LIMITS_H], [1],
290 [Define if you have a C++ <limits.h>.])],
291 [AC_MSG_RESULT([no])])
294 AC_DEFUN([GROFF_TIME_T],
296 AC_MSG_CHECKING([for declaration of time_t])
306 struct tm *p = localtime(&t);
310 [AC_MSG_RESULT([yes])],
312 AC_DEFINE([LONG_FOR_TIME_T], [1],
313 [Define if localtime() takes a long * not a time_t *.])])
316 AC_DEFUN([GROFF_STRUCT_EXCEPTION],
317 [AC_MSG_CHECKING([struct exception])
330 [AC_MSG_RESULT([yes])
331 AC_DEFINE([HAVE_STRUCT_EXCEPTION], [1],
332 [Define if <math.h> defines struct exception.])],
333 [AC_MSG_RESULT([no])])])
335 AC_DEFUN([GROFF_ARRAY_DELETE],
337 AC_MSG_CHECKING([whether ANSI array delete syntax is supported])
341 char *p = new char[5];
346 [AC_MSG_RESULT([yes])],
348 AC_DEFINE([ARRAY_DELETE_NEEDS_SIZE], [1],
349 [Define if your C++ doesn't understand `delete []'.])])
352 AC_DEFUN([GROFF_TRADITIONAL_CPP],
354 AC_MSG_CHECKING([traditional preprocessor])
358 #define name2(a, b) a/**/b
367 [AC_MSG_RESULT([yes])
368 AC_DEFINE([TRADITIONAL_CPP], [1],
369 [Define if your C++ compiler uses a traditional (Reiser) preprocessor.])],
370 [AC_MSG_RESULT([no])])
373 AC_DEFUN([GROFF_WCOREFLAG],
374 [AC_MSG_CHECKING([w_coredump])
378 #include <sys/types.h>
379 #include <sys/wait.h>
390 ((union wait *)&i)->w_coredump = 1;
397 [AC_MSG_RESULT([yes])
398 AC_DEFINE(WCOREFLAG, 0200,
399 [Define if the 0200 bit of the status returned by wait() indicates
400 whether a core image was produced for a process that was terminated
402 [AC_MSG_RESULT([no])],
403 [AC_MSG_RESULT([no])])])
405 AC_DEFUN([GROFF_BROKEN_SPOOLER_FLAGS],
406 [AC_MSG_CHECKING([default value for grops -b option])
407 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=0
408 AC_MSG_RESULT([$BROKEN_SPOOLER_FLAGS])
409 AC_SUBST([BROKEN_SPOOLER_FLAGS])])
411 AC_DEFUN([GROFF_PAGE],
412 [AC_MSG_CHECKING([default paper size])
414 test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix
415 if test -z "$PAGE"; then
417 if test -r $groff_prefix/share/groff/font/devps/DESC; then
418 descfile=$groff_prefix/share/groff/font/devps/DESC
419 elif test -r $groff_prefix/lib/groff/font/devps/DESC; then
420 descfile=$groff_prefix/lib/groff/font/devps/DESC
422 for f in $groff_prefix/share/groff/*/font/devps/DESC; do
430 if test -n "$descfile"; then
431 if grep ['^paperlength[ ]\+841890'] $descfile >/dev/null 2>&1; then
433 elif grep ['^papersize[ ]\+[aA]4'] $descfile >/dev/null 2>&1; then
439 if test -z "$PAGE"; then
440 dom=`awk '([$]1 == "dom" || [$]1 == "search") { print [$]2; exit}' \
441 /etc/resolv.conf 2>/dev/null`
442 if test -z "$dom"; then
443 dom=`(domainname) 2>/dev/null | tr -d '+'`
445 || test "$dom" = '(none)'; then
446 dom=`(hostname) 2>/dev/null | grep '\.'`
449 # If the top-level domain is two letters and it's not `us' or `ca'
450 # then they probably use A4 paper.
452 [*.[Uu][Ss]|*.[Cc][Aa])]
454 [*.[A-Za-z][A-Za-z])]
459 test -n "$PAGE" || PAGE=letter
460 if test "x$PAGE" = "xA4"; then
461 AC_DEFINE([PAGEA4], [1],
462 [Define if the printer's page size is A4.])
464 AC_MSG_RESULT([$PAGE])
467 AC_DEFUN([GROFF_CXX_CHECK],
468 [AC_REQUIRE([AC_PROG_CXX])
470 if test "$cross_compiling" = no; then
471 AC_MSG_CHECKING([that C++ compiler can compile simple program])
482 [AC_MSG_RESULT([yes])],
484 AC_MSG_ERROR([a working C++ compiler is required])],
487 if test "$cross_compiling" = no; then
488 AC_MSG_CHECKING([that C++ static constructors and destructors are called])
501 ~A() { if (i == 1) _exit(0); }
513 [AC_MSG_RESULT([yes])],
515 AC_MSG_ERROR([a working C++ compiler is required])],
518 AC_MSG_CHECKING([that header files support C++])
531 [AC_MSG_RESULT([yes])],
533 AC_MSG_ERROR([header files do not support C++
534 (if you are using a version of gcc/g++ earlier than 2.5,
535 you should install libg++)])])
538 AC_DEFUN([GROFF_TMAC],
539 [AC_MSG_CHECKING([for prefix of system macro packages])
541 sys_tmac_file_prefix=
542 for d in /usr/share/lib/tmac /usr/lib/tmac; do
543 for t in "" tmac.; do
546 if test -z "$sys_tmac_prefix" \
548 && grep '^\.if' $f >/dev/null 2>&1; then
549 sys_tmac_prefix=$d/$t
550 sys_tmac_file_prefix=$t
555 AC_MSG_RESULT([$sys_tmac_prefix])
556 AC_SUBST([sys_tmac_prefix])
558 AC_MSG_CHECKING([which system macro packages should be made available])
560 if test "x$sys_tmac_file_prefix" = "xtmac."; then
561 for f in $sys_tmac_prefix*; do
562 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
567 grep "Copyright.*Free Software Foundation" $f >/dev/null \
568 || tmac_wrap="$tmac_wrap $suff" ;;
571 elif test -n "$sys_tmac_prefix"; then
572 files=`echo $sys_tmac_prefix*`
573 grep "\\.so" $files >conftest.sol
584 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
585 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
588 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
593 tmac_wrap="$tmac_wrap $suff" ;;
600 AC_MSG_RESULT([$tmac_wrap])
601 AC_SUBST([tmac_wrap])])
604 [AC_MSG_CHECKING([for existing troff installation])
605 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
614 # We need the path to install-sh to be absolute.
616 AC_DEFUN([GROFF_INSTALL_SH],
617 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])
618 ac_dir=`cd $ac_aux_dir; pwd`
619 ac_install_sh="$ac_dir/install-sh -c"])
621 # Test whether install-info is available.
623 AC_DEFUN([GROFF_INSTALL_INFO],
624 [AC_CHECK_PROGS([INSTALL_INFO], [install-info], [:])])
626 # At least one UNIX system, Apple Macintosh Rhapsody 5.5,
627 # does not have -lm ...
629 AC_DEFUN([GROFF_LIBM],
630 [AC_CHECK_LIB([m], [sin], [LIBM=-lm])
633 # ... while the MinGW implementation of GCC for Microsoft Win32
634 # does not seem to have -lc.
636 AC_DEFUN([GROFF_LIBC],
637 [AC_CHECK_LIB([c], [main], [LIBC=-lc])
640 # Check for EBCDIC -- stolen from the OS390 Unix LYNX port
642 AC_DEFUN([GROFF_EBCDIC],
643 [AC_MSG_CHECKING([whether character set is EBCDIC])
647 /* Treat any failure as ASCII for compatibility with existing art.
648 Use compile-time rather than run-time tests for cross-compiler
651 make an error "Character set is not EBCDIC"
656 [groff_cv_ebcdic="yes"
657 TTYDEVDIRS="font/devcp1047"
659 AC_DEFINE(IS_EBCDIC_HOST, 1,
660 [Define if the host's encoding is EBCDIC.])],
661 [groff_cv_ebcdic="no"
662 TTYDEVDIRS="font/devascii font/devlatin1"
663 OTHERDEVDIRS="font/devlj4 font/devlbp"
664 AC_MSG_RESULT([no])])
665 AC_SUBST([TTYDEVDIRS])
666 AC_SUBST([OTHERDEVDIRS])])
668 # Check for OS/390 Unix. We test for EBCDIC also -- the Linux port (with
669 # gcc) to OS/390 uses ASCII internally.
671 AC_DEFUN([GROFF_OS390],
672 [if test "$groff_cv_ebcdic" = "yes"; then
673 AC_MSG_CHECKING([for OS/390 Unix])
676 CFLAGS="$CFLAGS -D_ALL_SOURCE"
677 AC_MSG_RESULT([yes]) ;;
679 AC_MSG_RESULT([no]) ;;
683 # Check whether we need a declaration for a function.
685 # Stolen from GNU bfd.
687 AC_DEFUN([GROFF_NEED_DECLARATION],
688 [AC_MSG_CHECKING([whether $1 must be declared])
690 AC_CACHE_VAL([groff_cv_decl_needed_$1],
698 #ifdef HAVE_STRINGS_H
704 #ifdef HAVE_SYS_TIME_H
705 #include <sys/time.h>
718 char *p = (char *) $1;
723 [groff_cv_decl_needed_$1=no],
724 [groff_cv_decl_needed_$1=yes])])
725 AC_MSG_RESULT([$groff_cv_decl_needed_$1])
726 if test $groff_cv_decl_needed_$1 = yes; then
727 AC_DEFINE([NEED_DECLARATION_]translit($1, [a-z], [A-Z]), [1],
728 [Define if your C++ doesn't declare ]$1[().])
732 # If mkstemp() isn't available, use our own mkstemp.cpp file.
734 AC_DEFUN([GROFF_MKSTEMP],
735 [AC_MSG_CHECKING([for mkstemp])
737 AC_LIBSOURCE([mkstemp.cpp])
752 [AC_MSG_RESULT([yes])
753 AC_DEFINE([HAVE_MKSTEMP], [1], [Define if you have mkstemp().])],
755 _AC_LIBOBJ([mkstemp])])
758 # Test whether <inttypes.h> exists, doesn't clash with <sys/types.h>,
759 # and declares uintmax_t. Taken from the fileutils package.
761 AC_DEFUN([GROFF_INTTYPES_H],
763 AC_MSG_CHECKING([C++ <inttypes.h>])
767 #include <sys/types.h>
768 #include <inttypes.h>
773 uintmax_t i = (uintmax_t)-1;
777 [groff_cv_header_inttypes_h=yes
778 AC_DEFINE([HAVE_CC_INTTYPES_H], [1],
779 [Define if you have a C++ <inttypes.h>.])],
780 [groff_cv_header_inttypes_h=no])
781 AC_MSG_RESULT([$groff_cv_header_inttypes_h])
784 # Test for working `unsigned long long'. Taken from the fileutils package.
786 AC_DEFUN([GROFF_UNSIGNED_LONG_LONG],
788 AC_MSG_CHECKING([for unsigned long long])
792 unsigned long long ull = 1;
794 unsigned long long ullmax = (unsigned long long)-1;
799 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
803 [groff_cv_type_unsigned_long_long=yes],
804 [groff_cv_type_unsigned_long_long=no])
805 AC_MSG_RESULT([$groff_cv_type_unsigned_long_long])
808 # Define uintmax_t to `unsigned long' or `unsigned long long'
809 # if <inttypes.h> does not exist. Taken from the fileutils package.
811 AC_DEFUN([GROFF_UINTMAX_T],
812 [AC_REQUIRE([GROFF_INTTYPES_H])
813 if test $groff_cv_header_inttypes_h = no; then
814 AC_REQUIRE([GROFF_UNSIGNED_LONG_LONG])
815 test $groff_cv_type_unsigned_long_long = yes \
816 && ac_type='unsigned long long' \
817 || ac_type='unsigned long'
818 AC_DEFINE_UNQUOTED([uintmax_t], [$ac_type],
819 [Define uintmax_t to `unsigned long' or `unsigned long long' if
820 <inttypes.h> does not exist.])
823 # Identify PATH_SEPARATOR character to use in GROFF_FONT_PATH and
824 # GROFF_TMAC_PATH which is appropriate for the target system (POSIX=':',
827 # The logic to resolve this test is already encapsulated in
828 # `${srcdir}/src/include/nonposix.h'.
830 AC_DEFUN([GROFF_TARGET_PATH_SEPARATOR],
831 [AC_MSG_CHECKING([separator character to use in groff search paths])
832 cp ${srcdir}/src/include/nonposix.h conftest.h
837 #include "conftest.h"
842 #if PATH_SEP_CHAR == ';'
843 make an error "Path separator is ';'"
848 [GROFF_PATH_SEPARATOR=":"],
849 [GROFF_PATH_SEPARATOR=";"])
850 AC_MSG_RESULT([$GROFF_PATH_SEPARATOR])
851 AC_SUBST(GROFF_PATH_SEPARATOR)])
855 AC_DEFUN([GROFF_X11],
856 [AC_REQUIRE([AC_PATH_XTRA])
858 if test -z "$groff_no_x"; then
862 CFLAGS="$CFLAGS $X_CFLAGS"
863 LDFLAGS="$LDFLAGS $X_LIBS"
864 LIBS="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
867 AC_MSG_CHECKING([for Xaw library and header files])
871 #include <X11/Intrinsic.h>
872 #include <X11/Xaw/Simple.h>
877 [AC_MSG_RESULT([yes])],
882 AC_MSG_CHECKING([for Xmu library and header files])
886 #include <X11/Intrinsic.h>
887 #include <X11/Xmu/Converters.h>
892 [AC_MSG_RESULT([yes])],
901 if test "x$groff_no_x" = "xyes"; then
902 AC_MSG_NOTICE([gxditview and xtotroff won't be built])
904 XDEVDIRS="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
905 XPROGDIRS="src/devices/xditview src/utils/xtotroff"
906 XLIBDIRS="src/libs/libxutil"
910 AC_SUBST([XPROGDIRS])
911 AC_SUBST([XLIBDIRS])])
913 # Set up the `--with-appresdir' command line option.
915 AC_DEFUN([GROFF_APPRESDIR_OPTION],
916 [AC_ARG_WITH([appresdir],
917 dnl Don't quote AS_HELP_STRING!
918 AS_HELP_STRING([--with-appresdir=DIR],
919 [X11 application resource files]))])
921 # Get a default value for the application resource directory.
923 # We ignore the `XAPPLRES' and `XUSERFILESEARCHPATH' environment variables.
925 # The goal is to find the `root' of X11. Under most systems this is
926 # `/usr/X11/lib'. Application default files are then in
927 # `/usr/X11/lib/X11/app-defaults'.
929 # Based on autoconf's AC_PATH_X macro.
931 AC_DEFUN([GROFF_APPRESDIR_DEFAULT],
932 [if test -z "$groff_no_x"; then
933 # Create an Imakefile, run `xmkmf', then `make'.
934 rm -f -r conftest.dir
935 if mkdir conftest.dir; then
937 # Make sure to not put `make' in the Imakefile rules,
938 # since we grep it out.
939 cat >Imakefile <<'EOF'
942 @echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"'
945 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
946 # GNU make sometimes prints "make[1]: Entering...",
947 # which would confuse us.
948 eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make`
950 # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR.
951 for groff_extension in a so sl; do
952 if test ! -f $groff_x_usrlibdir/libX11.$groff_extension &&
953 test -f $groff_x_libdir/libX11.$groff_extension; then
954 groff_x_usrlibdir=$groff_x_libdir
961 rm -f -r conftest.dir
964 # In case the test with `xmkmf' wasn't successful, try a suite of
965 # standard directories. Check `X11' before `X11Rn' because it is often
966 # a symlink to the current release.
1000 /usr/openwin/share/lib'
1002 if test -z "$groff_x_usrlibdir"; then
1003 # We only test whether libX11 exists.
1004 for groff_dir in $groff_x_libdirs; do
1005 for groff_extension in a so sl; do
1006 if test ! -r $groff_dir/libX11.$groff_extension; then
1007 groff_x_usrlibdir=$groff_dir
1014 if test "x$with_appresdir" = "x"; then
1015 appresdir=$groff_x_usrlibdir/X11/app-defaults
1017 appresdir=$with_appresdir
1020 AC_SUBST([appresdir])])
1023 # Emit warning if --with-appresdir hasn't been used.
1025 AC_DEFUN([GROFF_APPRESDIR_CHECK],
1026 [if test -z "$groff_no_x"; then
1027 if test "x$with_appresdir" = "x"; then
1030 The application resource file for gxditview will be installed as
1032 $appresdir/GXditview
1034 (an existing file will be saved as `GXditview.old').
1035 To install it into a different directory, say, `/etc/gxditview',
1036 add `--with-appresdir=/etc/gxditview' to the configure script
1037 and rerun it. The environment variable `APPLRESDIR' must then
1038 be set to `/etc/' (note the trailing slash), omitting the
1039 `gxditview' part which is automatically appended by the X11
1040 searching routines for resource files. More details can be
1041 found in the X(7) manual page.