1 |
root |
1.1 |
#! /bin/sh |
2 |
root |
1.4.2.1 |
|
3 |
root |
1.1 |
# Guess values for system-dependent variables and create Makefiles. |
4 |
root |
1.4.2.1 |
# Generated automatically using autoconf version 2.13 |
5 |
|
|
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
6 |
root |
1.1 |
# |
7 |
|
|
# This configure script is free software; the Free Software Foundation |
8 |
|
|
# gives unlimited permission to copy, distribute and modify it. |
9 |
|
|
|
10 |
root |
1.4.2.1 |
# Defaults: |
11 |
|
|
ac_help= |
12 |
root |
1.1 |
ac_default_prefix=/usr/local |
13 |
root |
1.4.2.1 |
# Any additions from configure.in: |
14 |
|
|
ac_help="$ac_help |
15 |
|
|
--disable-optimize compile for debugging" |
16 |
root |
1.1 |
|
17 |
|
|
# Initialize some variables set by options. |
18 |
|
|
# The variables have the same names as the options, with |
19 |
|
|
# dashes changed to underlines. |
20 |
root |
1.4.2.1 |
build=NONE |
21 |
|
|
cache_file=./config.cache |
22 |
root |
1.1 |
exec_prefix=NONE |
23 |
root |
1.4.2.1 |
host=NONE |
24 |
root |
1.1 |
no_create= |
25 |
root |
1.4.2.1 |
nonopt=NONE |
26 |
root |
1.1 |
no_recursion= |
27 |
|
|
prefix=NONE |
28 |
|
|
program_prefix=NONE |
29 |
|
|
program_suffix=NONE |
30 |
|
|
program_transform_name=s,x,x, |
31 |
|
|
silent= |
32 |
|
|
site= |
33 |
|
|
srcdir= |
34 |
root |
1.4.2.1 |
target=NONE |
35 |
root |
1.1 |
verbose= |
36 |
|
|
x_includes=NONE |
37 |
|
|
x_libraries=NONE |
38 |
|
|
bindir='${exec_prefix}/bin' |
39 |
|
|
sbindir='${exec_prefix}/sbin' |
40 |
|
|
libexecdir='${exec_prefix}/libexec' |
41 |
|
|
datadir='${prefix}/share' |
42 |
|
|
sysconfdir='${prefix}/etc' |
43 |
|
|
sharedstatedir='${prefix}/com' |
44 |
|
|
localstatedir='${prefix}/var' |
45 |
|
|
libdir='${exec_prefix}/lib' |
46 |
|
|
includedir='${prefix}/include' |
47 |
|
|
oldincludedir='/usr/include' |
48 |
|
|
infodir='${prefix}/info' |
49 |
|
|
mandir='${prefix}/man' |
50 |
|
|
|
51 |
root |
1.4.2.1 |
# Initialize some other variables. |
52 |
|
|
subdirs= |
53 |
|
|
MFLAGS= MAKEFLAGS= |
54 |
|
|
SHELL=${CONFIG_SHELL-/bin/sh} |
55 |
|
|
# Maximum number of lines to put in a shell here document. |
56 |
|
|
ac_max_here_lines=12 |
57 |
root |
1.1 |
|
58 |
|
|
ac_prev= |
59 |
|
|
for ac_option |
60 |
|
|
do |
61 |
root |
1.4.2.1 |
|
62 |
root |
1.1 |
# If the previous option needs an argument, assign it. |
63 |
|
|
if test -n "$ac_prev"; then |
64 |
|
|
eval "$ac_prev=\$ac_option" |
65 |
|
|
ac_prev= |
66 |
|
|
continue |
67 |
|
|
fi |
68 |
|
|
|
69 |
root |
1.4.2.1 |
case "$ac_option" in |
70 |
|
|
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
71 |
|
|
*) ac_optarg= ;; |
72 |
|
|
esac |
73 |
root |
1.1 |
|
74 |
|
|
# Accept the important Cygnus configure options, so we can diagnose typos. |
75 |
|
|
|
76 |
root |
1.4.2.1 |
case "$ac_option" in |
77 |
root |
1.1 |
|
78 |
|
|
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
79 |
|
|
ac_prev=bindir ;; |
80 |
|
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
81 |
root |
1.4.2.1 |
bindir="$ac_optarg" ;; |
82 |
root |
1.1 |
|
83 |
|
|
-build | --build | --buil | --bui | --bu) |
84 |
root |
1.4.2.1 |
ac_prev=build ;; |
85 |
root |
1.1 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
86 |
root |
1.4.2.1 |
build="$ac_optarg" ;; |
87 |
root |
1.1 |
|
88 |
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
89 |
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
90 |
|
|
ac_prev=cache_file ;; |
91 |
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
92 |
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
93 |
root |
1.4.2.1 |
cache_file="$ac_optarg" ;; |
94 |
root |
1.1 |
|
95 |
|
|
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
96 |
|
|
ac_prev=datadir ;; |
97 |
|
|
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
98 |
|
|
| --da=*) |
99 |
root |
1.4.2.1 |
datadir="$ac_optarg" ;; |
100 |
root |
1.1 |
|
101 |
|
|
-disable-* | --disable-*) |
102 |
root |
1.4.2.1 |
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
103 |
root |
1.1 |
# Reject names that are not valid shell variable names. |
104 |
root |
1.4.2.1 |
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
105 |
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
106 |
|
|
fi |
107 |
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
108 |
|
|
eval "enable_${ac_feature}=no" ;; |
109 |
root |
1.1 |
|
110 |
|
|
-enable-* | --enable-*) |
111 |
root |
1.4.2.1 |
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
112 |
root |
1.1 |
# Reject names that are not valid shell variable names. |
113 |
root |
1.4.2.1 |
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
114 |
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
115 |
|
|
fi |
116 |
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
117 |
|
|
case "$ac_option" in |
118 |
|
|
*=*) ;; |
119 |
root |
1.1 |
*) ac_optarg=yes ;; |
120 |
|
|
esac |
121 |
root |
1.4.2.1 |
eval "enable_${ac_feature}='$ac_optarg'" ;; |
122 |
root |
1.1 |
|
123 |
|
|
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
124 |
|
|
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
125 |
|
|
| --exec | --exe | --ex) |
126 |
|
|
ac_prev=exec_prefix ;; |
127 |
|
|
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
128 |
|
|
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
129 |
|
|
| --exec=* | --exe=* | --ex=*) |
130 |
root |
1.4.2.1 |
exec_prefix="$ac_optarg" ;; |
131 |
root |
1.1 |
|
132 |
|
|
-gas | --gas | --ga | --g) |
133 |
|
|
# Obsolete; use --with-gas. |
134 |
|
|
with_gas=yes ;; |
135 |
|
|
|
136 |
root |
1.4.2.1 |
-help | --help | --hel | --he) |
137 |
|
|
# Omit some internal or obsolete options to make the list less imposing. |
138 |
|
|
# This message is too long to be a string in the A/UX 3.1 sh. |
139 |
|
|
cat << EOF |
140 |
|
|
Usage: configure [options] [host] |
141 |
|
|
Options: [defaults in brackets after descriptions] |
142 |
|
|
Configuration: |
143 |
|
|
--cache-file=FILE cache test results in FILE |
144 |
|
|
--help print this message |
145 |
|
|
--no-create do not create output files |
146 |
|
|
--quiet, --silent do not print \`checking...' messages |
147 |
|
|
--version print the version of autoconf that created configure |
148 |
|
|
Directory and file names: |
149 |
|
|
--prefix=PREFIX install architecture-independent files in PREFIX |
150 |
|
|
[$ac_default_prefix] |
151 |
|
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
152 |
|
|
[same as prefix] |
153 |
|
|
--bindir=DIR user executables in DIR [EPREFIX/bin] |
154 |
|
|
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
155 |
|
|
--libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
156 |
|
|
--datadir=DIR read-only architecture-independent data in DIR |
157 |
|
|
[PREFIX/share] |
158 |
|
|
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
159 |
|
|
--sharedstatedir=DIR modifiable architecture-independent data in DIR |
160 |
|
|
[PREFIX/com] |
161 |
|
|
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
162 |
|
|
--libdir=DIR object code libraries in DIR [EPREFIX/lib] |
163 |
|
|
--includedir=DIR C header files in DIR [PREFIX/include] |
164 |
|
|
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
165 |
|
|
--infodir=DIR info documentation in DIR [PREFIX/info] |
166 |
|
|
--mandir=DIR man documentation in DIR [PREFIX/man] |
167 |
|
|
--srcdir=DIR find the sources in DIR [configure dir or ..] |
168 |
|
|
--program-prefix=PREFIX prepend PREFIX to installed program names |
169 |
|
|
--program-suffix=SUFFIX append SUFFIX to installed program names |
170 |
|
|
--program-transform-name=PROGRAM |
171 |
|
|
run sed PROGRAM on installed program names |
172 |
|
|
EOF |
173 |
|
|
cat << EOF |
174 |
|
|
Host type: |
175 |
|
|
--build=BUILD configure for building on BUILD [BUILD=HOST] |
176 |
|
|
--host=HOST configure for HOST [guessed] |
177 |
|
|
--target=TARGET configure for TARGET [TARGET=HOST] |
178 |
|
|
Features and packages: |
179 |
|
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
180 |
|
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
181 |
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
182 |
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
183 |
|
|
--x-includes=DIR X include files are in DIR |
184 |
|
|
--x-libraries=DIR X library files are in DIR |
185 |
|
|
EOF |
186 |
|
|
if test -n "$ac_help"; then |
187 |
|
|
echo "--enable and --with options recognized:$ac_help" |
188 |
|
|
fi |
189 |
|
|
exit 0 ;; |
190 |
root |
1.1 |
|
191 |
|
|
-host | --host | --hos | --ho) |
192 |
root |
1.4.2.1 |
ac_prev=host ;; |
193 |
root |
1.1 |
-host=* | --host=* | --hos=* | --ho=*) |
194 |
root |
1.4.2.1 |
host="$ac_optarg" ;; |
195 |
root |
1.1 |
|
196 |
|
|
-includedir | --includedir | --includedi | --included | --include \ |
197 |
|
|
| --includ | --inclu | --incl | --inc) |
198 |
|
|
ac_prev=includedir ;; |
199 |
|
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
200 |
|
|
| --includ=* | --inclu=* | --incl=* | --inc=*) |
201 |
root |
1.4.2.1 |
includedir="$ac_optarg" ;; |
202 |
root |
1.1 |
|
203 |
|
|
-infodir | --infodir | --infodi | --infod | --info | --inf) |
204 |
|
|
ac_prev=infodir ;; |
205 |
|
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
206 |
root |
1.4.2.1 |
infodir="$ac_optarg" ;; |
207 |
root |
1.1 |
|
208 |
|
|
-libdir | --libdir | --libdi | --libd) |
209 |
|
|
ac_prev=libdir ;; |
210 |
|
|
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
211 |
root |
1.4.2.1 |
libdir="$ac_optarg" ;; |
212 |
root |
1.1 |
|
213 |
|
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
214 |
|
|
| --libexe | --libex | --libe) |
215 |
|
|
ac_prev=libexecdir ;; |
216 |
|
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
217 |
|
|
| --libexe=* | --libex=* | --libe=*) |
218 |
root |
1.4.2.1 |
libexecdir="$ac_optarg" ;; |
219 |
root |
1.1 |
|
220 |
|
|
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
221 |
|
|
| --localstate | --localstat | --localsta | --localst \ |
222 |
|
|
| --locals | --local | --loca | --loc | --lo) |
223 |
|
|
ac_prev=localstatedir ;; |
224 |
|
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
225 |
|
|
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
226 |
|
|
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
227 |
root |
1.4.2.1 |
localstatedir="$ac_optarg" ;; |
228 |
root |
1.1 |
|
229 |
|
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
230 |
|
|
ac_prev=mandir ;; |
231 |
|
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
232 |
root |
1.4.2.1 |
mandir="$ac_optarg" ;; |
233 |
root |
1.1 |
|
234 |
|
|
-nfp | --nfp | --nf) |
235 |
|
|
# Obsolete; use --without-fp. |
236 |
|
|
with_fp=no ;; |
237 |
|
|
|
238 |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
239 |
|
|
| --no-cr | --no-c) |
240 |
|
|
no_create=yes ;; |
241 |
|
|
|
242 |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
243 |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
244 |
|
|
no_recursion=yes ;; |
245 |
|
|
|
246 |
|
|
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
247 |
|
|
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
248 |
|
|
| --oldin | --oldi | --old | --ol | --o) |
249 |
|
|
ac_prev=oldincludedir ;; |
250 |
|
|
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
251 |
|
|
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
252 |
|
|
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
253 |
root |
1.4.2.1 |
oldincludedir="$ac_optarg" ;; |
254 |
root |
1.1 |
|
255 |
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
256 |
|
|
ac_prev=prefix ;; |
257 |
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
258 |
root |
1.4.2.1 |
prefix="$ac_optarg" ;; |
259 |
root |
1.1 |
|
260 |
|
|
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
261 |
|
|
| --program-pre | --program-pr | --program-p) |
262 |
|
|
ac_prev=program_prefix ;; |
263 |
|
|
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
264 |
|
|
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
265 |
root |
1.4.2.1 |
program_prefix="$ac_optarg" ;; |
266 |
root |
1.1 |
|
267 |
|
|
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
268 |
|
|
| --program-suf | --program-su | --program-s) |
269 |
|
|
ac_prev=program_suffix ;; |
270 |
|
|
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
271 |
|
|
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
272 |
root |
1.4.2.1 |
program_suffix="$ac_optarg" ;; |
273 |
root |
1.1 |
|
274 |
|
|
-program-transform-name | --program-transform-name \ |
275 |
|
|
| --program-transform-nam | --program-transform-na \ |
276 |
|
|
| --program-transform-n | --program-transform- \ |
277 |
|
|
| --program-transform | --program-transfor \ |
278 |
|
|
| --program-transfo | --program-transf \ |
279 |
|
|
| --program-trans | --program-tran \ |
280 |
|
|
| --progr-tra | --program-tr | --program-t) |
281 |
|
|
ac_prev=program_transform_name ;; |
282 |
|
|
-program-transform-name=* | --program-transform-name=* \ |
283 |
|
|
| --program-transform-nam=* | --program-transform-na=* \ |
284 |
|
|
| --program-transform-n=* | --program-transform-=* \ |
285 |
|
|
| --program-transform=* | --program-transfor=* \ |
286 |
|
|
| --program-transfo=* | --program-transf=* \ |
287 |
|
|
| --program-trans=* | --program-tran=* \ |
288 |
|
|
| --progr-tra=* | --program-tr=* | --program-t=*) |
289 |
root |
1.4.2.1 |
program_transform_name="$ac_optarg" ;; |
290 |
root |
1.1 |
|
291 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
292 |
|
|
| -silent | --silent | --silen | --sile | --sil) |
293 |
|
|
silent=yes ;; |
294 |
|
|
|
295 |
|
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
296 |
|
|
ac_prev=sbindir ;; |
297 |
|
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
298 |
|
|
| --sbi=* | --sb=*) |
299 |
root |
1.4.2.1 |
sbindir="$ac_optarg" ;; |
300 |
root |
1.1 |
|
301 |
|
|
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
302 |
|
|
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
303 |
|
|
| --sharedst | --shareds | --shared | --share | --shar \ |
304 |
|
|
| --sha | --sh) |
305 |
|
|
ac_prev=sharedstatedir ;; |
306 |
|
|
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
307 |
|
|
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
308 |
|
|
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
309 |
|
|
| --sha=* | --sh=*) |
310 |
root |
1.4.2.1 |
sharedstatedir="$ac_optarg" ;; |
311 |
root |
1.1 |
|
312 |
|
|
-site | --site | --sit) |
313 |
|
|
ac_prev=site ;; |
314 |
|
|
-site=* | --site=* | --sit=*) |
315 |
root |
1.4.2.1 |
site="$ac_optarg" ;; |
316 |
root |
1.1 |
|
317 |
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
318 |
|
|
ac_prev=srcdir ;; |
319 |
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
320 |
root |
1.4.2.1 |
srcdir="$ac_optarg" ;; |
321 |
root |
1.1 |
|
322 |
|
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
323 |
|
|
| --syscon | --sysco | --sysc | --sys | --sy) |
324 |
|
|
ac_prev=sysconfdir ;; |
325 |
|
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
326 |
|
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
327 |
root |
1.4.2.1 |
sysconfdir="$ac_optarg" ;; |
328 |
root |
1.1 |
|
329 |
|
|
-target | --target | --targe | --targ | --tar | --ta | --t) |
330 |
root |
1.4.2.1 |
ac_prev=target ;; |
331 |
root |
1.1 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
332 |
root |
1.4.2.1 |
target="$ac_optarg" ;; |
333 |
root |
1.1 |
|
334 |
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
335 |
|
|
verbose=yes ;; |
336 |
|
|
|
337 |
root |
1.4.2.1 |
-version | --version | --versio | --versi | --vers) |
338 |
|
|
echo "configure generated by autoconf version 2.13" |
339 |
|
|
exit 0 ;; |
340 |
root |
1.1 |
|
341 |
|
|
-with-* | --with-*) |
342 |
root |
1.4.2.1 |
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
343 |
root |
1.1 |
# Reject names that are not valid shell variable names. |
344 |
root |
1.4.2.1 |
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
345 |
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
346 |
|
|
fi |
347 |
root |
1.1 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
348 |
root |
1.4.2.1 |
case "$ac_option" in |
349 |
|
|
*=*) ;; |
350 |
root |
1.1 |
*) ac_optarg=yes ;; |
351 |
|
|
esac |
352 |
root |
1.4.2.1 |
eval "with_${ac_package}='$ac_optarg'" ;; |
353 |
root |
1.1 |
|
354 |
|
|
-without-* | --without-*) |
355 |
root |
1.4.2.1 |
ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
356 |
root |
1.1 |
# Reject names that are not valid shell variable names. |
357 |
root |
1.4.2.1 |
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
358 |
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
359 |
|
|
fi |
360 |
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'` |
361 |
|
|
eval "with_${ac_package}=no" ;; |
362 |
root |
1.1 |
|
363 |
|
|
--x) |
364 |
|
|
# Obsolete; use --with-x. |
365 |
|
|
with_x=yes ;; |
366 |
|
|
|
367 |
|
|
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
368 |
|
|
| --x-incl | --x-inc | --x-in | --x-i) |
369 |
|
|
ac_prev=x_includes ;; |
370 |
|
|
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
371 |
|
|
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
372 |
root |
1.4.2.1 |
x_includes="$ac_optarg" ;; |
373 |
root |
1.1 |
|
374 |
|
|
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
375 |
|
|
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
376 |
|
|
ac_prev=x_libraries ;; |
377 |
|
|
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
378 |
|
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
379 |
root |
1.4.2.1 |
x_libraries="$ac_optarg" ;; |
380 |
root |
1.1 |
|
381 |
root |
1.4.2.1 |
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
382 |
root |
1.1 |
;; |
383 |
|
|
|
384 |
|
|
*) |
385 |
root |
1.4.2.1 |
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
386 |
|
|
echo "configure: warning: $ac_option: invalid host type" 1>&2 |
387 |
|
|
fi |
388 |
|
|
if test "x$nonopt" != xNONE; then |
389 |
|
|
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
390 |
|
|
fi |
391 |
|
|
nonopt="$ac_option" |
392 |
root |
1.1 |
;; |
393 |
|
|
|
394 |
|
|
esac |
395 |
|
|
done |
396 |
|
|
|
397 |
|
|
if test -n "$ac_prev"; then |
398 |
root |
1.4.2.1 |
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
399 |
root |
1.1 |
fi |
400 |
|
|
|
401 |
root |
1.4.2.1 |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
402 |
|
|
|
403 |
|
|
# File descriptor usage: |
404 |
|
|
# 0 standard input |
405 |
|
|
# 1 file creation |
406 |
|
|
# 2 errors and warnings |
407 |
|
|
# 3 some systems may open it to /dev/tty |
408 |
|
|
# 4 used on the Kubota Titan |
409 |
|
|
# 6 checking for... messages and results |
410 |
|
|
# 5 compiler messages saved in config.log |
411 |
|
|
if test "$silent" = yes; then |
412 |
|
|
exec 6>/dev/null |
413 |
|
|
else |
414 |
|
|
exec 6>&1 |
415 |
|
|
fi |
416 |
|
|
exec 5>./config.log |
417 |
|
|
|
418 |
|
|
echo "\ |
419 |
|
|
This file contains any messages produced by compilers while |
420 |
|
|
running configure, to aid debugging if configure makes a mistake. |
421 |
|
|
" 1>&5 |
422 |
root |
1.1 |
|
423 |
root |
1.4.2.1 |
# Strip out --no-create and --no-recursion so they do not pile up. |
424 |
|
|
# Also quote any args containing shell metacharacters. |
425 |
|
|
ac_configure_args= |
426 |
|
|
for ac_arg |
427 |
root |
1.1 |
do |
428 |
root |
1.4.2.1 |
case "$ac_arg" in |
429 |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
430 |
|
|
| --no-cr | --no-c) ;; |
431 |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
432 |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
433 |
|
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
434 |
|
|
ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
435 |
|
|
*) ac_configure_args="$ac_configure_args $ac_arg" ;; |
436 |
root |
1.1 |
esac |
437 |
|
|
done |
438 |
|
|
|
439 |
root |
1.4.2.1 |
# NLS nuisances. |
440 |
|
|
# Only set these to C if already set. These must not be set unconditionally |
441 |
|
|
# because not all systems understand e.g. LANG=C (notably SCO). |
442 |
|
|
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
443 |
|
|
# Non-C LC_CTYPE values break the ctype check. |
444 |
|
|
if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
445 |
|
|
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
446 |
|
|
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
447 |
|
|
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
448 |
root |
1.1 |
|
449 |
root |
1.4.2.1 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
450 |
|
|
rm -rf conftest* confdefs.h |
451 |
|
|
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
452 |
|
|
echo > confdefs.h |
453 |
root |
1.1 |
|
454 |
root |
1.4.2.1 |
# A filename unique to this package, relative to the directory that |
455 |
|
|
# configure is in, which we can look for to find out if srcdir is correct. |
456 |
|
|
ac_unique_file=uulib.c |
457 |
root |
1.1 |
|
458 |
|
|
# Find the source files, if location was not specified. |
459 |
|
|
if test -z "$srcdir"; then |
460 |
|
|
ac_srcdir_defaulted=yes |
461 |
|
|
# Try the directory containing this script, then its parent. |
462 |
|
|
ac_prog=$0 |
463 |
root |
1.4.2.1 |
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
464 |
root |
1.1 |
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
465 |
|
|
srcdir=$ac_confdir |
466 |
|
|
if test ! -r $srcdir/$ac_unique_file; then |
467 |
|
|
srcdir=.. |
468 |
|
|
fi |
469 |
|
|
else |
470 |
|
|
ac_srcdir_defaulted=no |
471 |
|
|
fi |
472 |
|
|
if test ! -r $srcdir/$ac_unique_file; then |
473 |
|
|
if test "$ac_srcdir_defaulted" = yes; then |
474 |
root |
1.4.2.1 |
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
475 |
root |
1.1 |
else |
476 |
root |
1.4.2.1 |
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
477 |
root |
1.1 |
fi |
478 |
|
|
fi |
479 |
root |
1.4.2.1 |
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
480 |
root |
1.4 |
|
481 |
root |
1.1 |
# Prefer explicitly selected file to automatically selected ones. |
482 |
|
|
if test -z "$CONFIG_SITE"; then |
483 |
|
|
if test "x$prefix" != xNONE; then |
484 |
|
|
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
485 |
|
|
else |
486 |
|
|
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
487 |
|
|
fi |
488 |
|
|
fi |
489 |
|
|
for ac_site_file in $CONFIG_SITE; do |
490 |
|
|
if test -r "$ac_site_file"; then |
491 |
root |
1.4.2.1 |
echo "loading site script $ac_site_file" |
492 |
root |
1.1 |
. "$ac_site_file" |
493 |
|
|
fi |
494 |
|
|
done |
495 |
|
|
|
496 |
|
|
if test -r "$cache_file"; then |
497 |
root |
1.4.2.1 |
echo "loading cache $cache_file" |
498 |
|
|
. $cache_file |
499 |
root |
1.1 |
else |
500 |
root |
1.4.2.1 |
echo "creating cache $cache_file" |
501 |
|
|
> $cache_file |
502 |
root |
1.1 |
fi |
503 |
|
|
|
504 |
|
|
ac_ext=c |
505 |
root |
1.4.2.1 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
506 |
root |
1.1 |
ac_cpp='$CPP $CPPFLAGS' |
507 |
root |
1.4.2.1 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
508 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
509 |
|
|
cross_compiling=$ac_cv_prog_cc_cross |
510 |
|
|
|
511 |
|
|
ac_exeext= |
512 |
|
|
ac_objext=o |
513 |
|
|
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
514 |
|
|
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
515 |
|
|
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
516 |
|
|
ac_n= ac_c=' |
517 |
|
|
' ac_t=' ' |
518 |
|
|
else |
519 |
|
|
ac_n=-n ac_c= ac_t= |
520 |
|
|
fi |
521 |
root |
1.1 |
else |
522 |
root |
1.4.2.1 |
ac_n= ac_c='\c' ac_t= |
523 |
root |
1.1 |
fi |
524 |
|
|
|
525 |
root |
1.4.2.1 |
|
526 |
|
|
|
527 |
|
|
|
528 |
root |
1.1 |
|
529 |
|
|
# |
530 |
|
|
# package revision |
531 |
|
|
# |
532 |
|
|
VERSION=0.5 |
533 |
root |
1.4.2.4 |
PATCH=19 |
534 |
root |
1.1 |
|
535 |
root |
1.4.2.1 |
# Check whether --enable-optimize or --disable-optimize was given. |
536 |
|
|
if test "${enable_optimize+set}" = set; then |
537 |
|
|
enableval="$enable_optimize" |
538 |
|
|
optimize=$enableval |
539 |
root |
1.4 |
else |
540 |
root |
1.4.2.1 |
optimize=yes |
541 |
root |
1.1 |
fi |
542 |
|
|
|
543 |
|
|
|
544 |
root |
1.4.2.1 |
# Extract the first word of "gcc", so it can be a program name with args. |
545 |
|
|
set dummy gcc; ac_word=$2 |
546 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
547 |
|
|
echo "configure:548: checking for $ac_word" >&5 |
548 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
549 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
550 |
root |
1.1 |
else |
551 |
|
|
if test -n "$CC"; then |
552 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
553 |
|
|
else |
554 |
root |
1.4.2.1 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
555 |
|
|
ac_dummy="$PATH" |
556 |
|
|
for ac_dir in $ac_dummy; do |
557 |
|
|
test -z "$ac_dir" && ac_dir=. |
558 |
|
|
if test -f $ac_dir/$ac_word; then |
559 |
|
|
ac_cv_prog_CC="gcc" |
560 |
|
|
break |
561 |
|
|
fi |
562 |
|
|
done |
563 |
|
|
IFS="$ac_save_ifs" |
564 |
root |
1.1 |
fi |
565 |
|
|
fi |
566 |
root |
1.4.2.1 |
CC="$ac_cv_prog_CC" |
567 |
root |
1.1 |
if test -n "$CC"; then |
568 |
root |
1.4.2.1 |
echo "$ac_t""$CC" 1>&6 |
569 |
root |
1.1 |
else |
570 |
root |
1.4.2.1 |
echo "$ac_t""no" 1>&6 |
571 |
root |
1.1 |
fi |
572 |
|
|
|
573 |
|
|
if test -z "$CC"; then |
574 |
|
|
# Extract the first word of "cc", so it can be a program name with args. |
575 |
|
|
set dummy cc; ac_word=$2 |
576 |
root |
1.4.2.1 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
577 |
|
|
echo "configure:578: checking for $ac_word" >&5 |
578 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
579 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
580 |
root |
1.1 |
else |
581 |
|
|
if test -n "$CC"; then |
582 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
583 |
|
|
else |
584 |
root |
1.4.2.1 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
585 |
root |
1.1 |
ac_prog_rejected=no |
586 |
root |
1.4.2.1 |
ac_dummy="$PATH" |
587 |
|
|
for ac_dir in $ac_dummy; do |
588 |
|
|
test -z "$ac_dir" && ac_dir=. |
589 |
|
|
if test -f $ac_dir/$ac_word; then |
590 |
|
|
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
591 |
|
|
ac_prog_rejected=yes |
592 |
|
|
continue |
593 |
|
|
fi |
594 |
|
|
ac_cv_prog_CC="cc" |
595 |
|
|
break |
596 |
|
|
fi |
597 |
|
|
done |
598 |
|
|
IFS="$ac_save_ifs" |
599 |
root |
1.1 |
if test $ac_prog_rejected = yes; then |
600 |
|
|
# We found a bogon in the path, so make sure we never use it. |
601 |
|
|
set dummy $ac_cv_prog_CC |
602 |
|
|
shift |
603 |
root |
1.4.2.1 |
if test $# -gt 0; then |
604 |
root |
1.1 |
# We chose a different compiler from the bogus one. |
605 |
|
|
# However, it has the same basename, so the bogon will be chosen |
606 |
|
|
# first if we set CC to just the basename; use the full file name. |
607 |
|
|
shift |
608 |
root |
1.4.2.1 |
set dummy "$ac_dir/$ac_word" "$@" |
609 |
root |
1.1 |
shift |
610 |
|
|
ac_cv_prog_CC="$@" |
611 |
|
|
fi |
612 |
|
|
fi |
613 |
|
|
fi |
614 |
|
|
fi |
615 |
root |
1.4.2.1 |
CC="$ac_cv_prog_CC" |
616 |
root |
1.1 |
if test -n "$CC"; then |
617 |
root |
1.4.2.1 |
echo "$ac_t""$CC" 1>&6 |
618 |
root |
1.1 |
else |
619 |
root |
1.4.2.1 |
echo "$ac_t""no" 1>&6 |
620 |
root |
1.1 |
fi |
621 |
|
|
|
622 |
root |
1.4.2.1 |
if test -z "$CC"; then |
623 |
|
|
case "`uname -s`" in |
624 |
|
|
*win32* | *WIN32*) |
625 |
|
|
# Extract the first word of "cl", so it can be a program name with args. |
626 |
|
|
set dummy cl; ac_word=$2 |
627 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
628 |
|
|
echo "configure:629: checking for $ac_word" >&5 |
629 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
630 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
631 |
root |
1.1 |
else |
632 |
|
|
if test -n "$CC"; then |
633 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
634 |
|
|
else |
635 |
root |
1.4.2.1 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
636 |
|
|
ac_dummy="$PATH" |
637 |
|
|
for ac_dir in $ac_dummy; do |
638 |
|
|
test -z "$ac_dir" && ac_dir=. |
639 |
|
|
if test -f $ac_dir/$ac_word; then |
640 |
|
|
ac_cv_prog_CC="cl" |
641 |
|
|
break |
642 |
|
|
fi |
643 |
|
|
done |
644 |
|
|
IFS="$ac_save_ifs" |
645 |
root |
1.1 |
fi |
646 |
|
|
fi |
647 |
root |
1.4.2.1 |
CC="$ac_cv_prog_CC" |
648 |
root |
1.1 |
if test -n "$CC"; then |
649 |
root |
1.4.2.1 |
echo "$ac_t""$CC" 1>&6 |
650 |
root |
1.1 |
else |
651 |
root |
1.4.2.1 |
echo "$ac_t""no" 1>&6 |
652 |
root |
1.1 |
fi |
653 |
root |
1.4.2.1 |
;; |
654 |
|
|
esac |
655 |
|
|
fi |
656 |
|
|
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
657 |
root |
1.1 |
fi |
658 |
|
|
|
659 |
root |
1.4.2.1 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
660 |
|
|
echo "configure:661: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
661 |
root |
1.1 |
|
662 |
root |
1.4.2.1 |
ac_ext=c |
663 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
664 |
|
|
ac_cpp='$CPP $CPPFLAGS' |
665 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
666 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
667 |
|
|
cross_compiling=$ac_cv_prog_cc_cross |
668 |
root |
1.1 |
|
669 |
root |
1.4.2.1 |
cat > conftest.$ac_ext << EOF |
670 |
root |
1.1 |
|
671 |
root |
1.4.2.1 |
#line 672 "configure" |
672 |
root |
1.1 |
#include "confdefs.h" |
673 |
|
|
|
674 |
root |
1.4.2.1 |
main(){return(0);} |
675 |
|
|
EOF |
676 |
|
|
if { (eval echo configure:677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
677 |
|
|
ac_cv_prog_cc_works=yes |
678 |
|
|
# If we can't run a trivial program, we are probably using a cross compiler. |
679 |
|
|
if (./conftest; exit) 2>/dev/null; then |
680 |
|
|
ac_cv_prog_cc_cross=no |
681 |
root |
1.1 |
else |
682 |
root |
1.4.2.1 |
ac_cv_prog_cc_cross=yes |
683 |
root |
1.1 |
fi |
684 |
root |
1.4.2.1 |
else |
685 |
|
|
echo "configure: failed program was:" >&5 |
686 |
|
|
cat conftest.$ac_ext >&5 |
687 |
|
|
ac_cv_prog_cc_works=no |
688 |
root |
1.4 |
fi |
689 |
root |
1.4.2.1 |
rm -fr conftest* |
690 |
|
|
ac_ext=c |
691 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
692 |
|
|
ac_cpp='$CPP $CPPFLAGS' |
693 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
694 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
695 |
|
|
cross_compiling=$ac_cv_prog_cc_cross |
696 |
|
|
|
697 |
|
|
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
698 |
|
|
if test $ac_cv_prog_cc_works = no; then |
699 |
|
|
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
700 |
|
|
fi |
701 |
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
702 |
|
|
echo "configure:703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
703 |
|
|
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
704 |
|
|
cross_compiling=$ac_cv_prog_cc_cross |
705 |
|
|
|
706 |
|
|
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
707 |
|
|
echo "configure:708: checking whether we are using GNU C" >&5 |
708 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
709 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
710 |
|
|
else |
711 |
|
|
cat > conftest.c <<EOF |
712 |
|
|
#ifdef __GNUC__ |
713 |
|
|
yes; |
714 |
|
|
#endif |
715 |
|
|
EOF |
716 |
|
|
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
717 |
|
|
ac_cv_prog_gcc=yes |
718 |
root |
1.1 |
else |
719 |
root |
1.4.2.1 |
ac_cv_prog_gcc=no |
720 |
|
|
fi |
721 |
|
|
fi |
722 |
|
|
|
723 |
|
|
echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
724 |
|
|
|
725 |
|
|
if test $ac_cv_prog_gcc = yes; then |
726 |
|
|
GCC=yes |
727 |
root |
1.1 |
else |
728 |
root |
1.4.2.1 |
GCC= |
729 |
|
|
fi |
730 |
root |
1.1 |
|
731 |
root |
1.4.2.1 |
ac_test_CFLAGS="${CFLAGS+set}" |
732 |
|
|
ac_save_CFLAGS="$CFLAGS" |
733 |
|
|
CFLAGS= |
734 |
|
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
735 |
|
|
echo "configure:736: checking whether ${CC-cc} accepts -g" >&5 |
736 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
737 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
738 |
root |
1.1 |
else |
739 |
root |
1.4.2.1 |
echo 'void f(){}' > conftest.c |
740 |
|
|
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
741 |
|
|
ac_cv_prog_cc_g=yes |
742 |
root |
1.4 |
else |
743 |
root |
1.4.2.1 |
ac_cv_prog_cc_g=no |
744 |
root |
1.1 |
fi |
745 |
root |
1.4.2.1 |
rm -f conftest* |
746 |
|
|
|
747 |
root |
1.1 |
fi |
748 |
root |
1.4.2.1 |
|
749 |
|
|
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
750 |
root |
1.1 |
if test "$ac_test_CFLAGS" = set; then |
751 |
root |
1.4.2.1 |
CFLAGS="$ac_save_CFLAGS" |
752 |
root |
1.1 |
elif test $ac_cv_prog_cc_g = yes; then |
753 |
|
|
if test "$GCC" = yes; then |
754 |
|
|
CFLAGS="-g -O2" |
755 |
|
|
else |
756 |
|
|
CFLAGS="-g" |
757 |
|
|
fi |
758 |
|
|
else |
759 |
|
|
if test "$GCC" = yes; then |
760 |
|
|
CFLAGS="-O2" |
761 |
|
|
else |
762 |
|
|
CFLAGS= |
763 |
|
|
fi |
764 |
|
|
fi |
765 |
root |
1.4 |
|
766 |
root |
1.4.2.1 |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
767 |
|
|
echo "configure:768: checking how to run the C preprocessor" >&5 |
768 |
root |
1.1 |
# On Suns, sometimes $CPP names a directory. |
769 |
|
|
if test -n "$CPP" && test -d "$CPP"; then |
770 |
|
|
CPP= |
771 |
|
|
fi |
772 |
|
|
if test -z "$CPP"; then |
773 |
root |
1.4.2.1 |
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
774 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
775 |
root |
1.1 |
else |
776 |
root |
1.4.2.1 |
# This must be in double quotes, not single quotes, because CPP may get |
777 |
|
|
# substituted into the Makefile and "${CC-cc}" will confuse make. |
778 |
|
|
CPP="${CC-cc} -E" |
779 |
root |
1.1 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
780 |
root |
1.4.2.1 |
# not just through cpp. |
781 |
|
|
cat > conftest.$ac_ext <<EOF |
782 |
|
|
#line 783 "configure" |
783 |
root |
1.1 |
#include "confdefs.h" |
784 |
|
|
#include <assert.h> |
785 |
root |
1.4.2.1 |
Syntax Error |
786 |
|
|
EOF |
787 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
788 |
|
|
{ (eval echo configure:789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
789 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
790 |
|
|
if test -z "$ac_err"; then |
791 |
root |
1.1 |
: |
792 |
|
|
else |
793 |
root |
1.4.2.1 |
echo "$ac_err" >&5 |
794 |
|
|
echo "configure: failed program was:" >&5 |
795 |
root |
1.1 |
cat conftest.$ac_ext >&5 |
796 |
root |
1.4.2.1 |
rm -rf conftest* |
797 |
|
|
CPP="${CC-cc} -E -traditional-cpp" |
798 |
|
|
cat > conftest.$ac_ext <<EOF |
799 |
|
|
#line 800 "configure" |
800 |
root |
1.1 |
#include "confdefs.h" |
801 |
root |
1.4.2.1 |
#include <assert.h> |
802 |
|
|
Syntax Error |
803 |
|
|
EOF |
804 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
805 |
|
|
{ (eval echo configure:806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
806 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
807 |
|
|
if test -z "$ac_err"; then |
808 |
|
|
: |
809 |
root |
1.1 |
else |
810 |
root |
1.4.2.1 |
echo "$ac_err" >&5 |
811 |
|
|
echo "configure: failed program was:" >&5 |
812 |
root |
1.1 |
cat conftest.$ac_ext >&5 |
813 |
root |
1.4.2.1 |
rm -rf conftest* |
814 |
|
|
CPP="${CC-cc} -nologo -E" |
815 |
|
|
cat > conftest.$ac_ext <<EOF |
816 |
|
|
#line 817 "configure" |
817 |
root |
1.1 |
#include "confdefs.h" |
818 |
|
|
#include <assert.h> |
819 |
root |
1.4.2.1 |
Syntax Error |
820 |
|
|
EOF |
821 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
822 |
|
|
{ (eval echo configure:823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
823 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
824 |
|
|
if test -z "$ac_err"; then |
825 |
root |
1.1 |
: |
826 |
|
|
else |
827 |
root |
1.4.2.1 |
echo "$ac_err" >&5 |
828 |
|
|
echo "configure: failed program was:" >&5 |
829 |
root |
1.1 |
cat conftest.$ac_ext >&5 |
830 |
root |
1.4.2.1 |
rm -rf conftest* |
831 |
|
|
CPP=/lib/cpp |
832 |
root |
1.1 |
fi |
833 |
root |
1.4.2.1 |
rm -f conftest* |
834 |
root |
1.1 |
fi |
835 |
root |
1.4.2.1 |
rm -f conftest* |
836 |
root |
1.1 |
fi |
837 |
root |
1.4.2.1 |
rm -f conftest* |
838 |
|
|
ac_cv_prog_CPP="$CPP" |
839 |
|
|
fi |
840 |
|
|
CPP="$ac_cv_prog_CPP" |
841 |
root |
1.1 |
else |
842 |
root |
1.4.2.1 |
ac_cv_prog_CPP="$CPP" |
843 |
root |
1.1 |
fi |
844 |
root |
1.4.2.1 |
echo "$ac_t""$CPP" 1>&6 |
845 |
|
|
|
846 |
root |
1.1 |
|
847 |
root |
1.4.2.1 |
echo $ac_n "checking if HP-UX ansi C compiler flags are needed""... $ac_c" 1>&6 |
848 |
root |
1.4.2.2 |
echo "configure:849: checking if HP-UX ansi C compiler flags are needed" >&5 |
849 |
root |
1.1 |
|
850 |
|
|
os=`uname -s | tr 'A-Z' 'a-z'` |
851 |
|
|
ac_cv_hpux_flags=no |
852 |
|
|
if test "$os" = hp-ux ; then |
853 |
root |
1.4.2.1 |
if test "$ac_cv_prog_gcc" = yes ; then |
854 |
root |
1.1 |
if test "$CFLAGS" != "" ; then |
855 |
|
|
# Shouldn't be in there. |
856 |
|
|
CFLAGS=`echo "$CFLAGS" | sed 's/-Aa//g'` |
857 |
|
|
fi |
858 |
|
|
else |
859 |
|
|
# If you're not using gcc, then you better have a cc/c89 |
860 |
|
|
# that is usable. If you have the barebones compiler, it |
861 |
|
|
# won't work. The good compiler uses -Aa for the ANSI |
862 |
|
|
# compatible stuff. |
863 |
|
|
x=`echo $CFLAGS | grep 'Aa' 2>/dev/null` |
864 |
|
|
if test "$x" = "" ; then |
865 |
|
|
CFLAGS="$CFLAGS -Aa" |
866 |
|
|
fi |
867 |
|
|
ac_cv_hpux_flags=yes |
868 |
|
|
fi |
869 |
|
|
# Also add _HPUX_SOURCE to get the extended namespace. |
870 |
|
|
x=`echo $CFLAGS | grep '_HPUX_SOURCE' 2>/dev/null` |
871 |
|
|
if test "$x" = "" ; then |
872 |
|
|
CFLAGS="$CFLAGS -D_HPUX_SOURCE" |
873 |
|
|
fi |
874 |
|
|
fi |
875 |
root |
1.4.2.1 |
echo "$ac_t""$ac_cv_hpux_flags" 1>&6 |
876 |
root |
1.1 |
|
877 |
|
|
if test "$CFLAGS" = "" ; then |
878 |
|
|
CFLAGS="-O" |
879 |
root |
1.4.2.1 |
elif test "$ac_cv_prog_gcc" = "yes" ; then |
880 |
root |
1.1 |
case "$CFLAGS" in |
881 |
|
|
*"-g -O"*) |
882 |
|
|
#echo "using -g as default gcc CFLAGS" 1>&6 |
883 |
|
|
CFLAGS=`echo $CFLAGS | sed 's/-g\ -O/-O/'` |
884 |
|
|
;; |
885 |
|
|
*"-O -g"*) |
886 |
|
|
# Leave the -g, but remove all -O options. |
887 |
|
|
#echo "using -g as default gcc CFLAGS" 1>&6 |
888 |
|
|
CFLAGS=`echo $CFLAGS | sed 's/-O\ -g/-O/'` |
889 |
|
|
;; |
890 |
|
|
esac |
891 |
|
|
fi |
892 |
|
|
|
893 |
root |
1.4.2.1 |
|
894 |
|
|
echo $ac_n "checking if the compiler supports function prototypes""... $ac_c" 1>&6 |
895 |
root |
1.4.2.2 |
echo "configure:896: checking if the compiler supports function prototypes" >&5 |
896 |
root |
1.4.2.1 |
cat > conftest.$ac_ext <<EOF |
897 |
root |
1.4.2.2 |
#line 898 "configure" |
898 |
root |
1.1 |
#include "confdefs.h" |
899 |
|
|
|
900 |
root |
1.4.2.1 |
int main() { |
901 |
root |
1.1 |
extern void exit(int status); |
902 |
root |
1.4.2.1 |
; return 0; } |
903 |
|
|
EOF |
904 |
root |
1.4.2.2 |
if { (eval echo configure:905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
905 |
root |
1.4.2.1 |
rm -rf conftest* |
906 |
root |
1.1 |
wi_cv_prototypes=yes |
907 |
root |
1.4.2.1 |
cat >> confdefs.h <<\EOF |
908 |
root |
1.1 |
#define PROTOTYPES 1 |
909 |
|
|
EOF |
910 |
|
|
|
911 |
|
|
else |
912 |
root |
1.4.2.1 |
echo "configure: failed program was:" >&5 |
913 |
|
|
cat conftest.$ac_ext >&5 |
914 |
|
|
rm -rf conftest* |
915 |
|
|
wi_cv_prototypes=no |
916 |
|
|
fi |
917 |
|
|
rm -f conftest* |
918 |
|
|
echo "$ac_t""$wi_cv_prototypes" 1>&6 |
919 |
|
|
|
920 |
|
|
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
921 |
root |
1.4.2.2 |
echo "configure:922: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
922 |
root |
1.4.2.1 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
923 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
924 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
925 |
root |
1.1 |
else |
926 |
root |
1.4.2.1 |
cat > conftestmake <<\EOF |
927 |
root |
1.1 |
all: |
928 |
|
|
@echo 'ac_maketemp="${MAKE}"' |
929 |
|
|
EOF |
930 |
|
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
931 |
root |
1.4.2.1 |
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
932 |
root |
1.1 |
if test -n "$ac_maketemp"; then |
933 |
|
|
eval ac_cv_prog_make_${ac_make}_set=yes |
934 |
|
|
else |
935 |
|
|
eval ac_cv_prog_make_${ac_make}_set=no |
936 |
|
|
fi |
937 |
root |
1.4.2.1 |
rm -f conftestmake |
938 |
root |
1.1 |
fi |
939 |
|
|
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
940 |
root |
1.4.2.1 |
echo "$ac_t""yes" 1>&6 |
941 |
root |
1.1 |
SET_MAKE= |
942 |
|
|
else |
943 |
root |
1.4.2.1 |
echo "$ac_t""no" 1>&6 |
944 |
root |
1.1 |
SET_MAKE="MAKE=${MAKE-make}" |
945 |
|
|
fi |
946 |
|
|
|
947 |
root |
1.4.2.1 |
# Extract the first word of "ranlib", so it can be a program name with args. |
948 |
|
|
set dummy ranlib; ac_word=$2 |
949 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
950 |
root |
1.4.2.2 |
echo "configure:951: checking for $ac_word" >&5 |
951 |
root |
1.4.2.1 |
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
952 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
953 |
root |
1.1 |
else |
954 |
|
|
if test -n "$RANLIB"; then |
955 |
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
956 |
|
|
else |
957 |
root |
1.4.2.1 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
958 |
|
|
ac_dummy="$PATH" |
959 |
|
|
for ac_dir in $ac_dummy; do |
960 |
|
|
test -z "$ac_dir" && ac_dir=. |
961 |
|
|
if test -f $ac_dir/$ac_word; then |
962 |
|
|
ac_cv_prog_RANLIB="ranlib" |
963 |
|
|
break |
964 |
|
|
fi |
965 |
|
|
done |
966 |
|
|
IFS="$ac_save_ifs" |
967 |
|
|
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
968 |
root |
1.1 |
fi |
969 |
|
|
fi |
970 |
root |
1.4.2.1 |
RANLIB="$ac_cv_prog_RANLIB" |
971 |
root |
1.1 |
if test -n "$RANLIB"; then |
972 |
root |
1.4.2.1 |
echo "$ac_t""$RANLIB" 1>&6 |
973 |
root |
1.4 |
else |
974 |
root |
1.4.2.1 |
echo "$ac_t""no" 1>&6 |
975 |
root |
1.4 |
fi |
976 |
|
|
|
977 |
|
|
|
978 |
root |
1.4.2.1 |
# |
979 |
|
|
# When optimization is enabled, remove -g from CFLAGS and add -O |
980 |
|
|
# |
981 |
root |
1.1 |
|
982 |
root |
1.4.2.1 |
if test "$optimize" = "yes" ; then |
983 |
|
|
echo $ac_n "checking compiler flags""... $ac_c" 1>&6 |
984 |
root |
1.4.2.2 |
echo "configure:985: checking compiler flags" >&5 |
985 |
root |
1.4.2.1 |
CFLAGS=`echo $CFLAGS | sed 's/-g//g'` |
986 |
|
|
case $CFLAGS in |
987 |
|
|
*"-O"*) |
988 |
|
|
;; |
989 |
|
|
*) |
990 |
|
|
CFLAGS="$CFLAGS -O" |
991 |
|
|
;; |
992 |
|
|
esac |
993 |
|
|
echo "$ac_t""done" 1>&6 |
994 |
root |
1.4 |
fi |
995 |
root |
1.1 |
|
996 |
|
|
if test "$wi_cv_prototypes" = no ; then |
997 |
root |
1.4.2.1 |
echo "configure: warning: Your compiler does not support function prototyping and" 1>&2 |
998 |
|
|
echo "configure: warning: is not able to properly compile this package. What a pity." 1>&2 |
999 |
|
|
echo "configure: warning: Get gcc, or any compiler that supports function prototypes." 1>&2 |
1000 |
root |
1.1 |
exit 1 |
1001 |
|
|
fi |
1002 |
|
|
|
1003 |
|
|
# |
1004 |
|
|
# Checks for header files and library functions |
1005 |
|
|
# |
1006 |
|
|
|
1007 |
root |
1.4.2.1 |
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1008 |
root |
1.4.2.2 |
echo "configure:1009: checking for ANSI C header files" >&5 |
1009 |
root |
1.4.2.1 |
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1010 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1011 |
root |
1.1 |
else |
1012 |
root |
1.4.2.1 |
cat > conftest.$ac_ext <<EOF |
1013 |
root |
1.4.2.2 |
#line 1014 "configure" |
1014 |
root |
1.1 |
#include "confdefs.h" |
1015 |
|
|
#include <stdlib.h> |
1016 |
|
|
#include <stdarg.h> |
1017 |
|
|
#include <string.h> |
1018 |
|
|
#include <float.h> |
1019 |
root |
1.4.2.1 |
EOF |
1020 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1021 |
root |
1.4.2.2 |
{ (eval echo configure:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1022 |
root |
1.4.2.1 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1023 |
|
|
if test -z "$ac_err"; then |
1024 |
|
|
rm -rf conftest* |
1025 |
root |
1.1 |
ac_cv_header_stdc=yes |
1026 |
|
|
else |
1027 |
root |
1.4.2.1 |
echo "$ac_err" >&5 |
1028 |
|
|
echo "configure: failed program was:" >&5 |
1029 |
root |
1.1 |
cat conftest.$ac_ext >&5 |
1030 |
root |
1.4.2.1 |
rm -rf conftest* |
1031 |
root |
1.1 |
ac_cv_header_stdc=no |
1032 |
|
|
fi |
1033 |
root |
1.4.2.1 |
rm -f conftest* |
1034 |
root |
1.1 |
|
1035 |
|
|
if test $ac_cv_header_stdc = yes; then |
1036 |
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
1037 |
root |
1.4.2.1 |
cat > conftest.$ac_ext <<EOF |
1038 |
root |
1.4.2.2 |
#line 1039 "configure" |
1039 |
root |
1.1 |
#include "confdefs.h" |
1040 |
|
|
#include <string.h> |
1041 |
root |
1.4.2.1 |
EOF |
1042 |
root |
1.1 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1043 |
|
|
egrep "memchr" >/dev/null 2>&1; then |
1044 |
|
|
: |
1045 |
|
|
else |
1046 |
root |
1.4.2.1 |
rm -rf conftest* |
1047 |
root |
1.1 |
ac_cv_header_stdc=no |
1048 |
|
|
fi |
1049 |
|
|
rm -f conftest* |
1050 |
|
|
|
1051 |
|
|
fi |
1052 |
|
|
|
1053 |
|
|
if test $ac_cv_header_stdc = yes; then |
1054 |
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
1055 |
root |
1.4.2.1 |
cat > conftest.$ac_ext <<EOF |
1056 |
root |
1.4.2.2 |
#line 1057 "configure" |
1057 |
root |
1.1 |
#include "confdefs.h" |
1058 |
|
|
#include <stdlib.h> |
1059 |
root |
1.4.2.1 |
EOF |
1060 |
root |
1.1 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1061 |
|
|
egrep "free" >/dev/null 2>&1; then |
1062 |
|
|
: |
1063 |
|
|
else |
1064 |
root |
1.4.2.1 |
rm -rf conftest* |
1065 |
root |
1.1 |
ac_cv_header_stdc=no |
1066 |
|
|
fi |
1067 |
|
|
rm -f conftest* |
1068 |
|
|
|
1069 |
|
|
fi |
1070 |
|
|
|
1071 |
|
|
if test $ac_cv_header_stdc = yes; then |
1072 |
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
1073 |
root |
1.4.2.1 |
if test "$cross_compiling" = yes; then |
1074 |
root |
1.1 |
: |
1075 |
|
|
else |
1076 |
root |
1.4.2.1 |
cat > conftest.$ac_ext <<EOF |
1077 |
root |
1.4.2.2 |
#line 1078 "configure" |
1078 |
root |
1.1 |
#include "confdefs.h" |
1079 |
|
|
#include <ctype.h> |
1080 |
root |
1.4.2.1 |
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1081 |
|
|
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
1082 |
root |
1.1 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1083 |
root |
1.4.2.1 |
int main () { int i; for (i = 0; i < 256; i++) |
1084 |
|
|
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
1085 |
|
|
exit (0); } |
1086 |
|
|
|
1087 |
|
|
EOF |
1088 |
root |
1.4.2.2 |
if { (eval echo configure:1089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1089 |
root |
1.4.2.1 |
then |
1090 |
root |
1.1 |
: |
1091 |
|
|
else |
1092 |
root |
1.4.2.1 |
echo "configure: failed program was:" >&5 |
1093 |
|
|
cat conftest.$ac_ext >&5 |
1094 |
|
|
rm -fr conftest* |
1095 |
|
|
ac_cv_header_stdc=no |
1096 |
root |
1.1 |
fi |
1097 |
root |
1.4.2.1 |
rm -fr conftest* |
1098 |
root |
1.1 |
fi |
1099 |
root |
1.4.2.1 |
|
1100 |
root |
1.1 |
fi |
1101 |
|
|
fi |
1102 |
|
|
|
1103 |
root |
1.4.2.1 |
echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
1104 |
|
|
if test $ac_cv_header_stdc = yes; then |
1105 |
|
|
cat >> confdefs.h <<\EOF |
1106 |
root |
1.1 |
#define STDC_HEADERS 1 |
1107 |
|
|
EOF |
1108 |
|
|
|
1109 |
|
|
fi |
1110 |
|
|
|
1111 |
root |
1.4.2.1 |
echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
1112 |
root |
1.4.2.2 |
echo "configure:1113: checking for size_t" >&5 |
1113 |
root |
1.4.2.1 |
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1114 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1115 |
root |
1.1 |
else |
1116 |
root |
1.4.2.1 |
cat > conftest.$ac_ext <<EOF |
1117 |
root |
1.4.2.2 |
#line 1118 "configure" |
1118 |
root |
1.1 |
#include "confdefs.h" |
1119 |
root |
1.4.2.1 |
#include <sys/types.h> |
1120 |
|
|
#if STDC_HEADERS |
1121 |
|
|
#include <stdlib.h> |
1122 |
|
|
#include <stddef.h> |
1123 |
|
|
#endif |
1124 |
root |
1.1 |
EOF |
1125 |
root |
1.4.2.1 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1126 |
|
|
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
1127 |
|
|
rm -rf conftest* |
1128 |
root |
1.1 |
ac_cv_type_size_t=yes |
1129 |
|
|
else |
1130 |
root |
1.4.2.1 |
rm -rf conftest* |
1131 |
|
|
ac_cv_type_size_t=no |
1132 |
|
|
fi |
1133 |
|
|
rm -f conftest* |
1134 |
root |
1.1 |
|
1135 |
root |
1.4.2.1 |
fi |
1136 |
|
|
echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
1137 |
|
|
if test $ac_cv_type_size_t = no; then |
1138 |
|
|
cat >> confdefs.h <<\EOF |
1139 |
root |
1.1 |
#define size_t unsigned |
1140 |
|
|
EOF |
1141 |
|
|
|
1142 |
|
|
fi |
1143 |
|
|
|
1144 |
root |
1.4.2.1 |
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
1145 |
root |
1.4.2.2 |
echo "configure:1146: checking whether time.h and sys/time.h may both be included" >&5 |
1146 |
root |
1.4.2.1 |
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
1147 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1148 |
root |
1.1 |
else |
1149 |
root |
1.4.2.1 |
cat > conftest.$ac_ext <<EOF |
1150 |
root |
1.4.2.2 |
#line 1151 "configure" |
1151 |
root |
1.1 |
#include "confdefs.h" |
1152 |
|
|
#include <sys/types.h> |
1153 |
|
|
#include <sys/time.h> |
1154 |
|
|
#include <time.h> |
1155 |
root |
1.4.2.1 |
int main() { |
1156 |
|
|
struct tm *tp; |
1157 |
|
|
; return 0; } |
1158 |
|
|
EOF |
1159 |
root |
1.4.2.2 |
if { (eval echo configure:1160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1160 |
root |
1.4.2.1 |
rm -rf conftest* |
1161 |
root |
1.1 |
ac_cv_header_time=yes |
1162 |
|
|
else |
1163 |
root |
1.4.2.1 |
echo "configure: failed program was:" >&5 |
1164 |
|
|
cat conftest.$ac_ext >&5 |
1165 |
|
|
rm -rf conftest* |
1166 |
|
|
ac_cv_header_time=no |
1167 |
root |
1.1 |
fi |
1168 |
root |
1.4.2.1 |
rm -f conftest* |
1169 |
root |
1.1 |
fi |
1170 |
|
|
|
1171 |
root |
1.4.2.1 |
echo "$ac_t""$ac_cv_header_time" 1>&6 |
1172 |
|
|
if test $ac_cv_header_time = yes; then |
1173 |
|
|
cat >> confdefs.h <<\EOF |
1174 |
root |
1.1 |
#define TIME_WITH_SYS_TIME 1 |
1175 |
|
|
EOF |
1176 |
|
|
|
1177 |
|
|
fi |
1178 |
|
|
|
1179 |
root |
1.4.2.1 |
for ac_hdr in fcntl.h unistd.h memory.h malloc.h errno.h |
1180 |
root |
1.1 |
do |
1181 |
root |
1.4.2.1 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1182 |
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1183 |
root |
1.4.2.2 |
echo "configure:1184: checking for $ac_hdr" >&5 |
1184 |
root |
1.4.2.1 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1185 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1186 |
|
|
else |
1187 |
|
|
cat > conftest.$ac_ext <<EOF |
1188 |
root |
1.4.2.2 |
#line 1189 "configure" |
1189 |
root |
1.4.2.1 |
#include "confdefs.h" |
1190 |
|
|
#include <$ac_hdr> |
1191 |
|
|
EOF |
1192 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1193 |
root |
1.4.2.2 |
{ (eval echo configure:1194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1194 |
root |
1.4.2.1 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1195 |
|
|
if test -z "$ac_err"; then |
1196 |
|
|
rm -rf conftest* |
1197 |
|
|
eval "ac_cv_header_$ac_safe=yes" |
1198 |
root |
1.4 |
else |
1199 |
root |
1.4.2.1 |
echo "$ac_err" >&5 |
1200 |
|
|
echo "configure: failed program was:" >&5 |
1201 |
root |
1.1 |
cat conftest.$ac_ext >&5 |
1202 |
root |
1.4.2.1 |
rm -rf conftest* |
1203 |
|
|
eval "ac_cv_header_$ac_safe=no" |
1204 |
root |
1.1 |
fi |
1205 |
root |
1.4.2.1 |
rm -f conftest* |
1206 |
root |
1.1 |
fi |
1207 |
root |
1.4.2.1 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
1208 |
|
|
echo "$ac_t""yes" 1>&6 |
1209 |
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
1210 |
|
|
cat >> confdefs.h <<EOF |
1211 |
|
|
#define $ac_tr_hdr 1 |
1212 |
root |
1.1 |
EOF |
1213 |
root |
1.4.2.1 |
|
1214 |
|
|
else |
1215 |
|
|
echo "$ac_t""no" 1>&6 |
1216 |
root |
1.1 |
fi |
1217 |
|
|
done |
1218 |
|
|
|
1219 |
root |
1.4.2.1 |
for ac_hdr in io.h sys/time.h |
1220 |
root |
1.1 |
do |
1221 |
root |
1.4.2.1 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1222 |
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1223 |
root |
1.4.2.2 |
echo "configure:1224: checking for $ac_hdr" >&5 |
1224 |
root |
1.4.2.1 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1225 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1226 |
|
|
else |
1227 |
|
|
cat > conftest.$ac_ext <<EOF |
1228 |
root |
1.4.2.2 |
#line 1229 "configure" |
1229 |
root |
1.4.2.1 |
#include "confdefs.h" |
1230 |
|
|
#include <$ac_hdr> |
1231 |
|
|
EOF |
1232 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1233 |
root |
1.4.2.2 |
{ (eval echo configure:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1234 |
root |
1.4.2.1 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1235 |
|
|
if test -z "$ac_err"; then |
1236 |
|
|
rm -rf conftest* |
1237 |
|
|
eval "ac_cv_header_$ac_safe=yes" |
1238 |
root |
1.4 |
else |
1239 |
root |
1.4.2.1 |
echo "$ac_err" >&5 |
1240 |
|
|
echo "configure: failed program was:" >&5 |
1241 |
root |
1.1 |
cat conftest.$ac_ext >&5 |
1242 |
root |
1.4.2.1 |
rm -rf conftest* |
1243 |
|
|
eval "ac_cv_header_$ac_safe=no" |
1244 |
root |
1.1 |
fi |
1245 |
root |
1.4.2.1 |
rm -f conftest* |
1246 |
root |
1.1 |
fi |
1247 |
root |
1.4.2.1 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
1248 |
|
|
echo "$ac_t""yes" 1>&6 |
1249 |
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
1250 |
|
|
cat >> confdefs.h <<EOF |
1251 |
|
|
#define $ac_tr_hdr 1 |
1252 |
root |
1.1 |
EOF |
1253 |
root |
1.4.2.1 |
|
1254 |
|
|
else |
1255 |
|
|
echo "$ac_t""no" 1>&6 |
1256 |
root |
1.1 |
fi |
1257 |
|
|
done |
1258 |
|
|
|
1259 |
|
|
for ac_func in gettimeofday |
1260 |
|
|
do |
1261 |
root |
1.4.2.1 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1262 |
root |
1.4.2.2 |
echo "configure:1263: checking for $ac_func" >&5 |
1263 |
root |
1.4.2.1 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
1264 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1265 |
root |
1.1 |
else |
1266 |
root |
1.4.2.1 |
cat > conftest.$ac_ext <<EOF |
1267 |
root |
1.4.2.2 |
#line 1268 "configure" |
1268 |
root |
1.1 |
#include "confdefs.h" |
1269 |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
1270 |
root |
1.4.2.1 |
which can conflict with char $ac_func(); below. */ |
1271 |
root |
1.1 |
#include <assert.h> |
1272 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1273 |
|
|
/* We use char because int might match the return type of a gcc2 |
1274 |
root |
1.4.2.1 |
builtin and then its argument prototype would still apply. */ |
1275 |
|
|
char $ac_func(); |
1276 |
|
|
|
1277 |
|
|
int main() { |
1278 |
|
|
|
1279 |
root |
1.1 |
/* The GNU C library defines this for functions which it implements |
1280 |
|
|
to always fail with ENOSYS. Some functions are actually named |
1281 |
|
|
something starting with __ and the normal name is an alias. */ |
1282 |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
1283 |
|
|
choke me |
1284 |
|
|
#else |
1285 |
root |
1.4.2.1 |
$ac_func(); |
1286 |
root |
1.1 |
#endif |
1287 |
|
|
|
1288 |
root |
1.4.2.1 |
; return 0; } |
1289 |
root |
1.1 |
EOF |
1290 |
root |
1.4.2.2 |
if { (eval echo configure:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1291 |
root |
1.4.2.1 |
rm -rf conftest* |
1292 |
|
|
eval "ac_cv_func_$ac_func=yes" |
1293 |
root |
1.1 |
else |
1294 |
root |
1.4.2.1 |
echo "configure: failed program was:" >&5 |
1295 |
|
|
cat conftest.$ac_ext >&5 |
1296 |
|
|
rm -rf conftest* |
1297 |
|
|
eval "ac_cv_func_$ac_func=no" |
1298 |
|
|
fi |
1299 |
|
|
rm -f conftest* |
1300 |
|
|
fi |
1301 |
root |
1.1 |
|
1302 |
root |
1.4.2.1 |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
1303 |
|
|
echo "$ac_t""yes" 1>&6 |
1304 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
1305 |
|
|
cat >> confdefs.h <<EOF |
1306 |
|
|
#define $ac_tr_func 1 |
1307 |
root |
1.1 |
EOF |
1308 |
root |
1.4.2.1 |
|
1309 |
|
|
else |
1310 |
|
|
echo "$ac_t""no" 1>&6 |
1311 |
root |
1.1 |
fi |
1312 |
root |
1.4.2.1 |
done |
1313 |
root |
1.1 |
|
1314 |
root |
1.4.2.1 |
|
1315 |
|
|
echo $ac_n "checking for tempnam""... $ac_c" 1>&6 |
1316 |
root |
1.4.2.2 |
echo "configure:1317: checking for tempnam" >&5 |
1317 |
root |
1.4.2.1 |
if eval "test \"`echo '$''{'ac_cv_func_tempnam'+set}'`\" = set"; then |
1318 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1319 |
root |
1.3 |
else |
1320 |
root |
1.4.2.1 |
cat > conftest.$ac_ext <<EOF |
1321 |
root |
1.4.2.2 |
#line 1322 "configure" |
1322 |
root |
1.3 |
#include "confdefs.h" |
1323 |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
1324 |
root |
1.4.2.1 |
which can conflict with char tempnam(); below. */ |
1325 |
root |
1.3 |
#include <assert.h> |
1326 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1327 |
|
|
/* We use char because int might match the return type of a gcc2 |
1328 |
root |
1.4.2.1 |
builtin and then its argument prototype would still apply. */ |
1329 |
|
|
char tempnam(); |
1330 |
root |
1.3 |
|
1331 |
root |
1.4.2.1 |
int main() { |
1332 |
root |
1.3 |
|
1333 |
|
|
/* The GNU C library defines this for functions which it implements |
1334 |
|
|
to always fail with ENOSYS. Some functions are actually named |
1335 |
|
|
something starting with __ and the normal name is an alias. */ |
1336 |
root |
1.4.2.1 |
#if defined (__stub_tempnam) || defined (__stub___tempnam) |
1337 |
root |
1.3 |
choke me |
1338 |
|
|
#else |
1339 |
root |
1.4.2.1 |
tempnam(); |
1340 |
root |
1.3 |
#endif |
1341 |
|
|
|
1342 |
root |
1.4.2.1 |
; return 0; } |
1343 |
root |
1.3 |
EOF |
1344 |
root |
1.4.2.2 |
if { (eval echo configure:1345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1345 |
root |
1.4.2.1 |
rm -rf conftest* |
1346 |
|
|
eval "ac_cv_func_tempnam=yes" |
1347 |
|
|
else |
1348 |
|
|
echo "configure: failed program was:" >&5 |
1349 |
|
|
cat conftest.$ac_ext >&5 |
1350 |
|
|
rm -rf conftest* |
1351 |
|
|
eval "ac_cv_func_tempnam=no" |
1352 |
|
|
fi |
1353 |
|
|
rm -f conftest* |
1354 |
root |
1.4 |
fi |
1355 |
|
|
|
1356 |
root |
1.4.2.1 |
if eval "test \"`echo '$ac_cv_func_'tempnam`\" = yes"; then |
1357 |
|
|
echo "$ac_t""yes" 1>&6 |
1358 |
|
|
: |
1359 |
root |
1.3 |
else |
1360 |
root |
1.4.2.1 |
echo "$ac_t""no" 1>&6 |
1361 |
|
|
cat >> confdefs.h <<\EOF |
1362 |
|
|
#define tempnam _FP_tempnam |
1363 |
root |
1.3 |
EOF |
1364 |
|
|
|
1365 |
|
|
fi |
1366 |
|
|
|
1367 |
root |
1.4.2.1 |
|
1368 |
root |
1.1 |
# |
1369 |
|
|
# strerror might be internally defined. this would cause a |
1370 |
|
|
# CHECK_FUNCS(strerror) to fail because it'd be called with |
1371 |
|
|
# zero arguments. So use our own code. |
1372 |
|
|
# |
1373 |
root |
1.4.2.1 |
echo $ac_n "checking for strerror""... $ac_c" 1>&6 |
1374 |
root |
1.4.2.2 |
echo "configure:1375: checking for strerror" >&5 |
1375 |
root |
1.4.2.1 |
cat > conftest.$ac_ext <<EOF |
1376 |
root |
1.4.2.2 |
#line 1377 "configure" |
1377 |
root |
1.1 |
#include "confdefs.h" |
1378 |
|
|
|
1379 |
|
|
char *blubb() { return (char *) strerror (42); } |
1380 |
|
|
|
1381 |
root |
1.4.2.1 |
int main() { |
1382 |
root |
1.1 |
|
1383 |
|
|
(void) blubb(); |
1384 |
|
|
|
1385 |
root |
1.4.2.1 |
; return 0; } |
1386 |
|
|
EOF |
1387 |
root |
1.4.2.2 |
if { (eval echo configure:1388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1388 |
root |
1.4.2.1 |
rm -rf conftest* |
1389 |
root |
1.1 |
have_strerror=yes |
1390 |
|
|
else |
1391 |
root |
1.4.2.1 |
echo "configure: failed program was:" >&5 |
1392 |
|
|
cat conftest.$ac_ext >&5 |
1393 |
|
|
rm -rf conftest* |
1394 |
|
|
cat >> confdefs.h <<\EOF |
1395 |
|
|
#define strerror _FP_strerror |
1396 |
root |
1.1 |
EOF |
1397 |
|
|
|
1398 |
|
|
have_strerror=no |
1399 |
|
|
fi |
1400 |
root |
1.4.2.1 |
rm -f conftest* |
1401 |
|
|
echo "$ac_t""$have_strerror" 1>&6 |
1402 |
|
|
|
1403 |
|
|
echo $ac_n "checking for stdin""... $ac_c" 1>&6 |
1404 |
root |
1.4.2.2 |
echo "configure:1405: checking for stdin" >&5 |
1405 |
root |
1.4.2.1 |
cat > conftest.$ac_ext <<EOF |
1406 |
root |
1.4.2.2 |
#line 1407 "configure" |
1407 |
root |
1.1 |
#include "confdefs.h" |
1408 |
|
|
|
1409 |
|
|
#include <stdio.h> |
1410 |
|
|
char *blubb() { FILE *in, *out; in=stdin; out=stdout; return (char*)0; } |
1411 |
|
|
|
1412 |
root |
1.4.2.1 |
int main() { |
1413 |
root |
1.1 |
|
1414 |
|
|
(void) blubb(); |
1415 |
|
|
|
1416 |
root |
1.4.2.1 |
; return 0; } |
1417 |
|
|
EOF |
1418 |
root |
1.4.2.2 |
if { (eval echo configure:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1419 |
root |
1.4.2.1 |
rm -rf conftest* |
1420 |
root |
1.1 |
have_stdio=yes |
1421 |
|
|
else |
1422 |
root |
1.4.2.1 |
echo "configure: failed program was:" >&5 |
1423 |
|
|
cat conftest.$ac_ext >&5 |
1424 |
|
|
rm -rf conftest* |
1425 |
|
|
cat >> confdefs.h <<\EOF |
1426 |
root |
1.1 |
#define HAVE_STDIO 1 |
1427 |
|
|
EOF |
1428 |
|
|
|
1429 |
|
|
have_stdio=no |
1430 |
|
|
fi |
1431 |
root |
1.4.2.1 |
rm -f conftest* |
1432 |
|
|
echo "$ac_t""$have_stdio" 1>&6 |
1433 |
root |
1.1 |
|
1434 |
|
|
if test "$ac_cv_header_stdc" = "no" ; then |
1435 |
root |
1.4.2.1 |
for ac_hdr in stdarg.h varargs.h |
1436 |
root |
1.1 |
do |
1437 |
root |
1.4.2.1 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1438 |
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1439 |
root |
1.4.2.2 |
echo "configure:1440: checking for $ac_hdr" >&5 |
1440 |
root |
1.4.2.1 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1441 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1442 |
|
|
else |
1443 |
|
|
cat > conftest.$ac_ext <<EOF |
1444 |
root |
1.4.2.2 |
#line 1445 "configure" |
1445 |
root |
1.4.2.1 |
#include "confdefs.h" |
1446 |
|
|
#include <$ac_hdr> |
1447 |
|
|
EOF |
1448 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1449 |
root |
1.4.2.2 |
{ (eval echo configure:1450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1450 |
root |
1.4.2.1 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1451 |
|
|
if test -z "$ac_err"; then |
1452 |
|
|
rm -rf conftest* |
1453 |
|
|
eval "ac_cv_header_$ac_safe=yes" |
1454 |
root |
1.4 |
else |
1455 |
root |
1.4.2.1 |
echo "$ac_err" >&5 |
1456 |
|
|
echo "configure: failed program was:" >&5 |
1457 |
root |
1.1 |
cat conftest.$ac_ext >&5 |
1458 |
root |
1.4.2.1 |
rm -rf conftest* |
1459 |
|
|
eval "ac_cv_header_$ac_safe=no" |
1460 |
root |
1.1 |
fi |
1461 |
root |
1.4.2.1 |
rm -f conftest* |
1462 |
root |
1.1 |
fi |
1463 |
root |
1.4.2.1 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
1464 |
|
|
echo "$ac_t""yes" 1>&6 |
1465 |
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
1466 |
|
|
cat >> confdefs.h <<EOF |
1467 |
|
|
#define $ac_tr_hdr 1 |
1468 |
root |
1.1 |
EOF |
1469 |
root |
1.4.2.1 |
|
1470 |
|
|
else |
1471 |
|
|
echo "$ac_t""no" 1>&6 |
1472 |
root |
1.1 |
fi |
1473 |
|
|
done |
1474 |
|
|
|
1475 |
|
|
if test "$ac_cv_header_stdarg_h" = "no" ; then |
1476 |
|
|
if test "$ac_cv_header_varargs_h" = "no" ; then |
1477 |
root |
1.4.2.1 |
{ echo "configure: error: neither stdarg.h nor varargs.h present" 1>&2; exit 1; } |
1478 |
root |
1.1 |
fi |
1479 |
|
|
fi |
1480 |
|
|
fi |
1481 |
|
|
|
1482 |
|
|
# |
1483 |
|
|
# Check whether this is a DOS-Based system. Another bogus test. |
1484 |
|
|
# Don't even bother to print a message. This code is needed so |
1485 |
|
|
# that autoheader includes the #undef into the final config.h |
1486 |
|
|
# and we can change the definition by hand on a really DOS |
1487 |
|
|
# system (where ./configure doesn't work anyway ...) |
1488 |
|
|
# |
1489 |
|
|
|
1490 |
|
|
if false ; then |
1491 |
root |
1.4.2.1 |
cat >> confdefs.h <<\EOF |
1492 |
root |
1.1 |
#define SYSTEM_DOS 1 |
1493 |
|
|
EOF |
1494 |
|
|
|
1495 |
root |
1.4.2.1 |
cat >> confdefs.h <<\EOF |
1496 |
root |
1.1 |
#define SYSTEM_QUICKWIN 1 |
1497 |
|
|
EOF |
1498 |
|
|
|
1499 |
root |
1.4.2.1 |
cat >> confdefs.h <<\EOF |
1500 |
root |
1.1 |
#define SYSTEM_WINDLL 1 |
1501 |
|
|
EOF |
1502 |
|
|
|
1503 |
root |
1.4.2.1 |
cat >> confdefs.h <<\EOF |
1504 |
root |
1.1 |
#define SYSTEM_OS2 1 |
1505 |
|
|
EOF |
1506 |
|
|
|
1507 |
|
|
fi |
1508 |
|
|
|
1509 |
|
|
# |
1510 |
|
|
# On some systems (so far, OS2 and WINDOWS), functions that are exported |
1511 |
|
|
# from a DLL must be declared specifically. |
1512 |
|
|
# |
1513 |
|
|
|
1514 |
root |
1.4.2.1 |
cat >> confdefs.h <<EOF |
1515 |
|
|
#define UUEXPORT |
1516 |
root |
1.1 |
EOF |
1517 |
|
|
|
1518 |
root |
1.4.2.1 |
cat >> confdefs.h <<EOF |
1519 |
|
|
#define TOOLEXPORT |
1520 |
root |
1.1 |
EOF |
1521 |
|
|
|
1522 |
root |
1.4.2.1 |
|
1523 |
root |
1.1 |
# |
1524 |
|
|
# set version number |
1525 |
|
|
# |
1526 |
root |
1.4.2.1 |
echo $ac_n "checking version number""... $ac_c" 1>&6 |
1527 |
root |
1.4.2.2 |
echo "configure:1528: checking version number" >&5 |
1528 |
root |
1.1 |
version_number="$VERSION"pl"$PATCH" |
1529 |
root |
1.4.2.1 |
echo "$ac_t""$version_number" 1>&6 |
1530 |
|
|
|
1531 |
|
|
|
1532 |
root |
1.1 |
|
1533 |
|
|
# |
1534 |
|
|
# done |
1535 |
|
|
# |
1536 |
|
|
|
1537 |
root |
1.4.2.1 |
trap '' 1 2 15 |
1538 |
|
|
cat > confcache <<\EOF |
1539 |
root |
1.1 |
# This file is a shell script that caches the results of configure |
1540 |
|
|
# tests run on this system so they can be shared between configure |
1541 |
root |
1.4.2.1 |
# scripts and configure runs. It is not useful on other systems. |
1542 |
|
|
# If it contains results you don't want to keep, you may remove or edit it. |
1543 |
|
|
# |
1544 |
|
|
# By default, configure uses ./config.cache as the cache file, |
1545 |
|
|
# creating it if it does not exist already. You can give configure |
1546 |
|
|
# the --cache-file=FILE option to use a different cache file; that is |
1547 |
|
|
# what configure does when it calls configure scripts in |
1548 |
|
|
# subdirectories, so they share the cache. |
1549 |
|
|
# Giving --cache-file=/dev/null disables caching, for debugging configure. |
1550 |
|
|
# config.status only pays attention to the cache file if you give it the |
1551 |
|
|
# --recheck option to rerun configure. |
1552 |
|
|
# |
1553 |
|
|
EOF |
1554 |
root |
1.1 |
# The following way of writing the cache mishandles newlines in values, |
1555 |
|
|
# but we know of no workaround that is simple, portable, and efficient. |
1556 |
|
|
# So, don't put newlines in cache variables' values. |
1557 |
|
|
# Ultrix sh set writes to stderr and can't be redirected directly, |
1558 |
|
|
# and sets the high bit in the cache file unless we assign to the vars. |
1559 |
root |
1.4.2.1 |
(set) 2>&1 | |
1560 |
|
|
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
1561 |
|
|
*ac_space=\ *) |
1562 |
|
|
# `set' does not quote correctly, so add quotes (double-quote substitution |
1563 |
|
|
# turns \\\\ into \\, and sed turns \\ into \). |
1564 |
|
|
sed -n \ |
1565 |
|
|
-e "s/'/'\\\\''/g" \ |
1566 |
|
|
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
1567 |
|
|
;; |
1568 |
|
|
*) |
1569 |
|
|
# `set' quotes correctly as required by POSIX, so do not add quotes. |
1570 |
|
|
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
1571 |
|
|
;; |
1572 |
|
|
esac >> confcache |
1573 |
|
|
if cmp -s $cache_file confcache; then |
1574 |
|
|
: |
1575 |
|
|
else |
1576 |
root |
1.1 |
if test -w $cache_file; then |
1577 |
root |
1.4.2.1 |
echo "updating cache $cache_file" |
1578 |
|
|
cat confcache > $cache_file |
1579 |
root |
1.1 |
else |
1580 |
|
|
echo "not updating unwritable cache $cache_file" |
1581 |
|
|
fi |
1582 |
|
|
fi |
1583 |
|
|
rm -f confcache |
1584 |
|
|
|
1585 |
root |
1.4.2.1 |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
1586 |
|
|
|
1587 |
root |
1.1 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
1588 |
|
|
# Let make expand exec_prefix. |
1589 |
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
1590 |
|
|
|
1591 |
root |
1.4.2.1 |
# Any assignment to VPATH causes Sun make to only execute |
1592 |
|
|
# the first set of double-colon rules, so remove it if not needed. |
1593 |
|
|
# If there is a colon in the path, we need to keep it. |
1594 |
root |
1.1 |
if test "x$srcdir" = x.; then |
1595 |
root |
1.4.2.1 |
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
1596 |
root |
1.1 |
fi |
1597 |
|
|
|
1598 |
root |
1.4.2.1 |
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
1599 |
|
|
|
1600 |
root |
1.1 |
DEFS=-DHAVE_CONFIG_H |
1601 |
|
|
|
1602 |
root |
1.4.2.1 |
# Without the "./", some shells look in PATH for config.status. |
1603 |
root |
1.1 |
: ${CONFIG_STATUS=./config.status} |
1604 |
root |
1.4.2.1 |
|
1605 |
|
|
echo creating $CONFIG_STATUS |
1606 |
|
|
rm -f $CONFIG_STATUS |
1607 |
|
|
cat > $CONFIG_STATUS <<EOF |
1608 |
|
|
#! /bin/sh |
1609 |
root |
1.1 |
# Generated automatically by configure. |
1610 |
|
|
# Run this file to recreate the current configuration. |
1611 |
root |
1.4.2.1 |
# This directory was configured as follows, |
1612 |
|
|
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
1613 |
|
|
# |
1614 |
|
|
# $0 $ac_configure_args |
1615 |
|
|
# |
1616 |
root |
1.1 |
# Compiler output produced by configure, useful for debugging |
1617 |
root |
1.4.2.1 |
# configure, is in ./config.log if it exists. |
1618 |
root |
1.4 |
|
1619 |
root |
1.4.2.1 |
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
1620 |
|
|
for ac_option |
1621 |
root |
1.1 |
do |
1622 |
root |
1.4.2.1 |
case "\$ac_option" in |
1623 |
root |
1.1 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1624 |
root |
1.4.2.1 |
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
1625 |
|
|
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
1626 |
|
|
-version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
1627 |
|
|
echo "$CONFIG_STATUS generated by autoconf version 2.13" |
1628 |
|
|
exit 0 ;; |
1629 |
|
|
-help | --help | --hel | --he | --h) |
1630 |
|
|
echo "\$ac_cs_usage"; exit 0 ;; |
1631 |
|
|
*) echo "\$ac_cs_usage"; exit 1 ;; |
1632 |
root |
1.1 |
esac |
1633 |
|
|
done |
1634 |
|
|
|
1635 |
root |
1.4.2.1 |
ac_given_srcdir=$srcdir |
1636 |
root |
1.4 |
|
1637 |
root |
1.4.2.1 |
trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
1638 |
root |
1.1 |
EOF |
1639 |
root |
1.4.2.1 |
cat >> $CONFIG_STATUS <<EOF |
1640 |
root |
1.1 |
|
1641 |
root |
1.4.2.1 |
# Protect against being on the right side of a sed subst in config.status. |
1642 |
|
|
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
1643 |
|
|
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
1644 |
|
|
$ac_vpsub |
1645 |
|
|
$extrasub |
1646 |
|
|
s%@SHELL@%$SHELL%g |
1647 |
|
|
s%@CFLAGS@%$CFLAGS%g |
1648 |
|
|
s%@CPPFLAGS@%$CPPFLAGS%g |
1649 |
|
|
s%@CXXFLAGS@%$CXXFLAGS%g |
1650 |
|
|
s%@FFLAGS@%$FFLAGS%g |
1651 |
|
|
s%@DEFS@%$DEFS%g |
1652 |
|
|
s%@LDFLAGS@%$LDFLAGS%g |
1653 |
|
|
s%@LIBS@%$LIBS%g |
1654 |
|
|
s%@exec_prefix@%$exec_prefix%g |
1655 |
|
|
s%@prefix@%$prefix%g |
1656 |
|
|
s%@program_transform_name@%$program_transform_name%g |
1657 |
|
|
s%@bindir@%$bindir%g |
1658 |
|
|
s%@sbindir@%$sbindir%g |
1659 |
|
|
s%@libexecdir@%$libexecdir%g |
1660 |
|
|
s%@datadir@%$datadir%g |
1661 |
|
|
s%@sysconfdir@%$sysconfdir%g |
1662 |
|
|
s%@sharedstatedir@%$sharedstatedir%g |
1663 |
|
|
s%@localstatedir@%$localstatedir%g |
1664 |
|
|
s%@libdir@%$libdir%g |
1665 |
|
|
s%@includedir@%$includedir%g |
1666 |
|
|
s%@oldincludedir@%$oldincludedir%g |
1667 |
|
|
s%@infodir@%$infodir%g |
1668 |
|
|
s%@mandir@%$mandir%g |
1669 |
|
|
s%@CC@%$CC%g |
1670 |
|
|
s%@CPP@%$CPP%g |
1671 |
|
|
s%@SET_MAKE@%$SET_MAKE%g |
1672 |
|
|
s%@RANLIB@%$RANLIB%g |
1673 |
|
|
s%@VERSION@%$VERSION%g |
1674 |
|
|
s%@PATCH@%$PATCH%g |
1675 |
root |
1.4 |
|
1676 |
root |
1.1 |
CEOF |
1677 |
|
|
EOF |
1678 |
|
|
|
1679 |
root |
1.4.2.1 |
cat >> $CONFIG_STATUS <<\EOF |
1680 |
|
|
|
1681 |
|
|
# Split the substitutions into bite-sized pieces for seds with |
1682 |
|
|
# small command number limits, like on Digital OSF/1 and HP-UX. |
1683 |
|
|
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
1684 |
|
|
ac_file=1 # Number of current file. |
1685 |
|
|
ac_beg=1 # First line for current file. |
1686 |
|
|
ac_end=$ac_max_sed_cmds # Line after last line for current file. |
1687 |
|
|
ac_more_lines=: |
1688 |
|
|
ac_sed_cmds="" |
1689 |
|
|
while $ac_more_lines; do |
1690 |
|
|
if test $ac_beg -gt 1; then |
1691 |
|
|
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
1692 |
|
|
else |
1693 |
|
|
sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
1694 |
|
|
fi |
1695 |
|
|
if test ! -s conftest.s$ac_file; then |
1696 |
|
|
ac_more_lines=false |
1697 |
|
|
rm -f conftest.s$ac_file |
1698 |
|
|
else |
1699 |
|
|
if test -z "$ac_sed_cmds"; then |
1700 |
|
|
ac_sed_cmds="sed -f conftest.s$ac_file" |
1701 |
root |
1.1 |
else |
1702 |
root |
1.4.2.1 |
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
1703 |
root |
1.1 |
fi |
1704 |
root |
1.4.2.1 |
ac_file=`expr $ac_file + 1` |
1705 |
|
|
ac_beg=$ac_end |
1706 |
|
|
ac_end=`expr $ac_end + $ac_max_sed_cmds` |
1707 |
root |
1.1 |
fi |
1708 |
root |
1.4.2.1 |
done |
1709 |
|
|
if test -z "$ac_sed_cmds"; then |
1710 |
|
|
ac_sed_cmds=cat |
1711 |
|
|
fi |
1712 |
|
|
EOF |
1713 |
root |
1.1 |
|
1714 |
root |
1.4.2.1 |
cat >> $CONFIG_STATUS <<EOF |
1715 |
|
|
|
1716 |
|
|
CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
1717 |
root |
1.1 |
EOF |
1718 |
root |
1.4.2.1 |
cat >> $CONFIG_STATUS <<\EOF |
1719 |
|
|
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
1720 |
root |
1.1 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
1721 |
root |
1.4.2.1 |
case "$ac_file" in |
1722 |
|
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
1723 |
|
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
1724 |
|
|
*) ac_file_in="${ac_file}.in" ;; |
1725 |
root |
1.1 |
esac |
1726 |
|
|
|
1727 |
root |
1.4.2.1 |
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1728 |
root |
1.1 |
|
1729 |
root |
1.4.2.1 |
# Remove last slash and all that follows it. Not all systems have dirname. |
1730 |
|
|
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
1731 |
|
|
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
1732 |
|
|
# The file is in a subdirectory. |
1733 |
|
|
test ! -d "$ac_dir" && mkdir "$ac_dir" |
1734 |
|
|
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
1735 |
root |
1.1 |
# A "../" for each directory in $ac_dir_suffix. |
1736 |
root |
1.4.2.1 |
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
1737 |
root |
1.1 |
else |
1738 |
|
|
ac_dir_suffix= ac_dots= |
1739 |
|
|
fi |
1740 |
|
|
|
1741 |
root |
1.4.2.1 |
case "$ac_given_srcdir" in |
1742 |
|
|
.) srcdir=. |
1743 |
|
|
if test -z "$ac_dots"; then top_srcdir=. |
1744 |
|
|
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
1745 |
|
|
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
1746 |
root |
1.1 |
*) # Relative path. |
1747 |
root |
1.4.2.1 |
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
1748 |
|
|
top_srcdir="$ac_dots$ac_given_srcdir" ;; |
1749 |
root |
1.1 |
esac |
1750 |
|
|
|
1751 |
|
|
|
1752 |
root |
1.4.2.1 |
echo creating "$ac_file" |
1753 |
|
|
rm -f "$ac_file" |
1754 |
|
|
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
1755 |
|
|
case "$ac_file" in |
1756 |
|
|
*Makefile*) ac_comsub="1i\\ |
1757 |
|
|
# $configure_input" ;; |
1758 |
|
|
*) ac_comsub= ;; |
1759 |
|
|
esac |
1760 |
root |
1.1 |
|
1761 |
root |
1.4.2.1 |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
1762 |
|
|
sed -e "$ac_comsub |
1763 |
|
|
s%@configure_input@%$configure_input%g |
1764 |
|
|
s%@srcdir@%$srcdir%g |
1765 |
|
|
s%@top_srcdir@%$top_srcdir%g |
1766 |
|
|
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
1767 |
|
|
fi; done |
1768 |
|
|
rm -f conftest.s* |
1769 |
root |
1.1 |
|
1770 |
|
|
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
1771 |
|
|
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
1772 |
|
|
# |
1773 |
|
|
# ac_d sets the value in "#define NAME VALUE" lines. |
1774 |
root |
1.4.2.1 |
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
1775 |
|
|
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
1776 |
|
|
ac_dC='\3' |
1777 |
|
|
ac_dD='%g' |
1778 |
|
|
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
1779 |
|
|
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
1780 |
|
|
ac_uB='\([ ]\)%\1#\2define\3' |
1781 |
root |
1.1 |
ac_uC=' ' |
1782 |
root |
1.4.2.1 |
ac_uD='\4%g' |
1783 |
|
|
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
1784 |
|
|
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
1785 |
|
|
ac_eB='$%\1#\2define\3' |
1786 |
|
|
ac_eC=' ' |
1787 |
|
|
ac_eD='%g' |
1788 |
root |
1.1 |
|
1789 |
root |
1.4.2.1 |
if test "${CONFIG_HEADERS+set}" != set; then |
1790 |
|
|
EOF |
1791 |
|
|
cat >> $CONFIG_STATUS <<EOF |
1792 |
|
|
CONFIG_HEADERS="config.h" |
1793 |
|
|
EOF |
1794 |
|
|
cat >> $CONFIG_STATUS <<\EOF |
1795 |
|
|
fi |
1796 |
|
|
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
1797 |
root |
1.1 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
1798 |
root |
1.4.2.1 |
case "$ac_file" in |
1799 |
|
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
1800 |
|
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
1801 |
|
|
*) ac_file_in="${ac_file}.in" ;; |
1802 |
root |
1.1 |
esac |
1803 |
|
|
|
1804 |
root |
1.4.2.1 |
echo creating $ac_file |
1805 |
root |
1.1 |
|
1806 |
root |
1.4.2.1 |
rm -f conftest.frag conftest.in conftest.out |
1807 |
|
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
1808 |
|
|
cat $ac_file_inputs > conftest.in |
1809 |
|
|
|
1810 |
|
|
EOF |
1811 |
|
|
|
1812 |
|
|
# Transform confdefs.h into a sed script conftest.vals that substitutes |
1813 |
|
|
# the proper values into config.h.in to produce config.h. And first: |
1814 |
|
|
# Protect against being on the right side of a sed subst in config.status. |
1815 |
|
|
# Protect against being in an unquoted here document in config.status. |
1816 |
|
|
rm -f conftest.vals |
1817 |
|
|
cat > conftest.hdr <<\EOF |
1818 |
|
|
s/[\\&%]/\\&/g |
1819 |
|
|
s%[\\$`]%\\&%g |
1820 |
|
|
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
1821 |
|
|
s%ac_d%ac_u%gp |
1822 |
|
|
s%ac_u%ac_e%gp |
1823 |
|
|
EOF |
1824 |
|
|
sed -n -f conftest.hdr confdefs.h > conftest.vals |
1825 |
|
|
rm -f conftest.hdr |
1826 |
root |
1.1 |
|
1827 |
|
|
# This sed command replaces #undef with comments. This is necessary, for |
1828 |
|
|
# example, in the case of _POSIX_SOURCE, which is predefined and required |
1829 |
|
|
# on some systems where configure will not decide to define it. |
1830 |
root |
1.4.2.1 |
cat >> conftest.vals <<\EOF |
1831 |
|
|
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
1832 |
root |
1.1 |
EOF |
1833 |
|
|
|
1834 |
root |
1.4.2.1 |
# Break up conftest.vals because some shells have a limit on |
1835 |
|
|
# the size of here documents, and old seds have small limits too. |
1836 |
|
|
|
1837 |
root |
1.1 |
rm -f conftest.tail |
1838 |
root |
1.4.2.1 |
while : |
1839 |
root |
1.1 |
do |
1840 |
root |
1.4.2.1 |
ac_lines=`grep -c . conftest.vals` |
1841 |
|
|
# grep -c gives empty output for an empty file on some AIX systems. |
1842 |
|
|
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
1843 |
|
|
# Write a limited-size here document to conftest.frag. |
1844 |
|
|
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
1845 |
|
|
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
1846 |
root |
1.1 |
echo 'CEOF |
1847 |
root |
1.4.2.1 |
sed -f conftest.frag conftest.in > conftest.out |
1848 |
|
|
rm -f conftest.in |
1849 |
|
|
mv conftest.out conftest.in |
1850 |
|
|
' >> $CONFIG_STATUS |
1851 |
|
|
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
1852 |
|
|
rm -f conftest.vals |
1853 |
|
|
mv conftest.tail conftest.vals |
1854 |
|
|
done |
1855 |
|
|
rm -f conftest.vals |
1856 |
|
|
|
1857 |
|
|
cat >> $CONFIG_STATUS <<\EOF |
1858 |
|
|
rm -f conftest.frag conftest.h |
1859 |
|
|
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
1860 |
|
|
cat conftest.in >> conftest.h |
1861 |
|
|
rm -f conftest.in |
1862 |
|
|
if cmp -s $ac_file conftest.h 2>/dev/null; then |
1863 |
|
|
echo "$ac_file is unchanged" |
1864 |
|
|
rm -f conftest.h |
1865 |
root |
1.1 |
else |
1866 |
root |
1.4.2.1 |
# Remove last slash and all that follows it. Not all systems have dirname. |
1867 |
|
|
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
1868 |
root |
1.1 |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
1869 |
root |
1.4.2.1 |
# The file is in a subdirectory. |
1870 |
|
|
test ! -d "$ac_dir" && mkdir "$ac_dir" |
1871 |
root |
1.1 |
fi |
1872 |
root |
1.4.2.1 |
rm -f $ac_file |
1873 |
|
|
mv conftest.h $ac_file |
1874 |
root |
1.1 |
fi |
1875 |
root |
1.4.2.1 |
fi; done |
1876 |
|
|
|
1877 |
root |
1.1 |
EOF |
1878 |
root |
1.4.2.1 |
cat >> $CONFIG_STATUS <<EOF |
1879 |
root |
1.1 |
|
1880 |
root |
1.4.2.1 |
EOF |
1881 |
|
|
cat >> $CONFIG_STATUS <<\EOF |
1882 |
root |
1.1 |
|
1883 |
root |
1.4.2.1 |
exit 0 |
1884 |
root |
1.1 |
EOF |
1885 |
|
|
chmod +x $CONFIG_STATUS |
1886 |
root |
1.4.2.1 |
rm -fr confdefs* $ac_clean_files |
1887 |
|
|
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
1888 |
root |
1.1 |
|