aclocal.m4 revision 55839
118099Spstdnl Autoconf macros for groff.
218099Spstdnl Copyright (C) 1989, 1990, 1991, 1992, 1995 Free Software Foundation, Inc.
318099Spstdnl 
418099Spstdnl This file is part of groff.
518099Spstdnl 
618099Spstdnl groff is free software; you can redistribute it and/or modify it under
718099Spstdnl the terms of the GNU General Public License as published by the Free
818099Spstdnl Software Foundation; either version 2, or (at your option) any later
918099Spstdnl version.
1018099Spstdnl 
1118099Spstdnl groff is distributed in the hope that it will be useful, but WITHOUT ANY
1218099Spstdnl WARRANTY; without even the implied warranty of MERCHANTABILITY or
1318099Spstdnl FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1418099Spstdnl for more details.
1518099Spstdnl 
1618099Spstdnl You should have received a copy of the GNU General Public License along
1718099Spstdnl with groff; see the file COPYING.  If not, write to the Free Software
1818099Spstdnl Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1918099Spstdnl
2055839Sasmodaidnl
2118099SpstAC_DEFUN(GROFF_PRINT,
2255839Sasmodai[if test -z "$PSPRINT"; then
2318099Spst	AC_CHECK_PROGS(LPR,lpr)
2418099Spst	AC_CHECK_PROGS(LP,lp)
2555839Sasmodai	if test -n "$LPR" && test -n "$LP"; then
2618099Spst		# HP-UX provides an lpr command that emulates lpr using lp,
2718099Spst		# but it doesn't have lpq; in this case we want to use lp
2818099Spst		# rather than lpr.
2918099Spst		AC_CHECK_PROGS(LPQ,lpq)
3018099Spst		test -n "$LPQ" || LPR=
3118099Spst	fi
3255839Sasmodai	if test -n "$LPR"; then
3318099Spst		PSPRINT="$LPR"
3455839Sasmodai	elif test -n "$LP"; then
3518099Spst		PSPRINT="$LP"
3618099Spst	fi
3718099Spstfi
3818099SpstAC_SUBST(PSPRINT)
3918099SpstAC_MSG_CHECKING([for command to use for printing PostScript files])
4018099SpstAC_MSG_RESULT($PSPRINT)
4118099Spst# Figure out DVIPRINT from PSPRINT.
4218099SpstAC_MSG_CHECKING([for command to use for printing dvi files])
4355839Sasmodaiif test -n "$PSPRINT" && test -z "$DVIPRINT"; then
4455839Sasmodai	if test "X$PSPRINT" = "Xlpr"; then
4518099Spst		DVIPRINT="lpr -d"
4618099Spst	else
4718099Spst		DVIPRINT="$PSPRINT"
4818099Spst	fi
4918099Spstfi
5018099SpstAC_SUBST(DVIPRINT)
5118099SpstAC_MSG_RESULT($DVIPRINT)])dnl
5255839Sasmodaidnl
5355839Sasmodaidnl
5418099Spstdnl Bison generated parsers have problems with C++ compilers other than g++.
5518099Spstdnl So byacc is preferred over bison.
5655839Sasmodaidnl
5718099SpstAC_DEFUN(GROFF_PROG_YACC,
5818099Spst[AC_CHECK_PROGS(YACC, byacc 'bison -y', yacc)])
5955839Sasmodaidnl
6055839Sasmodaidnl
6118099Spstdnl GROFF_CSH_HACK(if hack present, if not present)
6255839Sasmodaidnl
6318099SpstAC_DEFUN(GROFF_CSH_HACK,
6418099Spst[AC_MSG_CHECKING([for csh hash hack])
6518099Spstcat <<EOF >conftest.sh
6618099Spst#!/bin/sh
6718099Spsttrue || exit 0
6818099Spstexport PATH || exit 0
6918099Spstexit 1
7018099SpstEOF
7118099Spstchmod +x conftest.sh
7255839Sasmodaiif echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
7318099Spst	AC_MSG_RESULT(yes); $1
7418099Spstelse
7518099Spst	AC_MSG_RESULT(no); $2
7618099Spstfi
7755839Sasmodairm -f conftest.sh])dnl
7855839Sasmodaidnl
7955839Sasmodaidnl
8018099Spstdnl From udodo!hans@relay.NL.net (Hans Zuidam)
8155839Sasmodaidnl
8218099SpstAC_DEFUN(GROFF_ISC_SYSV3,
8318099Spst[AC_MSG_CHECKING([for ISC 3.x or 4.x])
8418099Spstchangequote(,)dnl
8518099Spstif grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
8618099Spstchangequote([,])dnl
8718099Spstthen
8818099Spst	AC_MSG_RESULT(yes)
8918099Spst	AC_DEFINE(_SYSV3)
9018099Spstelse
9118099Spst	AC_MSG_RESULT(no)
9218099Spstfi])dnl
9355839Sasmodaidnl
9455839Sasmodaidnl
9518099SpstAC_DEFUN(GROFF_POSIX,
9618099Spst[AC_MSG_CHECKING([whether -D_POSIX_SOURCE is necessary])
9718099SpstAC_LANG_SAVE
9818099SpstAC_LANG_CPLUSPLUS
9918099SpstAC_TRY_COMPILE([#include <stdio.h>
10018099Spstextern "C" { void fileno(int); }],,
10118099SpstAC_MSG_RESULT(yes);AC_DEFINE(_POSIX_SOURCE),
10218099SpstAC_MSG_RESULT(no))
10318099SpstAC_LANG_RESTORE])dnl
10455839Sasmodaidnl
10555839Sasmodaidnl
10618099SpstAC_DEFUN(GROFF_GETOPT,
10718099Spst[AC_LANG_SAVE
10818099SpstAC_LANG_CPLUSPLUS
10918099SpstAC_MSG_CHECKING([declaration of getopt in stdlib.h])
11055839SasmodaiAC_TRY_COMPILE([#include <stdlib.h>
11155839Sasmodaiextern "C" { void getopt(int); }],,
11255839SasmodaiAC_MSG_RESULT(no),
11318099SpstAC_MSG_RESULT(yes);AC_DEFINE(STDLIB_H_DECLARES_GETOPT))
11418099SpstAC_MSG_CHECKING([declaration of getopt in unistd.h])
11518099SpstAC_TRY_COMPILE([#include <sys/types.h>
11618099Spst#include <unistd.h>
11755839Sasmodaiextern "C" { void getopt(int); }],,
11855839SasmodaiAC_MSG_RESULT(no),
11918099SpstAC_MSG_RESULT(yes);AC_DEFINE(UNISTD_H_DECLARES_GETOPT))
12018099SpstAC_LANG_RESTORE])dnl
12155839Sasmodaidnl
12255839Sasmodaidnl
12318099SpstAC_DEFUN(GROFF_PUTENV,
12418099Spst[AC_LANG_SAVE
12518099SpstAC_LANG_CPLUSPLUS
12618099SpstAC_MSG_CHECKING([declaration of putenv])
12718099SpstAC_TRY_COMPILE([#include <stdlib.h>
12855839Sasmodaiextern "C" { void putenv(int); }],,
12955839SasmodaiAC_MSG_RESULT(no),
13055839SasmodaiAC_MSG_RESULT(yes);AC_DEFINE(STDLIB_H_DECLARES_PUTENV))
13118099SpstAC_LANG_RESTORE])dnl
13255839Sasmodaidnl
13355839Sasmodaidnl
13418099SpstAC_DEFUN(GROFF_POPEN,
13518099Spst[AC_LANG_SAVE
13618099SpstAC_LANG_CPLUSPLUS
13718099SpstAC_MSG_CHECKING([declaration of popen])
13818099SpstAC_TRY_COMPILE([#include <stdio.h>
13955839Sasmodaiextern "C" { void popen(int); }],,
14055839SasmodaiAC_MSG_RESULT(no),
14118099SpstAC_MSG_RESULT(yes);AC_DEFINE(STDIO_H_DECLARES_POPEN))
14218099SpstAC_LANG_RESTORE])dnl
14355839Sasmodaidnl
14455839Sasmodaidnl
14518099SpstAC_DEFUN(GROFF_PCLOSE,
14618099Spst[AC_LANG_SAVE
14718099SpstAC_LANG_CPLUSPLUS
14818099SpstAC_MSG_CHECKING([declaration of pclose])
14918099SpstAC_TRY_COMPILE([#include <stdio.h>
15055839Sasmodaiextern "C" { void pclose(int); }],,
15155839SasmodaiAC_MSG_RESULT(no),
15218099SpstAC_MSG_RESULT(yes);AC_DEFINE(STDIO_H_DECLARES_PCLOSE))
15318099SpstAC_LANG_RESTORE])dnl
15455839Sasmodaidnl
15555839Sasmodaidnl
15655839SasmodaiAC_DEFUN(GROFF_SYS_NERR,
15755839Sasmodai[AC_LANG_SAVE
15855839SasmodaiAC_LANG_CPLUSPLUS
15955839SasmodaiAC_MSG_CHECKING([for sys_nerr in <errno.h> or <stdio.h>])
16055839SasmodaiAC_TRY_COMPILE([#include <errno.h>
16155839Sasmodai#include <stdio.h>],
16255839Sasmodai[int k; k = sys_nerr;],
16355839SasmodaiAC_MSG_RESULT(yes);AC_DEFINE(HAVE_SYS_NERR),
16455839SasmodaiAC_MSG_RESULT(no))
16555839SasmodaiAC_LANG_RESTORE])dnl
16655839Sasmodaidnl
16755839Sasmodaidnl
16855839SasmodaiAC_DEFUN(GROFF_SYS_ERRLIST,
16955839Sasmodai[AC_LANG_SAVE
17055839SasmodaiAC_LANG_CPLUSPLUS
17155839SasmodaiAC_MSG_CHECKING([for sys_errlist[] in <errno.h> or <stdio.h>])
17255839SasmodaiAC_TRY_COMPILE([#include <errno.h>
17355839Sasmodai#include <stdio.h>],
17455839Sasmodai[int k; k = (int)sys_errlist[0];],
17555839SasmodaiAC_MSG_RESULT(yes);AC_DEFINE(HAVE_SYS_ERRLIST),
17655839SasmodaiAC_MSG_RESULT(no))
17755839SasmodaiAC_LANG_RESTORE])dnl
17855839Sasmodaidnl
17955839Sasmodaidnl
18055839SasmodaiAC_DEFUN(GROFF_HYPOT,
18155839Sasmodai[AC_LANG_SAVE
18255839SasmodaiAC_LANG_CPLUSPLUS
18355839SasmodaiAC_MSG_CHECKING([declaration of hypot])
18455839SasmodaiAC_TRY_COMPILE([#include <math.h>
18555839Sasmodaiextern "C" { double hypot(double,double); }],,
18655839SasmodaiAC_MSG_RESULT(no),
18755839SasmodaiAC_MSG_RESULT(yes);AC_DEFINE(MATH_H_DECLARES_HYPOT))
18855839SasmodaiAC_LANG_RESTORE])dnl
18955839Sasmodaidnl
19055839Sasmodaidnl
19118099SpstAC_DEFUN(GROFF_OSFCN_H,
19218099Spst[AC_LANG_SAVE
19318099SpstAC_LANG_CPLUSPLUS
19418099SpstAC_MSG_CHECKING([C++ <osfcn.h>])
19518099SpstAC_TRY_COMPILE([#include <osfcn.h>],
19655839Sasmodai[read(0, 0, 0); open(0, 0);],
19755839SasmodaiAC_MSG_RESULT(yes);AC_DEFINE(HAVE_CC_OSFCN_H),
19818099SpstAC_MSG_RESULT(no))
19918099SpstAC_LANG_RESTORE])dnl
20055839Sasmodaidnl
20155839Sasmodaidnl
20218099SpstAC_DEFUN(GROFF_LIMITS_H,
20318099Spst[AC_LANG_SAVE
20418099SpstAC_LANG_CPLUSPLUS
20518099SpstAC_MSG_CHECKING([C++ <limits.h>])
20618099SpstAC_TRY_COMPILE([#include <limits.h>],
20718099Spst[int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;],
20855839SasmodaiAC_MSG_RESULT(yes);AC_DEFINE(HAVE_CC_LIMITS_H),
20955839SasmodaiAC_MSG_RESULT(no))
21018099SpstAC_LANG_RESTORE])dnl
21155839Sasmodaidnl
21255839Sasmodaidnl
21318099SpstAC_DEFUN(GROFF_TIME_T,
21418099Spst[AC_LANG_SAVE
21518099SpstAC_LANG_CPLUSPLUS
21618099SpstAC_MSG_CHECKING([for declaration of time_t])
21718099SpstAC_TRY_COMPILE([#include <time.h>],
21855839Sasmodai[time_t t = time(0); struct tm *p = localtime(&t);],
21955839SasmodaiAC_MSG_RESULT(yes),
22018099SpstAC_MSG_RESULT(no);AC_DEFINE(LONG_FOR_TIME_T))
22118099SpstAC_LANG_RESTORE])dnl
22255839Sasmodaidnl
22355839Sasmodaidnl
22418099SpstAC_DEFUN(GROFF_STRUCT_EXCEPTION,
22518099Spst[AC_MSG_CHECKING([struct exception])
22618099SpstAC_TRY_COMPILE([#include <math.h>],
22718099Spst[struct exception e;],
22818099SpstAC_MSG_RESULT(yes);AC_DEFINE(HAVE_STRUCT_EXCEPTION),
22918099SpstAC_MSG_RESULT(no))])dnl
23055839Sasmodaidnl
23155839Sasmodaidnl
23218099SpstAC_DEFUN(GROFF_ARRAY_DELETE,
23318099Spst[AC_LANG_SAVE
23418099SpstAC_LANG_CPLUSPLUS
23518099SpstAC_MSG_CHECKING([whether ANSI array delete syntax supported])
23618099SpstAC_TRY_COMPILE(,
23718099Spstchangequote(,)dnl
23818099Spstchar *p = new char[5]; delete [] p;changequote([,]),
23955839SasmodaiAC_MSG_RESULT(yes),
24055839SasmodaiAC_MSG_RESULT(no);AC_DEFINE(ARRAY_DELETE_NEEDS_SIZE))
24118099SpstAC_LANG_RESTORE])dnl
24218099Spstdnl
24355839Sasmodaidnl
24455839Sasmodaidnl
24518099SpstAC_DEFUN(GROFF_TRADITIONAL_CPP,
24618099Spst[AC_LANG_SAVE
24718099SpstAC_LANG_CPLUSPLUS
24818099SpstAC_MSG_CHECKING([traditional preprocessor])
24918099SpstAC_TRY_COMPILE([#define name2(a,b) a/**/b],[int name2(foo,bar);],
25018099SpstAC_MSG_RESULT(yes);AC_DEFINE(TRADITIONAL_CPP),
25118099SpstAC_MSG_RESULT(no))
25218099SpstAC_LANG_RESTORE])dnl
25355839Sasmodaidnl
25455839Sasmodaidnl
25518099SpstAC_DEFUN(GROFF_WCOREFLAG,
25618099Spst[AC_MSG_CHECKING([w_coredump])
25755839SasmodaiAC_TRY_RUN([#include <sys/types.h>
25818099Spst#include <sys/wait.h>
25918099Spstmain()
26018099Spst{
26118099Spst#ifdef WCOREFLAG
26218099Spst  exit(1);
26318099Spst#else
26418099Spst  int i = 0;
26518099Spst  ((union wait *)&i)->w_coredump = 1;
26618099Spst  exit(i != 0200);
26718099Spst#endif
26855839Sasmodai}],
26955839SasmodaiAC_MSG_RESULT(yes);AC_DEFINE(WCOREFLAG,0200),
27055839SasmodaiAC_MSG_RESULT(no),
27118099SpstAC_MSG_RESULT(no))])dnl
27218099Spstdnl
27355839Sasmodaidnl
27418099SpstAC_DEFUN(GROFF_BROKEN_SPOOLER_FLAGS,
27518099Spst[AC_MSG_CHECKING([default value for grops -b option])
27618099Spsttest -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=7
27718099SpstAC_MSG_RESULT($BROKEN_SPOOLER_FLAGS)
27818099SpstAC_SUBST(BROKEN_SPOOLER_FLAGS)])dnl
27918099Spstdnl
28055839Sasmodaidnl
28118099SpstAC_DEFUN(GROFF_PAGE,
28218099Spst[AC_MSG_CHECKING([default paper size])
28355839Sasmodaiif test -z "$PAGE"; then
28418099Spst	descfile=
28555839Sasmodai	if test -r $prefix/share/groff/font/devps/DESC; then
28618099Spst		descfile=$prefix/share/groff/font/devps/DESC
28755839Sasmodai	elif test -r $prefix/lib/groff/font/devps/DESC; then
28818099Spst		descfile=$prefix/lib/groff/font/devps/DESC
28918099Spst	fi
29018099Spst	if test -n "$descfile" \
29155839Sasmodai	  && grep "^paperlength 841890" $descfile >/dev/null 2>&1; then
29218099Spst		PAGE=A4
29318099Spst	else
29418099Spst		PAGE=letter
29518099Spst	fi
29618099Spstfi
29755839Sasmodaiif test -z "$PAGE"; then
29818099Spst	dom=`awk '([$]1 == "dom" || [$]1 == "search") { print [$]2; exit}' \
29918099Spst	    /etc/resolv.conf 2>/dev/null`
30055839Sasmodai	if test -z "$dom"; then
30118099Spst		dom=`(domainname) 2>/dev/null | tr -d '+'`
30255839Sasmodai		if test -z "$dom"; then
30318099Spst			dom=`(hostname) 2>/dev/null | grep '\.'`
30418099Spst		fi
30518099Spst	fi
30618099Spstchangequote(,)dnl
30718099Spst	# If the top-level domain is two letters and it's not `us' or `ca'
30818099Spst	# then they probably use A4 paper.
30918099Spst	case "$dom" in
31018099Spst	*.[Uu][Ss]|*.[Cc][Aa]) ;;
31118099Spst	*.[A-Za-z][A-Za-z]) PAGE=A4 ;;
31218099Spst	esac
31318099Spstchangequote([,])dnl
31418099Spstfi
31518099Spsttest -n "$PAGE" || PAGE=letter
31618099SpstAC_MSG_RESULT($PAGE)
31718099SpstAC_SUBST(PAGE)])dnl
31818099Spstdnl
31955839Sasmodaidnl
32018099SpstAC_DEFUN(GROFF_CXX_CHECK,
32118099Spst[AC_REQUIRE([AC_C_CROSS])
32218099SpstAC_REQUIRE([AC_PROG_CXX])
32318099SpstAC_LANG_SAVE
32418099SpstAC_LANG_CPLUSPLUS
32518099Spstif test "$cross_compiling" = no; then
32655839Sasmodai	AC_MSG_CHECKING([that C++ compiler can compile simple program])
32718099Spstfi
32818099SpstAC_TRY_RUN([int main() { return 0; }],
32918099SpstAC_MSG_RESULT(yes),
33055839SasmodaiAC_MSG_RESULT(no);AC_MSG_ERROR([a working C++ compiler is required]),
33155839Sasmodai:)
33218099Spstif test "$cross_compiling" = no; then
33355839Sasmodai	AC_MSG_CHECKING([that C++ static constructors and destructors are called])
33418099Spstfi
33518099SpstAC_TRY_RUN([
33618099Spstextern "C" {
33718099Spst  void _exit(int);
33818099Spst}
33918099Spstint i;
34018099Spststruct A {
34118099Spst  char dummy;
34218099Spst  A() { i = 1; }
34318099Spst  ~A() { if (i == 1) _exit(0); }
34418099Spst};
34518099SpstA a;
34618099Spstint main() { return 1; }
34718099Spst],
34818099SpstAC_MSG_RESULT(yes),
34955839SasmodaiAC_MSG_RESULT(no);AC_MSG_ERROR([a working C++ compiler is required]),
35055839Sasmodai:)
35118099SpstAC_MSG_CHECKING([that header files support C++])
35218099SpstAC_TRY_LINK([#include <stdio.h>],
35355839Sasmodai[fopen(0, 0);],
35455839SasmodaiAC_MSG_RESULT(yes),
35555839SasmodaiAC_MSG_RESULT(no);AC_MSG_ERROR([header files do not support C++ (if you are using a version of gcc/g++ earlier than 2.5, you should install libg++)]))
35618099SpstAC_LANG_RESTORE
35718099Spst])dnl
35818099Spstdnl
35955839Sasmodaidnl
36018099SpstAC_DEFUN(GROFF_TMAC,
36155839Sasmodai[AC_MSG_CHECKING([for prefix of system macro packages])
36218099Spstsys_tmac_prefix=
36318099Spstsys_tmac_file_prefix=
36455839Sasmodaifor d in /usr/share/lib/tmac /usr/lib/tmac; do
36555839Sasmodai	for t in "" tmac.; do
36655839Sasmodai		for m in an s m; do
36718099Spst			f=$d/$t$m
36818099Spst			if test -z "$sys_tmac_prefix" \
36918099Spst			  && test -f $f \
37055839Sasmodai			  && grep '^\.if' $f >/dev/null 2>&1; then
37118099Spst				sys_tmac_prefix=$d/$t
37218099Spst				sys_tmac_file_prefix=$t
37318099Spst			fi
37418099Spst		done
37518099Spst	done
37618099Spstdone
37718099SpstAC_MSG_RESULT($sys_tmac_prefix)
37818099SpstAC_SUBST(sys_tmac_prefix)
37918099Spsttmac_wrap=
38018099SpstAC_MSG_CHECKING([which system macro packages should be made available])
38155839Sasmodaiif test "x$sys_tmac_file_prefix" = "xtmac."; then
38255839Sasmodai	for f in $sys_tmac_prefix*; do
38318099Spst		suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
38418099Spst		case "$suff" in
38555839Sasmodai		e) ;;
38618099Spst		*)
38755839Sasmodai			grep "Copyright.*Free Software Foundation" $f >/dev/null \
38855839Sasmodai			  || tmac_wrap="$tmac_wrap $suff" ;;
38918099Spst		esac 
39018099Spst	done
39155839Sasmodaielif test -n "$sys_tmac_prefix"; then
39218099Spst	files=`echo $sys_tmac_prefix*`
39318099Spst	grep "\\.so" $files >conftest.sol
39455839Sasmodai	for f in $files; do
39518099Spst		case "$f" in
39655839Sasmodai 		${sys_tmac_prefix}e) ;;
39718099Spst		*.me) ;;
39818099Spst		*/ms.*) ;;
39918099Spst		*)
40055839Sasmodai			b=`basename $f`
40155839Sasmodai			if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
40255839Sasmodai			  || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
40355839Sasmodai				:
40455839Sasmodai			else
40555839Sasmodai				suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
40655839Sasmodai				case "$suff" in
40755839Sasmodai				tmac.*) ;;
40855839Sasmodai				*) tmac_wrap="$tmac_wrap $suff" ;;
40955839Sasmodai				esac
41055839Sasmodai			fi
41118099Spst		esac
41218099Spst	done
41318099Spst	rm -f conftest.sol
41418099Spstfi
41518099SpstAC_MSG_RESULT([$tmac_wrap])
41618099SpstAC_SUBST(tmac_wrap)
41718099Spst])dnl
41855839Sasmodaidnl
41955839Sasmodaidnl
42018099SpstAC_DEFUN(GROFF_G,
42118099Spst[AC_MSG_CHECKING([for existing troff installation])
42255839Sasmodaiif test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
42318099Spst	AC_MSG_RESULT(yes)
42418099Spst	g=g
42518099Spstelse
42618099Spst	AC_MSG_RESULT(no)
42718099Spst	g=
42818099Spstfi
42918099SpstAC_SUBST(g)
43018099Spst])dnl
43155839Sasmodaidnl
43255839Sasmodaidnl
43318099Spstdnl We need the path to install-sh to be absolute.
43455839Sasmodaidnl
43518099SpstAC_DEFUN(GROFF_INSTALL_SH,
43618099Spst[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
43718099Spstac_dir=`cd $ac_aux_dir; pwd`
43818099Spstac_install_sh="$ac_dir/install-sh -c"
43955839Sasmodai])dnl
44055839Sasmodaidnl
44155839Sasmodaidnl
44255839Sasmodaidnl At least one UNIX system, Apple Macintosh Rhapsody 5.5,
44355839Sasmodaidnl does not have -lm.
44455839Sasmodaidnl
44555839SasmodaiAC_DEFUN(GROFF_LIBM,
44655839Sasmodai[AC_CHECK_LIB(m,sin,LIBM=-lm)
44755839SasmodaiAC_SUBST(LIBM)
44818099Spst])
449