/ [gjdict] / gjdict / configure.in
To checkout: cvs -d:pserver:anonymous@cvs.gnu.org.ua:/cvsroot/gjdict co gjdict/configure.in
Puszcza

Contents of /gjdict/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Wed Apr 17 21:59:29 2002 UTC (19 years, 2 months ago) by gray
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -2 lines
Define USE_XAW3D if requested

1 dnl Process this file with autoconf to produce a configure script.
2 AC_REVISION($Revision: 1.1.1.1 $)
3 AC_INIT(server/dict.c)
4 AC_CANONICAL_SYSTEM
5 AM_INIT_AUTOMAKE(gjdict, 1.0)
6 AM_CONFIG_HEADER(config.h)
7
8 AC_SUBST(BUILD_TARGET)
9
10 case $target in
11 *-*-linux*) ;;
12
13 *-*-solaris*) ADDLIBS="-lnsl -lsocket";
14 LIBS="$LIBS $ADDLIBS -L/usr/ucblib"
15 ;;
16
17 *-*-bsd*) ;;
18 esac
19 AC_DEFINE_UNQUOTED(BUILD_TARGET, "$target")
20
21 dnl Checks for programs.
22 AC_PROG_AWK
23 AC_PROG_YACC
24 AC_PROG_CC
25 AC_PROG_CPP
26 dnl AC_PROG_LEX
27 AC_PROG_INSTALL
28 dnl AC_PROG_LN_S
29 AC_PROG_MAKE_SET
30 AC_PROG_RANLIB
31
32 dnl Checks for libraries.
33 dnl AC_CHECK_LIB(FS, main)
34
35 dnl Checks for header files.
36 AC_HEADER_DIRENT dnl not needed ?
37 AC_HEADER_STDC
38 AC_HEADER_SYS_WAIT
39 AC_CHECK_HEADERS(fcntl.h limits.h strings.h sys/time.h syslog.h unistd.h)
40
41 dnl Checks for typedefs, structures, and compiler characteristics.
42 AC_C_CONST
43 AC_C_INLINE
44 AC_TYPE_PID_T
45 AC_TYPE_OFF_T
46 AC_TYPE_SIZE_T
47 AC_HEADER_TIME
48
49 dnl Checks for library functions.
50 AC_FUNC_MEMCMP
51 AC_FUNC_SETVBUF_REVERSED
52 AC_TYPE_SIGNAL
53 AC_FUNC_VPRINTF
54 AC_CHECK_FUNCS(gethostname select socket strdup strerror strtol getopt_long)
55
56 # Check X configuration
57 AC_PATH_XTRA
58
59 XAW="Xaw"
60 AC_ARG_WITH(xaw3d,
61 [ --with-xaw3d Use Xaw3d ],
62 [XAW="Xaw3d"
63 AC_DEFINE(USE_XAW3D)])
64
65 AC_SUBST(XLDADD)
66 XLDADD="-l$XAW -lXmu -lXt"
67
68 AC_SUBST(fontdir)
69 fontdir='$(pkgdatadir)'
70 AC_ARG_WITH(x-fontdir,
71 [ --with-fontdir=PATH Use specified font path ],
72 [ fontdir=$withval ])
73
74 ##FIXME
75 AC_SUBST(MKFONTDIR)
76 MKFONTDIR=mkfontdir
77 AC_SUBST(BDFTOPCF)
78 BDFTOPCF=bdftopcf
79 AC_SUBST(GZIP)
80 GZIP=gzip
81
82 log_facility="LOG_LOCAL1"
83 AC_MSG_CHECKING(for syslog facility to use)
84 AC_ARG_WITH(log-facility,
85 [ --with-log-facility=facility enable logging to the given facility],
86 AC_TRY_COMPILE([#include <syslog.h>], int lf = $withval,
87 log_facility=$withval))
88 AC_DEFINE_UNQUOTED(LOGFACILITY, $log_facility)
89 AC_MSG_RESULT($log_facility)
90
91
92 AC_SUBST(inputdictpath)
93 inputdictpath=/usr/local/lib
94 AC_ARG_WITH(input-dict-path,
95 [ --with-input-dict-path Specify alternate path for input dictionaries],
96 [inputdictpath=$withval])
97
98 AC_SUBST(dictdir)
99 dictdir='$(pkgdatadir)'
100 AC_ARG_WITH(dict-path,
101 [ --with-dict-path Specify alternate path for dictionaries],
102 [dictdir=$withval])
103
104
105 AC_OUTPUT(Makefile include/Makefile utils/Makefile dbs/Makefile
106 lib/Makefile makedict/Makefile
107 server/Makefile client/Makefile fonts/Makefile)

Send suggestions and bug reports to Sergey Poznyakoff
ViewVC Help
Powered by ViewVC 1.1.20