File: configure.in

package info (click to toggle)
tua 4.3-11
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 940 kB
  • ctags: 522
  • sloc: ansic: 5,619; makefile: 486; yacc: 395; sh: 185
file content (209 lines) | stat: -rw-r--r-- 5,439 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
dnl
dnl TUA - The Uucp Analyzer configuration file
dnl Process this file with autoconf to produce a configure script.
dnl Copyright (C) 1992,96 Lele Gaifax
dnl

AC_INIT(TUA.tiff)
AC_PREFIX_PROGRAM(tua)

PACKAGE=TUA
VERSION=4.3

AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
AC_SUBST(PACKAGE)
AC_SUBST(VERSION)

dnl Set of available languages.
ALL_LINGUAS="it"

AC_SUBST(SUPPORT_OBJECTS)dnl
AC_SUBST(TAYLOR_UUCP)dnl
AC_SUBST(HDB_UUCP)dnl
AC_SUBST(TAYLOR_HDB)dnl
AC_SUBST(USE_GLOB_ALIASES)dnl
AC_SUBST(USE_READLINE)dnl
AC_SUBST(USE_TCL)dnl
AC_SUBST(USE_SOFTCHIP_BTREE)dnl

AC_CONFIG_HEADER(config.h)

AC_PROG_MAKE_SET
AC_PROG_CC
AC_PROG_CPP
AC_PROG_YACC
AC_PROG_GCC_TRADITIONAL
AC_PROG_INSTALL
AC_PROG_RANLIB
AC_PATH_PROG(PERL, perl, /usr/local/bin/perl)

AC_HEADER_STDC
AC_HEADER_DIRENT
AC_CHECK_LIB(m)

AC_CHECK_FUNCS(gethostname getdomainname)
AC_REPLACE_FUNCS(stpcpy strbegcmp strcasecmp modf rint)
AC_CHECK_HEADERS(sys/param.h stddef.h sys/types.h)
AC_CHECK_HEADERS(string.h memory.h time.h)
AC_MSG_CHECKING([for __FUNCTION__ macro])
AC_CACHE_VAL(tua_cv_function_macro,
[AC_TRY_COMPILE([#include <stdio.h>],
	[printf ("This function is %s\n", __FUNCTION__);],
 	tua_cv_function_macro=yes, tua_cv_function_macro=no)])
AC_MSG_RESULT($tua_cv_function_macro)
if test $tua_cv_function_macro = yes; then
  AC_DEFINE([HAVE_FUNCTION_MACRO])
fi

dnl
if test $ac_cv_header_stddef_h = yes; then
  AC_MSG_CHECKING([size_t in stddef.h])
  AC_TRY_COMPILE([#include <stddef.h>], [size_t x;],
  	[AC_DEFINE([HAVE_SIZE_T_IN_STDDEF_H])
	 AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)])
fi
dnl
if test $ac_cv_header_sys_types_h = yes; then
  AC_MSG_CHECKING([size_t in sys/types.h])
  AC_TRY_COMPILE([#include <sys/types.h>], [size_t x;],
	[AC_DEFINE([HAVE_SIZE_T_IN_TYPES_H])
	 AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)])
fi
if test $ac_cv_header_time_h; then
  AC_MSG_CHECKING([time_t in time.h])
  AC_TRY_COMPILE([#include <time.h>], [time_t i;],
	[AC_DEFINE([HAVE_TIME_T_IN_TIME_H])
	 AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)])
fi
dnl
if test $ac_cv_header_sys_types_h = yes; then
  AC_MSG_CHECKING([time_t in sys/types.h])
  AC_TRY_COMPILE([#include <sys/types.h>], [time_t i;],
	[AC_DEFINE([HAVE_TIME_T_IN_TYPES_H])
	 AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)])
fi

dnl

AC_FUNC_ALLOCA

dnl
AC_MSG_CHECKING(whether the compiler accepts '-Wall')
if test $ac_cv_prog_gcc = yes; then
 CFLAGS="$CFLAGS -Wall"
 AC_MSG_RESULT(yes)
else
 AC_MSG_RESULT(no)
fi

dnl

ud_GNU_GETTEXT
AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)

dnl
AC_MSG_CHECKING([for --with-glob])
tua_with_glob=yes
AC_ARG_WITH(glob, [  --with-glob		add support for Glob Aliases], [dnl
if test "$withval" = "no"; then
  tua_with_glob=no
fi])
if test $tua_with_glob = yes; then
  AC_MSG_RESULT(adding Glob Aliases support)
  SUPPORT_OBJECTS="$SUPPORT_OBJECTS globalias.o wildmat.o"
  AC_DEFINE([USE_GLOB_ALIASES],1)
else
  AC_MSG_RESULT(removing Glob Aliases support)
  AC_DEFINE([USE_GLOB_ALIASES],0)
fi

dnl
AC_MSG_CHECKING(for --with-readline)
tua_with_readline=no
AC_ARG_WITH(readline, [  --with-readline	add support for GNU ReadLine library], [dnl
if test "$withval" = "yes" 
then
  tua_with_readline=yes
fi])
if test $tua_with_readline = yes; then
  AC_MSG_RESULT(adding GNU ReadLine support)
  SUPPORT_OBJECTS="$SUPPORT_OBJECTS readl_supp.o"
  AC_DEFINE([USE_READLINE],1)
  AC_CHECK_LIB(readline ncurses curses termcap)
else
  AC_MSG_RESULT(removing GNU ReadLine support)
  AC_DEFINE([USE_READLINE],0)
fi

dnl
AC_MSG_CHECKING(for --with-tcl)
tua_with_tcl=no
AC_ARG_WITH(tcl, [  --with-tcl		add support for TCL], [dnl
if test "$withval" = "yes"; then
  tua_with_tcl=yes
fi])
if test $tua_with_tcl = yes; then
  AC_MSG_RESULT(adding TCL support)
  SUPPORT_OBJECTS="$SUPPORT_OBJECTS tcl_supp.o"
  AC_DEFINE([USE_TCL],1)
  AC_CHECK_LIB(tcl)
else
  AC_MSG_RESULT(removing TCL support)
  AC_DEFINE([USE_TCL],0)
fi

dnl
AC_MSG_CHECKING(for --with-softchip)
tua_with_softchip=no
AC_ARG_WITH(softchip, [  --with-softchip	add support for SoftChip BTree library], [dnl
if test "$withval" = "yes"; then
  tua_with_softchip=yes
fi])
if test $tua_with_softchip = yes; then
  AC_MSG_RESULT(adding SoftChip BTree support)
  AC_DEFINE([USE_SOFTCHIP_BTREE],1)
  AC_CHECK_LIB(btree)
else
  AC_MSG_RESULT(removing SoftChip BTree support)
  AC_DEFINE([USE_SOFTCHIP_BTREE],0)
fi

dnl
AC_MSG_CHECKING(for --enable-taylor)
AC_ARG_ENABLE(taylor, [  --enable-taylor	include Taylor Uucp support], [dnl
if test "$enableval" = "yes" ; then
  AC_MSG_RESULT(enabled)
  AC_DEFINE([TAYLOR_UUCP], 1)
else
  AC_MSG_RESULT(disabled)
  AC_DEFINE([TAYLOR_UUCP], 0)
fi], [dnl
AC_MSG_RESULT(enabled)
AC_DEFINE([TAYLOR_UUCP], 1)])

dnl
AC_MSG_CHECKING(for --enable-hdb)
AC_ARG_ENABLE(hdb, [  --enable-hdb		include HDB Uucp support], [dnl
if test "$enableval" = "yes" ; then
  AC_DEFINE([HDB_UUCP], 1)
  taylor_version=`uucp --version 2>/dev/null`
  if expr "$taylor_version" : ".*Taylor UUCP" >/dev/null 2>&1; then
    AC_MSG_RESULT(enabled (Taylor Uucp HDB-like))
    AC_DEFINE(TAYLOR_HDB)
  else
    AC_MSG_RESULT(enabled)
  fi
else
  AC_MSG_RESULT(disabled)
  AC_DEFINE([HDB_UUCP], 0)
fi], [dnl
AC_MSG_RESULT(disabled)
AC_DEFINE([HDB_UUCP], 0)])
dnl

AC_OUTPUT([Makefile src/Makefile src/hdb/Makefile src/taylor/Makefile \
	   src/lib/Makefile doc/Makefile lib/Makefile \
	   intl/Makefile po/Makefile.in],
          [sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile;])