1 | #! /bin/sh |
---|
2 | |
---|
3 | # Guess values for system-dependent variables and create Makefiles. |
---|
4 | # Generated automatically using autoconf version 2.13 |
---|
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
---|
6 | # |
---|
7 | # This configure script is free software; the Free Software Foundation |
---|
8 | # gives unlimited permission to copy, distribute and modify it. |
---|
9 | |
---|
10 | # Defaults: |
---|
11 | ac_help= |
---|
12 | ac_default_prefix=/usr/local |
---|
13 | # Any additions from configure.in: |
---|
14 | ac_help="$ac_help |
---|
15 | --with-cc(=CC) use system's native compiler (or compiler CC)" |
---|
16 | ac_help="$ac_help |
---|
17 | --enable-debug enable debugging" |
---|
18 | ac_help="$ac_help |
---|
19 | --with-media(=MEDIA) use output media Letter (MEDIA), default is A4" |
---|
20 | ac_help="$ac_help |
---|
21 | --with-spooler=SPOOLER set the printer spooler command" |
---|
22 | ac_help="$ac_help |
---|
23 | --with-ps-level=LEVEL set the PostScript language level to LEVEL" |
---|
24 | ac_help="$ac_help |
---|
25 | --disable-nls do not use Native Language Support" |
---|
26 | ac_help="$ac_help |
---|
27 | --with-included-gettext use the GNU gettext library included here" |
---|
28 | ac_help="$ac_help |
---|
29 | --with-catgets use catgets functions if available" |
---|
30 | |
---|
31 | # Initialize some variables set by options. |
---|
32 | # The variables have the same names as the options, with |
---|
33 | # dashes changed to underlines. |
---|
34 | build=NONE |
---|
35 | cache_file=./config.cache |
---|
36 | exec_prefix=NONE |
---|
37 | host=NONE |
---|
38 | no_create= |
---|
39 | nonopt=NONE |
---|
40 | no_recursion= |
---|
41 | prefix=NONE |
---|
42 | program_prefix=NONE |
---|
43 | program_suffix=NONE |
---|
44 | program_transform_name=s,x,x, |
---|
45 | silent= |
---|
46 | site= |
---|
47 | srcdir= |
---|
48 | target=NONE |
---|
49 | verbose= |
---|
50 | x_includes=NONE |
---|
51 | x_libraries=NONE |
---|
52 | bindir='${exec_prefix}/bin' |
---|
53 | sbindir='${exec_prefix}/sbin' |
---|
54 | libexecdir='${exec_prefix}/libexec' |
---|
55 | datadir='${prefix}/share' |
---|
56 | sysconfdir='${prefix}/etc' |
---|
57 | sharedstatedir='${prefix}/com' |
---|
58 | localstatedir='${prefix}/var' |
---|
59 | libdir='${exec_prefix}/lib' |
---|
60 | includedir='${prefix}/include' |
---|
61 | oldincludedir='/usr/include' |
---|
62 | infodir='${prefix}/info' |
---|
63 | mandir='${prefix}/man' |
---|
64 | |
---|
65 | # Initialize some other variables. |
---|
66 | subdirs= |
---|
67 | MFLAGS= MAKEFLAGS= |
---|
68 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
69 | # Maximum number of lines to put in a shell here document. |
---|
70 | ac_max_here_lines=12 |
---|
71 | |
---|
72 | ac_prev= |
---|
73 | for ac_option |
---|
74 | do |
---|
75 | |
---|
76 | # If the previous option needs an argument, assign it. |
---|
77 | if test -n "$ac_prev"; then |
---|
78 | eval "$ac_prev=\$ac_option" |
---|
79 | ac_prev= |
---|
80 | continue |
---|
81 | fi |
---|
82 | |
---|
83 | case "$ac_option" in |
---|
84 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
85 | *) ac_optarg= ;; |
---|
86 | esac |
---|
87 | |
---|
88 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
89 | |
---|
90 | case "$ac_option" in |
---|
91 | |
---|
92 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
93 | ac_prev=bindir ;; |
---|
94 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
95 | bindir="$ac_optarg" ;; |
---|
96 | |
---|
97 | -build | --build | --buil | --bui | --bu) |
---|
98 | ac_prev=build ;; |
---|
99 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
100 | build="$ac_optarg" ;; |
---|
101 | |
---|
102 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
103 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
104 | ac_prev=cache_file ;; |
---|
105 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
106 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
107 | cache_file="$ac_optarg" ;; |
---|
108 | |
---|
109 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
110 | ac_prev=datadir ;; |
---|
111 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
112 | | --da=*) |
---|
113 | datadir="$ac_optarg" ;; |
---|
114 | |
---|
115 | -disable-* | --disable-*) |
---|
116 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
117 | # Reject names that are not valid shell variable names. |
---|
118 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
119 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
120 | fi |
---|
121 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
122 | eval "enable_${ac_feature}=no" ;; |
---|
123 | |
---|
124 | -enable-* | --enable-*) |
---|
125 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
126 | # Reject names that are not valid shell variable names. |
---|
127 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
128 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
129 | fi |
---|
130 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
131 | case "$ac_option" in |
---|
132 | *=*) ;; |
---|
133 | *) ac_optarg=yes ;; |
---|
134 | esac |
---|
135 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
136 | |
---|
137 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
138 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
139 | | --exec | --exe | --ex) |
---|
140 | ac_prev=exec_prefix ;; |
---|
141 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
142 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
143 | | --exec=* | --exe=* | --ex=*) |
---|
144 | exec_prefix="$ac_optarg" ;; |
---|
145 | |
---|
146 | -gas | --gas | --ga | --g) |
---|
147 | # Obsolete; use --with-gas. |
---|
148 | with_gas=yes ;; |
---|
149 | |
---|
150 | -help | --help | --hel | --he) |
---|
151 | # Omit some internal or obsolete options to make the list less imposing. |
---|
152 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
153 | cat << EOF |
---|
154 | Usage: configure [options] [host] |
---|
155 | Options: [defaults in brackets after descriptions] |
---|
156 | Configuration: |
---|
157 | --cache-file=FILE cache test results in FILE |
---|
158 | --help print this message |
---|
159 | --no-create do not create output files |
---|
160 | --quiet, --silent do not print \`checking...' messages |
---|
161 | --version print the version of autoconf that created configure |
---|
162 | Directory and file names: |
---|
163 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
164 | [$ac_default_prefix] |
---|
165 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
166 | [same as prefix] |
---|
167 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
168 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
169 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
170 | --datadir=DIR read-only architecture-independent data in DIR |
---|
171 | [PREFIX/share] |
---|
172 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
173 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
174 | [PREFIX/com] |
---|
175 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
176 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
177 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
178 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
179 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
180 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
181 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
182 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
183 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
184 | --program-transform-name=PROGRAM |
---|
185 | run sed PROGRAM on installed program names |
---|
186 | EOF |
---|
187 | cat << EOF |
---|
188 | Host type: |
---|
189 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
190 | --host=HOST configure for HOST [guessed] |
---|
191 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
192 | Features and packages: |
---|
193 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
194 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
195 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
196 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
197 | --x-includes=DIR X include files are in DIR |
---|
198 | --x-libraries=DIR X library files are in DIR |
---|
199 | EOF |
---|
200 | if test -n "$ac_help"; then |
---|
201 | echo "--enable and --with options recognized:$ac_help" |
---|
202 | fi |
---|
203 | exit 0 ;; |
---|
204 | |
---|
205 | -host | --host | --hos | --ho) |
---|
206 | ac_prev=host ;; |
---|
207 | -host=* | --host=* | --hos=* | --ho=*) |
---|
208 | host="$ac_optarg" ;; |
---|
209 | |
---|
210 | -includedir | --includedir | --includedi | --included | --include \ |
---|
211 | | --includ | --inclu | --incl | --inc) |
---|
212 | ac_prev=includedir ;; |
---|
213 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
214 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
215 | includedir="$ac_optarg" ;; |
---|
216 | |
---|
217 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
218 | ac_prev=infodir ;; |
---|
219 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
220 | infodir="$ac_optarg" ;; |
---|
221 | |
---|
222 | -libdir | --libdir | --libdi | --libd) |
---|
223 | ac_prev=libdir ;; |
---|
224 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
225 | libdir="$ac_optarg" ;; |
---|
226 | |
---|
227 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
228 | | --libexe | --libex | --libe) |
---|
229 | ac_prev=libexecdir ;; |
---|
230 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
231 | | --libexe=* | --libex=* | --libe=*) |
---|
232 | libexecdir="$ac_optarg" ;; |
---|
233 | |
---|
234 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
235 | | --localstate | --localstat | --localsta | --localst \ |
---|
236 | | --locals | --local | --loca | --loc | --lo) |
---|
237 | ac_prev=localstatedir ;; |
---|
238 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
239 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
240 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
241 | localstatedir="$ac_optarg" ;; |
---|
242 | |
---|
243 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
244 | ac_prev=mandir ;; |
---|
245 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
246 | mandir="$ac_optarg" ;; |
---|
247 | |
---|
248 | -nfp | --nfp | --nf) |
---|
249 | # Obsolete; use --without-fp. |
---|
250 | with_fp=no ;; |
---|
251 | |
---|
252 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
253 | | --no-cr | --no-c) |
---|
254 | no_create=yes ;; |
---|
255 | |
---|
256 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
257 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
258 | no_recursion=yes ;; |
---|
259 | |
---|
260 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
261 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
262 | | --oldin | --oldi | --old | --ol | --o) |
---|
263 | ac_prev=oldincludedir ;; |
---|
264 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
265 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
266 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
267 | oldincludedir="$ac_optarg" ;; |
---|
268 | |
---|
269 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
270 | ac_prev=prefix ;; |
---|
271 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
272 | prefix="$ac_optarg" ;; |
---|
273 | |
---|
274 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
275 | | --program-pre | --program-pr | --program-p) |
---|
276 | ac_prev=program_prefix ;; |
---|
277 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
278 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
279 | program_prefix="$ac_optarg" ;; |
---|
280 | |
---|
281 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
282 | | --program-suf | --program-su | --program-s) |
---|
283 | ac_prev=program_suffix ;; |
---|
284 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
285 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
286 | program_suffix="$ac_optarg" ;; |
---|
287 | |
---|
288 | -program-transform-name | --program-transform-name \ |
---|
289 | | --program-transform-nam | --program-transform-na \ |
---|
290 | | --program-transform-n | --program-transform- \ |
---|
291 | | --program-transform | --program-transfor \ |
---|
292 | | --program-transfo | --program-transf \ |
---|
293 | | --program-trans | --program-tran \ |
---|
294 | | --progr-tra | --program-tr | --program-t) |
---|
295 | ac_prev=program_transform_name ;; |
---|
296 | -program-transform-name=* | --program-transform-name=* \ |
---|
297 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
298 | | --program-transform-n=* | --program-transform-=* \ |
---|
299 | | --program-transform=* | --program-transfor=* \ |
---|
300 | | --program-transfo=* | --program-transf=* \ |
---|
301 | | --program-trans=* | --program-tran=* \ |
---|
302 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
303 | program_transform_name="$ac_optarg" ;; |
---|
304 | |
---|
305 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
306 | | -silent | --silent | --silen | --sile | --sil) |
---|
307 | silent=yes ;; |
---|
308 | |
---|
309 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
310 | ac_prev=sbindir ;; |
---|
311 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
312 | | --sbi=* | --sb=*) |
---|
313 | sbindir="$ac_optarg" ;; |
---|
314 | |
---|
315 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
316 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
317 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
318 | | --sha | --sh) |
---|
319 | ac_prev=sharedstatedir ;; |
---|
320 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
321 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
322 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
323 | | --sha=* | --sh=*) |
---|
324 | sharedstatedir="$ac_optarg" ;; |
---|
325 | |
---|
326 | -site | --site | --sit) |
---|
327 | ac_prev=site ;; |
---|
328 | -site=* | --site=* | --sit=*) |
---|
329 | site="$ac_optarg" ;; |
---|
330 | |
---|
331 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
332 | ac_prev=srcdir ;; |
---|
333 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
334 | srcdir="$ac_optarg" ;; |
---|
335 | |
---|
336 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
337 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
338 | ac_prev=sysconfdir ;; |
---|
339 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
340 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
341 | sysconfdir="$ac_optarg" ;; |
---|
342 | |
---|
343 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
344 | ac_prev=target ;; |
---|
345 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
346 | target="$ac_optarg" ;; |
---|
347 | |
---|
348 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
349 | verbose=yes ;; |
---|
350 | |
---|
351 | -version | --version | --versio | --versi | --vers) |
---|
352 | echo "configure generated by autoconf version 2.13" |
---|
353 | exit 0 ;; |
---|
354 | |
---|
355 | -with-* | --with-*) |
---|
356 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
357 | # Reject names that are not valid shell variable names. |
---|
358 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
359 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
360 | fi |
---|
361 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
362 | case "$ac_option" in |
---|
363 | *=*) ;; |
---|
364 | *) ac_optarg=yes ;; |
---|
365 | esac |
---|
366 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
367 | |
---|
368 | -without-* | --without-*) |
---|
369 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
370 | # Reject names that are not valid shell variable names. |
---|
371 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
372 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
373 | fi |
---|
374 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
375 | eval "with_${ac_package}=no" ;; |
---|
376 | |
---|
377 | --x) |
---|
378 | # Obsolete; use --with-x. |
---|
379 | with_x=yes ;; |
---|
380 | |
---|
381 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
382 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
383 | ac_prev=x_includes ;; |
---|
384 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
385 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
386 | x_includes="$ac_optarg" ;; |
---|
387 | |
---|
388 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
389 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
390 | ac_prev=x_libraries ;; |
---|
391 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
392 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
393 | x_libraries="$ac_optarg" ;; |
---|
394 | |
---|
395 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
396 | ;; |
---|
397 | |
---|
398 | *) |
---|
399 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
400 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
401 | fi |
---|
402 | if test "x$nonopt" != xNONE; then |
---|
403 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
404 | fi |
---|
405 | nonopt="$ac_option" |
---|
406 | ;; |
---|
407 | |
---|
408 | esac |
---|
409 | done |
---|
410 | |
---|
411 | if test -n "$ac_prev"; then |
---|
412 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
413 | fi |
---|
414 | |
---|
415 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
416 | |
---|
417 | # File descriptor usage: |
---|
418 | # 0 standard input |
---|
419 | # 1 file creation |
---|
420 | # 2 errors and warnings |
---|
421 | # 3 some systems may open it to /dev/tty |
---|
422 | # 4 used on the Kubota Titan |
---|
423 | # 6 checking for... messages and results |
---|
424 | # 5 compiler messages saved in config.log |
---|
425 | if test "$silent" = yes; then |
---|
426 | exec 6>/dev/null |
---|
427 | else |
---|
428 | exec 6>&1 |
---|
429 | fi |
---|
430 | exec 5>./config.log |
---|
431 | |
---|
432 | echo "\ |
---|
433 | This file contains any messages produced by compilers while |
---|
434 | running configure, to aid debugging if configure makes a mistake. |
---|
435 | " 1>&5 |
---|
436 | |
---|
437 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
438 | # Also quote any args containing shell metacharacters. |
---|
439 | ac_configure_args= |
---|
440 | for ac_arg |
---|
441 | do |
---|
442 | case "$ac_arg" in |
---|
443 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
444 | | --no-cr | --no-c) ;; |
---|
445 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
446 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
447 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
448 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
449 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
450 | esac |
---|
451 | done |
---|
452 | |
---|
453 | # NLS nuisances. |
---|
454 | # Only set these to C if already set. These must not be set unconditionally |
---|
455 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
456 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
457 | # Non-C LC_CTYPE values break the ctype check. |
---|
458 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
459 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
460 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
461 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
462 | |
---|
463 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
464 | rm -rf conftest* confdefs.h |
---|
465 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
466 | echo > confdefs.h |
---|
467 | |
---|
468 | # A filename unique to this package, relative to the directory that |
---|
469 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
470 | ac_unique_file=src/gsint.h |
---|
471 | |
---|
472 | # Find the source files, if location was not specified. |
---|
473 | if test -z "$srcdir"; then |
---|
474 | ac_srcdir_defaulted=yes |
---|
475 | # Try the directory containing this script, then its parent. |
---|
476 | ac_prog=$0 |
---|
477 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
478 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
479 | srcdir=$ac_confdir |
---|
480 | if test ! -r $srcdir/$ac_unique_file; then |
---|
481 | srcdir=.. |
---|
482 | fi |
---|
483 | else |
---|
484 | ac_srcdir_defaulted=no |
---|
485 | fi |
---|
486 | if test ! -r $srcdir/$ac_unique_file; then |
---|
487 | if test "$ac_srcdir_defaulted" = yes; then |
---|
488 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
489 | else |
---|
490 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
491 | fi |
---|
492 | fi |
---|
493 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
494 | |
---|
495 | # Prefer explicitly selected file to automatically selected ones. |
---|
496 | if test -z "$CONFIG_SITE"; then |
---|
497 | if test "x$prefix" != xNONE; then |
---|
498 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
499 | else |
---|
500 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
501 | fi |
---|
502 | fi |
---|
503 | for ac_site_file in $CONFIG_SITE; do |
---|
504 | if test -r "$ac_site_file"; then |
---|
505 | echo "loading site script $ac_site_file" |
---|
506 | . "$ac_site_file" |
---|
507 | fi |
---|
508 | done |
---|
509 | |
---|
510 | if test -r "$cache_file"; then |
---|
511 | echo "loading cache $cache_file" |
---|
512 | . $cache_file |
---|
513 | else |
---|
514 | echo "creating cache $cache_file" |
---|
515 | > $cache_file |
---|
516 | fi |
---|
517 | |
---|
518 | ac_ext=c |
---|
519 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
520 | ac_cpp='$CPP $CPPFLAGS' |
---|
521 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
522 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
523 | cross_compiling=$ac_cv_prog_cc_cross |
---|
524 | |
---|
525 | ac_exeext= |
---|
526 | ac_objext=o |
---|
527 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
528 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
529 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
530 | ac_n= ac_c=' |
---|
531 | ' ac_t=' ' |
---|
532 | else |
---|
533 | ac_n=-n ac_c= ac_t= |
---|
534 | fi |
---|
535 | else |
---|
536 | ac_n= ac_c='\c' ac_t= |
---|
537 | fi |
---|
538 | |
---|
539 | |
---|
540 | ac_aux_dir= |
---|
541 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
542 | if test -f $ac_dir/install-sh; then |
---|
543 | ac_aux_dir=$ac_dir |
---|
544 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
545 | break |
---|
546 | elif test -f $ac_dir/install.sh; then |
---|
547 | ac_aux_dir=$ac_dir |
---|
548 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
549 | break |
---|
550 | fi |
---|
551 | done |
---|
552 | if test -z "$ac_aux_dir"; then |
---|
553 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
554 | fi |
---|
555 | ac_config_guess=$ac_aux_dir/config.guess |
---|
556 | ac_config_sub=$ac_aux_dir/config.sub |
---|
557 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
558 | |
---|
559 | # Find a good install program. We prefer a C program (faster), |
---|
560 | # so one script is as good as another. But avoid the broken or |
---|
561 | # incompatible versions: |
---|
562 | # SysV /etc/install, /usr/sbin/install |
---|
563 | # SunOS /usr/etc/install |
---|
564 | # IRIX /sbin/install |
---|
565 | # AIX /bin/install |
---|
566 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
567 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
568 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
569 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
570 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
571 | echo "configure:572: checking for a BSD compatible install" >&5 |
---|
572 | if test -z "$INSTALL"; then |
---|
573 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
574 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
575 | else |
---|
576 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
577 | for ac_dir in $PATH; do |
---|
578 | # Account for people who put trailing slashes in PATH elements. |
---|
579 | case "$ac_dir/" in |
---|
580 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
581 | *) |
---|
582 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
583 | # Don't use installbsd from OSF since it installs stuff as root |
---|
584 | # by default. |
---|
585 | for ac_prog in ginstall scoinst install; do |
---|
586 | if test -f $ac_dir/$ac_prog; then |
---|
587 | if test $ac_prog = install && |
---|
588 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
589 | # AIX install. It has an incompatible calling convention. |
---|
590 | : |
---|
591 | else |
---|
592 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
593 | break 2 |
---|
594 | fi |
---|
595 | fi |
---|
596 | done |
---|
597 | ;; |
---|
598 | esac |
---|
599 | done |
---|
600 | IFS="$ac_save_IFS" |
---|
601 | |
---|
602 | fi |
---|
603 | if test "${ac_cv_path_install+set}" = set; then |
---|
604 | INSTALL="$ac_cv_path_install" |
---|
605 | else |
---|
606 | # As a last resort, use the slow shell script. We don't cache a |
---|
607 | # path for INSTALL within a source directory, because that will |
---|
608 | # break other packages using the cache if that directory is |
---|
609 | # removed, or if the path is relative. |
---|
610 | INSTALL="$ac_install_sh" |
---|
611 | fi |
---|
612 | fi |
---|
613 | echo "$ac_t""$INSTALL" 1>&6 |
---|
614 | |
---|
615 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
616 | # It thinks the first close brace ends the variable substitution. |
---|
617 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
618 | |
---|
619 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
620 | |
---|
621 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
622 | |
---|
623 | |
---|
624 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
625 | |
---|
626 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
---|
627 | echo "configure:628: checking whether build environment is sane" >&5 |
---|
628 | # Just in case |
---|
629 | sleep 1 |
---|
630 | echo timestamp > conftestfile |
---|
631 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
632 | # arguments. Must try -L first in case configure is actually a |
---|
633 | # symlink; some systems play weird games with the mod time of symlinks |
---|
634 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
635 | # directory). |
---|
636 | if ( |
---|
637 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
---|
638 | if test "$*" = "X"; then |
---|
639 | # -L didn't work. |
---|
640 | set X `ls -t $srcdir/configure conftestfile` |
---|
641 | fi |
---|
642 | if test "$*" != "X $srcdir/configure conftestfile" \ |
---|
643 | && test "$*" != "X conftestfile $srcdir/configure"; then |
---|
644 | |
---|
645 | # If neither matched, then we have a broken ls. This can happen |
---|
646 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
647 | # broken ls alias from the environment. This has actually |
---|
648 | # happened. Such a system could not be considered "sane". |
---|
649 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
---|
650 | alias in your environment" 1>&2; exit 1; } |
---|
651 | fi |
---|
652 | |
---|
653 | test "$2" = conftestfile |
---|
654 | ) |
---|
655 | then |
---|
656 | # Ok. |
---|
657 | : |
---|
658 | else |
---|
659 | { echo "configure: error: newly created file is older than distributed files! |
---|
660 | Check your system clock" 1>&2; exit 1; } |
---|
661 | fi |
---|
662 | rm -f conftest* |
---|
663 | echo "$ac_t""yes" 1>&6 |
---|
664 | if test "$program_transform_name" = s,x,x,; then |
---|
665 | program_transform_name= |
---|
666 | else |
---|
667 | # Double any \ or $. echo might interpret backslashes. |
---|
668 | cat <<\EOF_SED > conftestsed |
---|
669 | s,\\,\\\\,g; s,\$,$$,g |
---|
670 | EOF_SED |
---|
671 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
---|
672 | rm -f conftestsed |
---|
673 | fi |
---|
674 | test "$program_prefix" != NONE && |
---|
675 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
---|
676 | # Use a double $ so make ignores it. |
---|
677 | test "$program_suffix" != NONE && |
---|
678 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
---|
679 | |
---|
680 | # sed with no file args requires a program. |
---|
681 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
---|
682 | |
---|
683 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
684 | echo "configure:685: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
685 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
686 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
687 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
688 | else |
---|
689 | cat > conftestmake <<\EOF |
---|
690 | all: |
---|
691 | @echo 'ac_maketemp="${MAKE}"' |
---|
692 | EOF |
---|
693 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
694 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
695 | if test -n "$ac_maketemp"; then |
---|
696 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
697 | else |
---|
698 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
699 | fi |
---|
700 | rm -f conftestmake |
---|
701 | fi |
---|
702 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
703 | echo "$ac_t""yes" 1>&6 |
---|
704 | SET_MAKE= |
---|
705 | else |
---|
706 | echo "$ac_t""no" 1>&6 |
---|
707 | SET_MAKE="MAKE=${MAKE-make}" |
---|
708 | fi |
---|
709 | |
---|
710 | |
---|
711 | PACKAGE=enscript |
---|
712 | |
---|
713 | VERSION=1.6.1 |
---|
714 | |
---|
715 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
---|
716 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
---|
717 | fi |
---|
718 | cat >> confdefs.h <<EOF |
---|
719 | #define PACKAGE "$PACKAGE" |
---|
720 | EOF |
---|
721 | |
---|
722 | cat >> confdefs.h <<EOF |
---|
723 | #define VERSION "$VERSION" |
---|
724 | EOF |
---|
725 | |
---|
726 | |
---|
727 | |
---|
728 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
729 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
---|
730 | echo "configure:731: checking for working aclocal" >&5 |
---|
731 | # Run test in a subshell; some versions of sh will print an error if |
---|
732 | # an executable is not found, even if stderr is redirected. |
---|
733 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
734 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
---|
735 | ACLOCAL=aclocal |
---|
736 | echo "$ac_t""found" 1>&6 |
---|
737 | else |
---|
738 | ACLOCAL="$missing_dir/missing aclocal" |
---|
739 | echo "$ac_t""missing" 1>&6 |
---|
740 | fi |
---|
741 | |
---|
742 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
---|
743 | echo "configure:744: checking for working autoconf" >&5 |
---|
744 | # Run test in a subshell; some versions of sh will print an error if |
---|
745 | # an executable is not found, even if stderr is redirected. |
---|
746 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
747 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
---|
748 | AUTOCONF=autoconf |
---|
749 | echo "$ac_t""found" 1>&6 |
---|
750 | else |
---|
751 | AUTOCONF="$missing_dir/missing autoconf" |
---|
752 | echo "$ac_t""missing" 1>&6 |
---|
753 | fi |
---|
754 | |
---|
755 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
---|
756 | echo "configure:757: checking for working automake" >&5 |
---|
757 | # Run test in a subshell; some versions of sh will print an error if |
---|
758 | # an executable is not found, even if stderr is redirected. |
---|
759 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
760 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
---|
761 | AUTOMAKE=automake |
---|
762 | echo "$ac_t""found" 1>&6 |
---|
763 | else |
---|
764 | AUTOMAKE="$missing_dir/missing automake" |
---|
765 | echo "$ac_t""missing" 1>&6 |
---|
766 | fi |
---|
767 | |
---|
768 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
---|
769 | echo "configure:770: checking for working autoheader" >&5 |
---|
770 | # Run test in a subshell; some versions of sh will print an error if |
---|
771 | # an executable is not found, even if stderr is redirected. |
---|
772 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
773 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
---|
774 | AUTOHEADER=autoheader |
---|
775 | echo "$ac_t""found" 1>&6 |
---|
776 | else |
---|
777 | AUTOHEADER="$missing_dir/missing autoheader" |
---|
778 | echo "$ac_t""missing" 1>&6 |
---|
779 | fi |
---|
780 | |
---|
781 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
---|
782 | echo "configure:783: checking for working makeinfo" >&5 |
---|
783 | # Run test in a subshell; some versions of sh will print an error if |
---|
784 | # an executable is not found, even if stderr is redirected. |
---|
785 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
786 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
---|
787 | MAKEINFO=makeinfo |
---|
788 | echo "$ac_t""found" 1>&6 |
---|
789 | else |
---|
790 | MAKEINFO="$missing_dir/missing makeinfo" |
---|
791 | echo "$ac_t""missing" 1>&6 |
---|
792 | fi |
---|
793 | |
---|
794 | |
---|
795 | |
---|
796 | |
---|
797 | |
---|
798 | |
---|
799 | # From configure.in Revision: 1.1.1.1 |
---|
800 | |
---|
801 | |
---|
802 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
803 | |
---|
804 | |
---|
805 | # Check whether --with-cc or --without-cc was given. |
---|
806 | if test "${with_cc+set}" = set; then |
---|
807 | withval="$with_cc" |
---|
808 | if test "X$withval" != "Xno"; then |
---|
809 | if test "X$withval" = "Xyes"; then |
---|
810 | CC='cc' |
---|
811 | else |
---|
812 | CC=$withval |
---|
813 | fi |
---|
814 | CFLAGS="$CFLAGS -I/usr/local/include" |
---|
815 | LDFLAGS="$LDFLAGS -L/usr/local/lib" |
---|
816 | echo "using compiler CC=$CC" |
---|
817 | fi |
---|
818 | |
---|
819 | fi |
---|
820 | |
---|
821 | |
---|
822 | if test "X$CC" = "X"; then |
---|
823 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
824 | set dummy gcc; ac_word=$2 |
---|
825 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
826 | echo "configure:827: checking for $ac_word" >&5 |
---|
827 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
828 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
829 | else |
---|
830 | if test -n "$CC"; then |
---|
831 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
832 | else |
---|
833 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
834 | ac_dummy="$PATH" |
---|
835 | for ac_dir in $ac_dummy; do |
---|
836 | test -z "$ac_dir" && ac_dir=. |
---|
837 | if test -f $ac_dir/$ac_word; then |
---|
838 | ac_cv_prog_CC="gcc" |
---|
839 | break |
---|
840 | fi |
---|
841 | done |
---|
842 | IFS="$ac_save_ifs" |
---|
843 | fi |
---|
844 | fi |
---|
845 | CC="$ac_cv_prog_CC" |
---|
846 | if test -n "$CC"; then |
---|
847 | echo "$ac_t""$CC" 1>&6 |
---|
848 | else |
---|
849 | echo "$ac_t""no" 1>&6 |
---|
850 | fi |
---|
851 | |
---|
852 | if test -z "$CC"; then |
---|
853 | # Extract the first word of "cc", so it can be a program name with args. |
---|
854 | set dummy cc; ac_word=$2 |
---|
855 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
856 | echo "configure:857: checking for $ac_word" >&5 |
---|
857 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
858 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
859 | else |
---|
860 | if test -n "$CC"; then |
---|
861 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
862 | else |
---|
863 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
864 | ac_prog_rejected=no |
---|
865 | ac_dummy="$PATH" |
---|
866 | for ac_dir in $ac_dummy; do |
---|
867 | test -z "$ac_dir" && ac_dir=. |
---|
868 | if test -f $ac_dir/$ac_word; then |
---|
869 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
870 | ac_prog_rejected=yes |
---|
871 | continue |
---|
872 | fi |
---|
873 | ac_cv_prog_CC="cc" |
---|
874 | break |
---|
875 | fi |
---|
876 | done |
---|
877 | IFS="$ac_save_ifs" |
---|
878 | if test $ac_prog_rejected = yes; then |
---|
879 | # We found a bogon in the path, so make sure we never use it. |
---|
880 | set dummy $ac_cv_prog_CC |
---|
881 | shift |
---|
882 | if test $# -gt 0; then |
---|
883 | # We chose a different compiler from the bogus one. |
---|
884 | # However, it has the same basename, so the bogon will be chosen |
---|
885 | # first if we set CC to just the basename; use the full file name. |
---|
886 | shift |
---|
887 | set dummy "$ac_dir/$ac_word" "$@" |
---|
888 | shift |
---|
889 | ac_cv_prog_CC="$@" |
---|
890 | fi |
---|
891 | fi |
---|
892 | fi |
---|
893 | fi |
---|
894 | CC="$ac_cv_prog_CC" |
---|
895 | if test -n "$CC"; then |
---|
896 | echo "$ac_t""$CC" 1>&6 |
---|
897 | else |
---|
898 | echo "$ac_t""no" 1>&6 |
---|
899 | fi |
---|
900 | |
---|
901 | if test -z "$CC"; then |
---|
902 | case "`uname -s`" in |
---|
903 | *win32* | *WIN32*) |
---|
904 | # Extract the first word of "cl", so it can be a program name with args. |
---|
905 | set dummy cl; ac_word=$2 |
---|
906 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
907 | echo "configure:908: checking for $ac_word" >&5 |
---|
908 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
909 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
910 | else |
---|
911 | if test -n "$CC"; then |
---|
912 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
913 | else |
---|
914 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
915 | ac_dummy="$PATH" |
---|
916 | for ac_dir in $ac_dummy; do |
---|
917 | test -z "$ac_dir" && ac_dir=. |
---|
918 | if test -f $ac_dir/$ac_word; then |
---|
919 | ac_cv_prog_CC="cl" |
---|
920 | break |
---|
921 | fi |
---|
922 | done |
---|
923 | IFS="$ac_save_ifs" |
---|
924 | fi |
---|
925 | fi |
---|
926 | CC="$ac_cv_prog_CC" |
---|
927 | if test -n "$CC"; then |
---|
928 | echo "$ac_t""$CC" 1>&6 |
---|
929 | else |
---|
930 | echo "$ac_t""no" 1>&6 |
---|
931 | fi |
---|
932 | ;; |
---|
933 | esac |
---|
934 | fi |
---|
935 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
936 | fi |
---|
937 | |
---|
938 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
939 | echo "configure:940: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
940 | |
---|
941 | ac_ext=c |
---|
942 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
943 | ac_cpp='$CPP $CPPFLAGS' |
---|
944 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
945 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
946 | cross_compiling=$ac_cv_prog_cc_cross |
---|
947 | |
---|
948 | cat > conftest.$ac_ext << EOF |
---|
949 | |
---|
950 | #line 951 "configure" |
---|
951 | #include "confdefs.h" |
---|
952 | |
---|
953 | main(){return(0);} |
---|
954 | EOF |
---|
955 | if { (eval echo configure:956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
956 | ac_cv_prog_cc_works=yes |
---|
957 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
958 | if (./conftest; exit) 2>/dev/null; then |
---|
959 | ac_cv_prog_cc_cross=no |
---|
960 | else |
---|
961 | ac_cv_prog_cc_cross=yes |
---|
962 | fi |
---|
963 | else |
---|
964 | echo "configure: failed program was:" >&5 |
---|
965 | cat conftest.$ac_ext >&5 |
---|
966 | ac_cv_prog_cc_works=no |
---|
967 | fi |
---|
968 | rm -fr conftest* |
---|
969 | ac_ext=c |
---|
970 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
971 | ac_cpp='$CPP $CPPFLAGS' |
---|
972 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
973 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
974 | cross_compiling=$ac_cv_prog_cc_cross |
---|
975 | |
---|
976 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
977 | if test $ac_cv_prog_cc_works = no; then |
---|
978 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
979 | fi |
---|
980 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
981 | echo "configure:982: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
982 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
983 | cross_compiling=$ac_cv_prog_cc_cross |
---|
984 | |
---|
985 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
986 | echo "configure:987: checking whether we are using GNU C" >&5 |
---|
987 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
988 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
989 | else |
---|
990 | cat > conftest.c <<EOF |
---|
991 | #ifdef __GNUC__ |
---|
992 | yes; |
---|
993 | #endif |
---|
994 | EOF |
---|
995 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
996 | ac_cv_prog_gcc=yes |
---|
997 | else |
---|
998 | ac_cv_prog_gcc=no |
---|
999 | fi |
---|
1000 | fi |
---|
1001 | |
---|
1002 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
1003 | |
---|
1004 | if test $ac_cv_prog_gcc = yes; then |
---|
1005 | GCC=yes |
---|
1006 | else |
---|
1007 | GCC= |
---|
1008 | fi |
---|
1009 | |
---|
1010 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
1011 | ac_save_CFLAGS="$CFLAGS" |
---|
1012 | CFLAGS= |
---|
1013 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
1014 | echo "configure:1015: checking whether ${CC-cc} accepts -g" >&5 |
---|
1015 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
1016 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1017 | else |
---|
1018 | echo 'void f(){}' > conftest.c |
---|
1019 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
1020 | ac_cv_prog_cc_g=yes |
---|
1021 | else |
---|
1022 | ac_cv_prog_cc_g=no |
---|
1023 | fi |
---|
1024 | rm -f conftest* |
---|
1025 | |
---|
1026 | fi |
---|
1027 | |
---|
1028 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
1029 | if test "$ac_test_CFLAGS" = set; then |
---|
1030 | CFLAGS="$ac_save_CFLAGS" |
---|
1031 | elif test $ac_cv_prog_cc_g = yes; then |
---|
1032 | if test "$GCC" = yes; then |
---|
1033 | CFLAGS="-g -O2" |
---|
1034 | else |
---|
1035 | CFLAGS="-g" |
---|
1036 | fi |
---|
1037 | else |
---|
1038 | if test "$GCC" = yes; then |
---|
1039 | CFLAGS="-O2" |
---|
1040 | else |
---|
1041 | CFLAGS= |
---|
1042 | fi |
---|
1043 | fi |
---|
1044 | |
---|
1045 | fi |
---|
1046 | |
---|
1047 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
---|
1048 | echo "configure:1049: checking for POSIXized ISC" >&5 |
---|
1049 | if test -d /etc/conf/kconfig.d && |
---|
1050 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
---|
1051 | then |
---|
1052 | echo "$ac_t""yes" 1>&6 |
---|
1053 | ISC=yes # If later tests want to check for ISC. |
---|
1054 | cat >> confdefs.h <<\EOF |
---|
1055 | #define _POSIX_SOURCE 1 |
---|
1056 | EOF |
---|
1057 | |
---|
1058 | if test "$GCC" = yes; then |
---|
1059 | CC="$CC -posix" |
---|
1060 | else |
---|
1061 | CC="$CC -Xp" |
---|
1062 | fi |
---|
1063 | else |
---|
1064 | echo "$ac_t""no" 1>&6 |
---|
1065 | ISC= |
---|
1066 | fi |
---|
1067 | |
---|
1068 | |
---|
1069 | |
---|
1070 | |
---|
1071 | echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 |
---|
1072 | echo "configure:1073: checking for ${CC-cc} option to accept ANSI C" >&5 |
---|
1073 | if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then |
---|
1074 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1075 | else |
---|
1076 | am_cv_prog_cc_stdc=no |
---|
1077 | ac_save_CC="$CC" |
---|
1078 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
1079 | # breaks some systems' header files. |
---|
1080 | # AIX -qlanglvl=ansi |
---|
1081 | # Ultrix and OSF/1 -std1 |
---|
1082 | # HP-UX -Aa -D_HPUX_SOURCE |
---|
1083 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
1084 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
1085 | do |
---|
1086 | CC="$ac_save_CC $ac_arg" |
---|
1087 | cat > conftest.$ac_ext <<EOF |
---|
1088 | #line 1089 "configure" |
---|
1089 | #include "confdefs.h" |
---|
1090 | #include <stdarg.h> |
---|
1091 | #include <stdio.h> |
---|
1092 | #include <sys/types.h> |
---|
1093 | #include <sys/stat.h> |
---|
1094 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
1095 | struct buf { int x; }; |
---|
1096 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
1097 | static char *e (p, i) |
---|
1098 | char **p; |
---|
1099 | int i; |
---|
1100 | { |
---|
1101 | return p[i]; |
---|
1102 | } |
---|
1103 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
1104 | { |
---|
1105 | char *s; |
---|
1106 | va_list v; |
---|
1107 | va_start (v,p); |
---|
1108 | s = g (p, va_arg (v,int)); |
---|
1109 | va_end (v); |
---|
1110 | return s; |
---|
1111 | } |
---|
1112 | int test (int i, double x); |
---|
1113 | struct s1 {int (*f) (int a);}; |
---|
1114 | struct s2 {int (*f) (double a);}; |
---|
1115 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
1116 | int argc; |
---|
1117 | char **argv; |
---|
1118 | |
---|
1119 | int main() { |
---|
1120 | |
---|
1121 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
1122 | |
---|
1123 | ; return 0; } |
---|
1124 | EOF |
---|
1125 | if { (eval echo configure:1126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
1126 | rm -rf conftest* |
---|
1127 | am_cv_prog_cc_stdc="$ac_arg"; break |
---|
1128 | else |
---|
1129 | echo "configure: failed program was:" >&5 |
---|
1130 | cat conftest.$ac_ext >&5 |
---|
1131 | fi |
---|
1132 | rm -f conftest* |
---|
1133 | done |
---|
1134 | CC="$ac_save_CC" |
---|
1135 | |
---|
1136 | fi |
---|
1137 | |
---|
1138 | if test -z "$am_cv_prog_cc_stdc"; then |
---|
1139 | echo "$ac_t""none needed" 1>&6 |
---|
1140 | else |
---|
1141 | echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6 |
---|
1142 | fi |
---|
1143 | case "x$am_cv_prog_cc_stdc" in |
---|
1144 | x|xno) ;; |
---|
1145 | *) CC="$CC $am_cv_prog_cc_stdc" ;; |
---|
1146 | esac |
---|
1147 | |
---|
1148 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
1149 | echo "configure:1150: checking how to run the C preprocessor" >&5 |
---|
1150 | # On Suns, sometimes $CPP names a directory. |
---|
1151 | if test -n "$CPP" && test -d "$CPP"; then |
---|
1152 | CPP= |
---|
1153 | fi |
---|
1154 | if test -z "$CPP"; then |
---|
1155 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
1156 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1157 | else |
---|
1158 | # This must be in double quotes, not single quotes, because CPP may get |
---|
1159 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
1160 | CPP="${CC-cc} -E" |
---|
1161 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
1162 | # not just through cpp. |
---|
1163 | cat > conftest.$ac_ext <<EOF |
---|
1164 | #line 1165 "configure" |
---|
1165 | #include "confdefs.h" |
---|
1166 | #include <assert.h> |
---|
1167 | Syntax Error |
---|
1168 | EOF |
---|
1169 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1170 | { (eval echo configure:1171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1171 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1172 | if test -z "$ac_err"; then |
---|
1173 | : |
---|
1174 | else |
---|
1175 | echo "$ac_err" >&5 |
---|
1176 | echo "configure: failed program was:" >&5 |
---|
1177 | cat conftest.$ac_ext >&5 |
---|
1178 | rm -rf conftest* |
---|
1179 | CPP="${CC-cc} -E -traditional-cpp" |
---|
1180 | cat > conftest.$ac_ext <<EOF |
---|
1181 | #line 1182 "configure" |
---|
1182 | #include "confdefs.h" |
---|
1183 | #include <assert.h> |
---|
1184 | Syntax Error |
---|
1185 | EOF |
---|
1186 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1187 | { (eval echo configure:1188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1188 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1189 | if test -z "$ac_err"; then |
---|
1190 | : |
---|
1191 | else |
---|
1192 | echo "$ac_err" >&5 |
---|
1193 | echo "configure: failed program was:" >&5 |
---|
1194 | cat conftest.$ac_ext >&5 |
---|
1195 | rm -rf conftest* |
---|
1196 | CPP="${CC-cc} -nologo -E" |
---|
1197 | cat > conftest.$ac_ext <<EOF |
---|
1198 | #line 1199 "configure" |
---|
1199 | #include "confdefs.h" |
---|
1200 | #include <assert.h> |
---|
1201 | Syntax Error |
---|
1202 | EOF |
---|
1203 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1204 | { (eval echo configure:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1205 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1206 | if test -z "$ac_err"; then |
---|
1207 | : |
---|
1208 | else |
---|
1209 | echo "$ac_err" >&5 |
---|
1210 | echo "configure: failed program was:" >&5 |
---|
1211 | cat conftest.$ac_ext >&5 |
---|
1212 | rm -rf conftest* |
---|
1213 | CPP=/lib/cpp |
---|
1214 | fi |
---|
1215 | rm -f conftest* |
---|
1216 | fi |
---|
1217 | rm -f conftest* |
---|
1218 | fi |
---|
1219 | rm -f conftest* |
---|
1220 | ac_cv_prog_CPP="$CPP" |
---|
1221 | fi |
---|
1222 | CPP="$ac_cv_prog_CPP" |
---|
1223 | else |
---|
1224 | ac_cv_prog_CPP="$CPP" |
---|
1225 | fi |
---|
1226 | echo "$ac_t""$CPP" 1>&6 |
---|
1227 | |
---|
1228 | |
---|
1229 | |
---|
1230 | echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 |
---|
1231 | echo "configure:1232: checking for function prototypes" >&5 |
---|
1232 | if test "$am_cv_prog_cc_stdc" != no; then |
---|
1233 | echo "$ac_t""yes" 1>&6 |
---|
1234 | cat >> confdefs.h <<\EOF |
---|
1235 | #define PROTOTYPES 1 |
---|
1236 | EOF |
---|
1237 | |
---|
1238 | U= ANSI2KNR= |
---|
1239 | else |
---|
1240 | echo "$ac_t""no" 1>&6 |
---|
1241 | U=_ ANSI2KNR=./ansi2knr |
---|
1242 | # Ensure some checks needed by ansi2knr itself. |
---|
1243 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
---|
1244 | echo "configure:1245: checking for ANSI C header files" >&5 |
---|
1245 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
---|
1246 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1247 | else |
---|
1248 | cat > conftest.$ac_ext <<EOF |
---|
1249 | #line 1250 "configure" |
---|
1250 | #include "confdefs.h" |
---|
1251 | #include <stdlib.h> |
---|
1252 | #include <stdarg.h> |
---|
1253 | #include <string.h> |
---|
1254 | #include <float.h> |
---|
1255 | EOF |
---|
1256 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1257 | { (eval echo configure:1258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1258 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1259 | if test -z "$ac_err"; then |
---|
1260 | rm -rf conftest* |
---|
1261 | ac_cv_header_stdc=yes |
---|
1262 | else |
---|
1263 | echo "$ac_err" >&5 |
---|
1264 | echo "configure: failed program was:" >&5 |
---|
1265 | cat conftest.$ac_ext >&5 |
---|
1266 | rm -rf conftest* |
---|
1267 | ac_cv_header_stdc=no |
---|
1268 | fi |
---|
1269 | rm -f conftest* |
---|
1270 | |
---|
1271 | if test $ac_cv_header_stdc = yes; then |
---|
1272 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
1273 | cat > conftest.$ac_ext <<EOF |
---|
1274 | #line 1275 "configure" |
---|
1275 | #include "confdefs.h" |
---|
1276 | #include <string.h> |
---|
1277 | EOF |
---|
1278 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1279 | egrep "memchr" >/dev/null 2>&1; then |
---|
1280 | : |
---|
1281 | else |
---|
1282 | rm -rf conftest* |
---|
1283 | ac_cv_header_stdc=no |
---|
1284 | fi |
---|
1285 | rm -f conftest* |
---|
1286 | |
---|
1287 | fi |
---|
1288 | |
---|
1289 | if test $ac_cv_header_stdc = yes; then |
---|
1290 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
1291 | cat > conftest.$ac_ext <<EOF |
---|
1292 | #line 1293 "configure" |
---|
1293 | #include "confdefs.h" |
---|
1294 | #include <stdlib.h> |
---|
1295 | EOF |
---|
1296 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1297 | egrep "free" >/dev/null 2>&1; then |
---|
1298 | : |
---|
1299 | else |
---|
1300 | rm -rf conftest* |
---|
1301 | ac_cv_header_stdc=no |
---|
1302 | fi |
---|
1303 | rm -f conftest* |
---|
1304 | |
---|
1305 | fi |
---|
1306 | |
---|
1307 | if test $ac_cv_header_stdc = yes; then |
---|
1308 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
1309 | if test "$cross_compiling" = yes; then |
---|
1310 | : |
---|
1311 | else |
---|
1312 | cat > conftest.$ac_ext <<EOF |
---|
1313 | #line 1314 "configure" |
---|
1314 | #include "confdefs.h" |
---|
1315 | #include <ctype.h> |
---|
1316 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
1317 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
1318 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
1319 | int main () { int i; for (i = 0; i < 256; i++) |
---|
1320 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
---|
1321 | exit (0); } |
---|
1322 | |
---|
1323 | EOF |
---|
1324 | if { (eval echo configure:1325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
1325 | then |
---|
1326 | : |
---|
1327 | else |
---|
1328 | echo "configure: failed program was:" >&5 |
---|
1329 | cat conftest.$ac_ext >&5 |
---|
1330 | rm -fr conftest* |
---|
1331 | ac_cv_header_stdc=no |
---|
1332 | fi |
---|
1333 | rm -fr conftest* |
---|
1334 | fi |
---|
1335 | |
---|
1336 | fi |
---|
1337 | fi |
---|
1338 | |
---|
1339 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
---|
1340 | if test $ac_cv_header_stdc = yes; then |
---|
1341 | cat >> confdefs.h <<\EOF |
---|
1342 | #define STDC_HEADERS 1 |
---|
1343 | EOF |
---|
1344 | |
---|
1345 | fi |
---|
1346 | |
---|
1347 | for ac_hdr in string.h |
---|
1348 | do |
---|
1349 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
1350 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
1351 | echo "configure:1352: checking for $ac_hdr" >&5 |
---|
1352 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
1353 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1354 | else |
---|
1355 | cat > conftest.$ac_ext <<EOF |
---|
1356 | #line 1357 "configure" |
---|
1357 | #include "confdefs.h" |
---|
1358 | #include <$ac_hdr> |
---|
1359 | EOF |
---|
1360 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1361 | { (eval echo configure:1362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1362 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1363 | if test -z "$ac_err"; then |
---|
1364 | rm -rf conftest* |
---|
1365 | eval "ac_cv_header_$ac_safe=yes" |
---|
1366 | else |
---|
1367 | echo "$ac_err" >&5 |
---|
1368 | echo "configure: failed program was:" >&5 |
---|
1369 | cat conftest.$ac_ext >&5 |
---|
1370 | rm -rf conftest* |
---|
1371 | eval "ac_cv_header_$ac_safe=no" |
---|
1372 | fi |
---|
1373 | rm -f conftest* |
---|
1374 | fi |
---|
1375 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
1376 | echo "$ac_t""yes" 1>&6 |
---|
1377 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
1378 | cat >> confdefs.h <<EOF |
---|
1379 | #define $ac_tr_hdr 1 |
---|
1380 | EOF |
---|
1381 | |
---|
1382 | else |
---|
1383 | echo "$ac_t""no" 1>&6 |
---|
1384 | fi |
---|
1385 | done |
---|
1386 | |
---|
1387 | fi |
---|
1388 | |
---|
1389 | |
---|
1390 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
---|
1391 | echo "configure:1392: checking for working const" >&5 |
---|
1392 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
---|
1393 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1394 | else |
---|
1395 | cat > conftest.$ac_ext <<EOF |
---|
1396 | #line 1397 "configure" |
---|
1397 | #include "confdefs.h" |
---|
1398 | |
---|
1399 | int main() { |
---|
1400 | |
---|
1401 | /* Ultrix mips cc rejects this. */ |
---|
1402 | typedef int charset[2]; const charset x; |
---|
1403 | /* SunOS 4.1.1 cc rejects this. */ |
---|
1404 | char const *const *ccp; |
---|
1405 | char **p; |
---|
1406 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
1407 | struct point {int x, y;}; |
---|
1408 | static struct point const zero = {0,0}; |
---|
1409 | /* AIX XL C 1.02.0.0 rejects this. |
---|
1410 | It does not let you subtract one const X* pointer from another in an arm |
---|
1411 | of an if-expression whose if-part is not a constant expression */ |
---|
1412 | const char *g = "string"; |
---|
1413 | ccp = &g + (g ? g-g : 0); |
---|
1414 | /* HPUX 7.0 cc rejects these. */ |
---|
1415 | ++ccp; |
---|
1416 | p = (char**) ccp; |
---|
1417 | ccp = (char const *const *) p; |
---|
1418 | { /* SCO 3.2v4 cc rejects this. */ |
---|
1419 | char *t; |
---|
1420 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
1421 | |
---|
1422 | *t++ = 0; |
---|
1423 | } |
---|
1424 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
1425 | int x[] = {25, 17}; |
---|
1426 | const int *foo = &x[0]; |
---|
1427 | ++foo; |
---|
1428 | } |
---|
1429 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
1430 | typedef const int *iptr; |
---|
1431 | iptr p = 0; |
---|
1432 | ++p; |
---|
1433 | } |
---|
1434 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
1435 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
1436 | struct s { int j; const int *ap[3]; }; |
---|
1437 | struct s *b; b->j = 5; |
---|
1438 | } |
---|
1439 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
1440 | const int foo = 10; |
---|
1441 | } |
---|
1442 | |
---|
1443 | ; return 0; } |
---|
1444 | EOF |
---|
1445 | if { (eval echo configure:1446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
1446 | rm -rf conftest* |
---|
1447 | ac_cv_c_const=yes |
---|
1448 | else |
---|
1449 | echo "configure: failed program was:" >&5 |
---|
1450 | cat conftest.$ac_ext >&5 |
---|
1451 | rm -rf conftest* |
---|
1452 | ac_cv_c_const=no |
---|
1453 | fi |
---|
1454 | rm -f conftest* |
---|
1455 | fi |
---|
1456 | |
---|
1457 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
---|
1458 | if test $ac_cv_c_const = no; then |
---|
1459 | cat >> confdefs.h <<\EOF |
---|
1460 | #define const |
---|
1461 | EOF |
---|
1462 | |
---|
1463 | fi |
---|
1464 | |
---|
1465 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
1466 | # for constant arguments. Useless! |
---|
1467 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
---|
1468 | echo "configure:1469: checking for working alloca.h" >&5 |
---|
1469 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
---|
1470 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1471 | else |
---|
1472 | cat > conftest.$ac_ext <<EOF |
---|
1473 | #line 1474 "configure" |
---|
1474 | #include "confdefs.h" |
---|
1475 | #include <alloca.h> |
---|
1476 | int main() { |
---|
1477 | char *p = alloca(2 * sizeof(int)); |
---|
1478 | ; return 0; } |
---|
1479 | EOF |
---|
1480 | if { (eval echo configure:1481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1481 | rm -rf conftest* |
---|
1482 | ac_cv_header_alloca_h=yes |
---|
1483 | else |
---|
1484 | echo "configure: failed program was:" >&5 |
---|
1485 | cat conftest.$ac_ext >&5 |
---|
1486 | rm -rf conftest* |
---|
1487 | ac_cv_header_alloca_h=no |
---|
1488 | fi |
---|
1489 | rm -f conftest* |
---|
1490 | fi |
---|
1491 | |
---|
1492 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
---|
1493 | if test $ac_cv_header_alloca_h = yes; then |
---|
1494 | cat >> confdefs.h <<\EOF |
---|
1495 | #define HAVE_ALLOCA_H 1 |
---|
1496 | EOF |
---|
1497 | |
---|
1498 | fi |
---|
1499 | |
---|
1500 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
---|
1501 | echo "configure:1502: checking for alloca" >&5 |
---|
1502 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
---|
1503 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1504 | else |
---|
1505 | cat > conftest.$ac_ext <<EOF |
---|
1506 | #line 1507 "configure" |
---|
1507 | #include "confdefs.h" |
---|
1508 | |
---|
1509 | #ifdef __GNUC__ |
---|
1510 | # define alloca __builtin_alloca |
---|
1511 | #else |
---|
1512 | # ifdef _MSC_VER |
---|
1513 | # include <malloc.h> |
---|
1514 | # define alloca _alloca |
---|
1515 | # else |
---|
1516 | # if HAVE_ALLOCA_H |
---|
1517 | # include <alloca.h> |
---|
1518 | # else |
---|
1519 | # ifdef _AIX |
---|
1520 | #pragma alloca |
---|
1521 | # else |
---|
1522 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
1523 | char *alloca (); |
---|
1524 | # endif |
---|
1525 | # endif |
---|
1526 | # endif |
---|
1527 | # endif |
---|
1528 | #endif |
---|
1529 | |
---|
1530 | int main() { |
---|
1531 | char *p = (char *) alloca(1); |
---|
1532 | ; return 0; } |
---|
1533 | EOF |
---|
1534 | if { (eval echo configure:1535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1535 | rm -rf conftest* |
---|
1536 | ac_cv_func_alloca_works=yes |
---|
1537 | else |
---|
1538 | echo "configure: failed program was:" >&5 |
---|
1539 | cat conftest.$ac_ext >&5 |
---|
1540 | rm -rf conftest* |
---|
1541 | ac_cv_func_alloca_works=no |
---|
1542 | fi |
---|
1543 | rm -f conftest* |
---|
1544 | fi |
---|
1545 | |
---|
1546 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
---|
1547 | if test $ac_cv_func_alloca_works = yes; then |
---|
1548 | cat >> confdefs.h <<\EOF |
---|
1549 | #define HAVE_ALLOCA 1 |
---|
1550 | EOF |
---|
1551 | |
---|
1552 | fi |
---|
1553 | |
---|
1554 | if test $ac_cv_func_alloca_works = no; then |
---|
1555 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
1556 | # that cause trouble. Some versions do not even contain alloca or |
---|
1557 | # contain a buggy version. If you still want to use their alloca, |
---|
1558 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
1559 | ALLOCA=alloca.${ac_objext} |
---|
1560 | cat >> confdefs.h <<\EOF |
---|
1561 | #define C_ALLOCA 1 |
---|
1562 | EOF |
---|
1563 | |
---|
1564 | |
---|
1565 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
---|
1566 | echo "configure:1567: checking whether alloca needs Cray hooks" >&5 |
---|
1567 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
---|
1568 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1569 | else |
---|
1570 | cat > conftest.$ac_ext <<EOF |
---|
1571 | #line 1572 "configure" |
---|
1572 | #include "confdefs.h" |
---|
1573 | #if defined(CRAY) && ! defined(CRAY2) |
---|
1574 | webecray |
---|
1575 | #else |
---|
1576 | wenotbecray |
---|
1577 | #endif |
---|
1578 | |
---|
1579 | EOF |
---|
1580 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1581 | egrep "webecray" >/dev/null 2>&1; then |
---|
1582 | rm -rf conftest* |
---|
1583 | ac_cv_os_cray=yes |
---|
1584 | else |
---|
1585 | rm -rf conftest* |
---|
1586 | ac_cv_os_cray=no |
---|
1587 | fi |
---|
1588 | rm -f conftest* |
---|
1589 | |
---|
1590 | fi |
---|
1591 | |
---|
1592 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
---|
1593 | if test $ac_cv_os_cray = yes; then |
---|
1594 | for ac_func in _getb67 GETB67 getb67; do |
---|
1595 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
1596 | echo "configure:1597: checking for $ac_func" >&5 |
---|
1597 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
1598 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1599 | else |
---|
1600 | cat > conftest.$ac_ext <<EOF |
---|
1601 | #line 1602 "configure" |
---|
1602 | #include "confdefs.h" |
---|
1603 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1604 | which can conflict with char $ac_func(); below. */ |
---|
1605 | #include <assert.h> |
---|
1606 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1607 | /* We use char because int might match the return type of a gcc2 |
---|
1608 | builtin and then its argument prototype would still apply. */ |
---|
1609 | char $ac_func(); |
---|
1610 | |
---|
1611 | int main() { |
---|
1612 | |
---|
1613 | /* The GNU C library defines this for functions which it implements |
---|
1614 | to always fail with ENOSYS. Some functions are actually named |
---|
1615 | something starting with __ and the normal name is an alias. */ |
---|
1616 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
1617 | choke me |
---|
1618 | #else |
---|
1619 | $ac_func(); |
---|
1620 | #endif |
---|
1621 | |
---|
1622 | ; return 0; } |
---|
1623 | EOF |
---|
1624 | if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1625 | rm -rf conftest* |
---|
1626 | eval "ac_cv_func_$ac_func=yes" |
---|
1627 | else |
---|
1628 | echo "configure: failed program was:" >&5 |
---|
1629 | cat conftest.$ac_ext >&5 |
---|
1630 | rm -rf conftest* |
---|
1631 | eval "ac_cv_func_$ac_func=no" |
---|
1632 | fi |
---|
1633 | rm -f conftest* |
---|
1634 | fi |
---|
1635 | |
---|
1636 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
1637 | echo "$ac_t""yes" 1>&6 |
---|
1638 | cat >> confdefs.h <<EOF |
---|
1639 | #define CRAY_STACKSEG_END $ac_func |
---|
1640 | EOF |
---|
1641 | |
---|
1642 | break |
---|
1643 | else |
---|
1644 | echo "$ac_t""no" 1>&6 |
---|
1645 | fi |
---|
1646 | |
---|
1647 | done |
---|
1648 | fi |
---|
1649 | |
---|
1650 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
---|
1651 | echo "configure:1652: checking stack direction for C alloca" >&5 |
---|
1652 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
---|
1653 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1654 | else |
---|
1655 | if test "$cross_compiling" = yes; then |
---|
1656 | ac_cv_c_stack_direction=0 |
---|
1657 | else |
---|
1658 | cat > conftest.$ac_ext <<EOF |
---|
1659 | #line 1660 "configure" |
---|
1660 | #include "confdefs.h" |
---|
1661 | find_stack_direction () |
---|
1662 | { |
---|
1663 | static char *addr = 0; |
---|
1664 | auto char dummy; |
---|
1665 | if (addr == 0) |
---|
1666 | { |
---|
1667 | addr = &dummy; |
---|
1668 | return find_stack_direction (); |
---|
1669 | } |
---|
1670 | else |
---|
1671 | return (&dummy > addr) ? 1 : -1; |
---|
1672 | } |
---|
1673 | main () |
---|
1674 | { |
---|
1675 | exit (find_stack_direction() < 0); |
---|
1676 | } |
---|
1677 | EOF |
---|
1678 | if { (eval echo configure:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
1679 | then |
---|
1680 | ac_cv_c_stack_direction=1 |
---|
1681 | else |
---|
1682 | echo "configure: failed program was:" >&5 |
---|
1683 | cat conftest.$ac_ext >&5 |
---|
1684 | rm -fr conftest* |
---|
1685 | ac_cv_c_stack_direction=-1 |
---|
1686 | fi |
---|
1687 | rm -fr conftest* |
---|
1688 | fi |
---|
1689 | |
---|
1690 | fi |
---|
1691 | |
---|
1692 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
---|
1693 | cat >> confdefs.h <<EOF |
---|
1694 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
1695 | EOF |
---|
1696 | |
---|
1697 | fi |
---|
1698 | |
---|
1699 | |
---|
1700 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
---|
1701 | echo "configure:1702: checking for ANSI C header files" >&5 |
---|
1702 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
---|
1703 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1704 | else |
---|
1705 | cat > conftest.$ac_ext <<EOF |
---|
1706 | #line 1707 "configure" |
---|
1707 | #include "confdefs.h" |
---|
1708 | #include <stdlib.h> |
---|
1709 | #include <stdarg.h> |
---|
1710 | #include <string.h> |
---|
1711 | #include <float.h> |
---|
1712 | EOF |
---|
1713 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1714 | { (eval echo configure:1715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1715 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1716 | if test -z "$ac_err"; then |
---|
1717 | rm -rf conftest* |
---|
1718 | ac_cv_header_stdc=yes |
---|
1719 | else |
---|
1720 | echo "$ac_err" >&5 |
---|
1721 | echo "configure: failed program was:" >&5 |
---|
1722 | cat conftest.$ac_ext >&5 |
---|
1723 | rm -rf conftest* |
---|
1724 | ac_cv_header_stdc=no |
---|
1725 | fi |
---|
1726 | rm -f conftest* |
---|
1727 | |
---|
1728 | if test $ac_cv_header_stdc = yes; then |
---|
1729 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
1730 | cat > conftest.$ac_ext <<EOF |
---|
1731 | #line 1732 "configure" |
---|
1732 | #include "confdefs.h" |
---|
1733 | #include <string.h> |
---|
1734 | EOF |
---|
1735 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1736 | egrep "memchr" >/dev/null 2>&1; then |
---|
1737 | : |
---|
1738 | else |
---|
1739 | rm -rf conftest* |
---|
1740 | ac_cv_header_stdc=no |
---|
1741 | fi |
---|
1742 | rm -f conftest* |
---|
1743 | |
---|
1744 | fi |
---|
1745 | |
---|
1746 | if test $ac_cv_header_stdc = yes; then |
---|
1747 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
1748 | cat > conftest.$ac_ext <<EOF |
---|
1749 | #line 1750 "configure" |
---|
1750 | #include "confdefs.h" |
---|
1751 | #include <stdlib.h> |
---|
1752 | EOF |
---|
1753 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1754 | egrep "free" >/dev/null 2>&1; then |
---|
1755 | : |
---|
1756 | else |
---|
1757 | rm -rf conftest* |
---|
1758 | ac_cv_header_stdc=no |
---|
1759 | fi |
---|
1760 | rm -f conftest* |
---|
1761 | |
---|
1762 | fi |
---|
1763 | |
---|
1764 | if test $ac_cv_header_stdc = yes; then |
---|
1765 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
1766 | if test "$cross_compiling" = yes; then |
---|
1767 | : |
---|
1768 | else |
---|
1769 | cat > conftest.$ac_ext <<EOF |
---|
1770 | #line 1771 "configure" |
---|
1771 | #include "confdefs.h" |
---|
1772 | #include <ctype.h> |
---|
1773 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
1774 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
1775 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
1776 | int main () { int i; for (i = 0; i < 256; i++) |
---|
1777 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
---|
1778 | exit (0); } |
---|
1779 | |
---|
1780 | EOF |
---|
1781 | if { (eval echo configure:1782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
1782 | then |
---|
1783 | : |
---|
1784 | else |
---|
1785 | echo "configure: failed program was:" >&5 |
---|
1786 | cat conftest.$ac_ext >&5 |
---|
1787 | rm -fr conftest* |
---|
1788 | ac_cv_header_stdc=no |
---|
1789 | fi |
---|
1790 | rm -fr conftest* |
---|
1791 | fi |
---|
1792 | |
---|
1793 | fi |
---|
1794 | fi |
---|
1795 | |
---|
1796 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
---|
1797 | if test $ac_cv_header_stdc = yes; then |
---|
1798 | cat >> confdefs.h <<\EOF |
---|
1799 | #define STDC_HEADERS 1 |
---|
1800 | EOF |
---|
1801 | |
---|
1802 | fi |
---|
1803 | |
---|
1804 | for ac_hdr in string.h stdlib.h unistd.h stdarg.h math.h pwd.h |
---|
1805 | do |
---|
1806 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
1807 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
1808 | echo "configure:1809: checking for $ac_hdr" >&5 |
---|
1809 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
1810 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1811 | else |
---|
1812 | cat > conftest.$ac_ext <<EOF |
---|
1813 | #line 1814 "configure" |
---|
1814 | #include "confdefs.h" |
---|
1815 | #include <$ac_hdr> |
---|
1816 | EOF |
---|
1817 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1818 | { (eval echo configure:1819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1819 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1820 | if test -z "$ac_err"; then |
---|
1821 | rm -rf conftest* |
---|
1822 | eval "ac_cv_header_$ac_safe=yes" |
---|
1823 | else |
---|
1824 | echo "$ac_err" >&5 |
---|
1825 | echo "configure: failed program was:" >&5 |
---|
1826 | cat conftest.$ac_ext >&5 |
---|
1827 | rm -rf conftest* |
---|
1828 | eval "ac_cv_header_$ac_safe=no" |
---|
1829 | fi |
---|
1830 | rm -f conftest* |
---|
1831 | fi |
---|
1832 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
1833 | echo "$ac_t""yes" 1>&6 |
---|
1834 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
1835 | cat >> confdefs.h <<EOF |
---|
1836 | #define $ac_tr_hdr 1 |
---|
1837 | EOF |
---|
1838 | |
---|
1839 | else |
---|
1840 | echo "$ac_t""no" 1>&6 |
---|
1841 | fi |
---|
1842 | done |
---|
1843 | |
---|
1844 | |
---|
1845 | for ac_func in strchr |
---|
1846 | do |
---|
1847 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
1848 | echo "configure:1849: checking for $ac_func" >&5 |
---|
1849 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
1850 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1851 | else |
---|
1852 | cat > conftest.$ac_ext <<EOF |
---|
1853 | #line 1854 "configure" |
---|
1854 | #include "confdefs.h" |
---|
1855 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1856 | which can conflict with char $ac_func(); below. */ |
---|
1857 | #include <assert.h> |
---|
1858 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1859 | /* We use char because int might match the return type of a gcc2 |
---|
1860 | builtin and then its argument prototype would still apply. */ |
---|
1861 | char $ac_func(); |
---|
1862 | |
---|
1863 | int main() { |
---|
1864 | |
---|
1865 | /* The GNU C library defines this for functions which it implements |
---|
1866 | to always fail with ENOSYS. Some functions are actually named |
---|
1867 | something starting with __ and the normal name is an alias. */ |
---|
1868 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
1869 | choke me |
---|
1870 | #else |
---|
1871 | $ac_func(); |
---|
1872 | #endif |
---|
1873 | |
---|
1874 | ; return 0; } |
---|
1875 | EOF |
---|
1876 | if { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1877 | rm -rf conftest* |
---|
1878 | eval "ac_cv_func_$ac_func=yes" |
---|
1879 | else |
---|
1880 | echo "configure: failed program was:" >&5 |
---|
1881 | cat conftest.$ac_ext >&5 |
---|
1882 | rm -rf conftest* |
---|
1883 | eval "ac_cv_func_$ac_func=no" |
---|
1884 | fi |
---|
1885 | rm -f conftest* |
---|
1886 | fi |
---|
1887 | |
---|
1888 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
1889 | echo "$ac_t""yes" 1>&6 |
---|
1890 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1891 | cat >> confdefs.h <<EOF |
---|
1892 | #define $ac_tr_func 1 |
---|
1893 | EOF |
---|
1894 | |
---|
1895 | else |
---|
1896 | echo "$ac_t""no" 1>&6 |
---|
1897 | fi |
---|
1898 | done |
---|
1899 | |
---|
1900 | echo $ac_n "checking for strerror""... $ac_c" 1>&6 |
---|
1901 | echo "configure:1902: checking for strerror" >&5 |
---|
1902 | if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then |
---|
1903 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1904 | else |
---|
1905 | cat > conftest.$ac_ext <<EOF |
---|
1906 | #line 1907 "configure" |
---|
1907 | #include "confdefs.h" |
---|
1908 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1909 | which can conflict with char strerror(); below. */ |
---|
1910 | #include <assert.h> |
---|
1911 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1912 | /* We use char because int might match the return type of a gcc2 |
---|
1913 | builtin and then its argument prototype would still apply. */ |
---|
1914 | char strerror(); |
---|
1915 | |
---|
1916 | int main() { |
---|
1917 | |
---|
1918 | /* The GNU C library defines this for functions which it implements |
---|
1919 | to always fail with ENOSYS. Some functions are actually named |
---|
1920 | something starting with __ and the normal name is an alias. */ |
---|
1921 | #if defined (__stub_strerror) || defined (__stub___strerror) |
---|
1922 | choke me |
---|
1923 | #else |
---|
1924 | strerror(); |
---|
1925 | #endif |
---|
1926 | |
---|
1927 | ; return 0; } |
---|
1928 | EOF |
---|
1929 | if { (eval echo configure:1930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1930 | rm -rf conftest* |
---|
1931 | eval "ac_cv_func_strerror=yes" |
---|
1932 | else |
---|
1933 | echo "configure: failed program was:" >&5 |
---|
1934 | cat conftest.$ac_ext >&5 |
---|
1935 | rm -rf conftest* |
---|
1936 | eval "ac_cv_func_strerror=no" |
---|
1937 | fi |
---|
1938 | rm -f conftest* |
---|
1939 | fi |
---|
1940 | |
---|
1941 | if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then |
---|
1942 | echo "$ac_t""yes" 1>&6 |
---|
1943 | cat >> confdefs.h <<\EOF |
---|
1944 | #define HAVE_STRERROR 1 |
---|
1945 | EOF |
---|
1946 | |
---|
1947 | else |
---|
1948 | echo "$ac_t""no" 1>&6 |
---|
1949 | |
---|
1950 | LIBOBJS="$LIBOBJS strerror.o" |
---|
1951 | |
---|
1952 | fi |
---|
1953 | |
---|
1954 | echo $ac_n "checking for memmove""... $ac_c" 1>&6 |
---|
1955 | echo "configure:1956: checking for memmove" >&5 |
---|
1956 | if eval "test \"`echo '$''{'ac_cv_func_memmove'+set}'`\" = set"; then |
---|
1957 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1958 | else |
---|
1959 | cat > conftest.$ac_ext <<EOF |
---|
1960 | #line 1961 "configure" |
---|
1961 | #include "confdefs.h" |
---|
1962 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1963 | which can conflict with char memmove(); below. */ |
---|
1964 | #include <assert.h> |
---|
1965 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1966 | /* We use char because int might match the return type of a gcc2 |
---|
1967 | builtin and then its argument prototype would still apply. */ |
---|
1968 | char memmove(); |
---|
1969 | |
---|
1970 | int main() { |
---|
1971 | |
---|
1972 | /* The GNU C library defines this for functions which it implements |
---|
1973 | to always fail with ENOSYS. Some functions are actually named |
---|
1974 | something starting with __ and the normal name is an alias. */ |
---|
1975 | #if defined (__stub_memmove) || defined (__stub___memmove) |
---|
1976 | choke me |
---|
1977 | #else |
---|
1978 | memmove(); |
---|
1979 | #endif |
---|
1980 | |
---|
1981 | ; return 0; } |
---|
1982 | EOF |
---|
1983 | if { (eval echo configure:1984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1984 | rm -rf conftest* |
---|
1985 | eval "ac_cv_func_memmove=yes" |
---|
1986 | else |
---|
1987 | echo "configure: failed program was:" >&5 |
---|
1988 | cat conftest.$ac_ext >&5 |
---|
1989 | rm -rf conftest* |
---|
1990 | eval "ac_cv_func_memmove=no" |
---|
1991 | fi |
---|
1992 | rm -f conftest* |
---|
1993 | fi |
---|
1994 | |
---|
1995 | if eval "test \"`echo '$ac_cv_func_'memmove`\" = yes"; then |
---|
1996 | echo "$ac_t""yes" 1>&6 |
---|
1997 | cat >> confdefs.h <<\EOF |
---|
1998 | #define HAVE_MEMMOVE 1 |
---|
1999 | EOF |
---|
2000 | |
---|
2001 | else |
---|
2002 | echo "$ac_t""no" 1>&6 |
---|
2003 | |
---|
2004 | LIBOBJS="$LIBOBJS memmove.o" |
---|
2005 | |
---|
2006 | fi |
---|
2007 | |
---|
2008 | echo $ac_n "checking for memcpy""... $ac_c" 1>&6 |
---|
2009 | echo "configure:2010: checking for memcpy" >&5 |
---|
2010 | if eval "test \"`echo '$''{'ac_cv_func_memcpy'+set}'`\" = set"; then |
---|
2011 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2012 | else |
---|
2013 | cat > conftest.$ac_ext <<EOF |
---|
2014 | #line 2015 "configure" |
---|
2015 | #include "confdefs.h" |
---|
2016 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2017 | which can conflict with char memcpy(); below. */ |
---|
2018 | #include <assert.h> |
---|
2019 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2020 | /* We use char because int might match the return type of a gcc2 |
---|
2021 | builtin and then its argument prototype would still apply. */ |
---|
2022 | char memcpy(); |
---|
2023 | |
---|
2024 | int main() { |
---|
2025 | |
---|
2026 | /* The GNU C library defines this for functions which it implements |
---|
2027 | to always fail with ENOSYS. Some functions are actually named |
---|
2028 | something starting with __ and the normal name is an alias. */ |
---|
2029 | #if defined (__stub_memcpy) || defined (__stub___memcpy) |
---|
2030 | choke me |
---|
2031 | #else |
---|
2032 | memcpy(); |
---|
2033 | #endif |
---|
2034 | |
---|
2035 | ; return 0; } |
---|
2036 | EOF |
---|
2037 | if { (eval echo configure:2038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2038 | rm -rf conftest* |
---|
2039 | eval "ac_cv_func_memcpy=yes" |
---|
2040 | else |
---|
2041 | echo "configure: failed program was:" >&5 |
---|
2042 | cat conftest.$ac_ext >&5 |
---|
2043 | rm -rf conftest* |
---|
2044 | eval "ac_cv_func_memcpy=no" |
---|
2045 | fi |
---|
2046 | rm -f conftest* |
---|
2047 | fi |
---|
2048 | |
---|
2049 | if eval "test \"`echo '$ac_cv_func_'memcpy`\" = yes"; then |
---|
2050 | echo "$ac_t""yes" 1>&6 |
---|
2051 | cat >> confdefs.h <<\EOF |
---|
2052 | #define HAVE_MEMCPY 1 |
---|
2053 | EOF |
---|
2054 | |
---|
2055 | else |
---|
2056 | echo "$ac_t""no" 1>&6 |
---|
2057 | |
---|
2058 | LIBOBJS="$LIBOBJS memcpy.o" |
---|
2059 | |
---|
2060 | fi |
---|
2061 | |
---|
2062 | echo $ac_n "checking for strtoul""... $ac_c" 1>&6 |
---|
2063 | echo "configure:2064: checking for strtoul" >&5 |
---|
2064 | if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then |
---|
2065 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2066 | else |
---|
2067 | cat > conftest.$ac_ext <<EOF |
---|
2068 | #line 2069 "configure" |
---|
2069 | #include "confdefs.h" |
---|
2070 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2071 | which can conflict with char strtoul(); below. */ |
---|
2072 | #include <assert.h> |
---|
2073 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2074 | /* We use char because int might match the return type of a gcc2 |
---|
2075 | builtin and then its argument prototype would still apply. */ |
---|
2076 | char strtoul(); |
---|
2077 | |
---|
2078 | int main() { |
---|
2079 | |
---|
2080 | /* The GNU C library defines this for functions which it implements |
---|
2081 | to always fail with ENOSYS. Some functions are actually named |
---|
2082 | something starting with __ and the normal name is an alias. */ |
---|
2083 | #if defined (__stub_strtoul) || defined (__stub___strtoul) |
---|
2084 | choke me |
---|
2085 | #else |
---|
2086 | strtoul(); |
---|
2087 | #endif |
---|
2088 | |
---|
2089 | ; return 0; } |
---|
2090 | EOF |
---|
2091 | if { (eval echo configure:2092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2092 | rm -rf conftest* |
---|
2093 | eval "ac_cv_func_strtoul=yes" |
---|
2094 | else |
---|
2095 | echo "configure: failed program was:" >&5 |
---|
2096 | cat conftest.$ac_ext >&5 |
---|
2097 | rm -rf conftest* |
---|
2098 | eval "ac_cv_func_strtoul=no" |
---|
2099 | fi |
---|
2100 | rm -f conftest* |
---|
2101 | fi |
---|
2102 | |
---|
2103 | if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then |
---|
2104 | echo "$ac_t""yes" 1>&6 |
---|
2105 | cat >> confdefs.h <<\EOF |
---|
2106 | #define HAVE_STRTOUL 1 |
---|
2107 | EOF |
---|
2108 | |
---|
2109 | else |
---|
2110 | echo "$ac_t""no" 1>&6 |
---|
2111 | |
---|
2112 | LIBOBJS="$LIBOBJS strtoul.o" |
---|
2113 | |
---|
2114 | fi |
---|
2115 | |
---|
2116 | |
---|
2117 | echo $ac_n "checking for getcwd""... $ac_c" 1>&6 |
---|
2118 | echo "configure:2119: checking for getcwd" >&5 |
---|
2119 | if eval "test \"`echo '$''{'ac_cv_func_getcwd'+set}'`\" = set"; then |
---|
2120 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2121 | else |
---|
2122 | cat > conftest.$ac_ext <<EOF |
---|
2123 | #line 2124 "configure" |
---|
2124 | #include "confdefs.h" |
---|
2125 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2126 | which can conflict with char getcwd(); below. */ |
---|
2127 | #include <assert.h> |
---|
2128 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2129 | /* We use char because int might match the return type of a gcc2 |
---|
2130 | builtin and then its argument prototype would still apply. */ |
---|
2131 | char getcwd(); |
---|
2132 | |
---|
2133 | int main() { |
---|
2134 | |
---|
2135 | /* The GNU C library defines this for functions which it implements |
---|
2136 | to always fail with ENOSYS. Some functions are actually named |
---|
2137 | something starting with __ and the normal name is an alias. */ |
---|
2138 | #if defined (__stub_getcwd) || defined (__stub___getcwd) |
---|
2139 | choke me |
---|
2140 | #else |
---|
2141 | getcwd(); |
---|
2142 | #endif |
---|
2143 | |
---|
2144 | ; return 0; } |
---|
2145 | EOF |
---|
2146 | if { (eval echo configure:2147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2147 | rm -rf conftest* |
---|
2148 | eval "ac_cv_func_getcwd=yes" |
---|
2149 | else |
---|
2150 | echo "configure: failed program was:" >&5 |
---|
2151 | cat conftest.$ac_ext >&5 |
---|
2152 | rm -rf conftest* |
---|
2153 | eval "ac_cv_func_getcwd=no" |
---|
2154 | fi |
---|
2155 | rm -f conftest* |
---|
2156 | fi |
---|
2157 | |
---|
2158 | if eval "test \"`echo '$ac_cv_func_'getcwd`\" = yes"; then |
---|
2159 | echo "$ac_t""yes" 1>&6 |
---|
2160 | cat >> confdefs.h <<\EOF |
---|
2161 | #define HAVE_GETCWD 1 |
---|
2162 | EOF |
---|
2163 | |
---|
2164 | else |
---|
2165 | echo "$ac_t""no" 1>&6 |
---|
2166 | |
---|
2167 | echo $ac_n "checking for getwd""... $ac_c" 1>&6 |
---|
2168 | echo "configure:2169: checking for getwd" >&5 |
---|
2169 | if eval "test \"`echo '$''{'ac_cv_func_getwd'+set}'`\" = set"; then |
---|
2170 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2171 | else |
---|
2172 | cat > conftest.$ac_ext <<EOF |
---|
2173 | #line 2174 "configure" |
---|
2174 | #include "confdefs.h" |
---|
2175 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2176 | which can conflict with char getwd(); below. */ |
---|
2177 | #include <assert.h> |
---|
2178 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2179 | /* We use char because int might match the return type of a gcc2 |
---|
2180 | builtin and then its argument prototype would still apply. */ |
---|
2181 | char getwd(); |
---|
2182 | |
---|
2183 | int main() { |
---|
2184 | |
---|
2185 | /* The GNU C library defines this for functions which it implements |
---|
2186 | to always fail with ENOSYS. Some functions are actually named |
---|
2187 | something starting with __ and the normal name is an alias. */ |
---|
2188 | #if defined (__stub_getwd) || defined (__stub___getwd) |
---|
2189 | choke me |
---|
2190 | #else |
---|
2191 | getwd(); |
---|
2192 | #endif |
---|
2193 | |
---|
2194 | ; return 0; } |
---|
2195 | EOF |
---|
2196 | if { (eval echo configure:2197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2197 | rm -rf conftest* |
---|
2198 | eval "ac_cv_func_getwd=yes" |
---|
2199 | else |
---|
2200 | echo "configure: failed program was:" >&5 |
---|
2201 | cat conftest.$ac_ext >&5 |
---|
2202 | rm -rf conftest* |
---|
2203 | eval "ac_cv_func_getwd=no" |
---|
2204 | fi |
---|
2205 | rm -f conftest* |
---|
2206 | fi |
---|
2207 | |
---|
2208 | if eval "test \"`echo '$ac_cv_func_'getwd`\" = yes"; then |
---|
2209 | echo "$ac_t""yes" 1>&6 |
---|
2210 | cat >> confdefs.h <<\EOF |
---|
2211 | #define HAVE_GETWD 1 |
---|
2212 | EOF |
---|
2213 | |
---|
2214 | else |
---|
2215 | echo "$ac_t""no" 1>&6 |
---|
2216 | fi |
---|
2217 | |
---|
2218 | |
---|
2219 | fi |
---|
2220 | |
---|
2221 | |
---|
2222 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
---|
2223 | echo "configure:2224: checking for vprintf" >&5 |
---|
2224 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
---|
2225 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2226 | else |
---|
2227 | cat > conftest.$ac_ext <<EOF |
---|
2228 | #line 2229 "configure" |
---|
2229 | #include "confdefs.h" |
---|
2230 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2231 | which can conflict with char vprintf(); below. */ |
---|
2232 | #include <assert.h> |
---|
2233 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2234 | /* We use char because int might match the return type of a gcc2 |
---|
2235 | builtin and then its argument prototype would still apply. */ |
---|
2236 | char vprintf(); |
---|
2237 | |
---|
2238 | int main() { |
---|
2239 | |
---|
2240 | /* The GNU C library defines this for functions which it implements |
---|
2241 | to always fail with ENOSYS. Some functions are actually named |
---|
2242 | something starting with __ and the normal name is an alias. */ |
---|
2243 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
---|
2244 | choke me |
---|
2245 | #else |
---|
2246 | vprintf(); |
---|
2247 | #endif |
---|
2248 | |
---|
2249 | ; return 0; } |
---|
2250 | EOF |
---|
2251 | if { (eval echo configure:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2252 | rm -rf conftest* |
---|
2253 | eval "ac_cv_func_vprintf=yes" |
---|
2254 | else |
---|
2255 | echo "configure: failed program was:" >&5 |
---|
2256 | cat conftest.$ac_ext >&5 |
---|
2257 | rm -rf conftest* |
---|
2258 | eval "ac_cv_func_vprintf=no" |
---|
2259 | fi |
---|
2260 | rm -f conftest* |
---|
2261 | fi |
---|
2262 | |
---|
2263 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
---|
2264 | echo "$ac_t""yes" 1>&6 |
---|
2265 | cat >> confdefs.h <<\EOF |
---|
2266 | #define HAVE_VPRINTF 1 |
---|
2267 | EOF |
---|
2268 | |
---|
2269 | else |
---|
2270 | echo "$ac_t""no" 1>&6 |
---|
2271 | fi |
---|
2272 | |
---|
2273 | if test "$ac_cv_func_vprintf" != yes; then |
---|
2274 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
---|
2275 | echo "configure:2276: checking for _doprnt" >&5 |
---|
2276 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
---|
2277 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2278 | else |
---|
2279 | cat > conftest.$ac_ext <<EOF |
---|
2280 | #line 2281 "configure" |
---|
2281 | #include "confdefs.h" |
---|
2282 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2283 | which can conflict with char _doprnt(); below. */ |
---|
2284 | #include <assert.h> |
---|
2285 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2286 | /* We use char because int might match the return type of a gcc2 |
---|
2287 | builtin and then its argument prototype would still apply. */ |
---|
2288 | char _doprnt(); |
---|
2289 | |
---|
2290 | int main() { |
---|
2291 | |
---|
2292 | /* The GNU C library defines this for functions which it implements |
---|
2293 | to always fail with ENOSYS. Some functions are actually named |
---|
2294 | something starting with __ and the normal name is an alias. */ |
---|
2295 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
---|
2296 | choke me |
---|
2297 | #else |
---|
2298 | _doprnt(); |
---|
2299 | #endif |
---|
2300 | |
---|
2301 | ; return 0; } |
---|
2302 | EOF |
---|
2303 | if { (eval echo configure:2304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2304 | rm -rf conftest* |
---|
2305 | eval "ac_cv_func__doprnt=yes" |
---|
2306 | else |
---|
2307 | echo "configure: failed program was:" >&5 |
---|
2308 | cat conftest.$ac_ext >&5 |
---|
2309 | rm -rf conftest* |
---|
2310 | eval "ac_cv_func__doprnt=no" |
---|
2311 | fi |
---|
2312 | rm -f conftest* |
---|
2313 | fi |
---|
2314 | |
---|
2315 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
---|
2316 | echo "$ac_t""yes" 1>&6 |
---|
2317 | cat >> confdefs.h <<\EOF |
---|
2318 | #define HAVE_DOPRNT 1 |
---|
2319 | EOF |
---|
2320 | |
---|
2321 | else |
---|
2322 | echo "$ac_t""no" 1>&6 |
---|
2323 | fi |
---|
2324 | |
---|
2325 | fi |
---|
2326 | |
---|
2327 | |
---|
2328 | echo $ac_n "checking for main in -lsun""... $ac_c" 1>&6 |
---|
2329 | echo "configure:2330: checking for main in -lsun" >&5 |
---|
2330 | ac_lib_var=`echo sun'_'main | sed 'y%./+-%__p_%'` |
---|
2331 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2332 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2333 | else |
---|
2334 | ac_save_LIBS="$LIBS" |
---|
2335 | LIBS="-lsun $LIBS" |
---|
2336 | cat > conftest.$ac_ext <<EOF |
---|
2337 | #line 2338 "configure" |
---|
2338 | #include "confdefs.h" |
---|
2339 | |
---|
2340 | int main() { |
---|
2341 | main() |
---|
2342 | ; return 0; } |
---|
2343 | EOF |
---|
2344 | if { (eval echo configure:2345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2345 | rm -rf conftest* |
---|
2346 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2347 | else |
---|
2348 | echo "configure: failed program was:" >&5 |
---|
2349 | cat conftest.$ac_ext >&5 |
---|
2350 | rm -rf conftest* |
---|
2351 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2352 | fi |
---|
2353 | rm -f conftest* |
---|
2354 | LIBS="$ac_save_LIBS" |
---|
2355 | |
---|
2356 | fi |
---|
2357 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2358 | echo "$ac_t""yes" 1>&6 |
---|
2359 | ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
2360 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
2361 | cat >> confdefs.h <<EOF |
---|
2362 | #define $ac_tr_lib 1 |
---|
2363 | EOF |
---|
2364 | |
---|
2365 | LIBS="-lsun $LIBS" |
---|
2366 | |
---|
2367 | else |
---|
2368 | echo "$ac_t""no" 1>&6 |
---|
2369 | fi |
---|
2370 | |
---|
2371 | |
---|
2372 | echo $ac_n "checking for gethostname""... $ac_c" 1>&6 |
---|
2373 | echo "configure:2374: checking for gethostname" >&5 |
---|
2374 | if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then |
---|
2375 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2376 | else |
---|
2377 | cat > conftest.$ac_ext <<EOF |
---|
2378 | #line 2379 "configure" |
---|
2379 | #include "confdefs.h" |
---|
2380 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2381 | which can conflict with char gethostname(); below. */ |
---|
2382 | #include <assert.h> |
---|
2383 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2384 | /* We use char because int might match the return type of a gcc2 |
---|
2385 | builtin and then its argument prototype would still apply. */ |
---|
2386 | char gethostname(); |
---|
2387 | |
---|
2388 | int main() { |
---|
2389 | |
---|
2390 | /* The GNU C library defines this for functions which it implements |
---|
2391 | to always fail with ENOSYS. Some functions are actually named |
---|
2392 | something starting with __ and the normal name is an alias. */ |
---|
2393 | #if defined (__stub_gethostname) || defined (__stub___gethostname) |
---|
2394 | choke me |
---|
2395 | #else |
---|
2396 | gethostname(); |
---|
2397 | #endif |
---|
2398 | |
---|
2399 | ; return 0; } |
---|
2400 | EOF |
---|
2401 | if { (eval echo configure:2402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2402 | rm -rf conftest* |
---|
2403 | eval "ac_cv_func_gethostname=yes" |
---|
2404 | else |
---|
2405 | echo "configure: failed program was:" >&5 |
---|
2406 | cat conftest.$ac_ext >&5 |
---|
2407 | rm -rf conftest* |
---|
2408 | eval "ac_cv_func_gethostname=no" |
---|
2409 | fi |
---|
2410 | rm -f conftest* |
---|
2411 | fi |
---|
2412 | |
---|
2413 | if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then |
---|
2414 | echo "$ac_t""yes" 1>&6 |
---|
2415 | : |
---|
2416 | else |
---|
2417 | echo "$ac_t""no" 1>&6 |
---|
2418 | echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 |
---|
2419 | echo "configure:2420: checking for main in -lnsl" >&5 |
---|
2420 | ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` |
---|
2421 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2422 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2423 | else |
---|
2424 | ac_save_LIBS="$LIBS" |
---|
2425 | LIBS="-lnsl $LIBS" |
---|
2426 | cat > conftest.$ac_ext <<EOF |
---|
2427 | #line 2428 "configure" |
---|
2428 | #include "confdefs.h" |
---|
2429 | |
---|
2430 | int main() { |
---|
2431 | main() |
---|
2432 | ; return 0; } |
---|
2433 | EOF |
---|
2434 | if { (eval echo configure:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2435 | rm -rf conftest* |
---|
2436 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2437 | else |
---|
2438 | echo "configure: failed program was:" >&5 |
---|
2439 | cat conftest.$ac_ext >&5 |
---|
2440 | rm -rf conftest* |
---|
2441 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2442 | fi |
---|
2443 | rm -f conftest* |
---|
2444 | LIBS="$ac_save_LIBS" |
---|
2445 | |
---|
2446 | fi |
---|
2447 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2448 | echo "$ac_t""yes" 1>&6 |
---|
2449 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \ |
---|
2450 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
2451 | cat >> confdefs.h <<EOF |
---|
2452 | #define $ac_tr_lib 1 |
---|
2453 | EOF |
---|
2454 | |
---|
2455 | LIBS="-lnsl $LIBS" |
---|
2456 | |
---|
2457 | else |
---|
2458 | echo "$ac_t""no" 1>&6 |
---|
2459 | fi |
---|
2460 | |
---|
2461 | fi |
---|
2462 | |
---|
2463 | |
---|
2464 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
2465 | set dummy ranlib; ac_word=$2 |
---|
2466 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2467 | echo "configure:2468: checking for $ac_word" >&5 |
---|
2468 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
---|
2469 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2470 | else |
---|
2471 | if test -n "$RANLIB"; then |
---|
2472 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
2473 | else |
---|
2474 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2475 | ac_dummy="$PATH" |
---|
2476 | for ac_dir in $ac_dummy; do |
---|
2477 | test -z "$ac_dir" && ac_dir=. |
---|
2478 | if test -f $ac_dir/$ac_word; then |
---|
2479 | ac_cv_prog_RANLIB="ranlib" |
---|
2480 | break |
---|
2481 | fi |
---|
2482 | done |
---|
2483 | IFS="$ac_save_ifs" |
---|
2484 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
---|
2485 | fi |
---|
2486 | fi |
---|
2487 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2488 | if test -n "$RANLIB"; then |
---|
2489 | echo "$ac_t""$RANLIB" 1>&6 |
---|
2490 | else |
---|
2491 | echo "$ac_t""no" 1>&6 |
---|
2492 | fi |
---|
2493 | |
---|
2494 | for ac_prog in 'bison -y' byacc |
---|
2495 | do |
---|
2496 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2497 | set dummy $ac_prog; ac_word=$2 |
---|
2498 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2499 | echo "configure:2500: checking for $ac_word" >&5 |
---|
2500 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
---|
2501 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2502 | else |
---|
2503 | if test -n "$YACC"; then |
---|
2504 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
---|
2505 | else |
---|
2506 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2507 | ac_dummy="$PATH" |
---|
2508 | for ac_dir in $ac_dummy; do |
---|
2509 | test -z "$ac_dir" && ac_dir=. |
---|
2510 | if test -f $ac_dir/$ac_word; then |
---|
2511 | ac_cv_prog_YACC="$ac_prog" |
---|
2512 | break |
---|
2513 | fi |
---|
2514 | done |
---|
2515 | IFS="$ac_save_ifs" |
---|
2516 | fi |
---|
2517 | fi |
---|
2518 | YACC="$ac_cv_prog_YACC" |
---|
2519 | if test -n "$YACC"; then |
---|
2520 | echo "$ac_t""$YACC" 1>&6 |
---|
2521 | else |
---|
2522 | echo "$ac_t""no" 1>&6 |
---|
2523 | fi |
---|
2524 | |
---|
2525 | test -n "$YACC" && break |
---|
2526 | done |
---|
2527 | test -n "$YACC" || YACC="yacc" |
---|
2528 | |
---|
2529 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
2530 | for ac_prog in flex lex |
---|
2531 | do |
---|
2532 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2533 | set dummy $ac_prog; ac_word=$2 |
---|
2534 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2535 | echo "configure:2536: checking for $ac_word" >&5 |
---|
2536 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
---|
2537 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2538 | else |
---|
2539 | if test -n "$LEX"; then |
---|
2540 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
2541 | else |
---|
2542 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2543 | ac_dummy="$PATH" |
---|
2544 | for ac_dir in $ac_dummy; do |
---|
2545 | test -z "$ac_dir" && ac_dir=. |
---|
2546 | if test -f $ac_dir/$ac_word; then |
---|
2547 | ac_cv_prog_LEX="$ac_prog" |
---|
2548 | break |
---|
2549 | fi |
---|
2550 | done |
---|
2551 | IFS="$ac_save_ifs" |
---|
2552 | fi |
---|
2553 | fi |
---|
2554 | LEX="$ac_cv_prog_LEX" |
---|
2555 | if test -n "$LEX"; then |
---|
2556 | echo "$ac_t""$LEX" 1>&6 |
---|
2557 | else |
---|
2558 | echo "$ac_t""no" 1>&6 |
---|
2559 | fi |
---|
2560 | |
---|
2561 | test -n "$LEX" && break |
---|
2562 | done |
---|
2563 | test -n "$LEX" || LEX=""$missing_dir/missing flex"" |
---|
2564 | |
---|
2565 | # Extract the first word of "flex", so it can be a program name with args. |
---|
2566 | set dummy flex; ac_word=$2 |
---|
2567 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2568 | echo "configure:2569: checking for $ac_word" >&5 |
---|
2569 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
---|
2570 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2571 | else |
---|
2572 | if test -n "$LEX"; then |
---|
2573 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
2574 | else |
---|
2575 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2576 | ac_dummy="$PATH" |
---|
2577 | for ac_dir in $ac_dummy; do |
---|
2578 | test -z "$ac_dir" && ac_dir=. |
---|
2579 | if test -f $ac_dir/$ac_word; then |
---|
2580 | ac_cv_prog_LEX="flex" |
---|
2581 | break |
---|
2582 | fi |
---|
2583 | done |
---|
2584 | IFS="$ac_save_ifs" |
---|
2585 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" |
---|
2586 | fi |
---|
2587 | fi |
---|
2588 | LEX="$ac_cv_prog_LEX" |
---|
2589 | if test -n "$LEX"; then |
---|
2590 | echo "$ac_t""$LEX" 1>&6 |
---|
2591 | else |
---|
2592 | echo "$ac_t""no" 1>&6 |
---|
2593 | fi |
---|
2594 | |
---|
2595 | if test -z "$LEXLIB" |
---|
2596 | then |
---|
2597 | case "$LEX" in |
---|
2598 | flex*) ac_lib=fl ;; |
---|
2599 | *) ac_lib=l ;; |
---|
2600 | esac |
---|
2601 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 |
---|
2602 | echo "configure:2603: checking for yywrap in -l$ac_lib" >&5 |
---|
2603 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
---|
2604 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2605 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2606 | else |
---|
2607 | ac_save_LIBS="$LIBS" |
---|
2608 | LIBS="-l$ac_lib $LIBS" |
---|
2609 | cat > conftest.$ac_ext <<EOF |
---|
2610 | #line 2611 "configure" |
---|
2611 | #include "confdefs.h" |
---|
2612 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2613 | /* We use char because int might match the return type of a gcc2 |
---|
2614 | builtin and then its argument prototype would still apply. */ |
---|
2615 | char yywrap(); |
---|
2616 | |
---|
2617 | int main() { |
---|
2618 | yywrap() |
---|
2619 | ; return 0; } |
---|
2620 | EOF |
---|
2621 | if { (eval echo configure:2622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2622 | rm -rf conftest* |
---|
2623 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2624 | else |
---|
2625 | echo "configure: failed program was:" >&5 |
---|
2626 | cat conftest.$ac_ext >&5 |
---|
2627 | rm -rf conftest* |
---|
2628 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2629 | fi |
---|
2630 | rm -f conftest* |
---|
2631 | LIBS="$ac_save_LIBS" |
---|
2632 | |
---|
2633 | fi |
---|
2634 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2635 | echo "$ac_t""yes" 1>&6 |
---|
2636 | LEXLIB="-l$ac_lib" |
---|
2637 | else |
---|
2638 | echo "$ac_t""no" 1>&6 |
---|
2639 | fi |
---|
2640 | |
---|
2641 | fi |
---|
2642 | |
---|
2643 | echo $ac_n "checking lex output file root""... $ac_c" 1>&6 |
---|
2644 | echo "configure:2645: checking lex output file root" >&5 |
---|
2645 | if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then |
---|
2646 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2647 | else |
---|
2648 | # The minimal lex program is just a single line: %%. But some broken lexes |
---|
2649 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
---|
2650 | echo '%% |
---|
2651 | %%' | $LEX |
---|
2652 | if test -f lex.yy.c; then |
---|
2653 | ac_cv_prog_lex_root=lex.yy |
---|
2654 | elif test -f lexyy.c; then |
---|
2655 | ac_cv_prog_lex_root=lexyy |
---|
2656 | else |
---|
2657 | { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; } |
---|
2658 | fi |
---|
2659 | fi |
---|
2660 | |
---|
2661 | echo "$ac_t""$ac_cv_prog_lex_root" 1>&6 |
---|
2662 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
---|
2663 | |
---|
2664 | echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 |
---|
2665 | echo "configure:2666: checking whether yytext is a pointer" >&5 |
---|
2666 | if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then |
---|
2667 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2668 | else |
---|
2669 | # POSIX says lex can declare yytext either as a pointer or an array; the |
---|
2670 | # default is implementation-dependent. Figure out which it is, since |
---|
2671 | # not all implementations provide the %pointer and %array declarations. |
---|
2672 | ac_cv_prog_lex_yytext_pointer=no |
---|
2673 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
---|
2674 | ac_save_LIBS="$LIBS" |
---|
2675 | LIBS="$LIBS $LEXLIB" |
---|
2676 | cat > conftest.$ac_ext <<EOF |
---|
2677 | #line 2678 "configure" |
---|
2678 | #include "confdefs.h" |
---|
2679 | `cat $LEX_OUTPUT_ROOT.c` |
---|
2680 | int main() { |
---|
2681 | |
---|
2682 | ; return 0; } |
---|
2683 | EOF |
---|
2684 | if { (eval echo configure:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2685 | rm -rf conftest* |
---|
2686 | ac_cv_prog_lex_yytext_pointer=yes |
---|
2687 | else |
---|
2688 | echo "configure: failed program was:" >&5 |
---|
2689 | cat conftest.$ac_ext >&5 |
---|
2690 | fi |
---|
2691 | rm -f conftest* |
---|
2692 | LIBS="$ac_save_LIBS" |
---|
2693 | rm -f "${LEX_OUTPUT_ROOT}.c" |
---|
2694 | |
---|
2695 | fi |
---|
2696 | |
---|
2697 | echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6 |
---|
2698 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
---|
2699 | cat >> confdefs.h <<\EOF |
---|
2700 | #define YYTEXT_POINTER 1 |
---|
2701 | EOF |
---|
2702 | |
---|
2703 | fi |
---|
2704 | |
---|
2705 | |
---|
2706 | # Check whether --enable-debug or --disable-debug was given. |
---|
2707 | if test "${enable_debug+set}" = set; then |
---|
2708 | enableval="$enable_debug" |
---|
2709 | |
---|
2710 | echo enabling debugging |
---|
2711 | if test -n "$GCC"; then |
---|
2712 | CFLAGS="$CFLAGS -Wall" |
---|
2713 | fi |
---|
2714 | |
---|
2715 | fi |
---|
2716 | |
---|
2717 | |
---|
2718 | |
---|
2719 | # Check whether --with-media or --without-media was given. |
---|
2720 | if test "${with_media+set}" = set; then |
---|
2721 | withval="$with_media" |
---|
2722 | if test "X$withval" != "Xno"; then |
---|
2723 | if test "X$withval" = "Xyes"; then |
---|
2724 | ac_cv_value_media='Letter' |
---|
2725 | else |
---|
2726 | ac_cv_value_media=$withval |
---|
2727 | fi |
---|
2728 | else |
---|
2729 | ac_cv_value_media=${MEDIA-A4} |
---|
2730 | fi |
---|
2731 | else |
---|
2732 | ac_cv_value_media=${MEDIA-A4} |
---|
2733 | |
---|
2734 | fi |
---|
2735 | |
---|
2736 | MEDIA=$ac_cv_value_media |
---|
2737 | |
---|
2738 | |
---|
2739 | |
---|
2740 | # Extract the first word of "lpr", so it can be a program name with args. |
---|
2741 | set dummy lpr; ac_word=$2 |
---|
2742 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2743 | echo "configure:2744: checking for $ac_word" >&5 |
---|
2744 | if eval "test \"`echo '$''{'ac_cv_prog_SPOOLER'+set}'`\" = set"; then |
---|
2745 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2746 | else |
---|
2747 | if test -n "$SPOOLER"; then |
---|
2748 | ac_cv_prog_SPOOLER="$SPOOLER" # Let the user override the test. |
---|
2749 | else |
---|
2750 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2751 | ac_dummy="$PATH" |
---|
2752 | for ac_dir in $ac_dummy; do |
---|
2753 | test -z "$ac_dir" && ac_dir=. |
---|
2754 | if test -f $ac_dir/$ac_word; then |
---|
2755 | ac_cv_prog_SPOOLER="lpr" |
---|
2756 | break |
---|
2757 | fi |
---|
2758 | done |
---|
2759 | IFS="$ac_save_ifs" |
---|
2760 | fi |
---|
2761 | fi |
---|
2762 | SPOOLER="$ac_cv_prog_SPOOLER" |
---|
2763 | if test -n "$SPOOLER"; then |
---|
2764 | echo "$ac_t""$SPOOLER" 1>&6 |
---|
2765 | else |
---|
2766 | echo "$ac_t""no" 1>&6 |
---|
2767 | fi |
---|
2768 | |
---|
2769 | # Extract the first word of "lp", so it can be a program name with args. |
---|
2770 | set dummy lp; ac_word=$2 |
---|
2771 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2772 | echo "configure:2773: checking for $ac_word" >&5 |
---|
2773 | if eval "test \"`echo '$''{'ac_cv_prog_SPOOLER'+set}'`\" = set"; then |
---|
2774 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2775 | else |
---|
2776 | if test -n "$SPOOLER"; then |
---|
2777 | ac_cv_prog_SPOOLER="$SPOOLER" # Let the user override the test. |
---|
2778 | else |
---|
2779 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2780 | ac_dummy="$PATH" |
---|
2781 | for ac_dir in $ac_dummy; do |
---|
2782 | test -z "$ac_dir" && ac_dir=. |
---|
2783 | if test -f $ac_dir/$ac_word; then |
---|
2784 | ac_cv_prog_SPOOLER="lp" |
---|
2785 | break |
---|
2786 | fi |
---|
2787 | done |
---|
2788 | IFS="$ac_save_ifs" |
---|
2789 | fi |
---|
2790 | fi |
---|
2791 | SPOOLER="$ac_cv_prog_SPOOLER" |
---|
2792 | if test -n "$SPOOLER"; then |
---|
2793 | echo "$ac_t""$SPOOLER" 1>&6 |
---|
2794 | else |
---|
2795 | echo "$ac_t""no" 1>&6 |
---|
2796 | fi |
---|
2797 | |
---|
2798 | |
---|
2799 | # Check whether --with-spooler or --without-spooler was given. |
---|
2800 | if test "${with_spooler+set}" = set; then |
---|
2801 | withval="$with_spooler" |
---|
2802 | if test "X$withval" != "Xno"; then |
---|
2803 | SPOOLER=$withval |
---|
2804 | fi |
---|
2805 | |
---|
2806 | fi |
---|
2807 | |
---|
2808 | |
---|
2809 | if test "X$SPOOLER" = "X"; then |
---|
2810 | SPOOLER=lpr |
---|
2811 | fi |
---|
2812 | |
---|
2813 | PSLEVEL="2" |
---|
2814 | # Check whether --with-ps-level or --without-ps-level was given. |
---|
2815 | if test "${with_ps_level+set}" = set; then |
---|
2816 | withval="$with_ps_level" |
---|
2817 | if test "X$withval" != "Xno"; then |
---|
2818 | PSLEVEL=$withval |
---|
2819 | fi |
---|
2820 | |
---|
2821 | fi |
---|
2822 | |
---|
2823 | |
---|
2824 | |
---|
2825 | ALL_LINGUAS="de es fi fr nl sl" |
---|
2826 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
---|
2827 | echo "configure:2828: checking for inline" >&5 |
---|
2828 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
---|
2829 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2830 | else |
---|
2831 | ac_cv_c_inline=no |
---|
2832 | for ac_kw in inline __inline__ __inline; do |
---|
2833 | cat > conftest.$ac_ext <<EOF |
---|
2834 | #line 2835 "configure" |
---|
2835 | #include "confdefs.h" |
---|
2836 | |
---|
2837 | int main() { |
---|
2838 | } $ac_kw foo() { |
---|
2839 | ; return 0; } |
---|
2840 | EOF |
---|
2841 | if { (eval echo configure:2842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2842 | rm -rf conftest* |
---|
2843 | ac_cv_c_inline=$ac_kw; break |
---|
2844 | else |
---|
2845 | echo "configure: failed program was:" >&5 |
---|
2846 | cat conftest.$ac_ext >&5 |
---|
2847 | fi |
---|
2848 | rm -f conftest* |
---|
2849 | done |
---|
2850 | |
---|
2851 | fi |
---|
2852 | |
---|
2853 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
---|
2854 | case "$ac_cv_c_inline" in |
---|
2855 | inline | yes) ;; |
---|
2856 | no) cat >> confdefs.h <<\EOF |
---|
2857 | #define inline |
---|
2858 | EOF |
---|
2859 | ;; |
---|
2860 | *) cat >> confdefs.h <<EOF |
---|
2861 | #define inline $ac_cv_c_inline |
---|
2862 | EOF |
---|
2863 | ;; |
---|
2864 | esac |
---|
2865 | |
---|
2866 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
---|
2867 | echo "configure:2868: checking for off_t" >&5 |
---|
2868 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
---|
2869 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2870 | else |
---|
2871 | cat > conftest.$ac_ext <<EOF |
---|
2872 | #line 2873 "configure" |
---|
2873 | #include "confdefs.h" |
---|
2874 | #include <sys/types.h> |
---|
2875 | #if STDC_HEADERS |
---|
2876 | #include <stdlib.h> |
---|
2877 | #include <stddef.h> |
---|
2878 | #endif |
---|
2879 | EOF |
---|
2880 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2881 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
---|
2882 | rm -rf conftest* |
---|
2883 | ac_cv_type_off_t=yes |
---|
2884 | else |
---|
2885 | rm -rf conftest* |
---|
2886 | ac_cv_type_off_t=no |
---|
2887 | fi |
---|
2888 | rm -f conftest* |
---|
2889 | |
---|
2890 | fi |
---|
2891 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
---|
2892 | if test $ac_cv_type_off_t = no; then |
---|
2893 | cat >> confdefs.h <<\EOF |
---|
2894 | #define off_t long |
---|
2895 | EOF |
---|
2896 | |
---|
2897 | fi |
---|
2898 | |
---|
2899 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
---|
2900 | echo "configure:2901: checking for size_t" >&5 |
---|
2901 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
---|
2902 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2903 | else |
---|
2904 | cat > conftest.$ac_ext <<EOF |
---|
2905 | #line 2906 "configure" |
---|
2906 | #include "confdefs.h" |
---|
2907 | #include <sys/types.h> |
---|
2908 | #if STDC_HEADERS |
---|
2909 | #include <stdlib.h> |
---|
2910 | #include <stddef.h> |
---|
2911 | #endif |
---|
2912 | EOF |
---|
2913 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2914 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
---|
2915 | rm -rf conftest* |
---|
2916 | ac_cv_type_size_t=yes |
---|
2917 | else |
---|
2918 | rm -rf conftest* |
---|
2919 | ac_cv_type_size_t=no |
---|
2920 | fi |
---|
2921 | rm -f conftest* |
---|
2922 | |
---|
2923 | fi |
---|
2924 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
---|
2925 | if test $ac_cv_type_size_t = no; then |
---|
2926 | cat >> confdefs.h <<\EOF |
---|
2927 | #define size_t unsigned |
---|
2928 | EOF |
---|
2929 | |
---|
2930 | fi |
---|
2931 | |
---|
2932 | for ac_hdr in unistd.h |
---|
2933 | do |
---|
2934 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
2935 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
2936 | echo "configure:2937: checking for $ac_hdr" >&5 |
---|
2937 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
2938 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2939 | else |
---|
2940 | cat > conftest.$ac_ext <<EOF |
---|
2941 | #line 2942 "configure" |
---|
2942 | #include "confdefs.h" |
---|
2943 | #include <$ac_hdr> |
---|
2944 | EOF |
---|
2945 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2946 | { (eval echo configure:2947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2947 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
2948 | if test -z "$ac_err"; then |
---|
2949 | rm -rf conftest* |
---|
2950 | eval "ac_cv_header_$ac_safe=yes" |
---|
2951 | else |
---|
2952 | echo "$ac_err" >&5 |
---|
2953 | echo "configure: failed program was:" >&5 |
---|
2954 | cat conftest.$ac_ext >&5 |
---|
2955 | rm -rf conftest* |
---|
2956 | eval "ac_cv_header_$ac_safe=no" |
---|
2957 | fi |
---|
2958 | rm -f conftest* |
---|
2959 | fi |
---|
2960 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
2961 | echo "$ac_t""yes" 1>&6 |
---|
2962 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
2963 | cat >> confdefs.h <<EOF |
---|
2964 | #define $ac_tr_hdr 1 |
---|
2965 | EOF |
---|
2966 | |
---|
2967 | else |
---|
2968 | echo "$ac_t""no" 1>&6 |
---|
2969 | fi |
---|
2970 | done |
---|
2971 | |
---|
2972 | for ac_func in getpagesize |
---|
2973 | do |
---|
2974 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
2975 | echo "configure:2976: checking for $ac_func" >&5 |
---|
2976 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
2977 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2978 | else |
---|
2979 | cat > conftest.$ac_ext <<EOF |
---|
2980 | #line 2981 "configure" |
---|
2981 | #include "confdefs.h" |
---|
2982 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2983 | which can conflict with char $ac_func(); below. */ |
---|
2984 | #include <assert.h> |
---|
2985 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2986 | /* We use char because int might match the return type of a gcc2 |
---|
2987 | builtin and then its argument prototype would still apply. */ |
---|
2988 | char $ac_func(); |
---|
2989 | |
---|
2990 | int main() { |
---|
2991 | |
---|
2992 | /* The GNU C library defines this for functions which it implements |
---|
2993 | to always fail with ENOSYS. Some functions are actually named |
---|
2994 | something starting with __ and the normal name is an alias. */ |
---|
2995 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
2996 | choke me |
---|
2997 | #else |
---|
2998 | $ac_func(); |
---|
2999 | #endif |
---|
3000 | |
---|
3001 | ; return 0; } |
---|
3002 | EOF |
---|
3003 | if { (eval echo configure:3004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3004 | rm -rf conftest* |
---|
3005 | eval "ac_cv_func_$ac_func=yes" |
---|
3006 | else |
---|
3007 | echo "configure: failed program was:" >&5 |
---|
3008 | cat conftest.$ac_ext >&5 |
---|
3009 | rm -rf conftest* |
---|
3010 | eval "ac_cv_func_$ac_func=no" |
---|
3011 | fi |
---|
3012 | rm -f conftest* |
---|
3013 | fi |
---|
3014 | |
---|
3015 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
3016 | echo "$ac_t""yes" 1>&6 |
---|
3017 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
3018 | cat >> confdefs.h <<EOF |
---|
3019 | #define $ac_tr_func 1 |
---|
3020 | EOF |
---|
3021 | |
---|
3022 | else |
---|
3023 | echo "$ac_t""no" 1>&6 |
---|
3024 | fi |
---|
3025 | done |
---|
3026 | |
---|
3027 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
---|
3028 | echo "configure:3029: checking for working mmap" >&5 |
---|
3029 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
---|
3030 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3031 | else |
---|
3032 | if test "$cross_compiling" = yes; then |
---|
3033 | ac_cv_func_mmap_fixed_mapped=no |
---|
3034 | else |
---|
3035 | cat > conftest.$ac_ext <<EOF |
---|
3036 | #line 3037 "configure" |
---|
3037 | #include "confdefs.h" |
---|
3038 | |
---|
3039 | /* Thanks to Mike Haertel and Jim Avera for this test. |
---|
3040 | Here is a matrix of mmap possibilities: |
---|
3041 | mmap private not fixed |
---|
3042 | mmap private fixed at somewhere currently unmapped |
---|
3043 | mmap private fixed at somewhere already mapped |
---|
3044 | mmap shared not fixed |
---|
3045 | mmap shared fixed at somewhere currently unmapped |
---|
3046 | mmap shared fixed at somewhere already mapped |
---|
3047 | For private mappings, we should verify that changes cannot be read() |
---|
3048 | back from the file, nor mmap's back from the file at a different |
---|
3049 | address. (There have been systems where private was not correctly |
---|
3050 | implemented like the infamous i386 svr4.0, and systems where the |
---|
3051 | VM page cache was not coherent with the filesystem buffer cache |
---|
3052 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
---|
3053 | For shared mappings, we should conversely verify that changes get |
---|
3054 | propogated back to all the places they're supposed to be. |
---|
3055 | |
---|
3056 | Grep wants private fixed already mapped. |
---|
3057 | The main things grep needs to know about mmap are: |
---|
3058 | * does it exist and is it safe to write into the mmap'd area |
---|
3059 | * how to use it (BSD variants) */ |
---|
3060 | #include <sys/types.h> |
---|
3061 | #include <fcntl.h> |
---|
3062 | #include <sys/mman.h> |
---|
3063 | |
---|
3064 | /* This mess was copied from the GNU getpagesize.h. */ |
---|
3065 | #ifndef HAVE_GETPAGESIZE |
---|
3066 | # ifdef HAVE_UNISTD_H |
---|
3067 | # include <unistd.h> |
---|
3068 | # endif |
---|
3069 | |
---|
3070 | /* Assume that all systems that can run configure have sys/param.h. */ |
---|
3071 | # ifndef HAVE_SYS_PARAM_H |
---|
3072 | # define HAVE_SYS_PARAM_H 1 |
---|
3073 | # endif |
---|
3074 | |
---|
3075 | # ifdef _SC_PAGESIZE |
---|
3076 | # define getpagesize() sysconf(_SC_PAGESIZE) |
---|
3077 | # else /* no _SC_PAGESIZE */ |
---|
3078 | # ifdef HAVE_SYS_PARAM_H |
---|
3079 | # include <sys/param.h> |
---|
3080 | # ifdef EXEC_PAGESIZE |
---|
3081 | # define getpagesize() EXEC_PAGESIZE |
---|
3082 | # else /* no EXEC_PAGESIZE */ |
---|
3083 | # ifdef NBPG |
---|
3084 | # define getpagesize() NBPG * CLSIZE |
---|
3085 | # ifndef CLSIZE |
---|
3086 | # define CLSIZE 1 |
---|
3087 | # endif /* no CLSIZE */ |
---|
3088 | # else /* no NBPG */ |
---|
3089 | # ifdef NBPC |
---|
3090 | # define getpagesize() NBPC |
---|
3091 | # else /* no NBPC */ |
---|
3092 | # ifdef PAGESIZE |
---|
3093 | # define getpagesize() PAGESIZE |
---|
3094 | # endif /* PAGESIZE */ |
---|
3095 | # endif /* no NBPC */ |
---|
3096 | # endif /* no NBPG */ |
---|
3097 | # endif /* no EXEC_PAGESIZE */ |
---|
3098 | # else /* no HAVE_SYS_PARAM_H */ |
---|
3099 | # define getpagesize() 8192 /* punt totally */ |
---|
3100 | # endif /* no HAVE_SYS_PARAM_H */ |
---|
3101 | # endif /* no _SC_PAGESIZE */ |
---|
3102 | |
---|
3103 | #endif /* no HAVE_GETPAGESIZE */ |
---|
3104 | |
---|
3105 | #ifdef __cplusplus |
---|
3106 | extern "C" { void *malloc(unsigned); } |
---|
3107 | #else |
---|
3108 | char *malloc(); |
---|
3109 | #endif |
---|
3110 | |
---|
3111 | int |
---|
3112 | main() |
---|
3113 | { |
---|
3114 | char *data, *data2, *data3; |
---|
3115 | int i, pagesize; |
---|
3116 | int fd; |
---|
3117 | |
---|
3118 | pagesize = getpagesize(); |
---|
3119 | |
---|
3120 | /* |
---|
3121 | * First, make a file with some known garbage in it. |
---|
3122 | */ |
---|
3123 | data = malloc(pagesize); |
---|
3124 | if (!data) |
---|
3125 | exit(1); |
---|
3126 | for (i = 0; i < pagesize; ++i) |
---|
3127 | *(data + i) = rand(); |
---|
3128 | umask(0); |
---|
3129 | fd = creat("conftestmmap", 0600); |
---|
3130 | if (fd < 0) |
---|
3131 | exit(1); |
---|
3132 | if (write(fd, data, pagesize) != pagesize) |
---|
3133 | exit(1); |
---|
3134 | close(fd); |
---|
3135 | |
---|
3136 | /* |
---|
3137 | * Next, try to mmap the file at a fixed address which |
---|
3138 | * already has something else allocated at it. If we can, |
---|
3139 | * also make sure that we see the same garbage. |
---|
3140 | */ |
---|
3141 | fd = open("conftestmmap", O_RDWR); |
---|
3142 | if (fd < 0) |
---|
3143 | exit(1); |
---|
3144 | data2 = malloc(2 * pagesize); |
---|
3145 | if (!data2) |
---|
3146 | exit(1); |
---|
3147 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
---|
3148 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
---|
3149 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
---|
3150 | exit(1); |
---|
3151 | for (i = 0; i < pagesize; ++i) |
---|
3152 | if (*(data + i) != *(data2 + i)) |
---|
3153 | exit(1); |
---|
3154 | |
---|
3155 | /* |
---|
3156 | * Finally, make sure that changes to the mapped area |
---|
3157 | * do not percolate back to the file as seen by read(). |
---|
3158 | * (This is a bug on some variants of i386 svr4.0.) |
---|
3159 | */ |
---|
3160 | for (i = 0; i < pagesize; ++i) |
---|
3161 | *(data2 + i) = *(data2 + i) + 1; |
---|
3162 | data3 = malloc(pagesize); |
---|
3163 | if (!data3) |
---|
3164 | exit(1); |
---|
3165 | if (read(fd, data3, pagesize) != pagesize) |
---|
3166 | exit(1); |
---|
3167 | for (i = 0; i < pagesize; ++i) |
---|
3168 | if (*(data + i) != *(data3 + i)) |
---|
3169 | exit(1); |
---|
3170 | close(fd); |
---|
3171 | unlink("conftestmmap"); |
---|
3172 | exit(0); |
---|
3173 | } |
---|
3174 | |
---|
3175 | EOF |
---|
3176 | if { (eval echo configure:3177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3177 | then |
---|
3178 | ac_cv_func_mmap_fixed_mapped=yes |
---|
3179 | else |
---|
3180 | echo "configure: failed program was:" >&5 |
---|
3181 | cat conftest.$ac_ext >&5 |
---|
3182 | rm -fr conftest* |
---|
3183 | ac_cv_func_mmap_fixed_mapped=no |
---|
3184 | fi |
---|
3185 | rm -fr conftest* |
---|
3186 | fi |
---|
3187 | |
---|
3188 | fi |
---|
3189 | |
---|
3190 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
---|
3191 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
---|
3192 | cat >> confdefs.h <<\EOF |
---|
3193 | #define HAVE_MMAP 1 |
---|
3194 | EOF |
---|
3195 | |
---|
3196 | fi |
---|
3197 | |
---|
3198 | |
---|
3199 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ |
---|
3200 | unistd.h values.h |
---|
3201 | do |
---|
3202 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
3203 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
3204 | echo "configure:3205: checking for $ac_hdr" >&5 |
---|
3205 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
3206 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3207 | else |
---|
3208 | cat > conftest.$ac_ext <<EOF |
---|
3209 | #line 3210 "configure" |
---|
3210 | #include "confdefs.h" |
---|
3211 | #include <$ac_hdr> |
---|
3212 | EOF |
---|
3213 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
3214 | { (eval echo configure:3215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
3215 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
3216 | if test -z "$ac_err"; then |
---|
3217 | rm -rf conftest* |
---|
3218 | eval "ac_cv_header_$ac_safe=yes" |
---|
3219 | else |
---|
3220 | echo "$ac_err" >&5 |
---|
3221 | echo "configure: failed program was:" >&5 |
---|
3222 | cat conftest.$ac_ext >&5 |
---|
3223 | rm -rf conftest* |
---|
3224 | eval "ac_cv_header_$ac_safe=no" |
---|
3225 | fi |
---|
3226 | rm -f conftest* |
---|
3227 | fi |
---|
3228 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
3229 | echo "$ac_t""yes" 1>&6 |
---|
3230 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
3231 | cat >> confdefs.h <<EOF |
---|
3232 | #define $ac_tr_hdr 1 |
---|
3233 | EOF |
---|
3234 | |
---|
3235 | else |
---|
3236 | echo "$ac_t""no" 1>&6 |
---|
3237 | fi |
---|
3238 | done |
---|
3239 | |
---|
3240 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ |
---|
3241 | __argz_count __argz_stringify __argz_next |
---|
3242 | do |
---|
3243 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
3244 | echo "configure:3245: checking for $ac_func" >&5 |
---|
3245 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
3246 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3247 | else |
---|
3248 | cat > conftest.$ac_ext <<EOF |
---|
3249 | #line 3250 "configure" |
---|
3250 | #include "confdefs.h" |
---|
3251 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3252 | which can conflict with char $ac_func(); below. */ |
---|
3253 | #include <assert.h> |
---|
3254 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3255 | /* We use char because int might match the return type of a gcc2 |
---|
3256 | builtin and then its argument prototype would still apply. */ |
---|
3257 | char $ac_func(); |
---|
3258 | |
---|
3259 | int main() { |
---|
3260 | |
---|
3261 | /* The GNU C library defines this for functions which it implements |
---|
3262 | to always fail with ENOSYS. Some functions are actually named |
---|
3263 | something starting with __ and the normal name is an alias. */ |
---|
3264 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
3265 | choke me |
---|
3266 | #else |
---|
3267 | $ac_func(); |
---|
3268 | #endif |
---|
3269 | |
---|
3270 | ; return 0; } |
---|
3271 | EOF |
---|
3272 | if { (eval echo configure:3273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3273 | rm -rf conftest* |
---|
3274 | eval "ac_cv_func_$ac_func=yes" |
---|
3275 | else |
---|
3276 | echo "configure: failed program was:" >&5 |
---|
3277 | cat conftest.$ac_ext >&5 |
---|
3278 | rm -rf conftest* |
---|
3279 | eval "ac_cv_func_$ac_func=no" |
---|
3280 | fi |
---|
3281 | rm -f conftest* |
---|
3282 | fi |
---|
3283 | |
---|
3284 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
3285 | echo "$ac_t""yes" 1>&6 |
---|
3286 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
3287 | cat >> confdefs.h <<EOF |
---|
3288 | #define $ac_tr_func 1 |
---|
3289 | EOF |
---|
3290 | |
---|
3291 | else |
---|
3292 | echo "$ac_t""no" 1>&6 |
---|
3293 | fi |
---|
3294 | done |
---|
3295 | |
---|
3296 | |
---|
3297 | if test "${ac_cv_func_stpcpy+set}" != "set"; then |
---|
3298 | for ac_func in stpcpy |
---|
3299 | do |
---|
3300 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
3301 | echo "configure:3302: checking for $ac_func" >&5 |
---|
3302 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
3303 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3304 | else |
---|
3305 | cat > conftest.$ac_ext <<EOF |
---|
3306 | #line 3307 "configure" |
---|
3307 | #include "confdefs.h" |
---|
3308 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3309 | which can conflict with char $ac_func(); below. */ |
---|
3310 | #include <assert.h> |
---|
3311 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3312 | /* We use char because int might match the return type of a gcc2 |
---|
3313 | builtin and then its argument prototype would still apply. */ |
---|
3314 | char $ac_func(); |
---|
3315 | |
---|
3316 | int main() { |
---|
3317 | |
---|
3318 | /* The GNU C library defines this for functions which it implements |
---|
3319 | to always fail with ENOSYS. Some functions are actually named |
---|
3320 | something starting with __ and the normal name is an alias. */ |
---|
3321 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
3322 | choke me |
---|
3323 | #else |
---|
3324 | $ac_func(); |
---|
3325 | #endif |
---|
3326 | |
---|
3327 | ; return 0; } |
---|
3328 | EOF |
---|
3329 | if { (eval echo configure:3330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3330 | rm -rf conftest* |
---|
3331 | eval "ac_cv_func_$ac_func=yes" |
---|
3332 | else |
---|
3333 | echo "configure: failed program was:" >&5 |
---|
3334 | cat conftest.$ac_ext >&5 |
---|
3335 | rm -rf conftest* |
---|
3336 | eval "ac_cv_func_$ac_func=no" |
---|
3337 | fi |
---|
3338 | rm -f conftest* |
---|
3339 | fi |
---|
3340 | |
---|
3341 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
3342 | echo "$ac_t""yes" 1>&6 |
---|
3343 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
3344 | cat >> confdefs.h <<EOF |
---|
3345 | #define $ac_tr_func 1 |
---|
3346 | EOF |
---|
3347 | |
---|
3348 | else |
---|
3349 | echo "$ac_t""no" 1>&6 |
---|
3350 | fi |
---|
3351 | done |
---|
3352 | |
---|
3353 | fi |
---|
3354 | if test "${ac_cv_func_stpcpy}" = "yes"; then |
---|
3355 | cat >> confdefs.h <<\EOF |
---|
3356 | #define HAVE_STPCPY 1 |
---|
3357 | EOF |
---|
3358 | |
---|
3359 | fi |
---|
3360 | |
---|
3361 | if test $ac_cv_header_locale_h = yes; then |
---|
3362 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 |
---|
3363 | echo "configure:3364: checking for LC_MESSAGES" >&5 |
---|
3364 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
---|
3365 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3366 | else |
---|
3367 | cat > conftest.$ac_ext <<EOF |
---|
3368 | #line 3369 "configure" |
---|
3369 | #include "confdefs.h" |
---|
3370 | #include <locale.h> |
---|
3371 | int main() { |
---|
3372 | return LC_MESSAGES |
---|
3373 | ; return 0; } |
---|
3374 | EOF |
---|
3375 | if { (eval echo configure:3376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3376 | rm -rf conftest* |
---|
3377 | am_cv_val_LC_MESSAGES=yes |
---|
3378 | else |
---|
3379 | echo "configure: failed program was:" >&5 |
---|
3380 | cat conftest.$ac_ext >&5 |
---|
3381 | rm -rf conftest* |
---|
3382 | am_cv_val_LC_MESSAGES=no |
---|
3383 | fi |
---|
3384 | rm -f conftest* |
---|
3385 | fi |
---|
3386 | |
---|
3387 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 |
---|
3388 | if test $am_cv_val_LC_MESSAGES = yes; then |
---|
3389 | cat >> confdefs.h <<\EOF |
---|
3390 | #define HAVE_LC_MESSAGES 1 |
---|
3391 | EOF |
---|
3392 | |
---|
3393 | fi |
---|
3394 | fi |
---|
3395 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 |
---|
3396 | echo "configure:3397: checking whether NLS is requested" >&5 |
---|
3397 | # Check whether --enable-nls or --disable-nls was given. |
---|
3398 | if test "${enable_nls+set}" = set; then |
---|
3399 | enableval="$enable_nls" |
---|
3400 | USE_NLS=$enableval |
---|
3401 | else |
---|
3402 | USE_NLS=yes |
---|
3403 | fi |
---|
3404 | |
---|
3405 | echo "$ac_t""$USE_NLS" 1>&6 |
---|
3406 | |
---|
3407 | |
---|
3408 | USE_INCLUDED_LIBINTL=no |
---|
3409 | |
---|
3410 | if test "$USE_NLS" = "yes"; then |
---|
3411 | cat >> confdefs.h <<\EOF |
---|
3412 | #define ENABLE_NLS 1 |
---|
3413 | EOF |
---|
3414 | |
---|
3415 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 |
---|
3416 | echo "configure:3417: checking whether included gettext is requested" >&5 |
---|
3417 | # Check whether --with-included-gettext or --without-included-gettext was given. |
---|
3418 | if test "${with_included_gettext+set}" = set; then |
---|
3419 | withval="$with_included_gettext" |
---|
3420 | nls_cv_force_use_gnu_gettext=$withval |
---|
3421 | else |
---|
3422 | nls_cv_force_use_gnu_gettext=no |
---|
3423 | fi |
---|
3424 | |
---|
3425 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 |
---|
3426 | |
---|
3427 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
---|
3428 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
---|
3429 | nls_cv_header_intl= |
---|
3430 | nls_cv_header_libgt= |
---|
3431 | CATOBJEXT=NONE |
---|
3432 | |
---|
3433 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` |
---|
3434 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 |
---|
3435 | echo "configure:3436: checking for libintl.h" >&5 |
---|
3436 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
3437 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3438 | else |
---|
3439 | cat > conftest.$ac_ext <<EOF |
---|
3440 | #line 3441 "configure" |
---|
3441 | #include "confdefs.h" |
---|
3442 | #include <libintl.h> |
---|
3443 | EOF |
---|
3444 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
3445 | { (eval echo configure:3446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
3446 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
3447 | if test -z "$ac_err"; then |
---|
3448 | rm -rf conftest* |
---|
3449 | eval "ac_cv_header_$ac_safe=yes" |
---|
3450 | else |
---|
3451 | echo "$ac_err" >&5 |
---|
3452 | echo "configure: failed program was:" >&5 |
---|
3453 | cat conftest.$ac_ext >&5 |
---|
3454 | rm -rf conftest* |
---|
3455 | eval "ac_cv_header_$ac_safe=no" |
---|
3456 | fi |
---|
3457 | rm -f conftest* |
---|
3458 | fi |
---|
3459 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
3460 | echo "$ac_t""yes" 1>&6 |
---|
3461 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 |
---|
3462 | echo "configure:3463: checking for gettext in libc" >&5 |
---|
3463 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
---|
3464 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3465 | else |
---|
3466 | cat > conftest.$ac_ext <<EOF |
---|
3467 | #line 3468 "configure" |
---|
3468 | #include "confdefs.h" |
---|
3469 | #include <libintl.h> |
---|
3470 | int main() { |
---|
3471 | return (int) gettext ("") |
---|
3472 | ; return 0; } |
---|
3473 | EOF |
---|
3474 | if { (eval echo configure:3475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3475 | rm -rf conftest* |
---|
3476 | gt_cv_func_gettext_libc=yes |
---|
3477 | else |
---|
3478 | echo "configure: failed program was:" >&5 |
---|
3479 | cat conftest.$ac_ext >&5 |
---|
3480 | rm -rf conftest* |
---|
3481 | gt_cv_func_gettext_libc=no |
---|
3482 | fi |
---|
3483 | rm -f conftest* |
---|
3484 | fi |
---|
3485 | |
---|
3486 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 |
---|
3487 | |
---|
3488 | if :; then |
---|
3489 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 |
---|
3490 | echo "configure:3491: checking for bindtextdomain in -lintl" >&5 |
---|
3491 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
---|
3492 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3493 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3494 | else |
---|
3495 | ac_save_LIBS="$LIBS" |
---|
3496 | LIBS="-lintl $LIBS" |
---|
3497 | cat > conftest.$ac_ext <<EOF |
---|
3498 | #line 3499 "configure" |
---|
3499 | #include "confdefs.h" |
---|
3500 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3501 | /* We use char because int might match the return type of a gcc2 |
---|
3502 | builtin and then its argument prototype would still apply. */ |
---|
3503 | char bindtextdomain(); |
---|
3504 | |
---|
3505 | int main() { |
---|
3506 | bindtextdomain() |
---|
3507 | ; return 0; } |
---|
3508 | EOF |
---|
3509 | if { (eval echo configure:3510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3510 | rm -rf conftest* |
---|
3511 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3512 | else |
---|
3513 | echo "configure: failed program was:" >&5 |
---|
3514 | cat conftest.$ac_ext >&5 |
---|
3515 | rm -rf conftest* |
---|
3516 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3517 | fi |
---|
3518 | rm -f conftest* |
---|
3519 | LIBS="$ac_save_LIBS" |
---|
3520 | |
---|
3521 | fi |
---|
3522 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3523 | echo "$ac_t""yes" 1>&6 |
---|
3524 | ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
3525 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
3526 | cat >> confdefs.h <<EOF |
---|
3527 | #define $ac_tr_lib 1 |
---|
3528 | EOF |
---|
3529 | |
---|
3530 | LIBS="-lintl $LIBS" |
---|
3531 | |
---|
3532 | else |
---|
3533 | echo "$ac_t""no" 1>&6 |
---|
3534 | fi |
---|
3535 | |
---|
3536 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 |
---|
3537 | echo "configure:3538: checking for bindtextdomain in -lintl" >&5 |
---|
3538 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
---|
3539 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3540 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3541 | else |
---|
3542 | ac_save_LIBS="$LIBS" |
---|
3543 | LIBS="-lintl $LIBS" |
---|
3544 | cat > conftest.$ac_ext <<EOF |
---|
3545 | #line 3546 "configure" |
---|
3546 | #include "confdefs.h" |
---|
3547 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3548 | /* We use char because int might match the return type of a gcc2 |
---|
3549 | builtin and then its argument prototype would still apply. */ |
---|
3550 | char bindtextdomain(); |
---|
3551 | |
---|
3552 | int main() { |
---|
3553 | bindtextdomain() |
---|
3554 | ; return 0; } |
---|
3555 | EOF |
---|
3556 | if { (eval echo configure:3557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3557 | rm -rf conftest* |
---|
3558 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3559 | else |
---|
3560 | echo "configure: failed program was:" >&5 |
---|
3561 | cat conftest.$ac_ext >&5 |
---|
3562 | rm -rf conftest* |
---|
3563 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3564 | fi |
---|
3565 | rm -f conftest* |
---|
3566 | LIBS="$ac_save_LIBS" |
---|
3567 | |
---|
3568 | fi |
---|
3569 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3570 | echo "$ac_t""yes" 1>&6 |
---|
3571 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 |
---|
3572 | echo "configure:3573: checking for gettext in libintl" >&5 |
---|
3573 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
---|
3574 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3575 | else |
---|
3576 | cat > conftest.$ac_ext <<EOF |
---|
3577 | #line 3578 "configure" |
---|
3578 | #include "confdefs.h" |
---|
3579 | |
---|
3580 | int main() { |
---|
3581 | return (int) gettext ("") |
---|
3582 | ; return 0; } |
---|
3583 | EOF |
---|
3584 | if { (eval echo configure:3585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3585 | rm -rf conftest* |
---|
3586 | gt_cv_func_gettext_libintl=yes |
---|
3587 | else |
---|
3588 | echo "configure: failed program was:" >&5 |
---|
3589 | cat conftest.$ac_ext >&5 |
---|
3590 | rm -rf conftest* |
---|
3591 | gt_cv_func_gettext_libintl=no |
---|
3592 | fi |
---|
3593 | rm -f conftest* |
---|
3594 | fi |
---|
3595 | |
---|
3596 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 |
---|
3597 | else |
---|
3598 | echo "$ac_t""no" 1>&6 |
---|
3599 | fi |
---|
3600 | |
---|
3601 | fi |
---|
3602 | |
---|
3603 | if test "$gt_cv_func_gettext_libc" = "yes" \ |
---|
3604 | || test "$gt_cv_func_gettext_libintl" = "yes"; then |
---|
3605 | cat >> confdefs.h <<\EOF |
---|
3606 | #define HAVE_GETTEXT 1 |
---|
3607 | EOF |
---|
3608 | |
---|
3609 | # Extract the first word of "msgfmt", so it can be a program name with args. |
---|
3610 | set dummy msgfmt; ac_word=$2 |
---|
3611 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
3612 | echo "configure:3613: checking for $ac_word" >&5 |
---|
3613 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
---|
3614 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3615 | else |
---|
3616 | case "$MSGFMT" in |
---|
3617 | /*) |
---|
3618 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
---|
3619 | ;; |
---|
3620 | *) |
---|
3621 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
3622 | for ac_dir in $PATH; do |
---|
3623 | test -z "$ac_dir" && ac_dir=. |
---|
3624 | if test -f $ac_dir/$ac_word; then |
---|
3625 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then |
---|
3626 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
---|
3627 | break |
---|
3628 | fi |
---|
3629 | fi |
---|
3630 | done |
---|
3631 | IFS="$ac_save_ifs" |
---|
3632 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" |
---|
3633 | ;; |
---|
3634 | esac |
---|
3635 | fi |
---|
3636 | MSGFMT="$ac_cv_path_MSGFMT" |
---|
3637 | if test -n "$MSGFMT"; then |
---|
3638 | echo "$ac_t""$MSGFMT" 1>&6 |
---|
3639 | else |
---|
3640 | echo "$ac_t""no" 1>&6 |
---|
3641 | fi |
---|
3642 | if test "$MSGFMT" != "no"; then |
---|
3643 | for ac_func in dcgettext |
---|
3644 | do |
---|
3645 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
3646 | echo "configure:3647: checking for $ac_func" >&5 |
---|
3647 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
3648 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3649 | else |
---|
3650 | cat > conftest.$ac_ext <<EOF |
---|
3651 | #line 3652 "configure" |
---|
3652 | #include "confdefs.h" |
---|
3653 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3654 | which can conflict with char $ac_func(); below. */ |
---|
3655 | #include <assert.h> |
---|
3656 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3657 | /* We use char because int might match the return type of a gcc2 |
---|
3658 | builtin and then its argument prototype would still apply. */ |
---|
3659 | char $ac_func(); |
---|
3660 | |
---|
3661 | int main() { |
---|
3662 | |
---|
3663 | /* The GNU C library defines this for functions which it implements |
---|
3664 | to always fail with ENOSYS. Some functions are actually named |
---|
3665 | something starting with __ and the normal name is an alias. */ |
---|
3666 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
3667 | choke me |
---|
3668 | #else |
---|
3669 | $ac_func(); |
---|
3670 | #endif |
---|
3671 | |
---|
3672 | ; return 0; } |
---|
3673 | EOF |
---|
3674 | if { (eval echo configure:3675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3675 | rm -rf conftest* |
---|
3676 | eval "ac_cv_func_$ac_func=yes" |
---|
3677 | else |
---|
3678 | echo "configure: failed program was:" >&5 |
---|
3679 | cat conftest.$ac_ext >&5 |
---|
3680 | rm -rf conftest* |
---|
3681 | eval "ac_cv_func_$ac_func=no" |
---|
3682 | fi |
---|
3683 | rm -f conftest* |
---|
3684 | fi |
---|
3685 | |
---|
3686 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
3687 | echo "$ac_t""yes" 1>&6 |
---|
3688 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
3689 | cat >> confdefs.h <<EOF |
---|
3690 | #define $ac_tr_func 1 |
---|
3691 | EOF |
---|
3692 | |
---|
3693 | else |
---|
3694 | echo "$ac_t""no" 1>&6 |
---|
3695 | fi |
---|
3696 | done |
---|
3697 | |
---|
3698 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
---|
3699 | set dummy gmsgfmt; ac_word=$2 |
---|
3700 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
3701 | echo "configure:3702: checking for $ac_word" >&5 |
---|
3702 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
---|
3703 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3704 | else |
---|
3705 | case "$GMSGFMT" in |
---|
3706 | /*) |
---|
3707 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
---|
3708 | ;; |
---|
3709 | ?:/*) |
---|
3710 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
---|
3711 | ;; |
---|
3712 | *) |
---|
3713 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
3714 | ac_dummy="$PATH" |
---|
3715 | for ac_dir in $ac_dummy; do |
---|
3716 | test -z "$ac_dir" && ac_dir=. |
---|
3717 | if test -f $ac_dir/$ac_word; then |
---|
3718 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
---|
3719 | break |
---|
3720 | fi |
---|
3721 | done |
---|
3722 | IFS="$ac_save_ifs" |
---|
3723 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
---|
3724 | ;; |
---|
3725 | esac |
---|
3726 | fi |
---|
3727 | GMSGFMT="$ac_cv_path_GMSGFMT" |
---|
3728 | if test -n "$GMSGFMT"; then |
---|
3729 | echo "$ac_t""$GMSGFMT" 1>&6 |
---|
3730 | else |
---|
3731 | echo "$ac_t""no" 1>&6 |
---|
3732 | fi |
---|
3733 | |
---|
3734 | # Extract the first word of "xgettext", so it can be a program name with args. |
---|
3735 | set dummy xgettext; ac_word=$2 |
---|
3736 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
3737 | echo "configure:3738: checking for $ac_word" >&5 |
---|
3738 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
---|
3739 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3740 | else |
---|
3741 | case "$XGETTEXT" in |
---|
3742 | /*) |
---|
3743 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
---|
3744 | ;; |
---|
3745 | *) |
---|
3746 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
3747 | for ac_dir in $PATH; do |
---|
3748 | test -z "$ac_dir" && ac_dir=. |
---|
3749 | if test -f $ac_dir/$ac_word; then |
---|
3750 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then |
---|
3751 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
---|
3752 | break |
---|
3753 | fi |
---|
3754 | fi |
---|
3755 | done |
---|
3756 | IFS="$ac_save_ifs" |
---|
3757 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
---|
3758 | ;; |
---|
3759 | esac |
---|
3760 | fi |
---|
3761 | XGETTEXT="$ac_cv_path_XGETTEXT" |
---|
3762 | if test -n "$XGETTEXT"; then |
---|
3763 | echo "$ac_t""$XGETTEXT" 1>&6 |
---|
3764 | else |
---|
3765 | echo "$ac_t""no" 1>&6 |
---|
3766 | fi |
---|
3767 | |
---|
3768 | cat > conftest.$ac_ext <<EOF |
---|
3769 | #line 3770 "configure" |
---|
3770 | #include "confdefs.h" |
---|
3771 | |
---|
3772 | int main() { |
---|
3773 | extern int _nl_msg_cat_cntr; |
---|
3774 | return _nl_msg_cat_cntr |
---|
3775 | ; return 0; } |
---|
3776 | EOF |
---|
3777 | if { (eval echo configure:3778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3778 | rm -rf conftest* |
---|
3779 | CATOBJEXT=.gmo |
---|
3780 | DATADIRNAME=share |
---|
3781 | else |
---|
3782 | echo "configure: failed program was:" >&5 |
---|
3783 | cat conftest.$ac_ext >&5 |
---|
3784 | rm -rf conftest* |
---|
3785 | CATOBJEXT=.mo |
---|
3786 | DATADIRNAME=lib |
---|
3787 | fi |
---|
3788 | rm -f conftest* |
---|
3789 | INSTOBJEXT=.mo |
---|
3790 | fi |
---|
3791 | fi |
---|
3792 | |
---|
3793 | else |
---|
3794 | echo "$ac_t""no" 1>&6 |
---|
3795 | fi |
---|
3796 | |
---|
3797 | |
---|
3798 | if test "$CATOBJEXT" = "NONE"; then |
---|
3799 | echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 |
---|
3800 | echo "configure:3801: checking whether catgets can be used" >&5 |
---|
3801 | # Check whether --with-catgets or --without-catgets was given. |
---|
3802 | if test "${with_catgets+set}" = set; then |
---|
3803 | withval="$with_catgets" |
---|
3804 | nls_cv_use_catgets=$withval |
---|
3805 | else |
---|
3806 | nls_cv_use_catgets=no |
---|
3807 | fi |
---|
3808 | |
---|
3809 | echo "$ac_t""$nls_cv_use_catgets" 1>&6 |
---|
3810 | |
---|
3811 | if test "$nls_cv_use_catgets" = "yes"; then |
---|
3812 | echo $ac_n "checking for main in -li""... $ac_c" 1>&6 |
---|
3813 | echo "configure:3814: checking for main in -li" >&5 |
---|
3814 | ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` |
---|
3815 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3816 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3817 | else |
---|
3818 | ac_save_LIBS="$LIBS" |
---|
3819 | LIBS="-li $LIBS" |
---|
3820 | cat > conftest.$ac_ext <<EOF |
---|
3821 | #line 3822 "configure" |
---|
3822 | #include "confdefs.h" |
---|
3823 | |
---|
3824 | int main() { |
---|
3825 | main() |
---|
3826 | ; return 0; } |
---|
3827 | EOF |
---|
3828 | if { (eval echo configure:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3829 | rm -rf conftest* |
---|
3830 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3831 | else |
---|
3832 | echo "configure: failed program was:" >&5 |
---|
3833 | cat conftest.$ac_ext >&5 |
---|
3834 | rm -rf conftest* |
---|
3835 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3836 | fi |
---|
3837 | rm -f conftest* |
---|
3838 | LIBS="$ac_save_LIBS" |
---|
3839 | |
---|
3840 | fi |
---|
3841 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3842 | echo "$ac_t""yes" 1>&6 |
---|
3843 | ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
3844 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
3845 | cat >> confdefs.h <<EOF |
---|
3846 | #define $ac_tr_lib 1 |
---|
3847 | EOF |
---|
3848 | |
---|
3849 | LIBS="-li $LIBS" |
---|
3850 | |
---|
3851 | else |
---|
3852 | echo "$ac_t""no" 1>&6 |
---|
3853 | fi |
---|
3854 | |
---|
3855 | echo $ac_n "checking for catgets""... $ac_c" 1>&6 |
---|
3856 | echo "configure:3857: checking for catgets" >&5 |
---|
3857 | if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then |
---|
3858 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3859 | else |
---|
3860 | cat > conftest.$ac_ext <<EOF |
---|
3861 | #line 3862 "configure" |
---|
3862 | #include "confdefs.h" |
---|
3863 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3864 | which can conflict with char catgets(); below. */ |
---|
3865 | #include <assert.h> |
---|
3866 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3867 | /* We use char because int might match the return type of a gcc2 |
---|
3868 | builtin and then its argument prototype would still apply. */ |
---|
3869 | char catgets(); |
---|
3870 | |
---|
3871 | int main() { |
---|
3872 | |
---|
3873 | /* The GNU C library defines this for functions which it implements |
---|
3874 | to always fail with ENOSYS. Some functions are actually named |
---|
3875 | something starting with __ and the normal name is an alias. */ |
---|
3876 | #if defined (__stub_catgets) || defined (__stub___catgets) |
---|
3877 | choke me |
---|
3878 | #else |
---|
3879 | catgets(); |
---|
3880 | #endif |
---|
3881 | |
---|
3882 | ; return 0; } |
---|
3883 | EOF |
---|
3884 | if { (eval echo configure:3885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3885 | rm -rf conftest* |
---|
3886 | eval "ac_cv_func_catgets=yes" |
---|
3887 | else |
---|
3888 | echo "configure: failed program was:" >&5 |
---|
3889 | cat conftest.$ac_ext >&5 |
---|
3890 | rm -rf conftest* |
---|
3891 | eval "ac_cv_func_catgets=no" |
---|
3892 | fi |
---|
3893 | rm -f conftest* |
---|
3894 | fi |
---|
3895 | |
---|
3896 | if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then |
---|
3897 | echo "$ac_t""yes" 1>&6 |
---|
3898 | cat >> confdefs.h <<\EOF |
---|
3899 | #define HAVE_CATGETS 1 |
---|
3900 | EOF |
---|
3901 | |
---|
3902 | INTLOBJS="\$(CATOBJS)" |
---|
3903 | # Extract the first word of "gencat", so it can be a program name with args. |
---|
3904 | set dummy gencat; ac_word=$2 |
---|
3905 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
3906 | echo "configure:3907: checking for $ac_word" >&5 |
---|
3907 | if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then |
---|
3908 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3909 | else |
---|
3910 | case "$GENCAT" in |
---|
3911 | /*) |
---|
3912 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. |
---|
3913 | ;; |
---|
3914 | ?:/*) |
---|
3915 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. |
---|
3916 | ;; |
---|
3917 | *) |
---|
3918 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
3919 | ac_dummy="$PATH" |
---|
3920 | for ac_dir in $ac_dummy; do |
---|
3921 | test -z "$ac_dir" && ac_dir=. |
---|
3922 | if test -f $ac_dir/$ac_word; then |
---|
3923 | ac_cv_path_GENCAT="$ac_dir/$ac_word" |
---|
3924 | break |
---|
3925 | fi |
---|
3926 | done |
---|
3927 | IFS="$ac_save_ifs" |
---|
3928 | test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" |
---|
3929 | ;; |
---|
3930 | esac |
---|
3931 | fi |
---|
3932 | GENCAT="$ac_cv_path_GENCAT" |
---|
3933 | if test -n "$GENCAT"; then |
---|
3934 | echo "$ac_t""$GENCAT" 1>&6 |
---|
3935 | else |
---|
3936 | echo "$ac_t""no" 1>&6 |
---|
3937 | fi |
---|
3938 | if test "$GENCAT" != "no"; then |
---|
3939 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
---|
3940 | set dummy gmsgfmt; ac_word=$2 |
---|
3941 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
3942 | echo "configure:3943: checking for $ac_word" >&5 |
---|
3943 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
---|
3944 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3945 | else |
---|
3946 | case "$GMSGFMT" in |
---|
3947 | /*) |
---|
3948 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
---|
3949 | ;; |
---|
3950 | ?:/*) |
---|
3951 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
---|
3952 | ;; |
---|
3953 | *) |
---|
3954 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
3955 | ac_dummy="$PATH" |
---|
3956 | for ac_dir in $ac_dummy; do |
---|
3957 | test -z "$ac_dir" && ac_dir=. |
---|
3958 | if test -f $ac_dir/$ac_word; then |
---|
3959 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
---|
3960 | break |
---|
3961 | fi |
---|
3962 | done |
---|
3963 | IFS="$ac_save_ifs" |
---|
3964 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" |
---|
3965 | ;; |
---|
3966 | esac |
---|
3967 | fi |
---|
3968 | GMSGFMT="$ac_cv_path_GMSGFMT" |
---|
3969 | if test -n "$GMSGFMT"; then |
---|
3970 | echo "$ac_t""$GMSGFMT" 1>&6 |
---|
3971 | else |
---|
3972 | echo "$ac_t""no" 1>&6 |
---|
3973 | fi |
---|
3974 | |
---|
3975 | if test "$GMSGFMT" = "no"; then |
---|
3976 | # Extract the first word of "msgfmt", so it can be a program name with args. |
---|
3977 | set dummy msgfmt; ac_word=$2 |
---|
3978 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
3979 | echo "configure:3980: checking for $ac_word" >&5 |
---|
3980 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
---|
3981 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3982 | else |
---|
3983 | case "$GMSGFMT" in |
---|
3984 | /*) |
---|
3985 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
---|
3986 | ;; |
---|
3987 | *) |
---|
3988 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
3989 | for ac_dir in $PATH; do |
---|
3990 | test -z "$ac_dir" && ac_dir=. |
---|
3991 | if test -f $ac_dir/$ac_word; then |
---|
3992 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then |
---|
3993 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
---|
3994 | break |
---|
3995 | fi |
---|
3996 | fi |
---|
3997 | done |
---|
3998 | IFS="$ac_save_ifs" |
---|
3999 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" |
---|
4000 | ;; |
---|
4001 | esac |
---|
4002 | fi |
---|
4003 | GMSGFMT="$ac_cv_path_GMSGFMT" |
---|
4004 | if test -n "$GMSGFMT"; then |
---|
4005 | echo "$ac_t""$GMSGFMT" 1>&6 |
---|
4006 | else |
---|
4007 | echo "$ac_t""no" 1>&6 |
---|
4008 | fi |
---|
4009 | |
---|
4010 | fi |
---|
4011 | # Extract the first word of "xgettext", so it can be a program name with args. |
---|
4012 | set dummy xgettext; ac_word=$2 |
---|
4013 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
4014 | echo "configure:4015: checking for $ac_word" >&5 |
---|
4015 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
---|
4016 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4017 | else |
---|
4018 | case "$XGETTEXT" in |
---|
4019 | /*) |
---|
4020 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
---|
4021 | ;; |
---|
4022 | *) |
---|
4023 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
4024 | for ac_dir in $PATH; do |
---|
4025 | test -z "$ac_dir" && ac_dir=. |
---|
4026 | if test -f $ac_dir/$ac_word; then |
---|
4027 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then |
---|
4028 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
---|
4029 | break |
---|
4030 | fi |
---|
4031 | fi |
---|
4032 | done |
---|
4033 | IFS="$ac_save_ifs" |
---|
4034 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
---|
4035 | ;; |
---|
4036 | esac |
---|
4037 | fi |
---|
4038 | XGETTEXT="$ac_cv_path_XGETTEXT" |
---|
4039 | if test -n "$XGETTEXT"; then |
---|
4040 | echo "$ac_t""$XGETTEXT" 1>&6 |
---|
4041 | else |
---|
4042 | echo "$ac_t""no" 1>&6 |
---|
4043 | fi |
---|
4044 | |
---|
4045 | USE_INCLUDED_LIBINTL=yes |
---|
4046 | CATOBJEXT=.cat |
---|
4047 | INSTOBJEXT=.cat |
---|
4048 | DATADIRNAME=lib |
---|
4049 | INTLDEPS="../intl/libintl.a" |
---|
4050 | INTLLIBS=$INTLDEPS |
---|
4051 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` |
---|
4052 | nls_cv_header_intl=intl/libintl.h |
---|
4053 | nls_cv_header_libgt=intl/libgettext.h |
---|
4054 | fi |
---|
4055 | else |
---|
4056 | echo "$ac_t""no" 1>&6 |
---|
4057 | fi |
---|
4058 | |
---|
4059 | fi |
---|
4060 | fi |
---|
4061 | |
---|
4062 | if test "$CATOBJEXT" = "NONE"; then |
---|
4063 | nls_cv_use_gnu_gettext=yes |
---|
4064 | fi |
---|
4065 | fi |
---|
4066 | |
---|
4067 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
---|
4068 | INTLOBJS="\$(GETTOBJS)" |
---|
4069 | # Extract the first word of "msgfmt", so it can be a program name with args. |
---|
4070 | set dummy msgfmt; ac_word=$2 |
---|
4071 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
4072 | echo "configure:4073: checking for $ac_word" >&5 |
---|
4073 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
---|
4074 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4075 | else |
---|
4076 | case "$MSGFMT" in |
---|
4077 | /*) |
---|
4078 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
---|
4079 | ;; |
---|
4080 | *) |
---|
4081 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
4082 | for ac_dir in $PATH; do |
---|
4083 | test -z "$ac_dir" && ac_dir=. |
---|
4084 | if test -f $ac_dir/$ac_word; then |
---|
4085 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then |
---|
4086 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
---|
4087 | break |
---|
4088 | fi |
---|
4089 | fi |
---|
4090 | done |
---|
4091 | IFS="$ac_save_ifs" |
---|
4092 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" |
---|
4093 | ;; |
---|
4094 | esac |
---|
4095 | fi |
---|
4096 | MSGFMT="$ac_cv_path_MSGFMT" |
---|
4097 | if test -n "$MSGFMT"; then |
---|
4098 | echo "$ac_t""$MSGFMT" 1>&6 |
---|
4099 | else |
---|
4100 | echo "$ac_t""no" 1>&6 |
---|
4101 | fi |
---|
4102 | |
---|
4103 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
---|
4104 | set dummy gmsgfmt; ac_word=$2 |
---|
4105 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
4106 | echo "configure:4107: checking for $ac_word" >&5 |
---|
4107 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
---|
4108 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4109 | else |
---|
4110 | case "$GMSGFMT" in |
---|
4111 | /*) |
---|
4112 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
---|
4113 | ;; |
---|
4114 | ?:/*) |
---|
4115 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
---|
4116 | ;; |
---|
4117 | *) |
---|
4118 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
4119 | ac_dummy="$PATH" |
---|
4120 | for ac_dir in $ac_dummy; do |
---|
4121 | test -z "$ac_dir" && ac_dir=. |
---|
4122 | if test -f $ac_dir/$ac_word; then |
---|
4123 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
---|
4124 | break |
---|
4125 | fi |
---|
4126 | done |
---|
4127 | IFS="$ac_save_ifs" |
---|
4128 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
---|
4129 | ;; |
---|
4130 | esac |
---|
4131 | fi |
---|
4132 | GMSGFMT="$ac_cv_path_GMSGFMT" |
---|
4133 | if test -n "$GMSGFMT"; then |
---|
4134 | echo "$ac_t""$GMSGFMT" 1>&6 |
---|
4135 | else |
---|
4136 | echo "$ac_t""no" 1>&6 |
---|
4137 | fi |
---|
4138 | |
---|
4139 | # Extract the first word of "xgettext", so it can be a program name with args. |
---|
4140 | set dummy xgettext; ac_word=$2 |
---|
4141 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
4142 | echo "configure:4143: checking for $ac_word" >&5 |
---|
4143 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
---|
4144 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4145 | else |
---|
4146 | case "$XGETTEXT" in |
---|
4147 | /*) |
---|
4148 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
---|
4149 | ;; |
---|
4150 | *) |
---|
4151 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
4152 | for ac_dir in $PATH; do |
---|
4153 | test -z "$ac_dir" && ac_dir=. |
---|
4154 | if test -f $ac_dir/$ac_word; then |
---|
4155 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then |
---|
4156 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
---|
4157 | break |
---|
4158 | fi |
---|
4159 | fi |
---|
4160 | done |
---|
4161 | IFS="$ac_save_ifs" |
---|
4162 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
---|
4163 | ;; |
---|
4164 | esac |
---|
4165 | fi |
---|
4166 | XGETTEXT="$ac_cv_path_XGETTEXT" |
---|
4167 | if test -n "$XGETTEXT"; then |
---|
4168 | echo "$ac_t""$XGETTEXT" 1>&6 |
---|
4169 | else |
---|
4170 | echo "$ac_t""no" 1>&6 |
---|
4171 | fi |
---|
4172 | |
---|
4173 | |
---|
4174 | USE_INCLUDED_LIBINTL=yes |
---|
4175 | CATOBJEXT=.gmo |
---|
4176 | INSTOBJEXT=.mo |
---|
4177 | DATADIRNAME=share |
---|
4178 | INTLDEPS="../intl/libintl.a" |
---|
4179 | INTLLIBS=$INTLDEPS |
---|
4180 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` |
---|
4181 | nls_cv_header_intl=intl/libintl.h |
---|
4182 | nls_cv_header_libgt=intl/libgettext.h |
---|
4183 | fi |
---|
4184 | |
---|
4185 | if test "$XGETTEXT" != ":"; then |
---|
4186 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then |
---|
4187 | : ; |
---|
4188 | else |
---|
4189 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 |
---|
4190 | XGETTEXT=":" |
---|
4191 | fi |
---|
4192 | fi |
---|
4193 | |
---|
4194 | # We need to process the po/ directory. |
---|
4195 | POSUB=po |
---|
4196 | else |
---|
4197 | DATADIRNAME=share |
---|
4198 | nls_cv_header_intl=intl/libintl.h |
---|
4199 | nls_cv_header_libgt=intl/libgettext.h |
---|
4200 | fi |
---|
4201 | |
---|
4202 | # If this is used in GNU gettext we have to set USE_NLS to `yes' |
---|
4203 | # because some of the sources are only built for this goal. |
---|
4204 | if test "$PACKAGE" = gettext; then |
---|
4205 | USE_NLS=yes |
---|
4206 | USE_INCLUDED_LIBINTL=yes |
---|
4207 | fi |
---|
4208 | |
---|
4209 | for lang in $ALL_LINGUAS; do |
---|
4210 | GMOFILES="$GMOFILES $lang.gmo" |
---|
4211 | POFILES="$POFILES $lang.po" |
---|
4212 | done |
---|
4213 | |
---|
4214 | |
---|
4215 | |
---|
4216 | |
---|
4217 | |
---|
4218 | |
---|
4219 | |
---|
4220 | |
---|
4221 | |
---|
4222 | |
---|
4223 | |
---|
4224 | |
---|
4225 | |
---|
4226 | |
---|
4227 | if test "x$CATOBJEXT" != "x"; then |
---|
4228 | if test "x$ALL_LINGUAS" = "x"; then |
---|
4229 | LINGUAS= |
---|
4230 | else |
---|
4231 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 |
---|
4232 | echo "configure:4233: checking for catalogs to be installed" >&5 |
---|
4233 | NEW_LINGUAS= |
---|
4234 | for lang in ${LINGUAS=$ALL_LINGUAS}; do |
---|
4235 | case "$ALL_LINGUAS" in |
---|
4236 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; |
---|
4237 | esac |
---|
4238 | done |
---|
4239 | LINGUAS=$NEW_LINGUAS |
---|
4240 | echo "$ac_t""$LINGUAS" 1>&6 |
---|
4241 | fi |
---|
4242 | |
---|
4243 | if test -n "$LINGUAS"; then |
---|
4244 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done |
---|
4245 | fi |
---|
4246 | fi |
---|
4247 | |
---|
4248 | test -d intl || mkdir intl |
---|
4249 | if test "$CATOBJEXT" = ".cat"; then |
---|
4250 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` |
---|
4251 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 |
---|
4252 | echo "configure:4253: checking for linux/version.h" >&5 |
---|
4253 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
4254 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4255 | else |
---|
4256 | cat > conftest.$ac_ext <<EOF |
---|
4257 | #line 4258 "configure" |
---|
4258 | #include "confdefs.h" |
---|
4259 | #include <linux/version.h> |
---|
4260 | EOF |
---|
4261 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
4262 | { (eval echo configure:4263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
4263 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
4264 | if test -z "$ac_err"; then |
---|
4265 | rm -rf conftest* |
---|
4266 | eval "ac_cv_header_$ac_safe=yes" |
---|
4267 | else |
---|
4268 | echo "$ac_err" >&5 |
---|
4269 | echo "configure: failed program was:" >&5 |
---|
4270 | cat conftest.$ac_ext >&5 |
---|
4271 | rm -rf conftest* |
---|
4272 | eval "ac_cv_header_$ac_safe=no" |
---|
4273 | fi |
---|
4274 | rm -f conftest* |
---|
4275 | fi |
---|
4276 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
4277 | echo "$ac_t""yes" 1>&6 |
---|
4278 | msgformat=linux |
---|
4279 | else |
---|
4280 | echo "$ac_t""no" 1>&6 |
---|
4281 | msgformat=xopen |
---|
4282 | fi |
---|
4283 | |
---|
4284 | |
---|
4285 | sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed |
---|
4286 | fi |
---|
4287 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ |
---|
4288 | $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed |
---|
4289 | |
---|
4290 | if test "$PACKAGE" = "gettext"; then |
---|
4291 | GT_NO="#NO#" |
---|
4292 | GT_YES= |
---|
4293 | else |
---|
4294 | GT_NO= |
---|
4295 | GT_YES="#YES#" |
---|
4296 | fi |
---|
4297 | |
---|
4298 | |
---|
4299 | |
---|
4300 | MKINSTALLDIRS= |
---|
4301 | if test $ac_aux_dir; then |
---|
4302 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
---|
4303 | fi |
---|
4304 | if test -z $MKINSTALLDIRS; then |
---|
4305 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
---|
4306 | fi |
---|
4307 | |
---|
4308 | |
---|
4309 | l= |
---|
4310 | |
---|
4311 | |
---|
4312 | test -d po || mkdir po |
---|
4313 | if test "x$srcdir" != "x."; then |
---|
4314 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then |
---|
4315 | posrcprefix="$srcdir/" |
---|
4316 | else |
---|
4317 | posrcprefix="../$srcdir/" |
---|
4318 | fi |
---|
4319 | else |
---|
4320 | posrcprefix="../" |
---|
4321 | fi |
---|
4322 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ |
---|
4323 | < $srcdir/po/POTFILES.in > po/POTFILES |
---|
4324 | |
---|
4325 | |
---|
4326 | |
---|
4327 | cat >> confdefs.h <<EOF |
---|
4328 | #define PATH_SEPARATOR ':' |
---|
4329 | EOF |
---|
4330 | |
---|
4331 | |
---|
4332 | |
---|
4333 | |
---|
4334 | # Extract the first word of "perl", so it can be a program name with args. |
---|
4335 | set dummy perl; ac_word=$2 |
---|
4336 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
4337 | echo "configure:4338: checking for $ac_word" >&5 |
---|
4338 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then |
---|
4339 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4340 | else |
---|
4341 | case "$PERL" in |
---|
4342 | /*) |
---|
4343 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
---|
4344 | ;; |
---|
4345 | ?:/*) |
---|
4346 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. |
---|
4347 | ;; |
---|
4348 | *) |
---|
4349 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
4350 | ac_dummy="$PATH" |
---|
4351 | for ac_dir in $ac_dummy; do |
---|
4352 | test -z "$ac_dir" && ac_dir=. |
---|
4353 | if test -f $ac_dir/$ac_word; then |
---|
4354 | ac_cv_path_PERL="$ac_dir/$ac_word" |
---|
4355 | break |
---|
4356 | fi |
---|
4357 | done |
---|
4358 | IFS="$ac_save_ifs" |
---|
4359 | ;; |
---|
4360 | esac |
---|
4361 | fi |
---|
4362 | PERL="$ac_cv_path_PERL" |
---|
4363 | if test -n "$PERL"; then |
---|
4364 | echo "$ac_t""$PERL" 1>&6 |
---|
4365 | else |
---|
4366 | echo "$ac_t""no" 1>&6 |
---|
4367 | fi |
---|
4368 | |
---|
4369 | |
---|
4370 | |
---|
4371 | |
---|
4372 | |
---|
4373 | |
---|
4374 | |
---|
4375 | trap '' 1 2 15 |
---|
4376 | cat > confcache <<\EOF |
---|
4377 | # This file is a shell script that caches the results of configure |
---|
4378 | # tests run on this system so they can be shared between configure |
---|
4379 | # scripts and configure runs. It is not useful on other systems. |
---|
4380 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
4381 | # |
---|
4382 | # By default, configure uses ./config.cache as the cache file, |
---|
4383 | # creating it if it does not exist already. You can give configure |
---|
4384 | # the --cache-file=FILE option to use a different cache file; that is |
---|
4385 | # what configure does when it calls configure scripts in |
---|
4386 | # subdirectories, so they share the cache. |
---|
4387 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
4388 | # config.status only pays attention to the cache file if you give it the |
---|
4389 | # --recheck option to rerun configure. |
---|
4390 | # |
---|
4391 | EOF |
---|
4392 | # The following way of writing the cache mishandles newlines in values, |
---|
4393 | # but we know of no workaround that is simple, portable, and efficient. |
---|
4394 | # So, don't put newlines in cache variables' values. |
---|
4395 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
4396 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
4397 | (set) 2>&1 | |
---|
4398 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
4399 | *ac_space=\ *) |
---|
4400 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
4401 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
4402 | sed -n \ |
---|
4403 | -e "s/'/'\\\\''/g" \ |
---|
4404 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
4405 | ;; |
---|
4406 | *) |
---|
4407 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
4408 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
4409 | ;; |
---|
4410 | esac >> confcache |
---|
4411 | if cmp -s $cache_file confcache; then |
---|
4412 | : |
---|
4413 | else |
---|
4414 | if test -w $cache_file; then |
---|
4415 | echo "updating cache $cache_file" |
---|
4416 | cat confcache > $cache_file |
---|
4417 | else |
---|
4418 | echo "not updating unwritable cache $cache_file" |
---|
4419 | fi |
---|
4420 | fi |
---|
4421 | rm -f confcache |
---|
4422 | |
---|
4423 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
4424 | |
---|
4425 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
4426 | # Let make expand exec_prefix. |
---|
4427 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
4428 | |
---|
4429 | # Any assignment to VPATH causes Sun make to only execute |
---|
4430 | # the first set of double-colon rules, so remove it if not needed. |
---|
4431 | # If there is a colon in the path, we need to keep it. |
---|
4432 | if test "x$srcdir" = x.; then |
---|
4433 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
4434 | fi |
---|
4435 | |
---|
4436 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
4437 | |
---|
4438 | DEFS=-DHAVE_CONFIG_H |
---|
4439 | |
---|
4440 | # Without the "./", some shells look in PATH for config.status. |
---|
4441 | : ${CONFIG_STATUS=./config.status} |
---|
4442 | |
---|
4443 | echo creating $CONFIG_STATUS |
---|
4444 | rm -f $CONFIG_STATUS |
---|
4445 | cat > $CONFIG_STATUS <<EOF |
---|
4446 | #! /bin/sh |
---|
4447 | # Generated automatically by configure. |
---|
4448 | # Run this file to recreate the current configuration. |
---|
4449 | # This directory was configured as follows, |
---|
4450 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
4451 | # |
---|
4452 | # $0 $ac_configure_args |
---|
4453 | # |
---|
4454 | # Compiler output produced by configure, useful for debugging |
---|
4455 | # configure, is in ./config.log if it exists. |
---|
4456 | |
---|
4457 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
4458 | for ac_option |
---|
4459 | do |
---|
4460 | case "\$ac_option" in |
---|
4461 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
4462 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
4463 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
4464 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
4465 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
4466 | exit 0 ;; |
---|
4467 | -help | --help | --hel | --he | --h) |
---|
4468 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
4469 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
4470 | esac |
---|
4471 | done |
---|
4472 | |
---|
4473 | ac_given_srcdir=$srcdir |
---|
4474 | ac_given_INSTALL="$INSTALL" |
---|
4475 | |
---|
4476 | trap 'rm -fr `echo "Makefile enscript.1 compat/Makefile afm/Makefile afmlib/Makefile src/Makefile lib/Makefile scripts/Makefile intl/Makefile po/Makefile.in states/Makefile states/states.1 states/tests/Makefile tests/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
4477 | EOF |
---|
4478 | cat >> $CONFIG_STATUS <<EOF |
---|
4479 | |
---|
4480 | # Protect against being on the right side of a sed subst in config.status. |
---|
4481 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
4482 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
4483 | $ac_vpsub |
---|
4484 | $extrasub |
---|
4485 | s%@SHELL@%$SHELL%g |
---|
4486 | s%@CFLAGS@%$CFLAGS%g |
---|
4487 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
4488 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
4489 | s%@FFLAGS@%$FFLAGS%g |
---|
4490 | s%@DEFS@%$DEFS%g |
---|
4491 | s%@LDFLAGS@%$LDFLAGS%g |
---|
4492 | s%@LIBS@%$LIBS%g |
---|
4493 | s%@exec_prefix@%$exec_prefix%g |
---|
4494 | s%@prefix@%$prefix%g |
---|
4495 | s%@program_transform_name@%$program_transform_name%g |
---|
4496 | s%@bindir@%$bindir%g |
---|
4497 | s%@sbindir@%$sbindir%g |
---|
4498 | s%@libexecdir@%$libexecdir%g |
---|
4499 | s%@datadir@%$datadir%g |
---|
4500 | s%@sysconfdir@%$sysconfdir%g |
---|
4501 | s%@sharedstatedir@%$sharedstatedir%g |
---|
4502 | s%@localstatedir@%$localstatedir%g |
---|
4503 | s%@libdir@%$libdir%g |
---|
4504 | s%@includedir@%$includedir%g |
---|
4505 | s%@oldincludedir@%$oldincludedir%g |
---|
4506 | s%@infodir@%$infodir%g |
---|
4507 | s%@mandir@%$mandir%g |
---|
4508 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
4509 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
4510 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
4511 | s%@PACKAGE@%$PACKAGE%g |
---|
4512 | s%@VERSION@%$VERSION%g |
---|
4513 | s%@ACLOCAL@%$ACLOCAL%g |
---|
4514 | s%@AUTOCONF@%$AUTOCONF%g |
---|
4515 | s%@AUTOMAKE@%$AUTOMAKE%g |
---|
4516 | s%@AUTOHEADER@%$AUTOHEADER%g |
---|
4517 | s%@MAKEINFO@%$MAKEINFO%g |
---|
4518 | s%@SET_MAKE@%$SET_MAKE%g |
---|
4519 | s%@CC@%$CC%g |
---|
4520 | s%@CPP@%$CPP%g |
---|
4521 | s%@U@%$U%g |
---|
4522 | s%@ANSI2KNR@%$ANSI2KNR%g |
---|
4523 | s%@ALLOCA@%$ALLOCA%g |
---|
4524 | s%@RANLIB@%$RANLIB%g |
---|
4525 | s%@YACC@%$YACC%g |
---|
4526 | s%@LEX@%$LEX%g |
---|
4527 | s%@LEXLIB@%$LEXLIB%g |
---|
4528 | s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g |
---|
4529 | s%@MEDIA@%$MEDIA%g |
---|
4530 | s%@SPOOLER@%$SPOOLER%g |
---|
4531 | s%@PSLEVEL@%$PSLEVEL%g |
---|
4532 | s%@USE_NLS@%$USE_NLS%g |
---|
4533 | s%@MSGFMT@%$MSGFMT%g |
---|
4534 | s%@GMSGFMT@%$GMSGFMT%g |
---|
4535 | s%@XGETTEXT@%$XGETTEXT%g |
---|
4536 | s%@GENCAT@%$GENCAT%g |
---|
4537 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g |
---|
4538 | s%@CATALOGS@%$CATALOGS%g |
---|
4539 | s%@CATOBJEXT@%$CATOBJEXT%g |
---|
4540 | s%@DATADIRNAME@%$DATADIRNAME%g |
---|
4541 | s%@GMOFILES@%$GMOFILES%g |
---|
4542 | s%@INSTOBJEXT@%$INSTOBJEXT%g |
---|
4543 | s%@INTLDEPS@%$INTLDEPS%g |
---|
4544 | s%@INTLLIBS@%$INTLLIBS%g |
---|
4545 | s%@INTLOBJS@%$INTLOBJS%g |
---|
4546 | s%@POFILES@%$POFILES%g |
---|
4547 | s%@POSUB@%$POSUB%g |
---|
4548 | s%@GT_NO@%$GT_NO%g |
---|
4549 | s%@GT_YES@%$GT_YES%g |
---|
4550 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g |
---|
4551 | s%@l@%$l%g |
---|
4552 | s%@PERL@%$PERL%g |
---|
4553 | s%@LIBOBJS@%$LIBOBJS%g |
---|
4554 | |
---|
4555 | CEOF |
---|
4556 | EOF |
---|
4557 | |
---|
4558 | cat >> $CONFIG_STATUS <<\EOF |
---|
4559 | |
---|
4560 | # Split the substitutions into bite-sized pieces for seds with |
---|
4561 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
4562 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
4563 | ac_file=1 # Number of current file. |
---|
4564 | ac_beg=1 # First line for current file. |
---|
4565 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
4566 | ac_more_lines=: |
---|
4567 | ac_sed_cmds="" |
---|
4568 | while $ac_more_lines; do |
---|
4569 | if test $ac_beg -gt 1; then |
---|
4570 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
4571 | else |
---|
4572 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
4573 | fi |
---|
4574 | if test ! -s conftest.s$ac_file; then |
---|
4575 | ac_more_lines=false |
---|
4576 | rm -f conftest.s$ac_file |
---|
4577 | else |
---|
4578 | if test -z "$ac_sed_cmds"; then |
---|
4579 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
4580 | else |
---|
4581 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
4582 | fi |
---|
4583 | ac_file=`expr $ac_file + 1` |
---|
4584 | ac_beg=$ac_end |
---|
4585 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
4586 | fi |
---|
4587 | done |
---|
4588 | if test -z "$ac_sed_cmds"; then |
---|
4589 | ac_sed_cmds=cat |
---|
4590 | fi |
---|
4591 | EOF |
---|
4592 | |
---|
4593 | cat >> $CONFIG_STATUS <<EOF |
---|
4594 | |
---|
4595 | CONFIG_FILES=\${CONFIG_FILES-"Makefile enscript.1 compat/Makefile afm/Makefile afmlib/Makefile src/Makefile lib/Makefile scripts/Makefile intl/Makefile po/Makefile.in states/Makefile states/states.1 states/tests/Makefile tests/Makefile"} |
---|
4596 | EOF |
---|
4597 | cat >> $CONFIG_STATUS <<\EOF |
---|
4598 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
4599 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
4600 | case "$ac_file" in |
---|
4601 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
4602 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
4603 | *) ac_file_in="${ac_file}.in" ;; |
---|
4604 | esac |
---|
4605 | |
---|
4606 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
4607 | |
---|
4608 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
4609 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
4610 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
4611 | # The file is in a subdirectory. |
---|
4612 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
4613 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
4614 | # A "../" for each directory in $ac_dir_suffix. |
---|
4615 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
4616 | else |
---|
4617 | ac_dir_suffix= ac_dots= |
---|
4618 | fi |
---|
4619 | |
---|
4620 | case "$ac_given_srcdir" in |
---|
4621 | .) srcdir=. |
---|
4622 | if test -z "$ac_dots"; then top_srcdir=. |
---|
4623 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
4624 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
4625 | *) # Relative path. |
---|
4626 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
4627 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
4628 | esac |
---|
4629 | |
---|
4630 | case "$ac_given_INSTALL" in |
---|
4631 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
4632 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
4633 | esac |
---|
4634 | |
---|
4635 | echo creating "$ac_file" |
---|
4636 | rm -f "$ac_file" |
---|
4637 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
4638 | case "$ac_file" in |
---|
4639 | *Makefile*) ac_comsub="1i\\ |
---|
4640 | # $configure_input" ;; |
---|
4641 | *) ac_comsub= ;; |
---|
4642 | esac |
---|
4643 | |
---|
4644 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
4645 | sed -e "$ac_comsub |
---|
4646 | s%@configure_input@%$configure_input%g |
---|
4647 | s%@srcdir@%$srcdir%g |
---|
4648 | s%@top_srcdir@%$top_srcdir%g |
---|
4649 | s%@INSTALL@%$INSTALL%g |
---|
4650 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
4651 | fi; done |
---|
4652 | rm -f conftest.s* |
---|
4653 | |
---|
4654 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
4655 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
4656 | # |
---|
4657 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
4658 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
4659 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
---|
4660 | ac_dC='\3' |
---|
4661 | ac_dD='%g' |
---|
4662 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
---|
4663 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
4664 | ac_uB='\([ ]\)%\1#\2define\3' |
---|
4665 | ac_uC=' ' |
---|
4666 | ac_uD='\4%g' |
---|
4667 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
4668 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
4669 | ac_eB='$%\1#\2define\3' |
---|
4670 | ac_eC=' ' |
---|
4671 | ac_eD='%g' |
---|
4672 | |
---|
4673 | if test "${CONFIG_HEADERS+set}" != set; then |
---|
4674 | EOF |
---|
4675 | cat >> $CONFIG_STATUS <<EOF |
---|
4676 | CONFIG_HEADERS="config.h" |
---|
4677 | EOF |
---|
4678 | cat >> $CONFIG_STATUS <<\EOF |
---|
4679 | fi |
---|
4680 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
---|
4681 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
4682 | case "$ac_file" in |
---|
4683 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
4684 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
4685 | *) ac_file_in="${ac_file}.in" ;; |
---|
4686 | esac |
---|
4687 | |
---|
4688 | echo creating $ac_file |
---|
4689 | |
---|
4690 | rm -f conftest.frag conftest.in conftest.out |
---|
4691 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
4692 | cat $ac_file_inputs > conftest.in |
---|
4693 | |
---|
4694 | EOF |
---|
4695 | |
---|
4696 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
---|
4697 | # the proper values into config.h.in to produce config.h. And first: |
---|
4698 | # Protect against being on the right side of a sed subst in config.status. |
---|
4699 | # Protect against being in an unquoted here document in config.status. |
---|
4700 | rm -f conftest.vals |
---|
4701 | cat > conftest.hdr <<\EOF |
---|
4702 | s/[\\&%]/\\&/g |
---|
4703 | s%[\\$`]%\\&%g |
---|
4704 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
---|
4705 | s%ac_d%ac_u%gp |
---|
4706 | s%ac_u%ac_e%gp |
---|
4707 | EOF |
---|
4708 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
---|
4709 | rm -f conftest.hdr |
---|
4710 | |
---|
4711 | # This sed command replaces #undef with comments. This is necessary, for |
---|
4712 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
4713 | # on some systems where configure will not decide to define it. |
---|
4714 | cat >> conftest.vals <<\EOF |
---|
4715 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
---|
4716 | EOF |
---|
4717 | |
---|
4718 | # Break up conftest.vals because some shells have a limit on |
---|
4719 | # the size of here documents, and old seds have small limits too. |
---|
4720 | |
---|
4721 | rm -f conftest.tail |
---|
4722 | while : |
---|
4723 | do |
---|
4724 | ac_lines=`grep -c . conftest.vals` |
---|
4725 | # grep -c gives empty output for an empty file on some AIX systems. |
---|
4726 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
---|
4727 | # Write a limited-size here document to conftest.frag. |
---|
4728 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
---|
4729 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
---|
4730 | echo 'CEOF |
---|
4731 | sed -f conftest.frag conftest.in > conftest.out |
---|
4732 | rm -f conftest.in |
---|
4733 | mv conftest.out conftest.in |
---|
4734 | ' >> $CONFIG_STATUS |
---|
4735 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
---|
4736 | rm -f conftest.vals |
---|
4737 | mv conftest.tail conftest.vals |
---|
4738 | done |
---|
4739 | rm -f conftest.vals |
---|
4740 | |
---|
4741 | cat >> $CONFIG_STATUS <<\EOF |
---|
4742 | rm -f conftest.frag conftest.h |
---|
4743 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
---|
4744 | cat conftest.in >> conftest.h |
---|
4745 | rm -f conftest.in |
---|
4746 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
---|
4747 | echo "$ac_file is unchanged" |
---|
4748 | rm -f conftest.h |
---|
4749 | else |
---|
4750 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
4751 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
4752 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
4753 | # The file is in a subdirectory. |
---|
4754 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
4755 | fi |
---|
4756 | rm -f $ac_file |
---|
4757 | mv conftest.h $ac_file |
---|
4758 | fi |
---|
4759 | fi; done |
---|
4760 | |
---|
4761 | EOF |
---|
4762 | |
---|
4763 | cat >> $CONFIG_STATUS <<EOF |
---|
4764 | ac_sources="$nls_cv_header_libgt" |
---|
4765 | ac_dests="$nls_cv_header_intl" |
---|
4766 | EOF |
---|
4767 | |
---|
4768 | cat >> $CONFIG_STATUS <<\EOF |
---|
4769 | srcdir=$ac_given_srcdir |
---|
4770 | while test -n "$ac_sources"; do |
---|
4771 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* |
---|
4772 | set $ac_sources; ac_source=$1; shift; ac_sources=$* |
---|
4773 | |
---|
4774 | echo "linking $srcdir/$ac_source to $ac_dest" |
---|
4775 | |
---|
4776 | if test ! -r $srcdir/$ac_source; then |
---|
4777 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } |
---|
4778 | fi |
---|
4779 | rm -f $ac_dest |
---|
4780 | |
---|
4781 | # Make relative symlinks. |
---|
4782 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
4783 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` |
---|
4784 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then |
---|
4785 | # The dest file is in a subdirectory. |
---|
4786 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" |
---|
4787 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" |
---|
4788 | # A "../" for each directory in $ac_dest_dir_suffix. |
---|
4789 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
4790 | else |
---|
4791 | ac_dest_dir_suffix= ac_dots= |
---|
4792 | fi |
---|
4793 | |
---|
4794 | case "$srcdir" in |
---|
4795 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; |
---|
4796 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; |
---|
4797 | esac |
---|
4798 | |
---|
4799 | # Make a symlink if possible; otherwise try a hard link. |
---|
4800 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || |
---|
4801 | ln $srcdir/$ac_source $ac_dest; then : |
---|
4802 | else |
---|
4803 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } |
---|
4804 | fi |
---|
4805 | done |
---|
4806 | EOF |
---|
4807 | cat >> $CONFIG_STATUS <<EOF |
---|
4808 | |
---|
4809 | |
---|
4810 | EOF |
---|
4811 | cat >> $CONFIG_STATUS <<\EOF |
---|
4812 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h |
---|
4813 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in >po/Makefile |
---|
4814 | exit 0 |
---|
4815 | EOF |
---|
4816 | chmod +x $CONFIG_STATUS |
---|
4817 | rm -fr confdefs* $ac_clean_files |
---|
4818 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
4819 | |
---|
4820 | |
---|
4821 | echo "" |
---|
4822 | |
---|
4823 | echo "Enscript is now configured to your system with the following" |
---|
4824 | echo "user-definable options. Please, check that they are correct and" |
---|
4825 | echo "match to your system's properties." |
---|
4826 | echo "" |
---|
4827 | echo "Option Change with configure's option Current value" |
---|
4828 | echo "---------------------------------------------------------" |
---|
4829 | echo "Media --with-media=MEDIA $MEDIA" |
---|
4830 | echo "Spooler --with-spooler=SPOOLER $SPOOLER" |
---|
4831 | echo "PS level --with-ps-level=LEVEL $PSLEVEL" |
---|
4832 | echo "" |
---|