]>
Commit | Line | Data |
---|---|---|
50e1e10f TT |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
a4bf69d9 | 4 | # Generated automatically using autoconf version 2.13 |
21c84b71 | 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
50e1e10f TT |
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: | |
d21ae6c5 TT |
14 | ac_help="$ac_help |
15 | --with-diet-libc Use diet libc" | |
74becf3c TT |
16 | ac_help="$ac_help |
17 | --with-cc=COMPILER select compiler to use" | |
18 | ac_help="$ac_help | |
19 | --with-linker=LINKER select linker to use" | |
20 | ac_help="$ac_help | |
21 | --with-ccopts=CCOPTS select compiler command line options" | |
22 | ac_help="$ac_help | |
23 | --with-ldopts=LDOPTS select linker command line options" | |
fc6d9d51 | 24 | ac_help="$ac_help |
a4b2d3ce | 25 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root" |
1917875f TT |
26 | ac_help="$ac_help |
27 | --enable-compression enable EXPERIMENTAL compression support" | |
8fdc9985 TT |
28 | ac_help="$ac_help |
29 | --enable-htree enable EXPERIMENTAL htree directory support" | |
30 | ac_help="$ac_help | |
31 | --enable-htree-clear clear htree because we don't trust e2fsck" | |
d21ae6c5 TT |
32 | ac_help="$ac_help |
33 | --disable-evms don't build EVMS plugin" | |
ff6dbcca | 34 | ac_help="$ac_help |
a9d799a0 TT |
35 | --enable-evms-10 use EVMS 1.0 ABI (instead of EVMS 1.2)" |
36 | ac_help="$ac_help | |
37 | --enable-evms-11 use EVMS 1.1 ABI (instead of EVMS 1.1)" | |
50e1e10f | 38 | ac_help="$ac_help |
a4d09610 | 39 | --enable-dll-shlibs select DLL libraries" |
50e1e10f | 40 | ac_help="$ac_help |
a4d09610 | 41 | --enable-elf-shlibs select ELF shared libraries" |
50e1e10f | 42 | ac_help="$ac_help |
a4d09610 | 43 | --enable-bsd-shlibs select BSD shared libraries" |
80bfaa3e | 44 | ac_help="$ac_help |
cdf186e4 | 45 | --enable-profile build profiling libraries" |
877eb6d9 | 46 | ac_help="$ac_help |
cdf186e4 | 47 | --enable-checker build checker libraries" |
a64c9c13 | 48 | ac_help="$ac_help |
782bebfd | 49 | --enable-jbd-debug enable journal debugging" |
f0a22d0f | 50 | ac_help="$ac_help |
d21ae6c5 | 51 | --enable-blkid-debug enable blkid debugging" |
a64c9c13 | 52 | ac_help="$ac_help |
cdf186e4 | 53 | --disable-swapfs disable support of legacy byte-swapped filesystems" |
a64c9c13 | 54 | ac_help="$ac_help |
cdf186e4 | 55 | --disable-debugfs disable support of debugfs program" |
50e1e10f | 56 | ac_help="$ac_help |
cdf186e4 | 57 | --disable-imager disable support of e2image program" |
50e1e10f | 58 | ac_help="$ac_help |
cdf186e4 | 59 | --disable-resizer disable support of e2resize program" |
a4d09610 TT |
60 | ac_help="$ac_help |
61 | --enable-dynamic-e2fsck build e2fsck dynamically" | |
fc6d9d51 TT |
62 | ac_help="$ac_help |
63 | --enable-fsck build fsck wrapper program" | |
64 | ac_help="$ac_help | |
65 | --enable-old-bitops Use old (non-standard but native) bitmask operations" | |
cdf186e4 | 66 | ac_help="$ac_help |
a04eba3f TT |
67 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
68 | ac_help="$ac_help | |
69 | --disable-rpath do not hardcode runtime library paths" | |
70 | ac_help="$ac_help | |
71 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
72 | --without-libiconv-prefix don't search for libiconv in includedir and libdir" | |
73 | ac_help="$ac_help | |
74 | --disable-nls do not use Native Language Support" | |
cdf186e4 TT |
75 | ac_help="$ac_help |
76 | --with-included-gettext use the GNU gettext library included here" | |
77 | ac_help="$ac_help | |
a04eba3f TT |
78 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
79 | --without-libintl-prefix don't search for libintl in includedir and libdir" | |
50e1e10f TT |
80 | |
81 | # Initialize some variables set by options. | |
82 | # The variables have the same names as the options, with | |
83 | # dashes changed to underlines. | |
84 | build=NONE | |
85 | cache_file=./config.cache | |
86 | exec_prefix=NONE | |
87 | host=NONE | |
88 | no_create= | |
89 | nonopt=NONE | |
90 | no_recursion= | |
91 | prefix=NONE | |
92 | program_prefix=NONE | |
93 | program_suffix=NONE | |
94 | program_transform_name=s,x,x, | |
95 | silent= | |
96 | site= | |
97 | srcdir= | |
98 | target=NONE | |
99 | verbose= | |
100 | x_includes=NONE | |
101 | x_libraries=NONE | |
21c84b71 TT |
102 | bindir='${exec_prefix}/bin' |
103 | sbindir='${exec_prefix}/sbin' | |
104 | libexecdir='${exec_prefix}/libexec' | |
105 | datadir='${prefix}/share' | |
106 | sysconfdir='${prefix}/etc' | |
107 | sharedstatedir='${prefix}/com' | |
108 | localstatedir='${prefix}/var' | |
109 | libdir='${exec_prefix}/lib' | |
110 | includedir='${prefix}/include' | |
111 | oldincludedir='/usr/include' | |
112 | infodir='${prefix}/info' | |
113 | mandir='${prefix}/man' | |
50e1e10f TT |
114 | |
115 | # Initialize some other variables. | |
116 | subdirs= | |
21c84b71 | 117 | MFLAGS= MAKEFLAGS= |
a4bf69d9 | 118 | SHELL=${CONFIG_SHELL-/bin/sh} |
21c84b71 TT |
119 | # Maximum number of lines to put in a shell here document. |
120 | ac_max_here_lines=12 | |
50e1e10f TT |
121 | |
122 | ac_prev= | |
123 | for ac_option | |
124 | do | |
125 | ||
126 | # If the previous option needs an argument, assign it. | |
127 | if test -n "$ac_prev"; then | |
128 | eval "$ac_prev=\$ac_option" | |
129 | ac_prev= | |
130 | continue | |
131 | fi | |
132 | ||
133 | case "$ac_option" in | |
134 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
135 | *) ac_optarg= ;; | |
136 | esac | |
137 | ||
138 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
139 | ||
140 | case "$ac_option" in | |
141 | ||
21c84b71 TT |
142 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
143 | ac_prev=bindir ;; | |
144 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
145 | bindir="$ac_optarg" ;; | |
146 | ||
147 | -build | --build | --buil | --bui | --bu) | |
50e1e10f | 148 | ac_prev=build ;; |
21c84b71 | 149 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
50e1e10f TT |
150 | build="$ac_optarg" ;; |
151 | ||
152 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
153 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
154 | ac_prev=cache_file ;; | |
155 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
156 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
157 | cache_file="$ac_optarg" ;; | |
158 | ||
21c84b71 TT |
159 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
160 | ac_prev=datadir ;; | |
161 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
162 | | --da=*) | |
163 | datadir="$ac_optarg" ;; | |
164 | ||
50e1e10f TT |
165 | -disable-* | --disable-*) |
166 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
167 | # Reject names that are not valid shell variable names. | |
168 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
169 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
170 | fi | |
171 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
172 | eval "enable_${ac_feature}=no" ;; | |
173 | ||
174 | -enable-* | --enable-*) | |
175 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
176 | # Reject names that are not valid shell variable names. | |
177 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
178 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
179 | fi | |
180 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
181 | case "$ac_option" in | |
182 | *=*) ;; | |
183 | *) ac_optarg=yes ;; | |
184 | esac | |
185 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
186 | ||
187 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
188 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
189 | | --exec | --exe | --ex) | |
190 | ac_prev=exec_prefix ;; | |
191 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
192 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
193 | | --exec=* | --exe=* | --ex=*) | |
194 | exec_prefix="$ac_optarg" ;; | |
195 | ||
196 | -gas | --gas | --ga | --g) | |
197 | # Obsolete; use --with-gas. | |
198 | with_gas=yes ;; | |
199 | ||
200 | -help | --help | --hel | --he) | |
201 | # Omit some internal or obsolete options to make the list less imposing. | |
202 | # This message is too long to be a string in the A/UX 3.1 sh. | |
203 | cat << EOF | |
204 | Usage: configure [options] [host] | |
205 | Options: [defaults in brackets after descriptions] | |
206 | Configuration: | |
207 | --cache-file=FILE cache test results in FILE | |
208 | --help print this message | |
209 | --no-create do not create output files | |
210 | --quiet, --silent do not print \`checking...' messages | |
211 | --version print the version of autoconf that created configure | |
212 | Directory and file names: | |
213 | --prefix=PREFIX install architecture-independent files in PREFIX | |
214 | [$ac_default_prefix] | |
21c84b71 | 215 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
50e1e10f | 216 | [same as prefix] |
21c84b71 TT |
217 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
218 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
219 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
220 | --datadir=DIR read-only architecture-independent data in DIR | |
221 | [PREFIX/share] | |
222 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
223 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
224 | [PREFIX/com] | |
225 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
226 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
227 | --includedir=DIR C header files in DIR [PREFIX/include] | |
228 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
229 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
230 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
50e1e10f TT |
231 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
232 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
233 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
21c84b71 TT |
234 | --program-transform-name=PROGRAM |
235 | run sed PROGRAM on installed program names | |
236 | EOF | |
237 | cat << EOF | |
50e1e10f TT |
238 | Host type: |
239 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
240 | --host=HOST configure for HOST [guessed] | |
241 | --target=TARGET configure for TARGET [TARGET=HOST] | |
242 | Features and packages: | |
243 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
244 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
245 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
246 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
247 | --x-includes=DIR X include files are in DIR | |
248 | --x-libraries=DIR X library files are in DIR | |
50e1e10f | 249 | EOF |
21c84b71 TT |
250 | if test -n "$ac_help"; then |
251 | echo "--enable and --with options recognized:$ac_help" | |
252 | fi | |
50e1e10f TT |
253 | exit 0 ;; |
254 | ||
255 | -host | --host | --hos | --ho) | |
256 | ac_prev=host ;; | |
257 | -host=* | --host=* | --hos=* | --ho=*) | |
258 | host="$ac_optarg" ;; | |
259 | ||
21c84b71 TT |
260 | -includedir | --includedir | --includedi | --included | --include \ |
261 | | --includ | --inclu | --incl | --inc) | |
262 | ac_prev=includedir ;; | |
263 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
264 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
265 | includedir="$ac_optarg" ;; | |
266 | ||
267 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
268 | ac_prev=infodir ;; | |
269 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
270 | infodir="$ac_optarg" ;; | |
271 | ||
272 | -libdir | --libdir | --libdi | --libd) | |
273 | ac_prev=libdir ;; | |
274 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
275 | libdir="$ac_optarg" ;; | |
276 | ||
277 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
278 | | --libexe | --libex | --libe) | |
279 | ac_prev=libexecdir ;; | |
280 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
281 | | --libexe=* | --libex=* | --libe=*) | |
282 | libexecdir="$ac_optarg" ;; | |
283 | ||
284 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
285 | | --localstate | --localstat | --localsta | --localst \ | |
286 | | --locals | --local | --loca | --loc | --lo) | |
287 | ac_prev=localstatedir ;; | |
288 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
289 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
290 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
291 | localstatedir="$ac_optarg" ;; | |
292 | ||
293 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
294 | ac_prev=mandir ;; | |
295 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
296 | mandir="$ac_optarg" ;; | |
297 | ||
50e1e10f TT |
298 | -nfp | --nfp | --nf) |
299 | # Obsolete; use --without-fp. | |
300 | with_fp=no ;; | |
301 | ||
302 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
303 | | --no-cr | --no-c) | |
304 | no_create=yes ;; | |
305 | ||
306 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
307 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
308 | no_recursion=yes ;; | |
309 | ||
21c84b71 TT |
310 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
311 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
312 | | --oldin | --oldi | --old | --ol | --o) | |
313 | ac_prev=oldincludedir ;; | |
314 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
315 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
316 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
317 | oldincludedir="$ac_optarg" ;; | |
318 | ||
50e1e10f TT |
319 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
320 | ac_prev=prefix ;; | |
321 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
322 | prefix="$ac_optarg" ;; | |
323 | ||
324 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
325 | | --program-pre | --program-pr | --program-p) | |
326 | ac_prev=program_prefix ;; | |
327 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
328 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
329 | program_prefix="$ac_optarg" ;; | |
330 | ||
331 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
332 | | --program-suf | --program-su | --program-s) | |
333 | ac_prev=program_suffix ;; | |
334 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
335 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
336 | program_suffix="$ac_optarg" ;; | |
337 | ||
338 | -program-transform-name | --program-transform-name \ | |
339 | | --program-transform-nam | --program-transform-na \ | |
340 | | --program-transform-n | --program-transform- \ | |
341 | | --program-transform | --program-transfor \ | |
342 | | --program-transfo | --program-transf \ | |
343 | | --program-trans | --program-tran \ | |
344 | | --progr-tra | --program-tr | --program-t) | |
345 | ac_prev=program_transform_name ;; | |
346 | -program-transform-name=* | --program-transform-name=* \ | |
347 | | --program-transform-nam=* | --program-transform-na=* \ | |
348 | | --program-transform-n=* | --program-transform-=* \ | |
349 | | --program-transform=* | --program-transfor=* \ | |
350 | | --program-transfo=* | --program-transf=* \ | |
351 | | --program-trans=* | --program-tran=* \ | |
352 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
353 | program_transform_name="$ac_optarg" ;; | |
354 | ||
355 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
356 | | -silent | --silent | --silen | --sile | --sil) | |
357 | silent=yes ;; | |
358 | ||
21c84b71 TT |
359 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
360 | ac_prev=sbindir ;; | |
361 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
362 | | --sbi=* | --sb=*) | |
363 | sbindir="$ac_optarg" ;; | |
364 | ||
365 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
366 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
367 | | --sharedst | --shareds | --shared | --share | --shar \ | |
368 | | --sha | --sh) | |
369 | ac_prev=sharedstatedir ;; | |
370 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
371 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
372 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
373 | | --sha=* | --sh=*) | |
374 | sharedstatedir="$ac_optarg" ;; | |
375 | ||
50e1e10f TT |
376 | -site | --site | --sit) |
377 | ac_prev=site ;; | |
378 | -site=* | --site=* | --sit=*) | |
379 | site="$ac_optarg" ;; | |
380 | ||
381 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
382 | ac_prev=srcdir ;; | |
383 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
384 | srcdir="$ac_optarg" ;; | |
385 | ||
21c84b71 TT |
386 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
387 | | --syscon | --sysco | --sysc | --sys | --sy) | |
388 | ac_prev=sysconfdir ;; | |
389 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
390 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
391 | sysconfdir="$ac_optarg" ;; | |
392 | ||
50e1e10f TT |
393 | -target | --target | --targe | --targ | --tar | --ta | --t) |
394 | ac_prev=target ;; | |
395 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
396 | target="$ac_optarg" ;; | |
397 | ||
398 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
399 | verbose=yes ;; | |
400 | ||
401 | -version | --version | --versio | --versi | --vers) | |
a4bf69d9 | 402 | echo "configure generated by autoconf version 2.13" |
50e1e10f TT |
403 | exit 0 ;; |
404 | ||
405 | -with-* | --with-*) | |
406 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
407 | # Reject names that are not valid shell variable names. | |
408 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
409 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
410 | fi | |
411 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
412 | case "$ac_option" in | |
413 | *=*) ;; | |
414 | *) ac_optarg=yes ;; | |
415 | esac | |
416 | eval "with_${ac_package}='$ac_optarg'" ;; | |
417 | ||
418 | -without-* | --without-*) | |
419 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
420 | # Reject names that are not valid shell variable names. | |
421 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
422 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
423 | fi | |
424 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
425 | eval "with_${ac_package}=no" ;; | |
426 | ||
427 | --x) | |
428 | # Obsolete; use --with-x. | |
429 | with_x=yes ;; | |
430 | ||
431 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
432 | | --x-incl | --x-inc | --x-in | --x-i) | |
433 | ac_prev=x_includes ;; | |
434 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
435 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
436 | x_includes="$ac_optarg" ;; | |
437 | ||
438 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
439 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
440 | ac_prev=x_libraries ;; | |
441 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
442 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
443 | x_libraries="$ac_optarg" ;; | |
444 | ||
445 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
446 | ;; | |
447 | ||
21c84b71 | 448 | *) |
50e1e10f TT |
449 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
450 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
451 | fi | |
452 | if test "x$nonopt" != xNONE; then | |
453 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
454 | fi | |
455 | nonopt="$ac_option" | |
456 | ;; | |
457 | ||
458 | esac | |
459 | done | |
460 | ||
461 | if test -n "$ac_prev"; then | |
462 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
463 | fi | |
464 | ||
465 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
466 | ||
467 | # File descriptor usage: | |
468 | # 0 standard input | |
469 | # 1 file creation | |
470 | # 2 errors and warnings | |
471 | # 3 some systems may open it to /dev/tty | |
472 | # 4 used on the Kubota Titan | |
473 | # 6 checking for... messages and results | |
474 | # 5 compiler messages saved in config.log | |
475 | if test "$silent" = yes; then | |
476 | exec 6>/dev/null | |
477 | else | |
478 | exec 6>&1 | |
479 | fi | |
480 | exec 5>./config.log | |
481 | ||
482 | echo "\ | |
483 | This file contains any messages produced by compilers while | |
484 | running configure, to aid debugging if configure makes a mistake. | |
485 | " 1>&5 | |
486 | ||
487 | # Strip out --no-create and --no-recursion so they do not pile up. | |
488 | # Also quote any args containing shell metacharacters. | |
489 | ac_configure_args= | |
490 | for ac_arg | |
491 | do | |
492 | case "$ac_arg" in | |
493 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
494 | | --no-cr | --no-c) ;; | |
495 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
496 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
497 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
498 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
499 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
500 | esac | |
501 | done | |
502 | ||
503 | # NLS nuisances. | |
21c84b71 TT |
504 | # Only set these to C if already set. These must not be set unconditionally |
505 | # because not all systems understand e.g. LANG=C (notably SCO). | |
506 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
507 | # Non-C LC_CTYPE values break the ctype check. | |
50e1e10f | 508 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
21c84b71 TT |
509 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
510 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
511 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
50e1e10f TT |
512 | |
513 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
514 | rm -rf conftest* confdefs.h | |
515 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
516 | echo > confdefs.h | |
517 | ||
518 | # A filename unique to this package, relative to the directory that | |
519 | # configure is in, which we can look for to find out if srcdir is correct. | |
520 | ac_unique_file=version.h | |
521 | ||
522 | # Find the source files, if location was not specified. | |
523 | if test -z "$srcdir"; then | |
524 | ac_srcdir_defaulted=yes | |
525 | # Try the directory containing this script, then its parent. | |
526 | ac_prog=$0 | |
527 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
528 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
529 | srcdir=$ac_confdir | |
530 | if test ! -r $srcdir/$ac_unique_file; then | |
531 | srcdir=.. | |
532 | fi | |
533 | else | |
534 | ac_srcdir_defaulted=no | |
535 | fi | |
536 | if test ! -r $srcdir/$ac_unique_file; then | |
537 | if test "$ac_srcdir_defaulted" = yes; then | |
538 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
539 | else | |
540 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
541 | fi | |
542 | fi | |
543 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
544 | ||
545 | # Prefer explicitly selected file to automatically selected ones. | |
546 | if test -z "$CONFIG_SITE"; then | |
547 | if test "x$prefix" != xNONE; then | |
548 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
549 | else | |
550 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
551 | fi | |
552 | fi | |
553 | for ac_site_file in $CONFIG_SITE; do | |
554 | if test -r "$ac_site_file"; then | |
555 | echo "loading site script $ac_site_file" | |
556 | . "$ac_site_file" | |
557 | fi | |
558 | done | |
559 | ||
560 | if test -r "$cache_file"; then | |
561 | echo "loading cache $cache_file" | |
562 | . $cache_file | |
563 | else | |
564 | echo "creating cache $cache_file" | |
565 | > $cache_file | |
566 | fi | |
567 | ||
568 | ac_ext=c | |
569 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
570 | ac_cpp='$CPP $CPPFLAGS' | |
21c84b71 | 571 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
a4bf69d9 | 572 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
21c84b71 | 573 | cross_compiling=$ac_cv_prog_cc_cross |
50e1e10f | 574 | |
a4bf69d9 TT |
575 | ac_exeext= |
576 | ac_objext=o | |
50e1e10f TT |
577 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
578 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
579 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
580 | ac_n= ac_c=' | |
581 | ' ac_t=' ' | |
582 | else | |
583 | ac_n=-n ac_c= ac_t= | |
584 | fi | |
585 | else | |
586 | ac_n= ac_c='\c' ac_t= | |
587 | fi | |
588 | ||
a04eba3f TT |
589 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
590 | if test "${with_gnu_ld+set}" = set; then | |
591 | withval="$with_gnu_ld" | |
592 | test "$withval" = no || with_gnu_ld=yes | |
593 | else | |
594 | with_gnu_ld=no | |
595 | fi | |
596 | ||
597 | ac_prog=ld | |
598 | if test "$GCC" = yes; then | |
599 | # Check if gcc -print-prog-name=ld gives a path. | |
600 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | |
d21ae6c5 | 601 | echo "configure:602: checking for ld used by GCC" >&5 |
a04eba3f TT |
602 | case $host in |
603 | *-*-mingw*) | |
604 | # gcc leaves a trailing carriage return which upsets mingw | |
605 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
606 | *) | |
607 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
608 | esac | |
609 | case $ac_prog in | |
610 | # Accept absolute paths. | |
611 | [\\/]* | [A-Za-z]:[\\/]*) | |
612 | re_direlt='/[^/][^/]*/\.\./' | |
613 | # Canonicalize the path of ld | |
614 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
615 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
616 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
617 | done | |
618 | test -z "$LD" && LD="$ac_prog" | |
619 | ;; | |
620 | "") | |
621 | # If it fails, then pretend we aren't using GCC. | |
622 | ac_prog=ld | |
623 | ;; | |
624 | *) | |
625 | # If it is relative, then search for the first ld in PATH. | |
626 | with_gnu_ld=unknown | |
627 | ;; | |
628 | esac | |
629 | elif test "$with_gnu_ld" = yes; then | |
630 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | |
d21ae6c5 | 631 | echo "configure:632: checking for GNU ld" >&5 |
a04eba3f TT |
632 | else |
633 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | |
d21ae6c5 | 634 | echo "configure:635: checking for non-GNU ld" >&5 |
a04eba3f TT |
635 | fi |
636 | if eval "test \"`echo '$''{'acl_cv_path_LD'+set}'`\" = set"; then | |
637 | echo $ac_n "(cached) $ac_c" 1>&6 | |
638 | else | |
639 | if test -z "$LD"; then | |
640 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
641 | for ac_dir in $PATH; do | |
642 | test -z "$ac_dir" && ac_dir=. | |
643 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
644 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
645 | # Check to see if the program is GNU ld. I'd rather use --version, | |
646 | # but apparently some GNU ld's only accept -v. | |
647 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
648 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
649 | test "$with_gnu_ld" != no && break | |
650 | else | |
651 | test "$with_gnu_ld" != yes && break | |
652 | fi | |
653 | fi | |
654 | done | |
655 | IFS="$ac_save_ifs" | |
656 | else | |
657 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
658 | fi | |
659 | fi | |
660 | ||
661 | LD="$acl_cv_path_LD" | |
662 | if test -n "$LD"; then | |
663 | echo "$ac_t""$LD" 1>&6 | |
664 | else | |
665 | echo "$ac_t""no" 1>&6 | |
666 | fi | |
667 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | |
668 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 | |
d21ae6c5 | 669 | echo "configure:670: checking if the linker ($LD) is GNU ld" >&5 |
a04eba3f TT |
670 | if eval "test \"`echo '$''{'acl_cv_prog_gnu_ld'+set}'`\" = set"; then |
671 | echo $ac_n "(cached) $ac_c" 1>&6 | |
672 | else | |
673 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
674 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
675 | acl_cv_prog_gnu_ld=yes | |
676 | else | |
677 | acl_cv_prog_gnu_ld=no | |
678 | fi | |
679 | fi | |
680 | ||
681 | echo "$ac_t""$acl_cv_prog_gnu_ld" 1>&6 | |
682 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
683 | ||
684 | ||
50e1e10f | 685 | |
a4b2d3ce | 686 | |
50e1e10f TT |
687 | MCONFIG=./MCONFIG |
688 | ||
74becf3c TT |
689 | BINARY_TYPE=bin |
690 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ | |
691 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` | |
692 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ | |
693 | | tr \" " "` | |
bff0cc95 | 694 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
74becf3c TT |
695 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
696 | YEAR=`echo $DATE | awk -F- '{print $3}'` | |
697 | ||
14790ed7 TT |
698 | if expr $YEAR ">" 1900 > /dev/null ; then |
699 | E2FSPROGS_YEAR=$YEAR | |
700 | elif expr $YEAR ">" 90 >/dev/null ; then | |
74becf3c TT |
701 | E2FSPROGS_YEAR=19$YEAR |
702 | else | |
703 | E2FSPROGS_YEAR=20$YEAR | |
704 | fi | |
705 | ||
706 | case $MONTH in | |
707 | Jan) E2FSPROGS_MONTH="January" ;; | |
708 | Feb) E2FSPROGS_MONTH="February" ;; | |
709 | Mar) E2FSPROGS_MONTH="March" ;; | |
710 | Apr) E2FSPROGS_MONTH="April" ;; | |
711 | May) E2FSPROGS_MONTH="May" ;; | |
712 | Jun) E2FSPROGS_MONTH="June" ;; | |
713 | Jul) E2FSPROGS_MONTH="July" ;; | |
714 | Aug) E2FSPROGS_MONTH="August" ;; | |
715 | Sep) E2FSPROGS_MONTH="September" ;; | |
716 | Oct) E2FSPROGS_MONTH="October" ;; | |
717 | Nov) E2FSPROGS_MONTH="November" ;; | |
718 | Dec) E2FSPROGS_MONTH="December" ;; | |
719 | *) echo "Unknown month $MONTH??" ;; | |
720 | esac | |
721 | ||
722 | unset DATE MONTH YEAR | |
723 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" | |
724 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" | |
725 | ||
726 | ||
727 | ||
bff0cc95 | 728 | |
fc6d9d51 TT |
729 | ac_aux_dir= |
730 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
731 | if test -f $ac_dir/install-sh; then | |
732 | ac_aux_dir=$ac_dir | |
733 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
734 | break | |
735 | elif test -f $ac_dir/install.sh; then | |
736 | ac_aux_dir=$ac_dir | |
737 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
738 | break | |
739 | fi | |
740 | done | |
741 | if test -z "$ac_aux_dir"; then | |
742 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
743 | fi | |
744 | ac_config_guess=$ac_aux_dir/config.guess | |
745 | ac_config_sub=$ac_aux_dir/config.sub | |
746 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
747 | ||
748 | ||
749 | # Make sure we can run config.sub. | |
a4bf69d9 | 750 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
fc6d9d51 TT |
751 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
752 | fi | |
753 | ||
754 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
d21ae6c5 | 755 | echo "configure:756: checking host system type" >&5 |
fc6d9d51 TT |
756 | |
757 | host_alias=$host | |
758 | case "$host_alias" in | |
759 | NONE) | |
760 | case $nonopt in | |
761 | NONE) | |
a4bf69d9 | 762 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
fc6d9d51 TT |
763 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
764 | fi ;; | |
765 | *) host_alias=$nonopt ;; | |
766 | esac ;; | |
767 | esac | |
768 | ||
a4bf69d9 | 769 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
21c84b71 TT |
770 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
771 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
772 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
fc6d9d51 TT |
773 | echo "$ac_t""$host" 1>&6 |
774 | ||
d21ae6c5 TT |
775 | EVMS_CMT= |
776 | ||
777 | # Check whether --with-diet-libc or --without-diet-libc was given. | |
778 | if test "${with_diet_libc+set}" = set; then | |
779 | withval="$with_diet_libc" | |
780 | CC="diet cc -nostdinc" | |
781 | EVMS_CMT="#" | |
782 | echo "$ac_t""CC=$CC" 1>&6 | |
783 | fi | |
74becf3c | 784 | # Check whether --with-cc or --without-cc was given. |
21c84b71 TT |
785 | if test "${with_cc+set}" = set; then |
786 | withval="$with_cc" | |
74becf3c TT |
787 | echo "$ac_t""CC=$withval" 1>&6 |
788 | CC=$withval | |
789 | else | |
790 | if test -z "$CC" ; then CC=cc; fi | |
791 | echo "$ac_t""CC defaults to $CC" 1>&6 | |
792 | fi | |
793 | export CC | |
794 | ||
73ae2d4a TT |
795 | # Extract the first word of "gcc", so it can be a program name with args. |
796 | set dummy gcc; ac_word=$2 | |
797 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 798 | echo "configure:799: checking for $ac_word" >&5 |
73ae2d4a TT |
799 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
800 | echo $ac_n "(cached) $ac_c" 1>&6 | |
801 | else | |
802 | if test -n "$CC"; then | |
803 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
804 | else | |
805 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
806 | ac_dummy="$PATH" | |
807 | for ac_dir in $ac_dummy; do | |
808 | test -z "$ac_dir" && ac_dir=. | |
809 | if test -f $ac_dir/$ac_word; then | |
810 | ac_cv_prog_CC="gcc" | |
811 | break | |
812 | fi | |
813 | done | |
814 | IFS="$ac_save_ifs" | |
815 | fi | |
816 | fi | |
817 | CC="$ac_cv_prog_CC" | |
818 | if test -n "$CC"; then | |
819 | echo "$ac_t""$CC" 1>&6 | |
820 | else | |
821 | echo "$ac_t""no" 1>&6 | |
822 | fi | |
823 | ||
824 | if test -z "$CC"; then | |
825 | # Extract the first word of "cc", so it can be a program name with args. | |
826 | set dummy cc; ac_word=$2 | |
827 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 828 | echo "configure:829: checking for $ac_word" >&5 |
73ae2d4a TT |
829 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
830 | echo $ac_n "(cached) $ac_c" 1>&6 | |
831 | else | |
832 | if test -n "$CC"; then | |
833 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
834 | else | |
835 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
836 | ac_prog_rejected=no | |
837 | ac_dummy="$PATH" | |
838 | for ac_dir in $ac_dummy; do | |
839 | test -z "$ac_dir" && ac_dir=. | |
840 | if test -f $ac_dir/$ac_word; then | |
841 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
842 | ac_prog_rejected=yes | |
843 | continue | |
844 | fi | |
845 | ac_cv_prog_CC="cc" | |
846 | break | |
847 | fi | |
848 | done | |
849 | IFS="$ac_save_ifs" | |
850 | if test $ac_prog_rejected = yes; then | |
851 | # We found a bogon in the path, so make sure we never use it. | |
852 | set dummy $ac_cv_prog_CC | |
853 | shift | |
854 | if test $# -gt 0; then | |
855 | # We chose a different compiler from the bogus one. | |
856 | # However, it has the same basename, so the bogon will be chosen | |
857 | # first if we set CC to just the basename; use the full file name. | |
858 | shift | |
859 | set dummy "$ac_dir/$ac_word" "$@" | |
860 | shift | |
861 | ac_cv_prog_CC="$@" | |
862 | fi | |
863 | fi | |
864 | fi | |
865 | fi | |
866 | CC="$ac_cv_prog_CC" | |
867 | if test -n "$CC"; then | |
868 | echo "$ac_t""$CC" 1>&6 | |
869 | else | |
870 | echo "$ac_t""no" 1>&6 | |
871 | fi | |
872 | ||
873 | if test -z "$CC"; then | |
874 | case "`uname -s`" in | |
875 | *win32* | *WIN32*) | |
876 | # Extract the first word of "cl", so it can be a program name with args. | |
877 | set dummy cl; ac_word=$2 | |
878 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 879 | echo "configure:880: checking for $ac_word" >&5 |
73ae2d4a TT |
880 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
881 | echo $ac_n "(cached) $ac_c" 1>&6 | |
882 | else | |
883 | if test -n "$CC"; then | |
884 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
885 | else | |
886 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
887 | ac_dummy="$PATH" | |
888 | for ac_dir in $ac_dummy; do | |
889 | test -z "$ac_dir" && ac_dir=. | |
890 | if test -f $ac_dir/$ac_word; then | |
891 | ac_cv_prog_CC="cl" | |
892 | break | |
893 | fi | |
894 | done | |
895 | IFS="$ac_save_ifs" | |
896 | fi | |
897 | fi | |
898 | CC="$ac_cv_prog_CC" | |
899 | if test -n "$CC"; then | |
900 | echo "$ac_t""$CC" 1>&6 | |
901 | else | |
902 | echo "$ac_t""no" 1>&6 | |
903 | fi | |
904 | ;; | |
905 | esac | |
906 | fi | |
907 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
908 | fi | |
909 | ||
910 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
d21ae6c5 | 911 | echo "configure:912: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
73ae2d4a TT |
912 | |
913 | ac_ext=c | |
914 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
915 | ac_cpp='$CPP $CPPFLAGS' | |
916 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
917 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
918 | cross_compiling=$ac_cv_prog_cc_cross | |
919 | ||
920 | cat > conftest.$ac_ext << EOF | |
921 | ||
d21ae6c5 | 922 | #line 923 "configure" |
73ae2d4a TT |
923 | #include "confdefs.h" |
924 | ||
925 | main(){return(0);} | |
926 | EOF | |
d21ae6c5 | 927 | if { (eval echo configure:928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
73ae2d4a TT |
928 | ac_cv_prog_cc_works=yes |
929 | # If we can't run a trivial program, we are probably using a cross compiler. | |
930 | if (./conftest; exit) 2>/dev/null; then | |
931 | ac_cv_prog_cc_cross=no | |
932 | else | |
933 | ac_cv_prog_cc_cross=yes | |
934 | fi | |
935 | else | |
936 | echo "configure: failed program was:" >&5 | |
937 | cat conftest.$ac_ext >&5 | |
938 | ac_cv_prog_cc_works=no | |
939 | fi | |
940 | rm -fr conftest* | |
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 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
949 | if test $ac_cv_prog_cc_works = no; then | |
950 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
951 | fi | |
952 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
d21ae6c5 | 953 | echo "configure:954: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
73ae2d4a TT |
954 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
955 | cross_compiling=$ac_cv_prog_cc_cross | |
956 | ||
957 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
d21ae6c5 | 958 | echo "configure:959: checking whether we are using GNU C" >&5 |
73ae2d4a TT |
959 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
960 | echo $ac_n "(cached) $ac_c" 1>&6 | |
961 | else | |
962 | cat > conftest.c <<EOF | |
963 | #ifdef __GNUC__ | |
964 | yes; | |
965 | #endif | |
966 | EOF | |
d21ae6c5 | 967 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
73ae2d4a TT |
968 | ac_cv_prog_gcc=yes |
969 | else | |
970 | ac_cv_prog_gcc=no | |
971 | fi | |
972 | fi | |
973 | ||
974 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
975 | ||
976 | if test $ac_cv_prog_gcc = yes; then | |
977 | GCC=yes | |
978 | else | |
979 | GCC= | |
980 | fi | |
981 | ||
982 | ac_test_CFLAGS="${CFLAGS+set}" | |
983 | ac_save_CFLAGS="$CFLAGS" | |
984 | CFLAGS= | |
985 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
d21ae6c5 | 986 | echo "configure:987: checking whether ${CC-cc} accepts -g" >&5 |
73ae2d4a TT |
987 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
988 | echo $ac_n "(cached) $ac_c" 1>&6 | |
989 | else | |
990 | echo 'void f(){}' > conftest.c | |
991 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
992 | ac_cv_prog_cc_g=yes | |
993 | else | |
994 | ac_cv_prog_cc_g=no | |
995 | fi | |
996 | rm -f conftest* | |
997 | ||
998 | fi | |
999 | ||
1000 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
1001 | if test "$ac_test_CFLAGS" = set; then | |
1002 | CFLAGS="$ac_save_CFLAGS" | |
1003 | elif test $ac_cv_prog_cc_g = yes; then | |
1004 | if test "$GCC" = yes; then | |
1005 | CFLAGS="-g -O2" | |
1006 | else | |
1007 | CFLAGS="-g" | |
1008 | fi | |
1009 | else | |
1010 | if test "$GCC" = yes; then | |
1011 | CFLAGS="-O2" | |
1012 | else | |
1013 | CFLAGS= | |
1014 | fi | |
1015 | fi | |
1016 | ||
74becf3c | 1017 | # Check whether --with-linker or --without-linker was given. |
21c84b71 TT |
1018 | if test "${with_linker+set}" = set; then |
1019 | withval="$with_linker" | |
74becf3c TT |
1020 | echo "$ac_t""LD=$withval" 1>&6 |
1021 | LD=$withval | |
1022 | else | |
1023 | if test -z "$LD" ; then LD=$CC; fi | |
1024 | echo "$ac_t""LD defaults to $LD" 1>&6 | |
1025 | fi | |
a64c9c13 TT |
1026 | export LD |
1027 | ||
1028 | # Check whether --with-ccopts or --without-ccopts was given. | |
1029 | if test "${with_ccopts+set}" = set; then | |
1030 | withval="$with_ccopts" | |
1031 | echo "$ac_t""CCOPTS is $withval" 1>&6 | |
877eb6d9 | 1032 | CFLAGS=$withval |
a64c9c13 | 1033 | fi |
a64c9c13 | 1034 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
d21ae6c5 | 1035 | echo "configure:1036: checking how to run the C preprocessor" >&5 |
a64c9c13 TT |
1036 | # On Suns, sometimes $CPP names a directory. |
1037 | if test -n "$CPP" && test -d "$CPP"; then | |
1038 | CPP= | |
1039 | fi | |
1040 | if test -z "$CPP"; then | |
1041 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1042 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1043 | else | |
1044 | # This must be in double quotes, not single quotes, because CPP may get | |
1045 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1046 | CPP="${CC-cc} -E" | |
1047 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1048 | # not just through cpp. | |
1049 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 1050 | #line 1051 "configure" |
a64c9c13 TT |
1051 | #include "confdefs.h" |
1052 | #include <assert.h> | |
1053 | Syntax Error | |
1054 | EOF | |
1055 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d21ae6c5 | 1056 | { (eval echo configure:1057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a64c9c13 TT |
1057 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1058 | if test -z "$ac_err"; then | |
1059 | : | |
1060 | else | |
1061 | echo "$ac_err" >&5 | |
1062 | echo "configure: failed program was:" >&5 | |
1063 | cat conftest.$ac_ext >&5 | |
1064 | rm -rf conftest* | |
1065 | CPP="${CC-cc} -E -traditional-cpp" | |
1066 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 1067 | #line 1068 "configure" |
a64c9c13 TT |
1068 | #include "confdefs.h" |
1069 | #include <assert.h> | |
1070 | Syntax Error | |
1071 | EOF | |
1072 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d21ae6c5 | 1073 | { (eval echo configure:1074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a64c9c13 TT |
1074 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1075 | if test -z "$ac_err"; then | |
1076 | : | |
1077 | else | |
1078 | echo "$ac_err" >&5 | |
1079 | echo "configure: failed program was:" >&5 | |
1080 | cat conftest.$ac_ext >&5 | |
1081 | rm -rf conftest* | |
1082 | CPP="${CC-cc} -nologo -E" | |
1083 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 1084 | #line 1085 "configure" |
a64c9c13 TT |
1085 | #include "confdefs.h" |
1086 | #include <assert.h> | |
1087 | Syntax Error | |
1088 | EOF | |
1089 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d21ae6c5 | 1090 | { (eval echo configure:1091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a64c9c13 TT |
1091 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1092 | if test -z "$ac_err"; then | |
1093 | : | |
1094 | else | |
1095 | echo "$ac_err" >&5 | |
1096 | echo "configure: failed program was:" >&5 | |
1097 | cat conftest.$ac_ext >&5 | |
1098 | rm -rf conftest* | |
1099 | CPP=/lib/cpp | |
1100 | fi | |
1101 | rm -f conftest* | |
1102 | fi | |
1103 | rm -f conftest* | |
1104 | fi | |
1105 | rm -f conftest* | |
1106 | ac_cv_prog_CPP="$CPP" | |
1107 | fi | |
1108 | CPP="$ac_cv_prog_CPP" | |
1109 | else | |
1110 | ac_cv_prog_CPP="$CPP" | |
1111 | fi | |
1112 | echo "$ac_t""$CPP" 1>&6 | |
1113 | ||
1114 | ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'` | |
1115 | echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6 | |
d21ae6c5 | 1116 | echo "configure:1117: checking for linux/fs.h" >&5 |
a64c9c13 TT |
1117 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1118 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1119 | else | |
1120 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 1121 | #line 1122 "configure" |
a64c9c13 TT |
1122 | #include "confdefs.h" |
1123 | #include <linux/fs.h> | |
1124 | EOF | |
1125 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d21ae6c5 | 1126 | { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a64c9c13 TT |
1127 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1128 | if test -z "$ac_err"; then | |
1129 | rm -rf conftest* | |
1130 | eval "ac_cv_header_$ac_safe=yes" | |
1131 | else | |
1132 | echo "$ac_err" >&5 | |
1133 | echo "configure: failed program was:" >&5 | |
1134 | cat conftest.$ac_ext >&5 | |
1135 | rm -rf conftest* | |
1136 | eval "ac_cv_header_$ac_safe=no" | |
1137 | fi | |
1138 | rm -f conftest* | |
1139 | fi | |
1140 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1141 | echo "$ac_t""yes" 1>&6 | |
1142 | linux_headers=yes | |
1143 | else | |
1144 | echo "$ac_t""no" 1>&6 | |
1145 | linux_headers=no | |
1146 | fi | |
1147 | ||
1148 | if test "$linux_headers" != yes; then | |
1149 | LINUX_INCLUDE='-I$(top_builddir)/include' | |
1150 | fi | |
1151 | ||
1152 | LIB_EXT=.a | |
1153 | STATIC_LIB_EXT=.a | |
1154 | PROFILE_LIB_EXT=.a | |
1155 | # Check whether --with-ldopts or --without-ldopts was given. | |
1156 | if test "${with_ldopts+set}" = set; then | |
1157 | withval="$with_ldopts" | |
1158 | echo "$ac_t""LDFLAGS is $withval" 1>&6 | |
1159 | LDFLAGS=$withval | |
1160 | else | |
1161 | LDFLAGS= | |
1162 | fi | |
1163 | ||
1164 | # Check whether --with-root-prefix or --without-root-prefix was given. | |
1165 | if test "${with_root_prefix+set}" = set; then | |
1166 | withval="$with_root_prefix" | |
1167 | root_prefix=$withval | |
1168 | else | |
1169 | root_prefix=NONE | |
1170 | fi | |
1917875f TT |
1171 | # Check whether --enable-compression or --disable-compression was given. |
1172 | if test "${enable_compression+set}" = set; then | |
1173 | enableval="$enable_compression" | |
1174 | if test "$enableval" = "no" | |
1175 | then | |
1176 | echo "Disabling compression support" | |
1177 | else | |
1178 | cat >> confdefs.h <<\EOF | |
1179 | #define ENABLE_COMPRESSION 1 | |
1180 | EOF | |
1181 | ||
1182 | echo "Enabling compression support" | |
1183 | echo "WARNING: Compression support is experimental" | |
1184 | fi | |
1185 | ||
1186 | else | |
1187 | echo "Disabling compression support by default" | |
1188 | ||
1189 | fi | |
1190 | ||
8fdc9985 TT |
1191 | # Check whether --enable-htree or --disable-htree was given. |
1192 | if test "${enable_htree+set}" = set; then | |
1193 | enableval="$enable_htree" | |
1194 | if test "$enableval" = "no" | |
1195 | then | |
1196 | HTREE_CMT=# | |
1197 | echo "Disabling htree directory support" | |
1198 | else | |
1199 | HTREE_CMT= | |
1200 | cat >> confdefs.h <<\EOF | |
1201 | #define ENABLE_HTREE 1 | |
1202 | EOF | |
1203 | ||
1204 | echo "Enabling htree directory support" | |
8fdc9985 TT |
1205 | fi |
1206 | ||
1207 | else | |
559ca6cb TT |
1208 | HTREE_CMT= |
1209 | cat >> confdefs.h <<\EOF | |
1210 | #define ENABLE_HTREE 1 | |
1211 | EOF | |
1212 | ||
1213 | echo "Enabling htree directory support by default" | |
8fdc9985 TT |
1214 | |
1215 | fi | |
1216 | ||
1217 | ||
1218 | # Check whether --enable-htree-clear or --disable-htree-clear was given. | |
1219 | if test "${enable_htree_clear+set}" = set; then | |
1220 | enableval="$enable_htree_clear" | |
1221 | if test "$enableval" = "no" | |
1222 | then | |
1223 | HTREE_CLR_CMT=# | |
1224 | echo "Disabling htree clearing" | |
1225 | else | |
1226 | HTREE_CLR_CMT= | |
1227 | cat >> confdefs.h <<\EOF | |
1228 | #define ENABLE_HTREE_CLEAR 1 | |
1229 | EOF | |
1230 | ||
1231 | echo "Enabling htree clearing" | |
1232 | fi | |
1233 | ||
1234 | else | |
1235 | HTREE_CLR_CMT=# | |
1236 | echo "Disabling htree clearing by default" | |
1237 | ||
1238 | fi | |
1239 | ||
1240 | ||
d21ae6c5 TT |
1241 | # Check whether --enable-evms or --disable-evms was given. |
1242 | if test "${enable_evms+set}" = set; then | |
1243 | enableval="$enable_evms" | |
1244 | if test "$enableval" != "no" | |
1245 | then | |
1246 | EVMS_CMT="#" | |
1247 | echo "Disabling EVMS plugin" | |
1248 | fi | |
1249 | ||
1250 | fi | |
1251 | ||
a9d799a0 TT |
1252 | EVMS_ABI_CODE=120 |
1253 | # Check whether --enable-evms-10 or --disable-evms-10 was given. | |
1254 | if test "${enable_evms_10+set}" = set; then | |
1255 | enableval="$enable_evms_10" | |
1256 | if test "$enableval" != "no" | |
ff6dbcca | 1257 | then |
a9d799a0 | 1258 | EVMS_ABI_CODE=100 |
ff6dbcca TT |
1259 | echo "Enabling EVMS 1.0.0 ABI" |
1260 | fi | |
1261 | ||
a9d799a0 TT |
1262 | fi |
1263 | ||
1264 | # Check whether --enable-evms-11 or --disable-evms-11 was given. | |
1265 | if test "${enable_evms_11+set}" = set; then | |
1266 | enableval="$enable_evms_11" | |
1267 | if test "$enableval" != "no" | |
1268 | then | |
1269 | EVMS_ABI_CODE=110 | |
1270 | echo "Enabling EVMS 1.1.0 ABI" | |
1271 | fi | |
ff6dbcca TT |
1272 | |
1273 | fi | |
1274 | ||
a9d799a0 TT |
1275 | if test "$EVMS_ABI_CODE" = "120" |
1276 | then | |
1277 | echo "Using EVMS 1.2.0 ABI by default" | |
1278 | fi | |
1279 | ||
a64c9c13 TT |
1280 | # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given. |
1281 | if test "${enable_dll_shlibs+set}" = set; then | |
1282 | enableval="$enable_dll_shlibs" | |
1283 | if test "$enableval" = "no" | |
1284 | then | |
1285 | DLL_CMT=# | |
1286 | MAKEFILE_DLL=/dev/null | |
1287 | echo "Disabling DLL shared libraries" | |
1288 | else | |
1289 | DLL_CMT= | |
1290 | MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib | |
1291 | BINARY_TYPE=dllbin | |
1292 | LIB_EXT=.sa | |
1293 | echo "Enabling DLL shared libraries" | |
1294 | fi | |
1295 | ||
1296 | else | |
1297 | MAKEFILE_DLL=/dev/null | |
1298 | DLL_CMT=# | |
1299 | echo "Disabling DLL shared libraries by default" | |
1300 | ||
1301 | fi | |
1302 | ||
1303 | ||
1304 | ||
1305 | # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given. | |
1306 | if test "${enable_elf_shlibs+set}" = set; then | |
1307 | enableval="$enable_elf_shlibs" | |
1308 | if test "$enableval" = "no" | |
1309 | then | |
1310 | ELF_CMT=# | |
1311 | MAKEFILE_ELF=/dev/null | |
1312 | echo "Disabling ELF shared libraries" | |
1313 | else | |
1314 | ELF_CMT= | |
1315 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib | |
f5955dda TT |
1316 | case "$host_os" in |
1317 | solaris2.*) | |
1318 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib | |
1319 | ;; | |
1320 | esac | |
a64c9c13 TT |
1321 | BINARY_TYPE=elfbin |
1322 | LIB_EXT=.so | |
1323 | echo "Enabling ELF shared libraries" | |
1324 | fi | |
1325 | ||
1326 | else | |
1327 | MAKEFILE_ELF=/dev/null | |
1328 | ELF_CMT=# | |
1329 | echo "Disabling ELF shared libraries by default" | |
1330 | ||
1331 | fi | |
1332 | ||
1333 | ||
1334 | ||
1335 | # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given. | |
1336 | if test "${enable_bsd_shlibs+set}" = set; then | |
1337 | enableval="$enable_bsd_shlibs" | |
1338 | if test "$enableval" = "no" | |
1339 | then | |
1340 | BSDLIB_CMT=# | |
1341 | MAKEFILE_BSDLIB=/dev/null | |
1342 | echo "Disabling BSD shared libraries" | |
1343 | else | |
1344 | BSDLIB_CMT= | |
1345 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib | |
1346 | LIB_EXT=.so | |
e1f07228 | 1347 | case "$host_os" in |
aa75eccc | 1348 | darwin*) |
e1f07228 TT |
1349 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
1350 | LIB_EXT=.dylib | |
1351 | ;; | |
1352 | esac | |
a64c9c13 TT |
1353 | echo "Enabling BSD shared libraries" |
1354 | fi | |
1355 | ||
1356 | else | |
1357 | MAKEFILE_BSDLIB=/dev/null | |
1358 | BSDLIB_CMT=# | |
1359 | echo "Disabling BSD shared libraries by default" | |
1360 | ||
1361 | fi | |
1362 | ||
1363 | ||
1364 | ||
cdf186e4 TT |
1365 | # Check whether --enable-profile or --disable-profile was given. |
1366 | if test "${enable_profile+set}" = set; then | |
1367 | enableval="$enable_profile" | |
1368 | if test "$enableval" = "no" | |
1369 | then | |
1370 | PROFILE_CMT=# | |
1371 | MAKEFILE_PROFILE=/dev/null | |
1372 | echo "Disabling profiling libraries" | |
1373 | else | |
1374 | PROFILE_CMT= | |
1375 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile | |
1376 | PROFILED_LIB_EXT=_p.a | |
1377 | echo "Building profiling libraries" | |
1378 | fi | |
1379 | ||
1380 | else | |
1381 | PROFILE_CMT=# | |
1382 | MAKEFILE_PROFILE=/dev/null | |
1383 | echo "Disabling profiling libraries by default" | |
1384 | ||
1385 | fi | |
1386 | ||
1387 | ||
1388 | ||
1389 | # Check whether --enable-checker or --disable-checker was given. | |
1390 | if test "${enable_checker+set}" = set; then | |
1391 | enableval="$enable_checker" | |
1392 | if test "$enableval" = "no" | |
1393 | then | |
1394 | CHECKER_CMT=# | |
1395 | MAKEFILE_CHECKER=/dev/null | |
1396 | echo "Disabling checker libraries" | |
1397 | else | |
1398 | CHECKER_CMT= | |
1399 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker | |
1400 | echo "Building checker libraries" | |
1401 | fi | |
1402 | ||
1403 | else | |
1404 | CHECKER_CMT=# | |
1405 | MAKEFILE_CHECKER=/dev/null | |
1406 | echo "Disabling checker libraries by default" | |
1407 | ||
1408 | fi | |
1409 | ||
1410 | ||
1411 | ||
1412 | ||
1413 | ||
1414 | ||
782bebfd TT |
1415 | # Check whether --enable-jbd-debug or --disable-jbd-debug was given. |
1416 | if test "${enable_jbd_debug+set}" = set; then | |
1417 | enableval="$enable_jbd_debug" | |
80bfaa3e TT |
1418 | if test "$enableval" = "no" |
1419 | then | |
1420 | echo "Disabling journal debugging" | |
1421 | else | |
1422 | cat >> confdefs.h <<\EOF | |
8cf93332 | 1423 | #define CONFIG_JBD_DEBUG 1 |
80bfaa3e TT |
1424 | EOF |
1425 | ||
1426 | echo "Enabling journal debugging" | |
1427 | fi | |
1428 | ||
1429 | else | |
1430 | echo "Disabling journal debugging by default" | |
1431 | ||
1432 | fi | |
1433 | ||
f0a22d0f TT |
1434 | # Check whether --enable-blkid-debug or --disable-blkid-debug was given. |
1435 | if test "${enable_blkid_debug+set}" = set; then | |
1436 | enableval="$enable_blkid_debug" | |
1437 | if test "$enableval" = "no" | |
1438 | then | |
1439 | echo "Disabling blkid debugging" | |
1440 | else | |
1441 | cat >> confdefs.h <<\EOF | |
1442 | #define CONFIG_BLKID_DEBUG 1 | |
1443 | EOF | |
1444 | ||
1445 | echo "Enabling blkid debugging" | |
1446 | fi | |
1447 | ||
1448 | else | |
1449 | echo "Disabling blkid debugging by default" | |
1450 | ||
1451 | fi | |
1452 | ||
877eb6d9 TT |
1453 | # Check whether --enable-swapfs or --disable-swapfs was given. |
1454 | if test "${enable_swapfs+set}" = set; then | |
1455 | enableval="$enable_swapfs" | |
1456 | if test "$enableval" = "no" | |
1457 | then | |
feb44c69 | 1458 | SWAPFS_CMT=# |
877eb6d9 | 1459 | echo "Disabling swapfs support" |
877eb6d9 | 1460 | else |
feb44c69 | 1461 | SWAPFS_CMT= |
877eb6d9 TT |
1462 | cat >> confdefs.h <<\EOF |
1463 | #define ENABLE_SWAPFS 1 | |
1464 | EOF | |
1465 | ||
877eb6d9 TT |
1466 | echo "Enabling swapfs support" |
1467 | fi | |
1468 | ||
1469 | else | |
feb44c69 TT |
1470 | SWAPFS_CMT= |
1471 | echo "Enabling swapfs support by default" | |
877eb6d9 TT |
1472 | cat >> confdefs.h <<\EOF |
1473 | #define ENABLE_SWAPFS 1 | |
1474 | EOF | |
1475 | ||
877eb6d9 TT |
1476 | |
1477 | fi | |
1478 | ||
feb44c69 | 1479 | |
cdf186e4 TT |
1480 | # Check whether --enable-debugfs or --disable-debugfs was given. |
1481 | if test "${enable_debugfs+set}" = set; then | |
1482 | enableval="$enable_debugfs" | |
1483 | if test "$enableval" = "no" | |
1484 | then | |
1485 | echo "Disabling debugfs support" | |
1486 | DEBUGFS_CMT="#" | |
1487 | else | |
cdf186e4 TT |
1488 | DEBUGFS_CMT= |
1489 | echo "Enabling debugfs support" | |
1490 | fi | |
1491 | ||
1492 | else | |
1493 | echo "Enabling debugfs support by default" | |
cdf186e4 TT |
1494 | DEBUGFS_CMT= |
1495 | ||
1496 | fi | |
1497 | ||
1498 | ||
1499 | # Check whether --enable-imager or --disable-imager was given. | |
1500 | if test "${enable_imager+set}" = set; then | |
1501 | enableval="$enable_imager" | |
1502 | if test "$enableval" = "no" | |
1503 | then | |
1504 | echo "Disabling e2image support" | |
1505 | IMAGER_CMT="#" | |
1506 | else | |
cdf186e4 TT |
1507 | IMAGER_CMT= |
1508 | echo "Enabling e2image support" | |
1509 | fi | |
1510 | ||
1511 | else | |
1512 | echo "Enabling e2image support by default" | |
cdf186e4 TT |
1513 | IMAGER_CMT= |
1514 | ||
1515 | fi | |
1516 | ||
1517 | ||
1518 | # Check whether --enable-resizer or --disable-resizer was given. | |
1519 | if test "${enable_resizer+set}" = set; then | |
1520 | enableval="$enable_resizer" | |
1521 | if test "$enableval" = "no" | |
1522 | then | |
1523 | echo "Disabling e2resize support" | |
1524 | RESIZER_CMT="#" | |
1525 | else | |
cdf186e4 TT |
1526 | RESIZER_CMT= |
1527 | echo "Enabling e2resize support" | |
1528 | fi | |
1529 | ||
1530 | else | |
1531 | echo "Enabling e2resize support by default" | |
cdf186e4 TT |
1532 | RESIZER_CMT= |
1533 | ||
1534 | fi | |
1535 | ||
1536 | ||
1537 | # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given. | |
1538 | if test "${enable_dynamic_e2fsck+set}" = set; then | |
1539 | enableval="$enable_dynamic_e2fsck" | |
1540 | if test "$enableval" = "no" | |
1541 | then | |
1542 | E2FSCK_TYPE=static | |
1543 | echo "Building e2fsck statically" | |
1544 | else | |
1545 | E2FSCK_TYPE=shared | |
1546 | echo "Building e2fsck dynamically" | |
1547 | fi | |
1548 | ||
1549 | else | |
1550 | E2FSCK_TYPE=static | |
1551 | echo "Building e2fsck statically by default" | |
1552 | ||
1553 | fi | |
1554 | ||
1555 | ||
1556 | # Check whether --enable-fsck or --disable-fsck was given. | |
1557 | if test "${enable_fsck+set}" = set; then | |
1558 | enableval="$enable_fsck" | |
1559 | if test "$enableval" = "no" | |
1560 | then | |
1561 | FSCK_PROG='' FSCK_MAN='' | |
1562 | echo "Not building fsck wrapper" | |
1563 | else | |
1564 | FSCK_PROG=fsck FSCK_MAN=fsck.8 | |
1565 | echo "Building fsck wrapper" | |
1566 | fi | |
1567 | ||
1568 | else | |
1569 | case "$host_os" in | |
1570 | gnu*) | |
1571 | FSCK_PROG='' FSCK_MAN='' | |
1572 | echo "Not building fsck wrapper by default" | |
1573 | ;; | |
1574 | *) | |
1575 | FSCK_PROG=fsck FSCK_MAN=fsck.8 | |
1576 | echo "Building fsck wrapper by default" | |
1577 | esac | |
1578 | ||
1579 | fi | |
1580 | ||
1581 | ||
1582 | ||
1583 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library | |
1584 | ||
1585 | # Check whether --enable-old-bitops or --disable-old-bitops was given. | |
1586 | if test "${enable_old_bitops+set}" = set; then | |
1587 | enableval="$enable_old_bitops" | |
1588 | if test "$enableval" = "no" | |
1589 | then | |
1590 | echo "Using new (standard) bitmask operations" | |
1591 | else | |
1592 | cat >> confdefs.h <<\EOF | |
1593 | #define EXT2_OLD_BITOPS 1 | |
1594 | EOF | |
1595 | ||
1596 | echo "Using old (native) bitmask operations" | |
1597 | ||
1598 | fi | |
1599 | ||
1600 | else | |
1601 | echo "Using standard bitmask operations by default" | |
1602 | ||
1603 | fi | |
877eb6d9 | 1604 | |
a64c9c13 TT |
1605 | PACKAGE=e2fsprogs |
1606 | VERSION="$E2FSPROGS_VERSION" | |
1607 | cat >> confdefs.h <<EOF | |
1608 | #define PACKAGE "$PACKAGE" | |
1609 | EOF | |
1610 | ||
1611 | cat >> confdefs.h <<EOF | |
1612 | #define VERSION "$VERSION" | |
1613 | EOF | |
1614 | ||
1615 | ||
1616 | ||
1617 | ||
a04eba3f TT |
1618 | |
1619 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 | |
d21ae6c5 | 1620 | echo "configure:1621: checking for inttypes.h" >&5 |
a04eba3f TT |
1621 | if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then |
1622 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1623 | else | |
1624 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 1625 | #line 1626 "configure" |
a04eba3f TT |
1626 | #include "confdefs.h" |
1627 | #include <sys/types.h> | |
1628 | #include <inttypes.h> | |
1629 | int main() { | |
1630 | uintmax_t i = (uintmax_t) -1; | |
1631 | ; return 0; } | |
1632 | EOF | |
d21ae6c5 | 1633 | if { (eval echo configure:1634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a04eba3f TT |
1634 | rm -rf conftest* |
1635 | jm_ac_cv_header_inttypes_h=yes | |
1636 | else | |
1637 | echo "configure: failed program was:" >&5 | |
1638 | cat conftest.$ac_ext >&5 | |
1639 | rm -rf conftest* | |
1640 | jm_ac_cv_header_inttypes_h=no | |
1641 | fi | |
1642 | rm -f conftest* | |
1643 | fi | |
1644 | ||
1645 | echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6 | |
1646 | if test $jm_ac_cv_header_inttypes_h = yes; then | |
1647 | cat >> confdefs.h <<EOF | |
1648 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 | |
1649 | EOF | |
1650 | ||
1651 | fi | |
1652 | ||
1653 | ||
1654 | echo $ac_n "checking for stdint.h""... $ac_c" 1>&6 | |
d21ae6c5 | 1655 | echo "configure:1656: checking for stdint.h" >&5 |
a04eba3f TT |
1656 | if eval "test \"`echo '$''{'jm_ac_cv_header_stdint_h'+set}'`\" = set"; then |
1657 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1658 | else | |
1659 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 1660 | #line 1661 "configure" |
a04eba3f TT |
1661 | #include "confdefs.h" |
1662 | #include <sys/types.h> | |
1663 | #include <stdint.h> | |
1664 | int main() { | |
1665 | uintmax_t i = (uintmax_t) -1; | |
1666 | ; return 0; } | |
1667 | EOF | |
d21ae6c5 | 1668 | if { (eval echo configure:1669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a04eba3f TT |
1669 | rm -rf conftest* |
1670 | jm_ac_cv_header_stdint_h=yes | |
1671 | else | |
1672 | echo "configure: failed program was:" >&5 | |
1673 | cat conftest.$ac_ext >&5 | |
1674 | rm -rf conftest* | |
1675 | jm_ac_cv_header_stdint_h=no | |
1676 | fi | |
1677 | rm -f conftest* | |
1678 | fi | |
1679 | ||
1680 | echo "$ac_t""$jm_ac_cv_header_stdint_h" 1>&6 | |
1681 | if test $jm_ac_cv_header_stdint_h = yes; then | |
1682 | cat >> confdefs.h <<EOF | |
1683 | #define HAVE_STDINT_H_WITH_UINTMAX 1 | |
1684 | EOF | |
1685 | ||
1686 | fi | |
1687 | ||
1688 | ||
1689 | echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6 | |
d21ae6c5 | 1690 | echo "configure:1691: checking for unsigned long long" >&5 |
a04eba3f TT |
1691 | if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then |
1692 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1693 | else | |
1694 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 1695 | #line 1696 "configure" |
a04eba3f TT |
1696 | #include "confdefs.h" |
1697 | unsigned long long ull = 1; int i = 63; | |
1698 | int main() { | |
1699 | unsigned long long ullmax = (unsigned long long) -1; | |
1700 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; | |
1701 | ; return 0; } | |
1702 | EOF | |
d21ae6c5 | 1703 | if { (eval echo configure:1704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a04eba3f TT |
1704 | rm -rf conftest* |
1705 | ac_cv_type_unsigned_long_long=yes | |
1706 | else | |
1707 | echo "configure: failed program was:" >&5 | |
1708 | cat conftest.$ac_ext >&5 | |
1709 | rm -rf conftest* | |
1710 | ac_cv_type_unsigned_long_long=no | |
1711 | fi | |
1712 | rm -f conftest* | |
1713 | fi | |
1714 | ||
1715 | echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6 | |
1716 | if test $ac_cv_type_unsigned_long_long = yes; then | |
1717 | cat >> confdefs.h <<\EOF | |
1718 | #define HAVE_UNSIGNED_LONG_LONG 1 | |
1719 | EOF | |
1720 | ||
1721 | fi | |
1722 | ||
1723 | ||
1724 | if test "X$prefix" = "XNONE"; then | |
1725 | acl_final_prefix="$ac_default_prefix" | |
1726 | else | |
1727 | acl_final_prefix="$prefix" | |
1728 | fi | |
1729 | if test "X$exec_prefix" = "XNONE"; then | |
1730 | acl_final_exec_prefix='${prefix}' | |
1731 | else | |
1732 | acl_final_exec_prefix="$exec_prefix" | |
1733 | fi | |
1734 | acl_save_prefix="$prefix" | |
1735 | prefix="$acl_final_prefix" | |
1736 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
1737 | prefix="$acl_save_prefix" | |
1738 | ||
1739 | ||
1740 | echo $ac_n "checking for shared library run path origin""... $ac_c" 1>&6 | |
d21ae6c5 | 1741 | echo "configure:1742: checking for shared library run path origin" >&5 |
a04eba3f TT |
1742 | if eval "test \"`echo '$''{'acl_cv_rpath'+set}'`\" = set"; then |
1743 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1744 | else | |
1745 | ||
1746 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
1747 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
1748 | . ./conftest.sh | |
1749 | rm -f ./conftest.sh | |
1750 | acl_cv_rpath=done | |
1751 | ||
1752 | fi | |
1753 | ||
1754 | echo "$ac_t""$acl_cv_rpath" 1>&6 | |
1755 | wl="$acl_cv_wl" | |
1756 | libext="$acl_cv_libext" | |
1757 | shlibext="$acl_cv_shlibext" | |
1758 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
1759 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
1760 | hardcode_direct="$acl_cv_hardcode_direct" | |
1761 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
1762 | sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec" | |
1763 | sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec" | |
1764 | # Check whether --enable-rpath or --disable-rpath was given. | |
1765 | if test "${enable_rpath+set}" = set; then | |
1766 | enableval="$enable_rpath" | |
1767 | : | |
1768 | else | |
1769 | enable_rpath=yes | |
1770 | fi | |
1771 | ||
1772 | ||
a64c9c13 | 1773 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
d21ae6c5 | 1774 | echo "configure:1775: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
a64c9c13 TT |
1775 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
1776 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
1777 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1778 | else | |
1779 | cat > conftestmake <<\EOF | |
1780 | all: | |
1781 | @echo 'ac_maketemp="${MAKE}"' | |
1782 | EOF | |
1783 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1784 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
1785 | if test -n "$ac_maketemp"; then | |
1786 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1787 | else | |
1788 | eval ac_cv_prog_make_${ac_make}_set=no | |
1789 | fi | |
1790 | rm -f conftestmake | |
1791 | fi | |
1792 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1793 | echo "$ac_t""yes" 1>&6 | |
1794 | SET_MAKE= | |
1795 | else | |
1796 | echo "$ac_t""no" 1>&6 | |
1797 | SET_MAKE="MAKE=${MAKE-make}" | |
1798 | fi | |
1799 | ||
a04eba3f TT |
1800 | # Find a good install program. We prefer a C program (faster), |
1801 | # so one script is as good as another. But avoid the broken or | |
1802 | # incompatible versions: | |
1803 | # SysV /etc/install, /usr/sbin/install | |
1804 | # SunOS /usr/etc/install | |
1805 | # IRIX /sbin/install | |
1806 | # AIX /bin/install | |
1807 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1808 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1809 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1810 | # ./install, which can be erroneously created by make from ./install.sh. | |
1811 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
d21ae6c5 | 1812 | echo "configure:1813: checking for a BSD compatible install" >&5 |
a04eba3f TT |
1813 | if test -z "$INSTALL"; then |
1814 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1815 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1816 | else | |
1817 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
1818 | for ac_dir in $PATH; do | |
1819 | # Account for people who put trailing slashes in PATH elements. | |
1820 | case "$ac_dir/" in | |
1821 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1822 | *) | |
1823 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1824 | # Don't use installbsd from OSF since it installs stuff as root | |
1825 | # by default. | |
1826 | for ac_prog in ginstall scoinst install; do | |
1827 | if test -f $ac_dir/$ac_prog; then | |
1828 | if test $ac_prog = install && | |
1829 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1830 | # AIX install. It has an incompatible calling convention. | |
1831 | : | |
1832 | else | |
1833 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1834 | break 2 | |
1835 | fi | |
1836 | fi | |
1837 | done | |
1838 | ;; | |
1839 | esac | |
1840 | done | |
1841 | IFS="$ac_save_IFS" | |
1842 | ||
1843 | fi | |
1844 | if test "${ac_cv_path_install+set}" = set; then | |
1845 | INSTALL="$ac_cv_path_install" | |
1846 | else | |
1847 | # As a last resort, use the slow shell script. We don't cache a | |
1848 | # path for INSTALL within a source directory, because that will | |
1849 | # break other packages using the cache if that directory is | |
1850 | # removed, or if the path is relative. | |
1851 | INSTALL="$ac_install_sh" | |
1852 | fi | |
1853 | fi | |
1854 | echo "$ac_t""$INSTALL" 1>&6 | |
1855 | ||
1856 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1857 | # It thinks the first close brace ends the variable substitution. | |
1858 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1859 | ||
1860 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
1861 | ||
1862 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1863 | ||
1864 | ||
1865 | MKINSTALLDIRS= | |
1866 | if test -n "$ac_aux_dir"; then | |
1867 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | |
1868 | fi | |
1869 | if test -z "$MKINSTALLDIRS"; then | |
1870 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
1871 | fi | |
1872 | ||
1873 | ||
a64c9c13 TT |
1874 | # Extract the first word of "ranlib", so it can be a program name with args. |
1875 | set dummy ranlib; ac_word=$2 | |
1876 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 1877 | echo "configure:1878: checking for $ac_word" >&5 |
a64c9c13 TT |
1878 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1879 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1880 | else | |
1881 | if test -n "$RANLIB"; then | |
1882 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1883 | else | |
1884 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1885 | ac_dummy="$PATH" | |
1886 | for ac_dir in $ac_dummy; do | |
1887 | test -z "$ac_dir" && ac_dir=. | |
1888 | if test -f $ac_dir/$ac_word; then | |
1889 | ac_cv_prog_RANLIB="ranlib" | |
1890 | break | |
1891 | fi | |
1892 | done | |
1893 | IFS="$ac_save_ifs" | |
1894 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1895 | fi | |
1896 | fi | |
1897 | RANLIB="$ac_cv_prog_RANLIB" | |
1898 | if test -n "$RANLIB"; then | |
1899 | echo "$ac_t""$RANLIB" 1>&6 | |
1900 | else | |
1901 | echo "$ac_t""no" 1>&6 | |
1902 | fi | |
1903 | ||
a04eba3f TT |
1904 | |
1905 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 | |
d21ae6c5 | 1906 | echo "configure:1907: checking for strerror in -lcposix" >&5 |
a04eba3f TT |
1907 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
1908 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1909 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1910 | else | |
1911 | ac_save_LIBS="$LIBS" | |
1912 | LIBS="-lcposix $LIBS" | |
1913 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 1914 | #line 1915 "configure" |
a04eba3f TT |
1915 | #include "confdefs.h" |
1916 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1917 | /* We use char because int might match the return type of a gcc2 | |
1918 | builtin and then its argument prototype would still apply. */ | |
1919 | char strerror(); | |
1920 | ||
1921 | int main() { | |
1922 | strerror() | |
1923 | ; return 0; } | |
a64c9c13 | 1924 | EOF |
d21ae6c5 | 1925 | if { (eval echo configure:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a04eba3f TT |
1926 | rm -rf conftest* |
1927 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1928 | else | |
1929 | echo "configure: failed program was:" >&5 | |
1930 | cat conftest.$ac_ext >&5 | |
1931 | rm -rf conftest* | |
1932 | eval "ac_cv_lib_$ac_lib_var=no" | |
1933 | fi | |
1934 | rm -f conftest* | |
1935 | LIBS="$ac_save_LIBS" | |
a64c9c13 | 1936 | |
a04eba3f TT |
1937 | fi |
1938 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1939 | echo "$ac_t""yes" 1>&6 | |
1940 | LIBS="$LIBS -lcposix" | |
a64c9c13 TT |
1941 | else |
1942 | echo "$ac_t""no" 1>&6 | |
a64c9c13 TT |
1943 | fi |
1944 | ||
a04eba3f TT |
1945 | |
1946 | ||
a64c9c13 | 1947 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
d21ae6c5 | 1948 | echo "configure:1949: checking for ANSI C header files" >&5 |
a64c9c13 TT |
1949 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1950 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1951 | else | |
1952 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 1953 | #line 1954 "configure" |
a64c9c13 TT |
1954 | #include "confdefs.h" |
1955 | #include <stdlib.h> | |
1956 | #include <stdarg.h> | |
1957 | #include <string.h> | |
1958 | #include <float.h> | |
1959 | EOF | |
1960 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d21ae6c5 | 1961 | { (eval echo configure:1962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a64c9c13 TT |
1962 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1963 | if test -z "$ac_err"; then | |
1964 | rm -rf conftest* | |
1965 | ac_cv_header_stdc=yes | |
1966 | else | |
1967 | echo "$ac_err" >&5 | |
1968 | echo "configure: failed program was:" >&5 | |
1969 | cat conftest.$ac_ext >&5 | |
1970 | rm -rf conftest* | |
1971 | ac_cv_header_stdc=no | |
1972 | fi | |
1973 | rm -f conftest* | |
1974 | ||
1975 | if test $ac_cv_header_stdc = yes; then | |
1976 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1977 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 1978 | #line 1979 "configure" |
a64c9c13 TT |
1979 | #include "confdefs.h" |
1980 | #include <string.h> | |
1981 | EOF | |
1982 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1983 | egrep "memchr" >/dev/null 2>&1; then | |
1984 | : | |
1985 | else | |
1986 | rm -rf conftest* | |
1987 | ac_cv_header_stdc=no | |
1988 | fi | |
1989 | rm -f conftest* | |
1990 | ||
1991 | fi | |
1992 | ||
1993 | if test $ac_cv_header_stdc = yes; then | |
1994 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1995 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 1996 | #line 1997 "configure" |
a64c9c13 TT |
1997 | #include "confdefs.h" |
1998 | #include <stdlib.h> | |
1999 | EOF | |
2000 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2001 | egrep "free" >/dev/null 2>&1; then | |
2002 | : | |
2003 | else | |
2004 | rm -rf conftest* | |
2005 | ac_cv_header_stdc=no | |
2006 | fi | |
2007 | rm -f conftest* | |
2008 | ||
2009 | fi | |
2010 | ||
2011 | if test $ac_cv_header_stdc = yes; then | |
2012 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2013 | if test "$cross_compiling" = yes; then | |
2014 | : | |
2015 | else | |
2016 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 2017 | #line 2018 "configure" |
a64c9c13 TT |
2018 | #include "confdefs.h" |
2019 | #include <ctype.h> | |
2020 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2021 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2022 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2023 | int main () { int i; for (i = 0; i < 256; i++) | |
2024 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
2025 | exit (0); } | |
2026 | ||
2027 | EOF | |
d21ae6c5 | 2028 | if { (eval echo configure:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a64c9c13 TT |
2029 | then |
2030 | : | |
2031 | else | |
2032 | echo "configure: failed program was:" >&5 | |
2033 | cat conftest.$ac_ext >&5 | |
2034 | rm -fr conftest* | |
2035 | ac_cv_header_stdc=no | |
2036 | fi | |
2037 | rm -fr conftest* | |
2038 | fi | |
2039 | ||
2040 | fi | |
2041 | fi | |
2042 | ||
2043 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
2044 | if test $ac_cv_header_stdc = yes; then | |
2045 | cat >> confdefs.h <<\EOF | |
2046 | #define STDC_HEADERS 1 | |
2047 | EOF | |
2048 | ||
2049 | fi | |
2050 | ||
2051 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
d21ae6c5 | 2052 | echo "configure:2053: checking for working const" >&5 |
a64c9c13 TT |
2053 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
2054 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2055 | else | |
2056 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 2057 | #line 2058 "configure" |
a64c9c13 TT |
2058 | #include "confdefs.h" |
2059 | ||
2060 | int main() { | |
2061 | ||
2062 | /* Ultrix mips cc rejects this. */ | |
250f79f0 | 2063 | typedef int charset[2]; const charset x; |
a64c9c13 TT |
2064 | /* SunOS 4.1.1 cc rejects this. */ |
2065 | char const *const *ccp; | |
2066 | char **p; | |
2067 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
2068 | struct point {int x, y;}; | |
2069 | static struct point const zero = {0,0}; | |
2070 | /* AIX XL C 1.02.0.0 rejects this. | |
2071 | It does not let you subtract one const X* pointer from another in an arm | |
2072 | of an if-expression whose if-part is not a constant expression */ | |
2073 | const char *g = "string"; | |
2074 | ccp = &g + (g ? g-g : 0); | |
2075 | /* HPUX 7.0 cc rejects these. */ | |
2076 | ++ccp; | |
2077 | p = (char**) ccp; | |
2078 | ccp = (char const *const *) p; | |
2079 | { /* SCO 3.2v4 cc rejects this. */ | |
2080 | char *t; | |
2081 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
2082 | ||
2083 | *t++ = 0; | |
2084 | } | |
2085 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
2086 | int x[] = {25, 17}; | |
2087 | const int *foo = &x[0]; | |
2088 | ++foo; | |
2089 | } | |
2090 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
2091 | typedef const int *iptr; | |
2092 | iptr p = 0; | |
2093 | ++p; | |
2094 | } | |
2095 | { /* AIX XL C 1.02.0.0 rejects this saying | |
2096 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
2097 | struct s { int j; const int *ap[3]; }; | |
2098 | struct s *b; b->j = 5; | |
2099 | } | |
2100 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
2101 | const int foo = 10; | |
2102 | } | |
2103 | ||
2104 | ; return 0; } | |
2105 | EOF | |
d21ae6c5 | 2106 | if { (eval echo configure:2107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a64c9c13 TT |
2107 | rm -rf conftest* |
2108 | ac_cv_c_const=yes | |
2109 | else | |
2110 | echo "configure: failed program was:" >&5 | |
2111 | cat conftest.$ac_ext >&5 | |
2112 | rm -rf conftest* | |
2113 | ac_cv_c_const=no | |
2114 | fi | |
2115 | rm -f conftest* | |
2116 | fi | |
2117 | ||
2118 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
2119 | if test $ac_cv_c_const = no; then | |
2120 | cat >> confdefs.h <<\EOF | |
2121 | #define const | |
2122 | EOF | |
2123 | ||
2124 | fi | |
2125 | ||
2126 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
d21ae6c5 | 2127 | echo "configure:2128: checking for inline" >&5 |
a64c9c13 TT |
2128 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
2129 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2130 | else | |
2131 | ac_cv_c_inline=no | |
2132 | for ac_kw in inline __inline__ __inline; do | |
2133 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 2134 | #line 2135 "configure" |
a64c9c13 TT |
2135 | #include "confdefs.h" |
2136 | ||
2137 | int main() { | |
250f79f0 | 2138 | } $ac_kw foo() { |
a64c9c13 TT |
2139 | ; return 0; } |
2140 | EOF | |
d21ae6c5 | 2141 | if { (eval echo configure:2142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a64c9c13 TT |
2142 | rm -rf conftest* |
2143 | ac_cv_c_inline=$ac_kw; break | |
2144 | else | |
2145 | echo "configure: failed program was:" >&5 | |
2146 | cat conftest.$ac_ext >&5 | |
2147 | fi | |
2148 | rm -f conftest* | |
2149 | done | |
2150 | ||
2151 | fi | |
2152 | ||
2153 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
2154 | case "$ac_cv_c_inline" in | |
2155 | inline | yes) ;; | |
2156 | no) cat >> confdefs.h <<\EOF | |
2157 | #define inline | |
2158 | EOF | |
2159 | ;; | |
2160 | *) cat >> confdefs.h <<EOF | |
2161 | #define inline $ac_cv_c_inline | |
2162 | EOF | |
2163 | ;; | |
2164 | esac | |
2165 | ||
2166 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
d21ae6c5 | 2167 | echo "configure:2168: checking for off_t" >&5 |
a64c9c13 TT |
2168 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
2169 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2170 | else | |
2171 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 2172 | #line 2173 "configure" |
a64c9c13 TT |
2173 | #include "confdefs.h" |
2174 | #include <sys/types.h> | |
2175 | #if STDC_HEADERS | |
2176 | #include <stdlib.h> | |
2177 | #include <stddef.h> | |
2178 | #endif | |
2179 | EOF | |
2180 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2181 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2182 | rm -rf conftest* | |
2183 | ac_cv_type_off_t=yes | |
2184 | else | |
2185 | rm -rf conftest* | |
2186 | ac_cv_type_off_t=no | |
2187 | fi | |
2188 | rm -f conftest* | |
2189 | ||
2190 | fi | |
2191 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
2192 | if test $ac_cv_type_off_t = no; then | |
2193 | cat >> confdefs.h <<\EOF | |
2194 | #define off_t long | |
2195 | EOF | |
2196 | ||
2197 | fi | |
2198 | ||
2199 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
d21ae6c5 | 2200 | echo "configure:2201: checking for size_t" >&5 |
a64c9c13 TT |
2201 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
2202 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2203 | else | |
2204 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 2205 | #line 2206 "configure" |
a64c9c13 TT |
2206 | #include "confdefs.h" |
2207 | #include <sys/types.h> | |
2208 | #if STDC_HEADERS | |
2209 | #include <stdlib.h> | |
2210 | #include <stddef.h> | |
2211 | #endif | |
2212 | EOF | |
2213 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2214 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2215 | rm -rf conftest* | |
2216 | ac_cv_type_size_t=yes | |
2217 | else | |
2218 | rm -rf conftest* | |
2219 | ac_cv_type_size_t=no | |
2220 | fi | |
2221 | rm -f conftest* | |
2222 | ||
2223 | fi | |
2224 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
2225 | if test $ac_cv_type_size_t = no; then | |
2226 | cat >> confdefs.h <<\EOF | |
2227 | #define size_t unsigned | |
2228 | EOF | |
2229 | ||
2230 | fi | |
2231 | ||
2232 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
2233 | # for constant arguments. Useless! | |
2234 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
d21ae6c5 | 2235 | echo "configure:2236: checking for working alloca.h" >&5 |
a64c9c13 TT |
2236 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
2237 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2238 | else | |
2239 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 2240 | #line 2241 "configure" |
a64c9c13 TT |
2241 | #include "confdefs.h" |
2242 | #include <alloca.h> | |
2243 | int main() { | |
250f79f0 | 2244 | char *p = alloca(2 * sizeof(int)); |
a64c9c13 TT |
2245 | ; return 0; } |
2246 | EOF | |
d21ae6c5 | 2247 | if { (eval echo configure:2248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 TT |
2248 | rm -rf conftest* |
2249 | ac_cv_header_alloca_h=yes | |
2250 | else | |
2251 | echo "configure: failed program was:" >&5 | |
2252 | cat conftest.$ac_ext >&5 | |
2253 | rm -rf conftest* | |
2254 | ac_cv_header_alloca_h=no | |
2255 | fi | |
2256 | rm -f conftest* | |
2257 | fi | |
2258 | ||
2259 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
2260 | if test $ac_cv_header_alloca_h = yes; then | |
2261 | cat >> confdefs.h <<\EOF | |
2262 | #define HAVE_ALLOCA_H 1 | |
2263 | EOF | |
2264 | ||
2265 | fi | |
2266 | ||
2267 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
d21ae6c5 | 2268 | echo "configure:2269: checking for alloca" >&5 |
a64c9c13 TT |
2269 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
2270 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2271 | else | |
2272 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 2273 | #line 2274 "configure" |
a64c9c13 TT |
2274 | #include "confdefs.h" |
2275 | ||
2276 | #ifdef __GNUC__ | |
2277 | # define alloca __builtin_alloca | |
2278 | #else | |
2279 | # ifdef _MSC_VER | |
2280 | # include <malloc.h> | |
2281 | # define alloca _alloca | |
2282 | # else | |
2283 | # if HAVE_ALLOCA_H | |
2284 | # include <alloca.h> | |
2285 | # else | |
2286 | # ifdef _AIX | |
2287 | #pragma alloca | |
2288 | # else | |
2289 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
2290 | char *alloca (); | |
2291 | # endif | |
2292 | # endif | |
2293 | # endif | |
2294 | # endif | |
2295 | #endif | |
2296 | ||
2297 | int main() { | |
2298 | char *p = (char *) alloca(1); | |
2299 | ; return 0; } | |
2300 | EOF | |
d21ae6c5 | 2301 | if { (eval echo configure:2302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 TT |
2302 | rm -rf conftest* |
2303 | ac_cv_func_alloca_works=yes | |
2304 | else | |
2305 | echo "configure: failed program was:" >&5 | |
2306 | cat conftest.$ac_ext >&5 | |
2307 | rm -rf conftest* | |
2308 | ac_cv_func_alloca_works=no | |
2309 | fi | |
2310 | rm -f conftest* | |
2311 | fi | |
2312 | ||
2313 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
2314 | if test $ac_cv_func_alloca_works = yes; then | |
2315 | cat >> confdefs.h <<\EOF | |
2316 | #define HAVE_ALLOCA 1 | |
2317 | EOF | |
2318 | ||
2319 | fi | |
2320 | ||
2321 | if test $ac_cv_func_alloca_works = no; then | |
2322 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
2323 | # that cause trouble. Some versions do not even contain alloca or | |
2324 | # contain a buggy version. If you still want to use their alloca, | |
2325 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
2326 | ALLOCA=alloca.${ac_objext} | |
2327 | cat >> confdefs.h <<\EOF | |
2328 | #define C_ALLOCA 1 | |
2329 | EOF | |
2330 | ||
2331 | ||
2332 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
d21ae6c5 | 2333 | echo "configure:2334: checking whether alloca needs Cray hooks" >&5 |
a64c9c13 TT |
2334 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
2335 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2336 | else | |
2337 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 2338 | #line 2339 "configure" |
a64c9c13 TT |
2339 | #include "confdefs.h" |
2340 | #if defined(CRAY) && ! defined(CRAY2) | |
2341 | webecray | |
2342 | #else | |
2343 | wenotbecray | |
2344 | #endif | |
2345 | ||
2346 | EOF | |
2347 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2348 | egrep "webecray" >/dev/null 2>&1; then | |
2349 | rm -rf conftest* | |
2350 | ac_cv_os_cray=yes | |
2351 | else | |
2352 | rm -rf conftest* | |
2353 | ac_cv_os_cray=no | |
2354 | fi | |
2355 | rm -f conftest* | |
2356 | ||
2357 | fi | |
2358 | ||
2359 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
2360 | if test $ac_cv_os_cray = yes; then | |
2361 | for ac_func in _getb67 GETB67 getb67; do | |
2362 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d21ae6c5 | 2363 | echo "configure:2364: checking for $ac_func" >&5 |
a64c9c13 TT |
2364 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2365 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2366 | else | |
2367 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 2368 | #line 2369 "configure" |
a64c9c13 TT |
2369 | #include "confdefs.h" |
2370 | /* System header to define __stub macros and hopefully few prototypes, | |
2371 | which can conflict with char $ac_func(); below. */ | |
2372 | #include <assert.h> | |
2373 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2374 | /* We use char because int might match the return type of a gcc2 | |
2375 | builtin and then its argument prototype would still apply. */ | |
2376 | char $ac_func(); | |
2377 | ||
2378 | int main() { | |
2379 | ||
2380 | /* The GNU C library defines this for functions which it implements | |
2381 | to always fail with ENOSYS. Some functions are actually named | |
2382 | something starting with __ and the normal name is an alias. */ | |
2383 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2384 | choke me | |
2385 | #else | |
2386 | $ac_func(); | |
2387 | #endif | |
2388 | ||
2389 | ; return 0; } | |
2390 | EOF | |
d21ae6c5 | 2391 | if { (eval echo configure:2392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 TT |
2392 | rm -rf conftest* |
2393 | eval "ac_cv_func_$ac_func=yes" | |
2394 | else | |
2395 | echo "configure: failed program was:" >&5 | |
2396 | cat conftest.$ac_ext >&5 | |
2397 | rm -rf conftest* | |
2398 | eval "ac_cv_func_$ac_func=no" | |
2399 | fi | |
2400 | rm -f conftest* | |
2401 | fi | |
2402 | ||
2403 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2404 | echo "$ac_t""yes" 1>&6 | |
2405 | cat >> confdefs.h <<EOF | |
2406 | #define CRAY_STACKSEG_END $ac_func | |
2407 | EOF | |
2408 | ||
2409 | break | |
2410 | else | |
2411 | echo "$ac_t""no" 1>&6 | |
2412 | fi | |
2413 | ||
2414 | done | |
2415 | fi | |
2416 | ||
2417 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
d21ae6c5 | 2418 | echo "configure:2419: checking stack direction for C alloca" >&5 |
a64c9c13 TT |
2419 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
2420 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2421 | else | |
2422 | if test "$cross_compiling" = yes; then | |
2423 | ac_cv_c_stack_direction=0 | |
2424 | else | |
2425 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 2426 | #line 2427 "configure" |
a64c9c13 TT |
2427 | #include "confdefs.h" |
2428 | find_stack_direction () | |
2429 | { | |
2430 | static char *addr = 0; | |
2431 | auto char dummy; | |
2432 | if (addr == 0) | |
2433 | { | |
2434 | addr = &dummy; | |
2435 | return find_stack_direction (); | |
2436 | } | |
2437 | else | |
2438 | return (&dummy > addr) ? 1 : -1; | |
2439 | } | |
2440 | main () | |
2441 | { | |
2442 | exit (find_stack_direction() < 0); | |
2443 | } | |
2444 | EOF | |
d21ae6c5 | 2445 | if { (eval echo configure:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a64c9c13 TT |
2446 | then |
2447 | ac_cv_c_stack_direction=1 | |
2448 | else | |
2449 | echo "configure: failed program was:" >&5 | |
2450 | cat conftest.$ac_ext >&5 | |
2451 | rm -fr conftest* | |
2452 | ac_cv_c_stack_direction=-1 | |
2453 | fi | |
2454 | rm -fr conftest* | |
2455 | fi | |
2456 | ||
2457 | fi | |
2458 | ||
2459 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
2460 | cat >> confdefs.h <<EOF | |
2461 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
2462 | EOF | |
2463 | ||
2464 | fi | |
2465 | ||
2466 | for ac_hdr in unistd.h | |
2467 | do | |
2468 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2469 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d21ae6c5 | 2470 | echo "configure:2471: checking for $ac_hdr" >&5 |
a64c9c13 TT |
2471 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2472 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2473 | else | |
2474 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 2475 | #line 2476 "configure" |
a64c9c13 TT |
2476 | #include "confdefs.h" |
2477 | #include <$ac_hdr> | |
2478 | EOF | |
2479 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d21ae6c5 | 2480 | { (eval echo configure:2481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a64c9c13 TT |
2481 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2482 | if test -z "$ac_err"; then | |
2483 | rm -rf conftest* | |
2484 | eval "ac_cv_header_$ac_safe=yes" | |
2485 | else | |
2486 | echo "$ac_err" >&5 | |
2487 | echo "configure: failed program was:" >&5 | |
2488 | cat conftest.$ac_ext >&5 | |
2489 | rm -rf conftest* | |
2490 | eval "ac_cv_header_$ac_safe=no" | |
2491 | fi | |
2492 | rm -f conftest* | |
2493 | fi | |
2494 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2495 | echo "$ac_t""yes" 1>&6 | |
2496 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2497 | cat >> confdefs.h <<EOF | |
2498 | #define $ac_tr_hdr 1 | |
2499 | EOF | |
2500 | ||
2501 | else | |
2502 | echo "$ac_t""no" 1>&6 | |
2503 | fi | |
2504 | done | |
2505 | ||
2506 | for ac_func in getpagesize | |
2507 | do | |
2508 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d21ae6c5 | 2509 | echo "configure:2510: checking for $ac_func" >&5 |
a64c9c13 TT |
2510 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2511 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2512 | else | |
2513 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 2514 | #line 2515 "configure" |
a64c9c13 TT |
2515 | #include "confdefs.h" |
2516 | /* System header to define __stub macros and hopefully few prototypes, | |
2517 | which can conflict with char $ac_func(); below. */ | |
2518 | #include <assert.h> | |
2519 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2520 | /* We use char because int might match the return type of a gcc2 | |
2521 | builtin and then its argument prototype would still apply. */ | |
2522 | char $ac_func(); | |
2523 | ||
2524 | int main() { | |
2525 | ||
2526 | /* The GNU C library defines this for functions which it implements | |
2527 | to always fail with ENOSYS. Some functions are actually named | |
2528 | something starting with __ and the normal name is an alias. */ | |
2529 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2530 | choke me | |
2531 | #else | |
2532 | $ac_func(); | |
2533 | #endif | |
2534 | ||
2535 | ; return 0; } | |
2536 | EOF | |
d21ae6c5 | 2537 | if { (eval echo configure:2538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 TT |
2538 | rm -rf conftest* |
2539 | eval "ac_cv_func_$ac_func=yes" | |
2540 | else | |
2541 | echo "configure: failed program was:" >&5 | |
2542 | cat conftest.$ac_ext >&5 | |
2543 | rm -rf conftest* | |
2544 | eval "ac_cv_func_$ac_func=no" | |
2545 | fi | |
2546 | rm -f conftest* | |
2547 | fi | |
2548 | ||
2549 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2550 | echo "$ac_t""yes" 1>&6 | |
2551 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2552 | cat >> confdefs.h <<EOF | |
2553 | #define $ac_tr_func 1 | |
2554 | EOF | |
2555 | ||
2556 | else | |
2557 | echo "$ac_t""no" 1>&6 | |
2558 | fi | |
2559 | done | |
2560 | ||
2561 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
d21ae6c5 | 2562 | echo "configure:2563: checking for working mmap" >&5 |
a64c9c13 TT |
2563 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
2564 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2565 | else | |
2566 | if test "$cross_compiling" = yes; then | |
2567 | ac_cv_func_mmap_fixed_mapped=no | |
2568 | else | |
2569 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 2570 | #line 2571 "configure" |
a64c9c13 TT |
2571 | #include "confdefs.h" |
2572 | ||
2573 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
2574 | Here is a matrix of mmap possibilities: | |
2575 | mmap private not fixed | |
2576 | mmap private fixed at somewhere currently unmapped | |
2577 | mmap private fixed at somewhere already mapped | |
2578 | mmap shared not fixed | |
2579 | mmap shared fixed at somewhere currently unmapped | |
2580 | mmap shared fixed at somewhere already mapped | |
2581 | For private mappings, we should verify that changes cannot be read() | |
2582 | back from the file, nor mmap's back from the file at a different | |
2583 | address. (There have been systems where private was not correctly | |
2584 | implemented like the infamous i386 svr4.0, and systems where the | |
2585 | VM page cache was not coherent with the filesystem buffer cache | |
2586 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
2587 | For shared mappings, we should conversely verify that changes get | |
2588 | propogated back to all the places they're supposed to be. | |
2589 | ||
2590 | Grep wants private fixed already mapped. | |
2591 | The main things grep needs to know about mmap are: | |
2592 | * does it exist and is it safe to write into the mmap'd area | |
2593 | * how to use it (BSD variants) */ | |
2594 | #include <sys/types.h> | |
2595 | #include <fcntl.h> | |
2596 | #include <sys/mman.h> | |
2597 | ||
2598 | /* This mess was copied from the GNU getpagesize.h. */ | |
2599 | #ifndef HAVE_GETPAGESIZE | |
250f79f0 TT |
2600 | # ifdef HAVE_UNISTD_H |
2601 | # include <unistd.h> | |
2602 | # endif | |
a64c9c13 TT |
2603 | |
2604 | /* Assume that all systems that can run configure have sys/param.h. */ | |
2605 | # ifndef HAVE_SYS_PARAM_H | |
2606 | # define HAVE_SYS_PARAM_H 1 | |
2607 | # endif | |
2608 | ||
2609 | # ifdef _SC_PAGESIZE | |
2610 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
2611 | # else /* no _SC_PAGESIZE */ | |
2612 | # ifdef HAVE_SYS_PARAM_H | |
2613 | # include <sys/param.h> | |
2614 | # ifdef EXEC_PAGESIZE | |
2615 | # define getpagesize() EXEC_PAGESIZE | |
2616 | # else /* no EXEC_PAGESIZE */ | |
2617 | # ifdef NBPG | |
2618 | # define getpagesize() NBPG * CLSIZE | |
2619 | # ifndef CLSIZE | |
2620 | # define CLSIZE 1 | |
2621 | # endif /* no CLSIZE */ | |
2622 | # else /* no NBPG */ | |
2623 | # ifdef NBPC | |
2624 | # define getpagesize() NBPC | |
2625 | # else /* no NBPC */ | |
2626 | # ifdef PAGESIZE | |
2627 | # define getpagesize() PAGESIZE | |
2628 | # endif /* PAGESIZE */ | |
2629 | # endif /* no NBPC */ | |
2630 | # endif /* no NBPG */ | |
2631 | # endif /* no EXEC_PAGESIZE */ | |
2632 | # else /* no HAVE_SYS_PARAM_H */ | |
2633 | # define getpagesize() 8192 /* punt totally */ | |
2634 | # endif /* no HAVE_SYS_PARAM_H */ | |
2635 | # endif /* no _SC_PAGESIZE */ | |
2636 | ||
2637 | #endif /* no HAVE_GETPAGESIZE */ | |
2638 | ||
2639 | #ifdef __cplusplus | |
2640 | extern "C" { void *malloc(unsigned); } | |
2641 | #else | |
2642 | char *malloc(); | |
2643 | #endif | |
2644 | ||
2645 | int | |
2646 | main() | |
2647 | { | |
2648 | char *data, *data2, *data3; | |
2649 | int i, pagesize; | |
2650 | int fd; | |
2651 | ||
2652 | pagesize = getpagesize(); | |
2653 | ||
2654 | /* | |
2655 | * First, make a file with some known garbage in it. | |
2656 | */ | |
250f79f0 | 2657 | data = malloc(pagesize); |
a64c9c13 TT |
2658 | if (!data) |
2659 | exit(1); | |
2660 | for (i = 0; i < pagesize; ++i) | |
2661 | *(data + i) = rand(); | |
2662 | umask(0); | |
2663 | fd = creat("conftestmmap", 0600); | |
2664 | if (fd < 0) | |
2665 | exit(1); | |
2666 | if (write(fd, data, pagesize) != pagesize) | |
2667 | exit(1); | |
2668 | close(fd); | |
2669 | ||
2670 | /* | |
2671 | * Next, try to mmap the file at a fixed address which | |
2672 | * already has something else allocated at it. If we can, | |
2673 | * also make sure that we see the same garbage. | |
2674 | */ | |
2675 | fd = open("conftestmmap", O_RDWR); | |
2676 | if (fd < 0) | |
2677 | exit(1); | |
250f79f0 | 2678 | data2 = malloc(2 * pagesize); |
a64c9c13 TT |
2679 | if (!data2) |
2680 | exit(1); | |
2681 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
2682 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
2683 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
2684 | exit(1); | |
2685 | for (i = 0; i < pagesize; ++i) | |
2686 | if (*(data + i) != *(data2 + i)) | |
2687 | exit(1); | |
2688 | ||
2689 | /* | |
2690 | * Finally, make sure that changes to the mapped area | |
2691 | * do not percolate back to the file as seen by read(). | |
2692 | * (This is a bug on some variants of i386 svr4.0.) | |
2693 | */ | |
2694 | for (i = 0; i < pagesize; ++i) | |
2695 | *(data2 + i) = *(data2 + i) + 1; | |
250f79f0 | 2696 | data3 = malloc(pagesize); |
a64c9c13 TT |
2697 | if (!data3) |
2698 | exit(1); | |
2699 | if (read(fd, data3, pagesize) != pagesize) | |
2700 | exit(1); | |
2701 | for (i = 0; i < pagesize; ++i) | |
2702 | if (*(data + i) != *(data3 + i)) | |
2703 | exit(1); | |
2704 | close(fd); | |
2705 | unlink("conftestmmap"); | |
2706 | exit(0); | |
2707 | } | |
2708 | ||
2709 | EOF | |
d21ae6c5 | 2710 | if { (eval echo configure:2711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a64c9c13 TT |
2711 | then |
2712 | ac_cv_func_mmap_fixed_mapped=yes | |
2713 | else | |
2714 | echo "configure: failed program was:" >&5 | |
2715 | cat conftest.$ac_ext >&5 | |
2716 | rm -fr conftest* | |
2717 | ac_cv_func_mmap_fixed_mapped=no | |
2718 | fi | |
2719 | rm -fr conftest* | |
2720 | fi | |
2721 | ||
2722 | fi | |
2723 | ||
2724 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
2725 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
2726 | cat >> confdefs.h <<\EOF | |
2727 | #define HAVE_MMAP 1 | |
2728 | EOF | |
2729 | ||
2730 | fi | |
2731 | ||
a04eba3f TT |
2732 | |
2733 | echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6 | |
d21ae6c5 | 2734 | echo "configure:2735: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
a04eba3f | 2735 | if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then |
a64c9c13 TT |
2736 | echo $ac_n "(cached) $ac_c" 1>&6 |
2737 | else | |
2738 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 2739 | #line 2740 "configure" |
a64c9c13 | 2740 | #include "confdefs.h" |
a04eba3f TT |
2741 | |
2742 | #include <features.h> | |
2743 | #ifdef __GNU_LIBRARY__ | |
2744 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | |
2745 | Lucky GNU user | |
2746 | #endif | |
2747 | #endif | |
2748 | ||
a64c9c13 | 2749 | EOF |
a04eba3f TT |
2750 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2751 | egrep "Lucky GNU user" >/dev/null 2>&1; then | |
a64c9c13 | 2752 | rm -rf conftest* |
a04eba3f | 2753 | ac_cv_gnu_library_2_1=yes |
a64c9c13 | 2754 | else |
a64c9c13 | 2755 | rm -rf conftest* |
a04eba3f | 2756 | ac_cv_gnu_library_2_1=no |
a64c9c13 TT |
2757 | fi |
2758 | rm -f conftest* | |
a04eba3f TT |
2759 | |
2760 | ||
2761 | ||
a64c9c13 | 2762 | fi |
a64c9c13 | 2763 | |
a04eba3f TT |
2764 | echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6 |
2765 | ||
2766 | GLIBC21="$ac_cv_gnu_library_2_1" | |
2767 | ||
2768 | ||
2769 | ||
2770 | ||
2771 | echo $ac_n "checking whether integer division by zero raises SIGFPE""... $ac_c" 1>&6 | |
d21ae6c5 | 2772 | echo "configure:2773: checking whether integer division by zero raises SIGFPE" >&5 |
a04eba3f | 2773 | if eval "test \"`echo '$''{'gt_cv_int_divbyzero_sigfpe'+set}'`\" = set"; then |
a64c9c13 | 2774 | echo $ac_n "(cached) $ac_c" 1>&6 |
a04eba3f TT |
2775 | else |
2776 | ||
2777 | if test "$cross_compiling" = yes; then | |
2778 | ||
2779 | # Guess based on the CPU. | |
2780 | case "$host_cpu" in | |
2781 | alpha* | i3456786 | m68k | s390*) | |
2782 | gt_cv_int_divbyzero_sigfpe="guessing yes";; | |
2783 | *) | |
2784 | gt_cv_int_divbyzero_sigfpe="guessing no";; | |
2785 | esac | |
2786 | ||
a64c9c13 TT |
2787 | else |
2788 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 2789 | #line 2790 "configure" |
a64c9c13 | 2790 | #include "confdefs.h" |
a64c9c13 | 2791 | |
a04eba3f TT |
2792 | #include <stdlib.h> |
2793 | #include <signal.h> | |
a64c9c13 | 2794 | |
a04eba3f TT |
2795 | static void |
2796 | #ifdef __cplusplus | |
2797 | sigfpe_handler (int sig) | |
a64c9c13 | 2798 | #else |
a04eba3f | 2799 | sigfpe_handler (sig) int sig; |
a64c9c13 | 2800 | #endif |
a04eba3f TT |
2801 | { |
2802 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ | |
2803 | exit (sig != SIGFPE); | |
2804 | } | |
2805 | ||
2806 | int x = 1; | |
2807 | int y = 0; | |
2808 | int z; | |
2809 | int nan; | |
2810 | ||
2811 | int main () | |
2812 | { | |
2813 | signal (SIGFPE, sigfpe_handler); | |
2814 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ | |
2815 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) | |
2816 | signal (SIGTRAP, sigfpe_handler); | |
2817 | #endif | |
2818 | /* Linux/SPARC yields signal SIGILL. */ | |
2819 | #if defined (__sparc__) && defined (__linux__) | |
2820 | signal (SIGILL, sigfpe_handler); | |
2821 | #endif | |
2822 | ||
2823 | z = x / y; | |
2824 | nan = y / y; | |
2825 | exit (1); | |
2826 | } | |
a64c9c13 | 2827 | |
a64c9c13 | 2828 | EOF |
d21ae6c5 | 2829 | if { (eval echo configure:2830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a04eba3f TT |
2830 | then |
2831 | gt_cv_int_divbyzero_sigfpe=yes | |
a64c9c13 TT |
2832 | else |
2833 | echo "configure: failed program was:" >&5 | |
2834 | cat conftest.$ac_ext >&5 | |
a04eba3f TT |
2835 | rm -fr conftest* |
2836 | gt_cv_int_divbyzero_sigfpe=no | |
a64c9c13 | 2837 | fi |
a04eba3f | 2838 | rm -fr conftest* |
a64c9c13 TT |
2839 | fi |
2840 | ||
a04eba3f TT |
2841 | |
2842 | fi | |
2843 | ||
2844 | echo "$ac_t""$gt_cv_int_divbyzero_sigfpe" 1>&6 | |
2845 | case "$gt_cv_int_divbyzero_sigfpe" in | |
2846 | *yes) value=1;; | |
2847 | *) value=0;; | |
2848 | esac | |
a64c9c13 | 2849 | cat >> confdefs.h <<EOF |
a04eba3f | 2850 | #define INTDIV0_RAISES_SIGFPE $value |
a64c9c13 | 2851 | EOF |
a64c9c13 TT |
2852 | |
2853 | ||
a04eba3f TT |
2854 | |
2855 | ||
2856 | ||
2857 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then | |
2858 | ||
2859 | test $ac_cv_type_unsigned_long_long = yes \ | |
2860 | && ac_type='unsigned long long' \ | |
2861 | || ac_type='unsigned long' | |
2862 | cat >> confdefs.h <<EOF | |
2863 | #define uintmax_t $ac_type | |
2864 | EOF | |
2865 | ||
2866 | fi | |
2867 | ||
2868 | ||
2869 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 | |
d21ae6c5 | 2870 | echo "configure:2871: checking for inttypes.h" >&5 |
a04eba3f | 2871 | if eval "test \"`echo '$''{'gt_cv_header_inttypes_h'+set}'`\" = set"; then |
a64c9c13 TT |
2872 | echo $ac_n "(cached) $ac_c" 1>&6 |
2873 | else | |
a04eba3f TT |
2874 | |
2875 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 2876 | #line 2877 "configure" |
a64c9c13 | 2877 | #include "confdefs.h" |
a04eba3f TT |
2878 | #include <sys/types.h> |
2879 | #include <inttypes.h> | |
a64c9c13 TT |
2880 | int main() { |
2881 | ||
a64c9c13 TT |
2882 | ; return 0; } |
2883 | EOF | |
d21ae6c5 | 2884 | if { (eval echo configure:2885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a64c9c13 | 2885 | rm -rf conftest* |
a04eba3f | 2886 | gt_cv_header_inttypes_h=yes |
a64c9c13 TT |
2887 | else |
2888 | echo "configure: failed program was:" >&5 | |
2889 | cat conftest.$ac_ext >&5 | |
2890 | rm -rf conftest* | |
a04eba3f | 2891 | gt_cv_header_inttypes_h=no |
a64c9c13 TT |
2892 | fi |
2893 | rm -f conftest* | |
a04eba3f | 2894 | |
a64c9c13 TT |
2895 | fi |
2896 | ||
a04eba3f TT |
2897 | echo "$ac_t""$gt_cv_header_inttypes_h" 1>&6 |
2898 | if test $gt_cv_header_inttypes_h = yes; then | |
2899 | cat >> confdefs.h <<EOF | |
2900 | #define HAVE_INTTYPES_H 1 | |
a64c9c13 | 2901 | EOF |
a64c9c13 | 2902 | |
a04eba3f | 2903 | fi |
a64c9c13 | 2904 | |
a64c9c13 | 2905 | |
a04eba3f TT |
2906 | |
2907 | if test $gt_cv_header_inttypes_h = yes; then | |
2908 | echo $ac_n "checking whether the inttypes.h PRIxNN macros are broken""... $ac_c" 1>&6 | |
d21ae6c5 | 2909 | echo "configure:2910: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
a04eba3f | 2910 | if eval "test \"`echo '$''{'gt_cv_inttypes_pri_broken'+set}'`\" = set"; then |
a64c9c13 TT |
2911 | echo $ac_n "(cached) $ac_c" 1>&6 |
2912 | else | |
a04eba3f TT |
2913 | |
2914 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 2915 | #line 2916 "configure" |
a64c9c13 | 2916 | #include "confdefs.h" |
a04eba3f TT |
2917 | #include <inttypes.h> |
2918 | #ifdef PRId32 | |
2919 | char *p = PRId32; | |
2920 | #endif | |
2921 | ||
a64c9c13 | 2922 | int main() { |
a04eba3f | 2923 | |
a64c9c13 TT |
2924 | ; return 0; } |
2925 | EOF | |
d21ae6c5 | 2926 | if { (eval echo configure:2927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a64c9c13 | 2927 | rm -rf conftest* |
a04eba3f | 2928 | gt_cv_inttypes_pri_broken=no |
a64c9c13 TT |
2929 | else |
2930 | echo "configure: failed program was:" >&5 | |
2931 | cat conftest.$ac_ext >&5 | |
2932 | rm -rf conftest* | |
a04eba3f | 2933 | gt_cv_inttypes_pri_broken=yes |
a64c9c13 TT |
2934 | fi |
2935 | rm -f conftest* | |
a04eba3f | 2936 | |
a64c9c13 TT |
2937 | fi |
2938 | ||
a04eba3f TT |
2939 | echo "$ac_t""$gt_cv_inttypes_pri_broken" 1>&6 |
2940 | fi | |
2941 | if test "$gt_cv_inttypes_pri_broken" = yes; then | |
2942 | cat >> confdefs.h <<EOF | |
2943 | #define PRI_MACROS_BROKEN 1 | |
a64c9c13 TT |
2944 | EOF |
2945 | ||
a64c9c13 | 2946 | fi |
a64c9c13 | 2947 | |
a04eba3f | 2948 | |
a64c9c13 | 2949 | |
a04eba3f | 2950 | |
a64c9c13 | 2951 | |
a04eba3f TT |
2952 | |
2953 | ||
2954 | use_additional=yes | |
2955 | ||
2956 | acl_save_prefix="$prefix" | |
2957 | prefix="$acl_final_prefix" | |
2958 | acl_save_exec_prefix="$exec_prefix" | |
2959 | exec_prefix="$acl_final_exec_prefix" | |
2960 | ||
2961 | eval additional_includedir=\"$includedir\" | |
2962 | eval additional_libdir=\"$libdir\" | |
2963 | ||
2964 | exec_prefix="$acl_save_exec_prefix" | |
2965 | prefix="$acl_save_prefix" | |
a64c9c13 | 2966 | |
a04eba3f TT |
2967 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
2968 | if test "${with_libiconv_prefix+set}" = set; then | |
2969 | withval="$with_libiconv_prefix" | |
2970 | ||
2971 | if test "X$withval" = "Xno"; then | |
2972 | use_additional=no | |
2973 | else | |
2974 | if test "X$withval" = "X"; then | |
2975 | ||
2976 | acl_save_prefix="$prefix" | |
2977 | prefix="$acl_final_prefix" | |
2978 | acl_save_exec_prefix="$exec_prefix" | |
2979 | exec_prefix="$acl_final_exec_prefix" | |
2980 | ||
2981 | eval additional_includedir=\"$includedir\" | |
2982 | eval additional_libdir=\"$libdir\" | |
2983 | ||
2984 | exec_prefix="$acl_save_exec_prefix" | |
2985 | prefix="$acl_save_prefix" | |
2986 | ||
2987 | else | |
2988 | additional_includedir="$withval/include" | |
2989 | additional_libdir="$withval/lib" | |
2990 | fi | |
2991 | fi | |
a64c9c13 | 2992 | |
a64c9c13 TT |
2993 | fi |
2994 | ||
a04eba3f TT |
2995 | LIBICONV= |
2996 | LTLIBICONV= | |
2997 | INCICONV= | |
2998 | rpathdirs= | |
2999 | ltrpathdirs= | |
3000 | names_already_handled= | |
3001 | names_next_round='iconv ' | |
3002 | while test -n "$names_next_round"; do | |
3003 | names_this_round="$names_next_round" | |
3004 | names_next_round= | |
3005 | for name in $names_this_round; do | |
3006 | already_handled= | |
3007 | for n in $names_already_handled; do | |
3008 | if test "$n" = "$name"; then | |
3009 | already_handled=yes | |
3010 | break | |
3011 | fi | |
3012 | done | |
3013 | if test -z "$already_handled"; then | |
3014 | names_already_handled="$names_already_handled $name" | |
3015 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
3016 | eval value=\"\$HAVE_LIB$uppername\" | |
3017 | if test -n "$value"; then | |
3018 | if test "$value" = yes; then | |
3019 | eval value=\"\$LIB$uppername\" | |
3020 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
3021 | eval value=\"\$LTLIB$uppername\" | |
3022 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
3023 | else | |
3024 | : | |
3025 | fi | |
3026 | else | |
3027 | found_dir= | |
3028 | found_la= | |
3029 | found_so= | |
3030 | found_a= | |
3031 | if test $use_additional = yes; then | |
3032 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
3033 | found_dir="$additional_libdir" | |
3034 | found_so="$additional_libdir/lib$name.$shlibext" | |
3035 | if test -f "$additional_libdir/lib$name.la"; then | |
3036 | found_la="$additional_libdir/lib$name.la" | |
3037 | fi | |
3038 | else | |
3039 | if test -f "$additional_libdir/lib$name.$libext"; then | |
3040 | found_dir="$additional_libdir" | |
3041 | found_a="$additional_libdir/lib$name.$libext" | |
3042 | if test -f "$additional_libdir/lib$name.la"; then | |
3043 | found_la="$additional_libdir/lib$name.la" | |
3044 | fi | |
3045 | fi | |
3046 | fi | |
3047 | fi | |
3048 | if test "X$found_dir" = "X"; then | |
3049 | for x in $LDFLAGS $LTLIBICONV; do | |
3050 | ||
3051 | acl_save_prefix="$prefix" | |
3052 | prefix="$acl_final_prefix" | |
3053 | acl_save_exec_prefix="$exec_prefix" | |
3054 | exec_prefix="$acl_final_exec_prefix" | |
3055 | eval x=\"$x\" | |
3056 | exec_prefix="$acl_save_exec_prefix" | |
3057 | prefix="$acl_save_prefix" | |
3058 | ||
3059 | case "$x" in | |
3060 | -L*) | |
3061 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
3062 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
3063 | found_dir="$dir" | |
3064 | found_so="$dir/lib$name.$shlibext" | |
3065 | if test -f "$dir/lib$name.la"; then | |
3066 | found_la="$dir/lib$name.la" | |
3067 | fi | |
3068 | else | |
3069 | if test -f "$dir/lib$name.$libext"; then | |
3070 | found_dir="$dir" | |
3071 | found_a="$dir/lib$name.$libext" | |
3072 | if test -f "$dir/lib$name.la"; then | |
3073 | found_la="$dir/lib$name.la" | |
3074 | fi | |
3075 | fi | |
3076 | fi | |
3077 | ;; | |
3078 | esac | |
3079 | if test "X$found_dir" != "X"; then | |
3080 | break | |
3081 | fi | |
3082 | done | |
3083 | fi | |
3084 | if test "X$found_dir" != "X"; then | |
3085 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
3086 | if test "X$found_so" != "X"; then | |
3087 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
3088 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
3089 | else | |
3090 | haveit= | |
3091 | for x in $ltrpathdirs; do | |
3092 | if test "X$x" = "X$found_dir"; then | |
3093 | haveit=yes | |
3094 | break | |
3095 | fi | |
3096 | done | |
3097 | if test -z "$haveit"; then | |
3098 | ltrpathdirs="$ltrpathdirs $found_dir" | |
3099 | fi | |
3100 | if test "$hardcode_direct" = yes; then | |
3101 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
3102 | else | |
3103 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
3104 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
3105 | haveit= | |
3106 | for x in $rpathdirs; do | |
3107 | if test "X$x" = "X$found_dir"; then | |
3108 | haveit=yes | |
3109 | break | |
3110 | fi | |
3111 | done | |
3112 | if test -z "$haveit"; then | |
3113 | rpathdirs="$rpathdirs $found_dir" | |
3114 | fi | |
3115 | else | |
3116 | haveit= | |
3117 | for x in $LDFLAGS $LIBICONV; do | |
3118 | ||
3119 | acl_save_prefix="$prefix" | |
3120 | prefix="$acl_final_prefix" | |
3121 | acl_save_exec_prefix="$exec_prefix" | |
3122 | exec_prefix="$acl_final_exec_prefix" | |
3123 | eval x=\"$x\" | |
3124 | exec_prefix="$acl_save_exec_prefix" | |
3125 | prefix="$acl_save_prefix" | |
3126 | ||
3127 | if test "X$x" = "X-L$found_dir"; then | |
3128 | haveit=yes | |
3129 | break | |
3130 | fi | |
3131 | done | |
3132 | if test -z "$haveit"; then | |
3133 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
3134 | fi | |
3135 | if test "$hardcode_minus_L" != no; then | |
3136 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
3137 | else | |
3138 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
3139 | fi | |
3140 | fi | |
3141 | fi | |
3142 | fi | |
3143 | else | |
3144 | if test "X$found_a" != "X"; then | |
3145 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
3146 | else | |
3147 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
3148 | fi | |
3149 | fi | |
3150 | additional_includedir= | |
3151 | case "$found_dir" in | |
3152 | */lib | */lib/) | |
3153 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
3154 | additional_includedir="$basedir/include" | |
3155 | ;; | |
3156 | esac | |
3157 | if test "X$additional_includedir" != "X"; then | |
3158 | if test "X$additional_includedir" != "X/usr/include"; then | |
3159 | haveit= | |
3160 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
3161 | if test -n "$GCC"; then | |
3162 | case $host_os in | |
3163 | linux*) haveit=yes;; | |
3164 | esac | |
3165 | fi | |
3166 | fi | |
3167 | if test -z "$haveit"; then | |
3168 | for x in $CPPFLAGS $INCICONV; do | |
3169 | ||
3170 | acl_save_prefix="$prefix" | |
3171 | prefix="$acl_final_prefix" | |
3172 | acl_save_exec_prefix="$exec_prefix" | |
3173 | exec_prefix="$acl_final_exec_prefix" | |
3174 | eval x=\"$x\" | |
3175 | exec_prefix="$acl_save_exec_prefix" | |
3176 | prefix="$acl_save_prefix" | |
3177 | ||
3178 | if test "X$x" = "X-I$additional_includedir"; then | |
3179 | haveit=yes | |
3180 | break | |
3181 | fi | |
3182 | done | |
3183 | if test -z "$haveit"; then | |
3184 | if test -d "$additional_includedir"; then | |
3185 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
3186 | fi | |
3187 | fi | |
3188 | fi | |
3189 | fi | |
3190 | fi | |
3191 | if test -n "$found_la"; then | |
3192 | save_libdir="$libdir" | |
3193 | case "$found_la" in | |
3194 | */* | *\\*) . "$found_la" ;; | |
3195 | *) . "./$found_la" ;; | |
3196 | esac | |
3197 | libdir="$save_libdir" | |
3198 | for dep in $dependency_libs; do | |
3199 | case "$dep" in | |
3200 | -L*) | |
3201 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
3202 | if test "X$additional_libdir" != "X/usr/lib"; then | |
3203 | haveit= | |
3204 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
3205 | if test -n "$GCC"; then | |
3206 | case $host_os in | |
3207 | linux*) haveit=yes;; | |
3208 | esac | |
3209 | fi | |
3210 | fi | |
3211 | if test -z "$haveit"; then | |
3212 | haveit= | |
3213 | for x in $LDFLAGS $LIBICONV; do | |
3214 | ||
3215 | acl_save_prefix="$prefix" | |
3216 | prefix="$acl_final_prefix" | |
3217 | acl_save_exec_prefix="$exec_prefix" | |
3218 | exec_prefix="$acl_final_exec_prefix" | |
3219 | eval x=\"$x\" | |
3220 | exec_prefix="$acl_save_exec_prefix" | |
3221 | prefix="$acl_save_prefix" | |
3222 | ||
3223 | if test "X$x" = "X-L$additional_libdir"; then | |
3224 | haveit=yes | |
3225 | break | |
3226 | fi | |
3227 | done | |
3228 | if test -z "$haveit"; then | |
3229 | if test -d "$additional_libdir"; then | |
3230 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
3231 | fi | |
3232 | fi | |
3233 | haveit= | |
3234 | for x in $LDFLAGS $LTLIBICONV; do | |
3235 | ||
3236 | acl_save_prefix="$prefix" | |
3237 | prefix="$acl_final_prefix" | |
3238 | acl_save_exec_prefix="$exec_prefix" | |
3239 | exec_prefix="$acl_final_exec_prefix" | |
3240 | eval x=\"$x\" | |
3241 | exec_prefix="$acl_save_exec_prefix" | |
3242 | prefix="$acl_save_prefix" | |
3243 | ||
3244 | if test "X$x" = "X-L$additional_libdir"; then | |
3245 | haveit=yes | |
3246 | break | |
3247 | fi | |
3248 | done | |
3249 | if test -z "$haveit"; then | |
3250 | if test -d "$additional_libdir"; then | |
3251 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
3252 | fi | |
3253 | fi | |
3254 | fi | |
3255 | fi | |
3256 | ;; | |
3257 | -R*) | |
3258 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
3259 | if test "$enable_rpath" != no; then | |
3260 | haveit= | |
3261 | for x in $rpathdirs; do | |
3262 | if test "X$x" = "X$dir"; then | |
3263 | haveit=yes | |
3264 | break | |
3265 | fi | |
3266 | done | |
3267 | if test -z "$haveit"; then | |
3268 | rpathdirs="$rpathdirs $dir" | |
3269 | fi | |
3270 | haveit= | |
3271 | for x in $ltrpathdirs; do | |
3272 | if test "X$x" = "X$dir"; then | |
3273 | haveit=yes | |
3274 | break | |
3275 | fi | |
3276 | done | |
3277 | if test -z "$haveit"; then | |
3278 | ltrpathdirs="$ltrpathdirs $dir" | |
3279 | fi | |
3280 | fi | |
3281 | ;; | |
3282 | -l*) | |
3283 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
3284 | ;; | |
3285 | *.la) | |
3286 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
3287 | ;; | |
3288 | *) | |
3289 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
3290 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
3291 | ;; | |
3292 | esac | |
3293 | done | |
3294 | fi | |
3295 | else | |
3296 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
3297 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
3298 | fi | |
3299 | fi | |
3300 | fi | |
3301 | done | |
3302 | done | |
3303 | if test "X$rpathdirs" != "X"; then | |
3304 | if test -n "$hardcode_libdir_separator"; then | |
3305 | alldirs= | |
3306 | for found_dir in $rpathdirs; do | |
3307 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
3308 | done | |
3309 | acl_save_libdir="$libdir" | |
3310 | libdir="$alldirs" | |
3311 | eval flag=\"$hardcode_libdir_flag_spec\" | |
3312 | libdir="$acl_save_libdir" | |
3313 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
3314 | else | |
3315 | for found_dir in $rpathdirs; do | |
3316 | acl_save_libdir="$libdir" | |
3317 | libdir="$found_dir" | |
3318 | eval flag=\"$hardcode_libdir_flag_spec\" | |
3319 | libdir="$acl_save_libdir" | |
3320 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
3321 | done | |
3322 | fi | |
3323 | fi | |
3324 | if test "X$ltrpathdirs" != "X"; then | |
3325 | for found_dir in $ltrpathdirs; do | |
3326 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
3327 | done | |
3328 | fi | |
a64c9c13 | 3329 | |
a64c9c13 | 3330 | |
a04eba3f TT |
3331 | |
3332 | ||
3333 | ||
3334 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
3335 | set dummy msgfmt; ac_word=$2 | |
3336 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 3337 | echo "configure:3338: checking for $ac_word" >&5 |
a04eba3f | 3338 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
a64c9c13 TT |
3339 | echo $ac_n "(cached) $ac_c" 1>&6 |
3340 | else | |
a04eba3f TT |
3341 | case "$MSGFMT" in |
3342 | /*) | |
3343 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
3344 | ;; | |
3345 | *) | |
3346 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3347 | for ac_dir in $PATH; do | |
3348 | test -z "$ac_dir" && ac_dir=. | |
3349 | if test -f $ac_dir/$ac_word; then | |
3350 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
3351 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
3352 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
3353 | break | |
3354 | fi | |
3355 | fi | |
3356 | done | |
3357 | IFS="$ac_save_ifs" | |
3358 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
3359 | ;; | |
3360 | esac | |
a64c9c13 | 3361 | fi |
a04eba3f TT |
3362 | MSGFMT="$ac_cv_path_MSGFMT" |
3363 | if test "$MSGFMT" != ":"; then | |
3364 | echo "$ac_t""$MSGFMT" 1>&6 | |
3365 | else | |
3366 | echo "$ac_t""no" 1>&6 | |
a64c9c13 | 3367 | fi |
a04eba3f TT |
3368 | |
3369 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
3370 | set dummy gmsgfmt; ac_word=$2 | |
3371 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 3372 | echo "configure:3373: checking for $ac_word" >&5 |
a04eba3f | 3373 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
a64c9c13 TT |
3374 | echo $ac_n "(cached) $ac_c" 1>&6 |
3375 | else | |
a04eba3f TT |
3376 | case "$GMSGFMT" in |
3377 | /*) | |
3378 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
3379 | ;; | |
3380 | ?:/*) | |
3381 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
3382 | ;; | |
3383 | *) | |
3384 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3385 | ac_dummy="$PATH" | |
3386 | for ac_dir in $ac_dummy; do | |
3387 | test -z "$ac_dir" && ac_dir=. | |
3388 | if test -f $ac_dir/$ac_word; then | |
3389 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
3390 | break | |
3391 | fi | |
3392 | done | |
3393 | IFS="$ac_save_ifs" | |
3394 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
3395 | ;; | |
3396 | esac | |
a64c9c13 | 3397 | fi |
a04eba3f TT |
3398 | GMSGFMT="$ac_cv_path_GMSGFMT" |
3399 | if test -n "$GMSGFMT"; then | |
3400 | echo "$ac_t""$GMSGFMT" 1>&6 | |
3401 | else | |
3402 | echo "$ac_t""no" 1>&6 | |
a64c9c13 TT |
3403 | fi |
3404 | ||
a64c9c13 | 3405 | |
a04eba3f TT |
3406 | # Extract the first word of "xgettext", so it can be a program name with args. |
3407 | set dummy xgettext; ac_word=$2 | |
3408 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 3409 | echo "configure:3410: checking for $ac_word" >&5 |
a04eba3f | 3410 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
a64c9c13 TT |
3411 | echo $ac_n "(cached) $ac_c" 1>&6 |
3412 | else | |
a04eba3f TT |
3413 | case "$XGETTEXT" in |
3414 | /*) | |
3415 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
3416 | ;; | |
3417 | *) | |
3418 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3419 | for ac_dir in $PATH; do | |
3420 | test -z "$ac_dir" && ac_dir=. | |
3421 | if test -f $ac_dir/$ac_word; then | |
3422 | if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && | |
3423 | (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
3424 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
3425 | break | |
3426 | fi | |
3427 | fi | |
3428 | done | |
3429 | IFS="$ac_save_ifs" | |
3430 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
3431 | ;; | |
3432 | esac | |
a64c9c13 | 3433 | fi |
a04eba3f TT |
3434 | XGETTEXT="$ac_cv_path_XGETTEXT" |
3435 | if test "$XGETTEXT" != ":"; then | |
3436 | echo "$ac_t""$XGETTEXT" 1>&6 | |
a64c9c13 TT |
3437 | else |
3438 | echo "$ac_t""no" 1>&6 | |
3439 | fi | |
3440 | ||
a04eba3f | 3441 | rm -f messages.po |
a64c9c13 | 3442 | |
a04eba3f TT |
3443 | # Extract the first word of "msgmerge", so it can be a program name with args. |
3444 | set dummy msgmerge; ac_word=$2 | |
a64c9c13 | 3445 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d21ae6c5 | 3446 | echo "configure:3447: checking for $ac_word" >&5 |
a04eba3f | 3447 | if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then |
a64c9c13 TT |
3448 | echo $ac_n "(cached) $ac_c" 1>&6 |
3449 | else | |
a04eba3f | 3450 | case "$MSGMERGE" in |
a64c9c13 | 3451 | /*) |
a04eba3f | 3452 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
a64c9c13 TT |
3453 | ;; |
3454 | *) | |
3455 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3456 | for ac_dir in $PATH; do | |
3457 | test -z "$ac_dir" && ac_dir=. | |
3458 | if test -f $ac_dir/$ac_word; then | |
a04eba3f TT |
3459 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
3460 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word" | |
a64c9c13 TT |
3461 | break |
3462 | fi | |
3463 | fi | |
3464 | done | |
3465 | IFS="$ac_save_ifs" | |
a04eba3f | 3466 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
a64c9c13 TT |
3467 | ;; |
3468 | esac | |
3469 | fi | |
a04eba3f TT |
3470 | MSGMERGE="$ac_cv_path_MSGMERGE" |
3471 | if test "$MSGMERGE" != ":"; then | |
3472 | echo "$ac_t""$MSGMERGE" 1>&6 | |
a64c9c13 TT |
3473 | else |
3474 | echo "$ac_t""no" 1>&6 | |
3475 | fi | |
a04eba3f TT |
3476 | |
3477 | ||
3478 | if test "$GMSGFMT" != ":"; then | |
3479 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
3480 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
3481 | : ; | |
3482 | else | |
3483 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
3484 | echo "$ac_t""found $GMSGFMT program is not GNU msgfmt; ignore it" 1>&6 | |
3485 | GMSGFMT=":" | |
3486 | fi | |
3487 | fi | |
3488 | ||
3489 | if test "$XGETTEXT" != ":"; then | |
3490 | if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && | |
3491 | (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
3492 | : ; | |
3493 | else | |
3494 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 | |
3495 | XGETTEXT=":" | |
3496 | fi | |
3497 | rm -f messages.po | |
3498 | fi | |
3499 | ||
3500 | ||
3501 | ||
3502 | ||
3503 | ||
3504 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ | |
3505 | stdlib.h string.h unistd.h sys/param.h | |
3506 | do | |
3507 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3508 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d21ae6c5 | 3509 | echo "configure:3510: checking for $ac_hdr" >&5 |
a04eba3f TT |
3510 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3511 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3512 | else | |
3513 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 3514 | #line 3515 "configure" |
a04eba3f TT |
3515 | #include "confdefs.h" |
3516 | #include <$ac_hdr> | |
3517 | EOF | |
3518 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d21ae6c5 | 3519 | { (eval echo configure:3520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a04eba3f TT |
3520 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3521 | if test -z "$ac_err"; then | |
3522 | rm -rf conftest* | |
3523 | eval "ac_cv_header_$ac_safe=yes" | |
3524 | else | |
3525 | echo "$ac_err" >&5 | |
3526 | echo "configure: failed program was:" >&5 | |
3527 | cat conftest.$ac_ext >&5 | |
3528 | rm -rf conftest* | |
3529 | eval "ac_cv_header_$ac_safe=no" | |
3530 | fi | |
3531 | rm -f conftest* | |
3532 | fi | |
3533 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3534 | echo "$ac_t""yes" 1>&6 | |
3535 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3536 | cat >> confdefs.h <<EOF | |
3537 | #define $ac_tr_hdr 1 | |
3538 | EOF | |
3539 | ||
3540 | else | |
3541 | echo "$ac_t""no" 1>&6 | |
3542 | fi | |
3543 | done | |
3544 | ||
3545 | for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ | |
3546 | geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ | |
3547 | strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next | |
a64c9c13 TT |
3548 | do |
3549 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d21ae6c5 | 3550 | echo "configure:3551: checking for $ac_func" >&5 |
a64c9c13 TT |
3551 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3552 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3553 | else | |
3554 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 3555 | #line 3556 "configure" |
a64c9c13 TT |
3556 | #include "confdefs.h" |
3557 | /* System header to define __stub macros and hopefully few prototypes, | |
3558 | which can conflict with char $ac_func(); below. */ | |
3559 | #include <assert.h> | |
3560 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3561 | /* We use char because int might match the return type of a gcc2 | |
3562 | builtin and then its argument prototype would still apply. */ | |
3563 | char $ac_func(); | |
3564 | ||
3565 | int main() { | |
3566 | ||
3567 | /* The GNU C library defines this for functions which it implements | |
3568 | to always fail with ENOSYS. Some functions are actually named | |
3569 | something starting with __ and the normal name is an alias. */ | |
3570 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3571 | choke me | |
3572 | #else | |
3573 | $ac_func(); | |
3574 | #endif | |
3575 | ||
3576 | ; return 0; } | |
3577 | EOF | |
d21ae6c5 | 3578 | if { (eval echo configure:3579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 TT |
3579 | rm -rf conftest* |
3580 | eval "ac_cv_func_$ac_func=yes" | |
3581 | else | |
3582 | echo "configure: failed program was:" >&5 | |
3583 | cat conftest.$ac_ext >&5 | |
3584 | rm -rf conftest* | |
3585 | eval "ac_cv_func_$ac_func=no" | |
3586 | fi | |
3587 | rm -f conftest* | |
3588 | fi | |
3589 | ||
3590 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3591 | echo "$ac_t""yes" 1>&6 | |
3592 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3593 | cat >> confdefs.h <<EOF | |
3594 | #define $ac_tr_func 1 | |
3595 | EOF | |
3596 | ||
3597 | else | |
3598 | echo "$ac_t""no" 1>&6 | |
3599 | fi | |
3600 | done | |
3601 | ||
a04eba3f TT |
3602 | |
3603 | ||
3604 | ||
3605 | ||
3606 | ||
3607 | ||
3608 | am_save_CPPFLAGS="$CPPFLAGS" | |
3609 | ||
3610 | for element in $INCICONV; do | |
3611 | haveit= | |
3612 | for x in $CPPFLAGS; do | |
3613 | ||
3614 | acl_save_prefix="$prefix" | |
3615 | prefix="$acl_final_prefix" | |
3616 | acl_save_exec_prefix="$exec_prefix" | |
3617 | exec_prefix="$acl_final_exec_prefix" | |
3618 | eval x=\"$x\" | |
3619 | exec_prefix="$acl_save_exec_prefix" | |
3620 | prefix="$acl_save_prefix" | |
3621 | ||
3622 | if test "X$x" = "X$element"; then | |
3623 | haveit=yes | |
3624 | break | |
3625 | fi | |
3626 | done | |
3627 | if test -z "$haveit"; then | |
3628 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
a64c9c13 TT |
3629 | fi |
3630 | done | |
a64c9c13 | 3631 | |
a04eba3f TT |
3632 | |
3633 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 | |
d21ae6c5 | 3634 | echo "configure:3635: checking for iconv" >&5 |
a04eba3f | 3635 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
a64c9c13 TT |
3636 | echo $ac_n "(cached) $ac_c" 1>&6 |
3637 | else | |
a04eba3f TT |
3638 | |
3639 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
3640 | am_cv_lib_iconv=no | |
3641 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 3642 | #line 3643 "configure" |
a04eba3f TT |
3643 | #include "confdefs.h" |
3644 | #include <stdlib.h> | |
3645 | #include <iconv.h> | |
3646 | int main() { | |
3647 | iconv_t cd = iconv_open("",""); | |
3648 | iconv(cd,NULL,NULL,NULL,NULL); | |
3649 | iconv_close(cd); | |
3650 | ; return 0; } | |
3651 | EOF | |
d21ae6c5 | 3652 | if { (eval echo configure:3653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a04eba3f TT |
3653 | rm -rf conftest* |
3654 | am_cv_func_iconv=yes | |
a64c9c13 | 3655 | else |
a04eba3f TT |
3656 | echo "configure: failed program was:" >&5 |
3657 | cat conftest.$ac_ext >&5 | |
a64c9c13 | 3658 | fi |
a04eba3f TT |
3659 | rm -f conftest* |
3660 | if test "$am_cv_func_iconv" != yes; then | |
3661 | am_save_LIBS="$LIBS" | |
3662 | LIBS="$LIBS $LIBICONV" | |
3663 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 3664 | #line 3665 "configure" |
a64c9c13 | 3665 | #include "confdefs.h" |
a04eba3f TT |
3666 | #include <stdlib.h> |
3667 | #include <iconv.h> | |
a64c9c13 | 3668 | int main() { |
a04eba3f TT |
3669 | iconv_t cd = iconv_open("",""); |
3670 | iconv(cd,NULL,NULL,NULL,NULL); | |
3671 | iconv_close(cd); | |
a64c9c13 TT |
3672 | ; return 0; } |
3673 | EOF | |
d21ae6c5 | 3674 | if { (eval echo configure:3675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 | 3675 | rm -rf conftest* |
a04eba3f TT |
3676 | am_cv_lib_iconv=yes |
3677 | am_cv_func_iconv=yes | |
a64c9c13 TT |
3678 | else |
3679 | echo "configure: failed program was:" >&5 | |
3680 | cat conftest.$ac_ext >&5 | |
a64c9c13 TT |
3681 | fi |
3682 | rm -f conftest* | |
a04eba3f TT |
3683 | LIBS="$am_save_LIBS" |
3684 | fi | |
3685 | ||
a64c9c13 TT |
3686 | fi |
3687 | ||
a04eba3f TT |
3688 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
3689 | if test "$am_cv_func_iconv" = yes; then | |
3690 | cat >> confdefs.h <<\EOF | |
3691 | #define HAVE_ICONV 1 | |
3692 | EOF | |
a64c9c13 | 3693 | |
a04eba3f TT |
3694 | fi |
3695 | if test "$am_cv_lib_iconv" = yes; then | |
3696 | echo $ac_n "checking how to link with libiconv""... $ac_c" 1>&6 | |
d21ae6c5 | 3697 | echo "configure:3698: checking how to link with libiconv" >&5 |
a04eba3f TT |
3698 | echo "$ac_t""$LIBICONV" 1>&6 |
3699 | else | |
3700 | CPPFLAGS="$am_save_CPPFLAGS" | |
3701 | LIBICONV= | |
3702 | LTLIBICONV= | |
3703 | fi | |
3704 | ||
3705 | ||
a64c9c13 | 3706 | |
a04eba3f TT |
3707 | if test "$am_cv_func_iconv" = yes; then |
3708 | echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6 | |
d21ae6c5 | 3709 | echo "configure:3710: checking for iconv declaration" >&5 |
a04eba3f | 3710 | if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then |
a64c9c13 TT |
3711 | echo $ac_n "(cached) $ac_c" 1>&6 |
3712 | else | |
a04eba3f TT |
3713 | |
3714 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 3715 | #line 3716 "configure" |
a64c9c13 TT |
3716 | #include "confdefs.h" |
3717 | ||
a04eba3f TT |
3718 | #include <stdlib.h> |
3719 | #include <iconv.h> | |
3720 | extern | |
3721 | #ifdef __cplusplus | |
3722 | "C" | |
3723 | #endif | |
3724 | #if defined(__STDC__) || defined(__cplusplus) | |
3725 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
3726 | #else | |
3727 | size_t iconv(); | |
3728 | #endif | |
3729 | ||
a64c9c13 | 3730 | int main() { |
a04eba3f | 3731 | |
a64c9c13 TT |
3732 | ; return 0; } |
3733 | EOF | |
d21ae6c5 | 3734 | if { (eval echo configure:3735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a64c9c13 | 3735 | rm -rf conftest* |
a04eba3f | 3736 | am_cv_proto_iconv_arg1="" |
a64c9c13 TT |
3737 | else |
3738 | echo "configure: failed program was:" >&5 | |
3739 | cat conftest.$ac_ext >&5 | |
3740 | rm -rf conftest* | |
a04eba3f | 3741 | am_cv_proto_iconv_arg1="const" |
a64c9c13 TT |
3742 | fi |
3743 | rm -f conftest* | |
a04eba3f | 3744 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
a64c9c13 | 3745 | fi |
a64c9c13 | 3746 | |
a04eba3f TT |
3747 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
3748 | echo "$ac_t""${ac_t:- | |
3749 | }$am_cv_proto_iconv" 1>&6 | |
3750 | cat >> confdefs.h <<EOF | |
3751 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
3752 | EOF | |
a64c9c13 | 3753 | |
a04eba3f | 3754 | fi |
a64c9c13 | 3755 | |
a04eba3f TT |
3756 | |
3757 | echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6 | |
d21ae6c5 | 3758 | echo "configure:3759: checking for nl_langinfo and CODESET" >&5 |
a04eba3f | 3759 | if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then |
a64c9c13 TT |
3760 | echo $ac_n "(cached) $ac_c" 1>&6 |
3761 | else | |
3762 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 3763 | #line 3764 "configure" |
a64c9c13 | 3764 | #include "confdefs.h" |
a04eba3f | 3765 | #include <langinfo.h> |
a64c9c13 | 3766 | int main() { |
a04eba3f | 3767 | char* cs = nl_langinfo(CODESET); |
a64c9c13 TT |
3768 | ; return 0; } |
3769 | EOF | |
d21ae6c5 | 3770 | if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a64c9c13 | 3771 | rm -rf conftest* |
a04eba3f | 3772 | am_cv_langinfo_codeset=yes |
a64c9c13 TT |
3773 | else |
3774 | echo "configure: failed program was:" >&5 | |
3775 | cat conftest.$ac_ext >&5 | |
3776 | rm -rf conftest* | |
a04eba3f | 3777 | am_cv_langinfo_codeset=no |
a64c9c13 TT |
3778 | fi |
3779 | rm -f conftest* | |
a04eba3f | 3780 | |
a64c9c13 TT |
3781 | fi |
3782 | ||
a04eba3f TT |
3783 | echo "$ac_t""$am_cv_langinfo_codeset" 1>&6 |
3784 | if test $am_cv_langinfo_codeset = yes; then | |
3785 | cat >> confdefs.h <<\EOF | |
3786 | #define HAVE_LANGINFO_CODESET 1 | |
a64c9c13 TT |
3787 | EOF |
3788 | ||
a04eba3f | 3789 | fi |
a64c9c13 | 3790 | |
a04eba3f TT |
3791 | if test $ac_cv_header_locale_h = yes; then |
3792 | ||
3793 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | |
d21ae6c5 | 3794 | echo "configure:3795: checking for LC_MESSAGES" >&5 |
a04eba3f | 3795 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
a64c9c13 TT |
3796 | echo $ac_n "(cached) $ac_c" 1>&6 |
3797 | else | |
a04eba3f | 3798 | cat > conftest.$ac_ext <<EOF |
d21ae6c5 | 3799 | #line 3800 "configure" |
a04eba3f TT |
3800 | #include "confdefs.h" |
3801 | #include <locale.h> | |
3802 | int main() { | |
3803 | return LC_MESSAGES | |
3804 | ; return 0; } | |
3805 | EOF | |
d21ae6c5 | 3806 | if { (eval echo configure:3807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a04eba3f TT |
3807 | rm -rf conftest* |
3808 | am_cv_val_LC_MESSAGES=yes | |
a64c9c13 | 3809 | else |
a04eba3f TT |
3810 | echo "configure: failed program was:" >&5 |
3811 | cat conftest.$ac_ext >&5 | |
3812 | rm -rf conftest* | |
3813 | am_cv_val_LC_MESSAGES=no | |
a64c9c13 | 3814 | fi |
a04eba3f | 3815 | rm -f conftest* |
a64c9c13 TT |
3816 | fi |
3817 | ||
a04eba3f TT |
3818 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 |
3819 | if test $am_cv_val_LC_MESSAGES = yes; then | |
3820 | cat >> confdefs.h <<\EOF | |
3821 | #define HAVE_LC_MESSAGES 1 | |
3822 | EOF | |
a64c9c13 | 3823 | |
a04eba3f | 3824 | fi |
a64c9c13 | 3825 | |
a04eba3f | 3826 | fi |
a64c9c13 | 3827 | |
a04eba3f TT |
3828 | for ac_prog in bison |
3829 | do | |
3830 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3831 | set dummy $ac_prog; ac_word=$2 | |
a64c9c13 | 3832 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d21ae6c5 | 3833 | echo "configure:3834: checking for $ac_word" >&5 |
a04eba3f | 3834 | if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then |
a64c9c13 TT |
3835 | echo $ac_n "(cached) $ac_c" 1>&6 |
3836 | else | |
a04eba3f TT |
3837 | if test -n "$INTLBISON"; then |
3838 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. | |
f8bd9807 | 3839 | else |
a64c9c13 TT |
3840 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3841 | ac_dummy="$PATH" | |
a04eba3f TT |
3842 | for ac_dir in $ac_dummy; do |
3843 | test -z "$ac_dir" && ac_dir=. | |
3844 | if test -f $ac_dir/$ac_word; then | |
3845 | ac_cv_prog_INTLBISON="$ac_prog" | |
3846 | break | |
a64c9c13 TT |
3847 | fi |
3848 | done | |
3849 | IFS="$ac_save_ifs" | |
f8bd9807 | 3850 | fi |
a04eba3f TT |
3851 | fi |
3852 | INTLBISON="$ac_cv_prog_INTLBISON" | |
3853 | if test -n "$INTLBISON"; then | |
3854 | echo "$ac_t""$INTLBISON" 1>&6 | |
f8bd9807 | 3855 | else |
a64c9c13 | 3856 | echo "$ac_t""no" 1>&6 |
f8bd9807 | 3857 | fi |
f8bd9807 | 3858 | |
a04eba3f TT |
3859 | test -n "$INTLBISON" && break |
3860 | done | |
3861 | ||
3862 | if test -z "$INTLBISON"; then | |
3863 | ac_verc_fail=yes | |
3864 | else | |
3865 | echo $ac_n "checking version of bison""... $ac_c" 1>&6 | |
d21ae6c5 | 3866 | echo "configure:3867: checking version of bison" >&5 |
a04eba3f TT |
3867 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
3868 | case $ac_prog_version in | |
3869 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
3870 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | |
3871 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
3872 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
3873 | esac | |
3874 | echo "$ac_t""$ac_prog_version" 1>&6 | |
3875 | fi | |
3876 | if test $ac_verc_fail = yes; then | |
3877 | INTLBISON=: | |
3878 | fi | |
a64c9c13 | 3879 | |
a64c9c13 | 3880 | |
a64c9c13 | 3881 | |
a04eba3f TT |
3882 | |
3883 | ||
3884 | ||
3885 | ||
a64c9c13 | 3886 | |
a04eba3f | 3887 | |
a64c9c13 | 3888 | |
a04eba3f TT |
3889 | |
3890 | ||
a64c9c13 | 3891 | |
a04eba3f | 3892 | |
a64c9c13 | 3893 | |
a04eba3f | 3894 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 |
d21ae6c5 | 3895 | echo "configure:3896: checking whether NLS is requested" >&5 |
a04eba3f TT |
3896 | # Check whether --enable-nls or --disable-nls was given. |
3897 | if test "${enable_nls+set}" = set; then | |
3898 | enableval="$enable_nls" | |
3899 | USE_NLS=$enableval | |
3900 | else | |
3901 | USE_NLS=yes | |
3902 | fi | |
a64c9c13 | 3903 | |
a04eba3f | 3904 | echo "$ac_t""$USE_NLS" 1>&6 |
a64c9c13 TT |
3905 | |
3906 | ||
a04eba3f TT |
3907 | |
3908 | BUILD_INCLUDED_LIBINTL=no | |
3909 | USE_INCLUDED_LIBINTL=no | |
3910 | ||
3911 | LIBINTL= | |
3912 | LTLIBINTL= | |
3913 | POSUB= | |
a64c9c13 | 3914 | |
a04eba3f TT |
3915 | if test "$USE_NLS" = "yes"; then |
3916 | gt_use_preinstalled_gnugettext=no | |
3917 | ||
3918 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | |
d21ae6c5 | 3919 | echo "configure:3920: checking whether included gettext is requested" >&5 |
a04eba3f TT |
3920 | # Check whether --with-included-gettext or --without-included-gettext was given. |
3921 | if test "${with_included_gettext+set}" = set; then | |
3922 | withval="$with_included_gettext" | |
3923 | nls_cv_force_use_gnu_gettext=$withval | |
3924 | else | |
3925 | nls_cv_force_use_gnu_gettext=no | |
3926 | fi | |
3927 | ||
3928 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | |
3929 | ||
3930 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
3931 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
3932 | ||
3933 | ||
3934 | ||
3935 | ||
3936 | ||
3937 | ||
3938 | echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6 | |
d21ae6c5 | 3939 | echo "configure:3940: checking for GNU gettext in libc" >&5 |
a04eba3f | 3940 | if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then |
f8bd9807 TT |
3941 | echo $ac_n "(cached) $ac_c" 1>&6 |
3942 | else | |
3943 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 3944 | #line 3945 "configure" |
f8bd9807 | 3945 | #include "confdefs.h" |
a04eba3f TT |
3946 | #include <libintl.h> |
3947 | extern int _nl_msg_cat_cntr; | |
3948 | extern int *_nl_domain_bindings; | |
3949 | int main() { | |
3950 | bindtextdomain ("", ""); | |
3951 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings | |
3952 | ; return 0; } | |
f8bd9807 | 3953 | EOF |
d21ae6c5 | 3954 | if { (eval echo configure:3955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f8bd9807 | 3955 | rm -rf conftest* |
a04eba3f | 3956 | gt_cv_func_gnugettext1_libc=yes |
f8bd9807 | 3957 | else |
f8bd9807 TT |
3958 | echo "configure: failed program was:" >&5 |
3959 | cat conftest.$ac_ext >&5 | |
3960 | rm -rf conftest* | |
a04eba3f | 3961 | gt_cv_func_gnugettext1_libc=no |
f8bd9807 TT |
3962 | fi |
3963 | rm -f conftest* | |
3964 | fi | |
a04eba3f TT |
3965 | |
3966 | echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6 | |
3967 | ||
3968 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then | |
3969 | ||
3970 | ||
3971 | ||
3972 | use_additional=yes | |
3973 | ||
3974 | acl_save_prefix="$prefix" | |
3975 | prefix="$acl_final_prefix" | |
3976 | acl_save_exec_prefix="$exec_prefix" | |
3977 | exec_prefix="$acl_final_exec_prefix" | |
3978 | ||
3979 | eval additional_includedir=\"$includedir\" | |
3980 | eval additional_libdir=\"$libdir\" | |
3981 | ||
3982 | exec_prefix="$acl_save_exec_prefix" | |
3983 | prefix="$acl_save_prefix" | |
3984 | ||
3985 | # Check whether --with-libintl-prefix or --without-libintl-prefix was given. | |
3986 | if test "${with_libintl_prefix+set}" = set; then | |
3987 | withval="$with_libintl_prefix" | |
3988 | ||
3989 | if test "X$withval" = "Xno"; then | |
3990 | use_additional=no | |
3991 | else | |
3992 | if test "X$withval" = "X"; then | |
3993 | ||
3994 | acl_save_prefix="$prefix" | |
3995 | prefix="$acl_final_prefix" | |
3996 | acl_save_exec_prefix="$exec_prefix" | |
3997 | exec_prefix="$acl_final_exec_prefix" | |
3998 | ||
3999 | eval additional_includedir=\"$includedir\" | |
4000 | eval additional_libdir=\"$libdir\" | |
4001 | ||
4002 | exec_prefix="$acl_save_exec_prefix" | |
4003 | prefix="$acl_save_prefix" | |
4004 | ||
4005 | else | |
4006 | additional_includedir="$withval/include" | |
4007 | additional_libdir="$withval/lib" | |
4008 | fi | |
4009 | fi | |
4010 | ||
4011 | fi | |
4012 | ||
4013 | LIBINTL= | |
4014 | LTLIBINTL= | |
4015 | INCINTL= | |
4016 | rpathdirs= | |
4017 | ltrpathdirs= | |
4018 | names_already_handled= | |
4019 | names_next_round='intl ' | |
4020 | while test -n "$names_next_round"; do | |
4021 | names_this_round="$names_next_round" | |
4022 | names_next_round= | |
4023 | for name in $names_this_round; do | |
4024 | already_handled= | |
4025 | for n in $names_already_handled; do | |
4026 | if test "$n" = "$name"; then | |
4027 | already_handled=yes | |
4028 | break | |
4029 | fi | |
4030 | done | |
4031 | if test -z "$already_handled"; then | |
4032 | names_already_handled="$names_already_handled $name" | |
4033 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
4034 | eval value=\"\$HAVE_LIB$uppername\" | |
4035 | if test -n "$value"; then | |
4036 | if test "$value" = yes; then | |
4037 | eval value=\"\$LIB$uppername\" | |
4038 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
4039 | eval value=\"\$LTLIB$uppername\" | |
4040 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
4041 | else | |
4042 | : | |
4043 | fi | |
4044 | else | |
4045 | found_dir= | |
4046 | found_la= | |
4047 | found_so= | |
4048 | found_a= | |
4049 | if test $use_additional = yes; then | |
4050 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
4051 | found_dir="$additional_libdir" | |
4052 | found_so="$additional_libdir/lib$name.$shlibext" | |
4053 | if test -f "$additional_libdir/lib$name.la"; then | |
4054 | found_la="$additional_libdir/lib$name.la" | |
4055 | fi | |
4056 | else | |
4057 | if test -f "$additional_libdir/lib$name.$libext"; then | |
4058 | found_dir="$additional_libdir" | |
4059 | found_a="$additional_libdir/lib$name.$libext" | |
4060 | if test -f "$additional_libdir/lib$name.la"; then | |
4061 | found_la="$additional_libdir/lib$name.la" | |
4062 | fi | |
4063 | fi | |
4064 | fi | |
4065 | fi | |
4066 | if test "X$found_dir" = "X"; then | |
4067 | for x in $LDFLAGS $LTLIBINTL; do | |
4068 | ||
4069 | acl_save_prefix="$prefix" | |
4070 | prefix="$acl_final_prefix" | |
4071 | acl_save_exec_prefix="$exec_prefix" | |
4072 | exec_prefix="$acl_final_exec_prefix" | |
4073 | eval x=\"$x\" | |
4074 | exec_prefix="$acl_save_exec_prefix" | |
4075 | prefix="$acl_save_prefix" | |
4076 | ||
4077 | case "$x" in | |
4078 | -L*) | |
4079 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
4080 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
4081 | found_dir="$dir" | |
4082 | found_so="$dir/lib$name.$shlibext" | |
4083 | if test -f "$dir/lib$name.la"; then | |
4084 | found_la="$dir/lib$name.la" | |
4085 | fi | |
4086 | else | |
4087 | if test -f "$dir/lib$name.$libext"; then | |
4088 | found_dir="$dir" | |
4089 | found_a="$dir/lib$name.$libext" | |
4090 | if test -f "$dir/lib$name.la"; then | |
4091 | found_la="$dir/lib$name.la" | |
4092 | fi | |
4093 | fi | |
4094 | fi | |
4095 | ;; | |
4096 | esac | |
4097 | if test "X$found_dir" != "X"; then | |
4098 | break | |
4099 | fi | |
4100 | done | |
4101 | fi | |
4102 | if test "X$found_dir" != "X"; then | |
4103 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
4104 | if test "X$found_so" != "X"; then | |
4105 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
4106 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
4107 | else | |
4108 | haveit= | |
4109 | for x in $ltrpathdirs; do | |
4110 | if test "X$x" = "X$found_dir"; then | |
4111 | haveit=yes | |
4112 | break | |
4113 | fi | |
4114 | done | |
4115 | if test -z "$haveit"; then | |
4116 | ltrpathdirs="$ltrpathdirs $found_dir" | |
4117 | fi | |
4118 | if test "$hardcode_direct" = yes; then | |
4119 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
4120 | else | |
4121 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
4122 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
4123 | haveit= | |
4124 | for x in $rpathdirs; do | |
4125 | if test "X$x" = "X$found_dir"; then | |
4126 | haveit=yes | |
4127 | break | |
4128 | fi | |
4129 | done | |
4130 | if test -z "$haveit"; then | |
4131 | rpathdirs="$rpathdirs $found_dir" | |
4132 | fi | |
4133 | else | |
4134 | haveit= | |
4135 | for x in $LDFLAGS $LIBINTL; do | |
4136 | ||
4137 | acl_save_prefix="$prefix" | |
4138 | prefix="$acl_final_prefix" | |
4139 | acl_save_exec_prefix="$exec_prefix" | |
4140 | exec_prefix="$acl_final_exec_prefix" | |
4141 | eval x=\"$x\" | |
4142 | exec_prefix="$acl_save_exec_prefix" | |
4143 | prefix="$acl_save_prefix" | |
4144 | ||
4145 | if test "X$x" = "X-L$found_dir"; then | |
4146 | haveit=yes | |
4147 | break | |
4148 | fi | |
4149 | done | |
4150 | if test -z "$haveit"; then | |
4151 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
4152 | fi | |
4153 | if test "$hardcode_minus_L" != no; then | |
4154 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
4155 | else | |
4156 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
4157 | fi | |
4158 | fi | |
4159 | fi | |
4160 | fi | |
4161 | else | |
4162 | if test "X$found_a" != "X"; then | |
4163 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
4164 | else | |
4165 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
4166 | fi | |
4167 | fi | |
4168 | additional_includedir= | |
4169 | case "$found_dir" in | |
4170 | */lib | */lib/) | |
4171 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
4172 | additional_includedir="$basedir/include" | |
4173 | ;; | |
4174 | esac | |
4175 | if test "X$additional_includedir" != "X"; then | |
4176 | if test "X$additional_includedir" != "X/usr/include"; then | |
4177 | haveit= | |
4178 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
4179 | if test -n "$GCC"; then | |
4180 | case $host_os in | |
4181 | linux*) haveit=yes;; | |
4182 | esac | |
4183 | fi | |
4184 | fi | |
4185 | if test -z "$haveit"; then | |
4186 | for x in $CPPFLAGS $INCINTL; do | |
4187 | ||
4188 | acl_save_prefix="$prefix" | |
4189 | prefix="$acl_final_prefix" | |
4190 | acl_save_exec_prefix="$exec_prefix" | |
4191 | exec_prefix="$acl_final_exec_prefix" | |
4192 | eval x=\"$x\" | |
4193 | exec_prefix="$acl_save_exec_prefix" | |
4194 | prefix="$acl_save_prefix" | |
4195 | ||
4196 | if test "X$x" = "X-I$additional_includedir"; then | |
4197 | haveit=yes | |
4198 | break | |
4199 | fi | |
4200 | done | |
4201 | if test -z "$haveit"; then | |
4202 | if test -d "$additional_includedir"; then | |
4203 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
4204 | fi | |
4205 | fi | |
4206 | fi | |
4207 | fi | |
4208 | fi | |
4209 | if test -n "$found_la"; then | |
4210 | save_libdir="$libdir" | |
4211 | case "$found_la" in | |
4212 | */* | *\\*) . "$found_la" ;; | |
4213 | *) . "./$found_la" ;; | |
4214 | esac | |
4215 | libdir="$save_libdir" | |
4216 | for dep in $dependency_libs; do | |
4217 | case "$dep" in | |
4218 | -L*) | |
4219 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
4220 | if test "X$additional_libdir" != "X/usr/lib"; then | |
4221 | haveit= | |
4222 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
4223 | if test -n "$GCC"; then | |
4224 | case $host_os in | |
4225 | linux*) haveit=yes;; | |
4226 | esac | |
4227 | fi | |
4228 | fi | |
4229 | if test -z "$haveit"; then | |
4230 | haveit= | |
4231 | for x in $LDFLAGS $LIBINTL; do | |
4232 | ||
4233 | acl_save_prefix="$prefix" | |
4234 | prefix="$acl_final_prefix" | |
4235 | acl_save_exec_prefix="$exec_prefix" | |
4236 | exec_prefix="$acl_final_exec_prefix" | |
4237 | eval x=\"$x\" | |
4238 | exec_prefix="$acl_save_exec_prefix" | |
4239 | prefix="$acl_save_prefix" | |
4240 | ||
4241 | if test "X$x" = "X-L$additional_libdir"; then | |
4242 | haveit=yes | |
4243 | break | |
4244 | fi | |
4245 | done | |
4246 | if test -z "$haveit"; then | |
4247 | if test -d "$additional_libdir"; then | |
4248 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
4249 | fi | |
4250 | fi | |
4251 | haveit= | |
4252 | for x in $LDFLAGS $LTLIBINTL; do | |
4253 | ||
4254 | acl_save_prefix="$prefix" | |
4255 | prefix="$acl_final_prefix" | |
4256 | acl_save_exec_prefix="$exec_prefix" | |
4257 | exec_prefix="$acl_final_exec_prefix" | |
4258 | eval x=\"$x\" | |
4259 | exec_prefix="$acl_save_exec_prefix" | |
4260 | prefix="$acl_save_prefix" | |
4261 | ||
4262 | if test "X$x" = "X-L$additional_libdir"; then | |
4263 | haveit=yes | |
4264 | break | |
4265 | fi | |
4266 | done | |
4267 | if test -z "$haveit"; then | |
4268 | if test -d "$additional_libdir"; then | |
4269 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
4270 | fi | |
4271 | fi | |
4272 | fi | |
4273 | fi | |
4274 | ;; | |
4275 | -R*) | |
4276 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
4277 | if test "$enable_rpath" != no; then | |
4278 | haveit= | |
4279 | for x in $rpathdirs; do | |
4280 | if test "X$x" = "X$dir"; then | |
4281 | haveit=yes | |
4282 | break | |
4283 | fi | |
4284 | done | |
4285 | if test -z "$haveit"; then | |
4286 | rpathdirs="$rpathdirs $dir" | |
4287 | fi | |
4288 | haveit= | |
4289 | for x in $ltrpathdirs; do | |
4290 | if test "X$x" = "X$dir"; then | |
4291 | haveit=yes | |
4292 | break | |
4293 | fi | |
4294 | done | |
4295 | if test -z "$haveit"; then | |
4296 | ltrpathdirs="$ltrpathdirs $dir" | |
4297 | fi | |
4298 | fi | |
4299 | ;; | |
4300 | -l*) | |
4301 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
4302 | ;; | |
4303 | *.la) | |
4304 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
4305 | ;; | |
4306 | *) | |
4307 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
4308 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
4309 | ;; | |
4310 | esac | |
4311 | done | |
4312 | fi | |
4313 | else | |
4314 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
4315 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
4316 | fi | |
4317 | fi | |
4318 | fi | |
4319 | done | |
4320 | done | |
4321 | if test "X$rpathdirs" != "X"; then | |
4322 | if test -n "$hardcode_libdir_separator"; then | |
4323 | alldirs= | |
4324 | for found_dir in $rpathdirs; do | |
4325 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
4326 | done | |
4327 | acl_save_libdir="$libdir" | |
4328 | libdir="$alldirs" | |
4329 | eval flag=\"$hardcode_libdir_flag_spec\" | |
4330 | libdir="$acl_save_libdir" | |
4331 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
4332 | else | |
4333 | for found_dir in $rpathdirs; do | |
4334 | acl_save_libdir="$libdir" | |
4335 | libdir="$found_dir" | |
4336 | eval flag=\"$hardcode_libdir_flag_spec\" | |
4337 | libdir="$acl_save_libdir" | |
4338 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
4339 | done | |
4340 | fi | |
4341 | fi | |
4342 | if test "X$ltrpathdirs" != "X"; then | |
4343 | for found_dir in $ltrpathdirs; do | |
4344 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
4345 | done | |
4346 | fi | |
4347 | ||
4348 | echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6 | |
d21ae6c5 | 4349 | echo "configure:4350: checking for GNU gettext in libintl" >&5 |
a04eba3f TT |
4350 | if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then |
4351 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f8bd9807 | 4352 | else |
a04eba3f TT |
4353 | gt_save_CPPFLAGS="$CPPFLAGS" |
4354 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
4355 | gt_save_LIBS="$LIBS" | |
4356 | LIBS="$LIBS $LIBINTL" | |
4357 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 4358 | #line 4359 "configure" |
a04eba3f TT |
4359 | #include "confdefs.h" |
4360 | #include <libintl.h> | |
4361 | extern int _nl_msg_cat_cntr; | |
4362 | extern | |
4363 | #ifdef __cplusplus | |
4364 | "C" | |
4365 | #endif | |
4366 | const char *_nl_expand_alias (); | |
4367 | int main() { | |
4368 | bindtextdomain ("", ""); | |
4369 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) | |
4370 | ; return 0; } | |
4371 | EOF | |
d21ae6c5 | 4372 | if { (eval echo configure:4373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a04eba3f TT |
4373 | rm -rf conftest* |
4374 | gt_cv_func_gnugettext1_libintl=yes | |
4375 | else | |
4376 | echo "configure: failed program was:" >&5 | |
4377 | cat conftest.$ac_ext >&5 | |
4378 | rm -rf conftest* | |
4379 | gt_cv_func_gnugettext1_libintl=no | |
4380 | fi | |
4381 | rm -f conftest* | |
4382 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then | |
4383 | LIBS="$LIBS $LIBICONV" | |
4384 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 4385 | #line 4386 "configure" |
a04eba3f TT |
4386 | #include "confdefs.h" |
4387 | #include <libintl.h> | |
4388 | extern int _nl_msg_cat_cntr; | |
4389 | extern | |
4390 | #ifdef __cplusplus | |
4391 | "C" | |
4392 | #endif | |
4393 | const char *_nl_expand_alias (); | |
4394 | int main() { | |
4395 | bindtextdomain ("", ""); | |
4396 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) | |
4397 | ; return 0; } | |
4398 | EOF | |
d21ae6c5 | 4399 | if { (eval echo configure:4400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a04eba3f TT |
4400 | rm -rf conftest* |
4401 | LIBINTL="$LIBINTL $LIBICONV" | |
4402 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | |
4403 | gt_cv_func_gnugettext1_libintl=yes | |
4404 | ||
4405 | else | |
4406 | echo "configure: failed program was:" >&5 | |
4407 | cat conftest.$ac_ext >&5 | |
4408 | fi | |
4409 | rm -f conftest* | |
4410 | fi | |
4411 | CPPFLAGS="$gt_save_CPPFLAGS" | |
4412 | LIBS="$gt_save_LIBS" | |
a64c9c13 TT |
4413 | fi |
4414 | ||
a04eba3f TT |
4415 | echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6 |
4416 | fi | |
a64c9c13 | 4417 | |
a04eba3f TT |
4418 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
4419 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ | |
4420 | && test "$PACKAGE" != gettext; }; then | |
4421 | gt_use_preinstalled_gnugettext=yes | |
4422 | else | |
4423 | LIBINTL= | |
4424 | LTLIBINTL= | |
4425 | INCINTL= | |
4426 | fi | |
a64c9c13 | 4427 | |
a04eba3f TT |
4428 | |
4429 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then | |
4430 | nls_cv_use_gnu_gettext=yes | |
4431 | fi | |
4432 | fi | |
a64c9c13 | 4433 | |
a04eba3f TT |
4434 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
4435 | INTLOBJS="\$(GETTOBJS)" | |
4436 | BUILD_INCLUDED_LIBINTL=yes | |
4437 | USE_INCLUDED_LIBINTL=yes | |
4438 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" | |
4439 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" | |
4440 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` | |
4441 | fi | |
a64c9c13 | 4442 | |
a04eba3f TT |
4443 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
4444 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
4445 | CATOBJEXT=.gmo | |
4446 | fi | |
4447 | ||
4448 | ||
4449 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
4450 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
4451 | cat >> confdefs.h <<\EOF | |
4452 | #define ENABLE_NLS 1 | |
4453 | EOF | |
4454 | ||
4455 | else | |
4456 | USE_NLS=no | |
4457 | fi | |
4458 | fi | |
4459 | ||
4460 | if test "$USE_NLS" = "yes"; then | |
4461 | ||
4462 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
4463 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then | |
4464 | echo $ac_n "checking how to link with libintl""... $ac_c" 1>&6 | |
d21ae6c5 | 4465 | echo "configure:4466: checking how to link with libintl" >&5 |
a04eba3f TT |
4466 | echo "$ac_t""$LIBINTL" 1>&6 |
4467 | ||
4468 | for element in $INCINTL; do | |
4469 | haveit= | |
4470 | for x in $CPPFLAGS; do | |
4471 | ||
4472 | acl_save_prefix="$prefix" | |
4473 | prefix="$acl_final_prefix" | |
4474 | acl_save_exec_prefix="$exec_prefix" | |
4475 | exec_prefix="$acl_final_exec_prefix" | |
4476 | eval x=\"$x\" | |
4477 | exec_prefix="$acl_save_exec_prefix" | |
4478 | prefix="$acl_save_prefix" | |
4479 | ||
4480 | if test "X$x" = "X$element"; then | |
4481 | haveit=yes | |
4482 | break | |
4483 | fi | |
4484 | done | |
4485 | if test -z "$haveit"; then | |
4486 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
4487 | fi | |
4488 | done | |
4489 | ||
4490 | fi | |
4491 | ||
4492 | cat >> confdefs.h <<\EOF | |
4493 | #define HAVE_GETTEXT 1 | |
4494 | EOF | |
4495 | ||
4496 | cat >> confdefs.h <<\EOF | |
4497 | #define HAVE_DCGETTEXT 1 | |
4498 | EOF | |
4499 | ||
4500 | fi | |
4501 | ||
4502 | POSUB=po | |
4503 | fi | |
4504 | ||
4505 | ||
4506 | if test "$PACKAGE" = gettext; then | |
4507 | BUILD_INCLUDED_LIBINTL=yes | |
4508 | fi | |
4509 | ||
4510 | ||
4511 | ||
4512 | ||
4513 | ||
4514 | ||
4515 | nls_cv_header_intl= | |
4516 | nls_cv_header_libgt= | |
4517 | ||
4518 | DATADIRNAME=share | |
4519 | ||
4520 | ||
4521 | INSTOBJEXT=.mo | |
4522 | ||
4523 | ||
4524 | GENCAT=gencat | |
4525 | ||
4526 | ||
4527 | INTL_LIBTOOL_SUFFIX_PREFIX= | |
4528 | ||
4529 | ||
4530 | ||
4531 | INTLLIBS="$LIBINTL" | |
4532 | ||
a64c9c13 | 4533 | |
a04eba3f | 4534 | |
a64c9c13 | 4535 | |
a04eba3f TT |
4536 | |
4537 | ||
74becf3c | 4538 | |
50e1e10f | 4539 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
d21ae6c5 | 4540 | echo "configure:4541: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
21c84b71 | 4541 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
50e1e10f TT |
4542 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
4543 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4544 | else | |
4545 | cat > conftestmake <<\EOF | |
4546 | all: | |
4547 | @echo 'ac_maketemp="${MAKE}"' | |
4548 | EOF | |
4549 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
4550 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
4551 | if test -n "$ac_maketemp"; then | |
4552 | eval ac_cv_prog_make_${ac_make}_set=yes | |
4553 | else | |
4554 | eval ac_cv_prog_make_${ac_make}_set=no | |
4555 | fi | |
4556 | rm -f conftestmake | |
4557 | fi | |
4558 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
4559 | echo "$ac_t""yes" 1>&6 | |
4560 | SET_MAKE= | |
4561 | else | |
4562 | echo "$ac_t""no" 1>&6 | |
4563 | SET_MAKE="MAKE=${MAKE-make}" | |
4564 | fi | |
4565 | ||
4566 | # Extract the first word of "ln", so it can be a program name with args. | |
4567 | set dummy ln; ac_word=$2 | |
4568 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 4569 | echo "configure:4570: checking for $ac_word" >&5 |
50e1e10f TT |
4570 | if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then |
4571 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4572 | else | |
4573 | case "$LN" in | |
4574 | /*) | |
4575 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
4576 | ;; | |
a4bf69d9 TT |
4577 | ?:/*) |
4578 | ac_cv_path_LN="$LN" # Let the user override the test with a dos path. | |
4579 | ;; | |
50e1e10f | 4580 | *) |
a4bf69d9 TT |
4581 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
4582 | ac_dummy="$PATH" | |
4583 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
4584 | test -z "$ac_dir" && ac_dir=. |
4585 | if test -f $ac_dir/$ac_word; then | |
4586 | ac_cv_path_LN="$ac_dir/$ac_word" | |
4587 | break | |
4588 | fi | |
4589 | done | |
4590 | IFS="$ac_save_ifs" | |
4591 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" | |
4592 | ;; | |
4593 | esac | |
4594 | fi | |
4595 | LN="$ac_cv_path_LN" | |
4596 | if test -n "$LN"; then | |
4597 | echo "$ac_t""$LN" 1>&6 | |
4598 | else | |
4599 | echo "$ac_t""no" 1>&6 | |
4600 | fi | |
4601 | ||
fc6d9d51 | 4602 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
d21ae6c5 | 4603 | echo "configure:4604: checking whether ln -s works" >&5 |
fc6d9d51 TT |
4604 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
4605 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4606 | else | |
4607 | rm -f conftestdata | |
4608 | if ln -s X conftestdata 2>/dev/null | |
4609 | then | |
4610 | rm -f conftestdata | |
4611 | ac_cv_prog_LN_S="ln -s" | |
4612 | else | |
4613 | ac_cv_prog_LN_S=ln | |
4614 | fi | |
4615 | fi | |
4616 | LN_S="$ac_cv_prog_LN_S" | |
4617 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
4618 | echo "$ac_t""yes" 1>&6 | |
4619 | else | |
4620 | echo "$ac_t""no" 1>&6 | |
4621 | fi | |
4622 | ||
50e1e10f TT |
4623 | # Extract the first word of "mv", so it can be a program name with args. |
4624 | set dummy mv; ac_word=$2 | |
4625 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 4626 | echo "configure:4627: checking for $ac_word" >&5 |
50e1e10f TT |
4627 | if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then |
4628 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4629 | else | |
4630 | case "$MV" in | |
4631 | /*) | |
4632 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
4633 | ;; | |
a4bf69d9 TT |
4634 | ?:/*) |
4635 | ac_cv_path_MV="$MV" # Let the user override the test with a dos path. | |
4636 | ;; | |
50e1e10f | 4637 | *) |
a4bf69d9 TT |
4638 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
4639 | ac_dummy="$PATH" | |
4640 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
4641 | test -z "$ac_dir" && ac_dir=. |
4642 | if test -f $ac_dir/$ac_word; then | |
4643 | ac_cv_path_MV="$ac_dir/$ac_word" | |
4644 | break | |
4645 | fi | |
4646 | done | |
4647 | IFS="$ac_save_ifs" | |
4648 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" | |
4649 | ;; | |
4650 | esac | |
4651 | fi | |
4652 | MV="$ac_cv_path_MV" | |
4653 | if test -n "$MV"; then | |
4654 | echo "$ac_t""$MV" 1>&6 | |
4655 | else | |
4656 | echo "$ac_t""no" 1>&6 | |
4657 | fi | |
4658 | ||
4659 | # Extract the first word of "cp", so it can be a program name with args. | |
4660 | set dummy cp; ac_word=$2 | |
4661 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 4662 | echo "configure:4663: checking for $ac_word" >&5 |
50e1e10f TT |
4663 | if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then |
4664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4665 | else | |
4666 | case "$CP" in | |
4667 | /*) | |
4668 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
4669 | ;; | |
a4bf69d9 TT |
4670 | ?:/*) |
4671 | ac_cv_path_CP="$CP" # Let the user override the test with a dos path. | |
4672 | ;; | |
50e1e10f | 4673 | *) |
a4bf69d9 TT |
4674 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
4675 | ac_dummy="$PATH" | |
4676 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
4677 | test -z "$ac_dir" && ac_dir=. |
4678 | if test -f $ac_dir/$ac_word; then | |
4679 | ac_cv_path_CP="$ac_dir/$ac_word" | |
4680 | break | |
4681 | fi | |
4682 | done | |
4683 | IFS="$ac_save_ifs" | |
4684 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" | |
4685 | ;; | |
4686 | esac | |
4687 | fi | |
4688 | CP="$ac_cv_path_CP" | |
4689 | if test -n "$CP"; then | |
4690 | echo "$ac_t""$CP" 1>&6 | |
4691 | else | |
4692 | echo "$ac_t""no" 1>&6 | |
4693 | fi | |
4694 | ||
4695 | # Extract the first word of "rm", so it can be a program name with args. | |
4696 | set dummy rm; ac_word=$2 | |
4697 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 4698 | echo "configure:4699: checking for $ac_word" >&5 |
50e1e10f TT |
4699 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then |
4700 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4701 | else | |
4702 | case "$RM" in | |
4703 | /*) | |
4704 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
4705 | ;; | |
a4bf69d9 TT |
4706 | ?:/*) |
4707 | ac_cv_path_RM="$RM" # Let the user override the test with a dos path. | |
4708 | ;; | |
50e1e10f | 4709 | *) |
a4bf69d9 TT |
4710 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
4711 | ac_dummy="$PATH" | |
4712 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
4713 | test -z "$ac_dir" && ac_dir=. |
4714 | if test -f $ac_dir/$ac_word; then | |
4715 | ac_cv_path_RM="$ac_dir/$ac_word" | |
4716 | break | |
4717 | fi | |
4718 | done | |
4719 | IFS="$ac_save_ifs" | |
4720 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" | |
4721 | ;; | |
4722 | esac | |
4723 | fi | |
4724 | RM="$ac_cv_path_RM" | |
4725 | if test -n "$RM"; then | |
4726 | echo "$ac_t""$RM" 1>&6 | |
4727 | else | |
4728 | echo "$ac_t""no" 1>&6 | |
4729 | fi | |
4730 | ||
4731 | # Extract the first word of "chmod", so it can be a program name with args. | |
4732 | set dummy chmod; ac_word=$2 | |
4733 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 4734 | echo "configure:4735: checking for $ac_word" >&5 |
50e1e10f TT |
4735 | if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then |
4736 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4737 | else | |
4738 | case "$CHMOD" in | |
4739 | /*) | |
4740 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. | |
4741 | ;; | |
a4bf69d9 TT |
4742 | ?:/*) |
4743 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path. | |
4744 | ;; | |
50e1e10f | 4745 | *) |
a4bf69d9 TT |
4746 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
4747 | ac_dummy="$PATH" | |
4748 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
4749 | test -z "$ac_dir" && ac_dir=. |
4750 | if test -f $ac_dir/$ac_word; then | |
4751 | ac_cv_path_CHMOD="$ac_dir/$ac_word" | |
4752 | break | |
4753 | fi | |
4754 | done | |
4755 | IFS="$ac_save_ifs" | |
4756 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" | |
4757 | ;; | |
4758 | esac | |
4759 | fi | |
4760 | CHMOD="$ac_cv_path_CHMOD" | |
4761 | if test -n "$CHMOD"; then | |
4762 | echo "$ac_t""$CHMOD" 1>&6 | |
4763 | else | |
4764 | echo "$ac_t""no" 1>&6 | |
4765 | fi | |
4766 | ||
4767 | # Extract the first word of "awk", so it can be a program name with args. | |
4768 | set dummy awk; ac_word=$2 | |
4769 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 4770 | echo "configure:4771: checking for $ac_word" >&5 |
50e1e10f TT |
4771 | if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then |
4772 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4773 | else | |
4774 | case "$AWK" in | |
4775 | /*) | |
4776 | ac_cv_path_AWK="$AWK" # Let the user override the test with a path. | |
4777 | ;; | |
a4bf69d9 TT |
4778 | ?:/*) |
4779 | ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path. | |
4780 | ;; | |
50e1e10f | 4781 | *) |
a4bf69d9 TT |
4782 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
4783 | ac_dummy="$PATH" | |
4784 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
4785 | test -z "$ac_dir" && ac_dir=. |
4786 | if test -f $ac_dir/$ac_word; then | |
4787 | ac_cv_path_AWK="$ac_dir/$ac_word" | |
4788 | break | |
4789 | fi | |
4790 | done | |
4791 | IFS="$ac_save_ifs" | |
4792 | test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk" | |
4793 | ;; | |
4794 | esac | |
4795 | fi | |
4796 | AWK="$ac_cv_path_AWK" | |
4797 | if test -n "$AWK"; then | |
4798 | echo "$ac_t""$AWK" 1>&6 | |
4799 | else | |
4800 | echo "$ac_t""no" 1>&6 | |
4801 | fi | |
4802 | ||
4803 | # Extract the first word of "sed", so it can be a program name with args. | |
4804 | set dummy sed; ac_word=$2 | |
4805 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 4806 | echo "configure:4807: checking for $ac_word" >&5 |
50e1e10f TT |
4807 | if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then |
4808 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4809 | else | |
4810 | case "$SED" in | |
4811 | /*) | |
4812 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
4813 | ;; | |
a4bf69d9 TT |
4814 | ?:/*) |
4815 | ac_cv_path_SED="$SED" # Let the user override the test with a dos path. | |
4816 | ;; | |
50e1e10f | 4817 | *) |
a4bf69d9 TT |
4818 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
4819 | ac_dummy="$PATH" | |
4820 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
4821 | test -z "$ac_dir" && ac_dir=. |
4822 | if test -f $ac_dir/$ac_word; then | |
4823 | ac_cv_path_SED="$ac_dir/$ac_word" | |
4824 | break | |
4825 | fi | |
4826 | done | |
4827 | IFS="$ac_save_ifs" | |
4828 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" | |
4829 | ;; | |
4830 | esac | |
4831 | fi | |
4832 | SED="$ac_cv_path_SED" | |
4833 | if test -n "$SED"; then | |
4834 | echo "$ac_t""$SED" 1>&6 | |
4835 | else | |
4836 | echo "$ac_t""no" 1>&6 | |
4837 | fi | |
4838 | ||
9d564f73 TT |
4839 | # Extract the first word of "perl", so it can be a program name with args. |
4840 | set dummy perl; ac_word=$2 | |
4841 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 4842 | echo "configure:4843: checking for $ac_word" >&5 |
9d564f73 TT |
4843 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then |
4844 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4845 | else | |
4846 | case "$PERL" in | |
4847 | /*) | |
4848 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
4849 | ;; | |
4850 | ?:/*) | |
4851 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. | |
4852 | ;; | |
4853 | *) | |
4854 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4855 | ac_dummy="$PATH" | |
4856 | for ac_dir in $ac_dummy; do | |
4857 | test -z "$ac_dir" && ac_dir=. | |
4858 | if test -f $ac_dir/$ac_word; then | |
4859 | ac_cv_path_PERL="$ac_dir/$ac_word" | |
4860 | break | |
4861 | fi | |
4862 | done | |
4863 | IFS="$ac_save_ifs" | |
4864 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" | |
4865 | ;; | |
4866 | esac | |
4867 | fi | |
4868 | PERL="$ac_cv_path_PERL" | |
4869 | if test -n "$PERL"; then | |
4870 | echo "$ac_t""$PERL" 1>&6 | |
4871 | else | |
4872 | echo "$ac_t""no" 1>&6 | |
4873 | fi | |
4874 | ||
250f79f0 TT |
4875 | # Extract the first word of "ldconfig", so it can be a program name with args. |
4876 | set dummy ldconfig; ac_word=$2 | |
4877 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 4878 | echo "configure:4879: checking for $ac_word" >&5 |
250f79f0 TT |
4879 | if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then |
4880 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4881 | else | |
4882 | case "$LDCONFIG" in | |
4883 | /*) | |
4884 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. | |
4885 | ;; | |
4886 | ?:/*) | |
4887 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path. | |
4888 | ;; | |
4889 | *) | |
4890 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4891 | ac_dummy="$PATH" | |
4892 | for ac_dir in $ac_dummy; do | |
4893 | test -z "$ac_dir" && ac_dir=. | |
4894 | if test -f $ac_dir/$ac_word; then | |
4895 | ac_cv_path_LDCONFIG="$ac_dir/$ac_word" | |
4896 | break | |
4897 | fi | |
4898 | done | |
4899 | IFS="$ac_save_ifs" | |
4900 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" | |
4901 | ;; | |
4902 | esac | |
4903 | fi | |
4904 | LDCONFIG="$ac_cv_path_LDCONFIG" | |
4905 | if test -n "$LDCONFIG"; then | |
4906 | echo "$ac_t""$LDCONFIG" 1>&6 | |
4907 | else | |
4908 | echo "$ac_t""no" 1>&6 | |
4909 | fi | |
4910 | ||
50e1e10f | 4911 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
d21ae6c5 | 4912 | echo "configure:4913: checking build system type" >&5 |
50e1e10f TT |
4913 | |
4914 | build_alias=$build | |
4915 | case "$build_alias" in | |
4916 | NONE) | |
4917 | case $nonopt in | |
4918 | NONE) build_alias=$host_alias ;; | |
4919 | *) build_alias=$nonopt ;; | |
4920 | esac ;; | |
4921 | esac | |
4922 | ||
a4bf69d9 | 4923 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
21c84b71 TT |
4924 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
4925 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
4926 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
50e1e10f TT |
4927 | echo "$ac_t""$build" 1>&6 |
4928 | ||
4929 | if test $host != $build; then | |
4930 | ac_tool_prefix=${host_alias}- | |
4931 | else | |
4932 | ac_tool_prefix= | |
4933 | fi | |
4934 | ||
4935 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4936 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
4937 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 4938 | echo "configure:4939: checking for $ac_word" >&5 |
50e1e10f TT |
4939 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
4940 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4941 | else | |
4942 | if test -n "$AR"; then | |
4943 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4944 | else | |
a4bf69d9 TT |
4945 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
4946 | ac_dummy="$PATH" | |
4947 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
4948 | test -z "$ac_dir" && ac_dir=. |
4949 | if test -f $ac_dir/$ac_word; then | |
4950 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
4951 | break | |
4952 | fi | |
4953 | done | |
4954 | IFS="$ac_save_ifs" | |
4955 | fi | |
4956 | fi | |
4957 | AR="$ac_cv_prog_AR" | |
4958 | if test -n "$AR"; then | |
4959 | echo "$ac_t""$AR" 1>&6 | |
4960 | else | |
4961 | echo "$ac_t""no" 1>&6 | |
4962 | fi | |
4963 | ||
4964 | ||
4965 | if test -z "$ac_cv_prog_AR"; then | |
4966 | if test -n "$ac_tool_prefix"; then | |
4967 | # Extract the first word of "ar", so it can be a program name with args. | |
4968 | set dummy ar; ac_word=$2 | |
4969 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 4970 | echo "configure:4971: checking for $ac_word" >&5 |
50e1e10f TT |
4971 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
4972 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4973 | else | |
4974 | if test -n "$AR"; then | |
4975 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4976 | else | |
a4bf69d9 TT |
4977 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
4978 | ac_dummy="$PATH" | |
4979 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
4980 | test -z "$ac_dir" && ac_dir=. |
4981 | if test -f $ac_dir/$ac_word; then | |
4982 | ac_cv_prog_AR="ar" | |
4983 | break | |
4984 | fi | |
4985 | done | |
4986 | IFS="$ac_save_ifs" | |
4987 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
4988 | fi | |
4989 | fi | |
4990 | AR="$ac_cv_prog_AR" | |
4991 | if test -n "$AR"; then | |
4992 | echo "$ac_t""$AR" 1>&6 | |
4993 | else | |
4994 | echo "$ac_t""no" 1>&6 | |
4995 | fi | |
4996 | ||
4997 | else | |
4998 | AR="ar" | |
4999 | fi | |
5000 | fi | |
5001 | ||
5002 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5003 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5004 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 5005 | echo "configure:5006: checking for $ac_word" >&5 |
50e1e10f TT |
5006 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
5007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5008 | else | |
5009 | if test -n "$RANLIB"; then | |
5010 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5011 | else | |
a4bf69d9 TT |
5012 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5013 | ac_dummy="$PATH" | |
5014 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
5015 | test -z "$ac_dir" && ac_dir=. |
5016 | if test -f $ac_dir/$ac_word; then | |
5017 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5018 | break | |
5019 | fi | |
5020 | done | |
5021 | IFS="$ac_save_ifs" | |
5022 | fi | |
5023 | fi | |
5024 | RANLIB="$ac_cv_prog_RANLIB" | |
5025 | if test -n "$RANLIB"; then | |
5026 | echo "$ac_t""$RANLIB" 1>&6 | |
5027 | else | |
5028 | echo "$ac_t""no" 1>&6 | |
5029 | fi | |
5030 | ||
5031 | ||
5032 | if test -z "$ac_cv_prog_RANLIB"; then | |
5033 | if test -n "$ac_tool_prefix"; then | |
5034 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5035 | set dummy ranlib; ac_word=$2 | |
5036 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 5037 | echo "configure:5038: checking for $ac_word" >&5 |
50e1e10f TT |
5038 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
5039 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5040 | else | |
5041 | if test -n "$RANLIB"; then | |
5042 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5043 | else | |
a4bf69d9 TT |
5044 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5045 | ac_dummy="$PATH" | |
5046 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
5047 | test -z "$ac_dir" && ac_dir=. |
5048 | if test -f $ac_dir/$ac_word; then | |
5049 | ac_cv_prog_RANLIB="ranlib" | |
5050 | break | |
5051 | fi | |
5052 | done | |
5053 | IFS="$ac_save_ifs" | |
5054 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
5055 | fi | |
5056 | fi | |
5057 | RANLIB="$ac_cv_prog_RANLIB" | |
5058 | if test -n "$RANLIB"; then | |
5059 | echo "$ac_t""$RANLIB" 1>&6 | |
5060 | else | |
5061 | echo "$ac_t""no" 1>&6 | |
5062 | fi | |
5063 | ||
5064 | else | |
5065 | RANLIB=":" | |
5066 | fi | |
5067 | fi | |
5068 | ||
5069 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5070 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5071 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 5072 | echo "configure:5073: checking for $ac_word" >&5 |
50e1e10f TT |
5073 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
5074 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5075 | else | |
5076 | if test -n "$STRIP"; then | |
5077 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5078 | else | |
a4bf69d9 TT |
5079 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5080 | ac_dummy="$PATH" | |
5081 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
5082 | test -z "$ac_dir" && ac_dir=. |
5083 | if test -f $ac_dir/$ac_word; then | |
5084 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5085 | break | |
5086 | fi | |
5087 | done | |
5088 | IFS="$ac_save_ifs" | |
5089 | fi | |
5090 | fi | |
5091 | STRIP="$ac_cv_prog_STRIP" | |
5092 | if test -n "$STRIP"; then | |
5093 | echo "$ac_t""$STRIP" 1>&6 | |
5094 | else | |
5095 | echo "$ac_t""no" 1>&6 | |
5096 | fi | |
5097 | ||
5098 | ||
5099 | if test -z "$ac_cv_prog_STRIP"; then | |
5100 | if test -n "$ac_tool_prefix"; then | |
5101 | # Extract the first word of "strip", so it can be a program name with args. | |
5102 | set dummy strip; ac_word=$2 | |
5103 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 5104 | echo "configure:5105: checking for $ac_word" >&5 |
50e1e10f TT |
5105 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
5106 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5107 | else | |
5108 | if test -n "$STRIP"; then | |
5109 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5110 | else | |
a4bf69d9 TT |
5111 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5112 | ac_dummy="$PATH" | |
5113 | for ac_dir in $ac_dummy; do | |
50e1e10f TT |
5114 | test -z "$ac_dir" && ac_dir=. |
5115 | if test -f $ac_dir/$ac_word; then | |
5116 | ac_cv_prog_STRIP="strip" | |
5117 | break | |
5118 | fi | |
5119 | done | |
5120 | IFS="$ac_save_ifs" | |
5121 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | |
5122 | fi | |
5123 | fi | |
5124 | STRIP="$ac_cv_prog_STRIP" | |
5125 | if test -n "$STRIP"; then | |
5126 | echo "$ac_t""$STRIP" 1>&6 | |
5127 | else | |
5128 | echo "$ac_t""no" 1>&6 | |
5129 | fi | |
5130 | ||
5131 | else | |
5132 | STRIP=":" | |
5133 | fi | |
5134 | fi | |
5135 | ||
50e1e10f TT |
5136 | # Find a good install program. We prefer a C program (faster), |
5137 | # so one script is as good as another. But avoid the broken or | |
5138 | # incompatible versions: | |
5139 | # SysV /etc/install, /usr/sbin/install | |
5140 | # SunOS /usr/etc/install | |
5141 | # IRIX /sbin/install | |
5142 | # AIX /bin/install | |
a4bf69d9 | 5143 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
50e1e10f TT |
5144 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
5145 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5146 | # ./install, which can be erroneously created by make from ./install.sh. | |
5147 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
d21ae6c5 | 5148 | echo "configure:5149: checking for a BSD compatible install" >&5 |
50e1e10f TT |
5149 | if test -z "$INSTALL"; then |
5150 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
5151 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5152 | else | |
a4bf69d9 | 5153 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
50e1e10f TT |
5154 | for ac_dir in $PATH; do |
5155 | # Account for people who put trailing slashes in PATH elements. | |
5156 | case "$ac_dir/" in | |
5157 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
5158 | *) | |
5159 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
a4bf69d9 TT |
5160 | # Don't use installbsd from OSF since it installs stuff as root |
5161 | # by default. | |
5162 | for ac_prog in ginstall scoinst install; do | |
50e1e10f TT |
5163 | if test -f $ac_dir/$ac_prog; then |
5164 | if test $ac_prog = install && | |
5165 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
5166 | # AIX install. It has an incompatible calling convention. | |
50e1e10f TT |
5167 | : |
5168 | else | |
5169 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
5170 | break 2 | |
5171 | fi | |
5172 | fi | |
5173 | done | |
5174 | ;; | |
5175 | esac | |
5176 | done | |
21c84b71 TT |
5177 | IFS="$ac_save_IFS" |
5178 | ||
50e1e10f | 5179 | fi |
21c84b71 TT |
5180 | if test "${ac_cv_path_install+set}" = set; then |
5181 | INSTALL="$ac_cv_path_install" | |
5182 | else | |
5183 | # As a last resort, use the slow shell script. We don't cache a | |
5184 | # path for INSTALL within a source directory, because that will | |
5185 | # break other packages using the cache if that directory is | |
5186 | # removed, or if the path is relative. | |
5187 | INSTALL="$ac_install_sh" | |
5188 | fi | |
50e1e10f TT |
5189 | fi |
5190 | echo "$ac_t""$INSTALL" 1>&6 | |
5191 | ||
5192 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5193 | # It thinks the first close brace ends the variable substitution. | |
5194 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5195 | ||
a4bf69d9 TT |
5196 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
5197 | ||
50e1e10f TT |
5198 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
5199 | ||
6c133523 TT |
5200 | # See if we need a separate native compiler. |
5201 | if test $cross_compiling = no; then | |
5202 | BUILD_CC="$CC" | |
5203 | ||
5204 | else | |
5205 | for ac_prog in gcc cc | |
5206 | do | |
5207 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5208 | set dummy $ac_prog; ac_word=$2 | |
5209 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d21ae6c5 | 5210 | echo "configure:5211: checking for $ac_word" >&5 |
6c133523 TT |
5211 | if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then |
5212 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5213 | else | |
5214 | if test -n "$BUILD_CC"; then | |
5215 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
5216 | else | |
5217 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5218 | ac_dummy="$PATH" | |
5219 | for ac_dir in $ac_dummy; do | |
5220 | test -z "$ac_dir" && ac_dir=. | |
5221 | if test -f $ac_dir/$ac_word; then | |
5222 | ac_cv_prog_BUILD_CC="$ac_prog" | |
5223 | break | |
5224 | fi | |
5225 | done | |
5226 | IFS="$ac_save_ifs" | |
5227 | fi | |
5228 | fi | |
5229 | BUILD_CC="$ac_cv_prog_BUILD_CC" | |
5230 | if test -n "$BUILD_CC"; then | |
5231 | echo "$ac_t""$BUILD_CC" 1>&6 | |
5232 | else | |
5233 | echo "$ac_t""no" 1>&6 | |
5234 | fi | |
5235 | ||
5236 | test -n "$BUILD_CC" && break | |
5237 | done | |
5238 | ||
5239 | fi | |
fff45483 | 5240 | for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if.h netinet/in.h |
50e1e10f | 5241 | do |
21c84b71 | 5242 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
50e1e10f | 5243 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
d21ae6c5 | 5244 | echo "configure:5245: checking for $ac_hdr" >&5 |
50e1e10f TT |
5245 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5246 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5247 | else | |
5248 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 5249 | #line 5250 "configure" |
50e1e10f TT |
5250 | #include "confdefs.h" |
5251 | #include <$ac_hdr> | |
5252 | EOF | |
21c84b71 | 5253 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
d21ae6c5 | 5254 | { (eval echo configure:5255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a4bf69d9 | 5255 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
50e1e10f TT |
5256 | if test -z "$ac_err"; then |
5257 | rm -rf conftest* | |
5258 | eval "ac_cv_header_$ac_safe=yes" | |
5259 | else | |
5260 | echo "$ac_err" >&5 | |
21c84b71 TT |
5261 | echo "configure: failed program was:" >&5 |
5262 | cat conftest.$ac_ext >&5 | |
50e1e10f TT |
5263 | rm -rf conftest* |
5264 | eval "ac_cv_header_$ac_safe=no" | |
5265 | fi | |
5266 | rm -f conftest* | |
5267 | fi | |
5268 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5269 | echo "$ac_t""yes" 1>&6 | |
21c84b71 | 5270 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
50e1e10f TT |
5271 | cat >> confdefs.h <<EOF |
5272 | #define $ac_tr_hdr 1 | |
5273 | EOF | |
5274 | ||
5275 | else | |
5276 | echo "$ac_t""no" 1>&6 | |
5277 | fi | |
5278 | done | |
5279 | ||
5280 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
d21ae6c5 | 5281 | echo "configure:5282: checking for vprintf" >&5 |
50e1e10f TT |
5282 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
5283 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5284 | else | |
5285 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 5286 | #line 5287 "configure" |
50e1e10f TT |
5287 | #include "confdefs.h" |
5288 | /* System header to define __stub macros and hopefully few prototypes, | |
5289 | which can conflict with char vprintf(); below. */ | |
5290 | #include <assert.h> | |
5291 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21c84b71 TT |
5292 | /* We use char because int might match the return type of a gcc2 |
5293 | builtin and then its argument prototype would still apply. */ | |
5294 | char vprintf(); | |
50e1e10f | 5295 | |
21c84b71 | 5296 | int main() { |
50e1e10f TT |
5297 | |
5298 | /* The GNU C library defines this for functions which it implements | |
5299 | to always fail with ENOSYS. Some functions are actually named | |
5300 | something starting with __ and the normal name is an alias. */ | |
5301 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
5302 | choke me | |
5303 | #else | |
5304 | vprintf(); | |
5305 | #endif | |
5306 | ||
5307 | ; return 0; } | |
5308 | EOF | |
d21ae6c5 | 5309 | if { (eval echo configure:5310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
50e1e10f TT |
5310 | rm -rf conftest* |
5311 | eval "ac_cv_func_vprintf=yes" | |
5312 | else | |
21c84b71 TT |
5313 | echo "configure: failed program was:" >&5 |
5314 | cat conftest.$ac_ext >&5 | |
50e1e10f TT |
5315 | rm -rf conftest* |
5316 | eval "ac_cv_func_vprintf=no" | |
5317 | fi | |
5318 | rm -f conftest* | |
50e1e10f | 5319 | fi |
21c84b71 | 5320 | |
50e1e10f TT |
5321 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
5322 | echo "$ac_t""yes" 1>&6 | |
5323 | cat >> confdefs.h <<\EOF | |
5324 | #define HAVE_VPRINTF 1 | |
5325 | EOF | |
5326 | ||
5327 | else | |
5328 | echo "$ac_t""no" 1>&6 | |
5329 | fi | |
5330 | ||
5331 | if test "$ac_cv_func_vprintf" != yes; then | |
5332 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
d21ae6c5 | 5333 | echo "configure:5334: checking for _doprnt" >&5 |
50e1e10f TT |
5334 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
5335 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5336 | else | |
5337 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 5338 | #line 5339 "configure" |
50e1e10f TT |
5339 | #include "confdefs.h" |
5340 | /* System header to define __stub macros and hopefully few prototypes, | |
5341 | which can conflict with char _doprnt(); below. */ | |
5342 | #include <assert.h> | |
5343 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21c84b71 TT |
5344 | /* We use char because int might match the return type of a gcc2 |
5345 | builtin and then its argument prototype would still apply. */ | |
5346 | char _doprnt(); | |
50e1e10f | 5347 | |
21c84b71 | 5348 | int main() { |
50e1e10f TT |
5349 | |
5350 | /* The GNU C library defines this for functions which it implements | |
5351 | to always fail with ENOSYS. Some functions are actually named | |
5352 | something starting with __ and the normal name is an alias. */ | |
5353 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
5354 | choke me | |
5355 | #else | |
5356 | _doprnt(); | |
5357 | #endif | |
5358 | ||
5359 | ; return 0; } | |
5360 | EOF | |
d21ae6c5 | 5361 | if { (eval echo configure:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
50e1e10f TT |
5362 | rm -rf conftest* |
5363 | eval "ac_cv_func__doprnt=yes" | |
5364 | else | |
21c84b71 TT |
5365 | echo "configure: failed program was:" >&5 |
5366 | cat conftest.$ac_ext >&5 | |
50e1e10f TT |
5367 | rm -rf conftest* |
5368 | eval "ac_cv_func__doprnt=no" | |
5369 | fi | |
5370 | rm -f conftest* | |
50e1e10f | 5371 | fi |
21c84b71 | 5372 | |
50e1e10f TT |
5373 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
5374 | echo "$ac_t""yes" 1>&6 | |
5375 | cat >> confdefs.h <<\EOF | |
5376 | #define HAVE_DOPRNT 1 | |
5377 | EOF | |
5378 | ||
5379 | else | |
5380 | echo "$ac_t""no" 1>&6 | |
5381 | fi | |
5382 | ||
5383 | fi | |
5384 | ||
fff45483 | 5385 | echo $ac_n "checking whether d_reclen declared in dirent""... $ac_c" 1>&6 |
d21ae6c5 | 5386 | echo "configure:5387: checking whether d_reclen declared in dirent" >&5 |
fff45483 TT |
5387 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_d_reclen_dirent'+set}'`\" = set"; then |
5388 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5389 | else | |
5390 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 5391 | #line 5392 "configure" |
fff45483 TT |
5392 | #include "confdefs.h" |
5393 | #include <dirent.h> | |
5394 | int main() { | |
5395 | struct dirent de; de.d_reclen = 0; | |
5396 | ; return 0; } | |
5397 | EOF | |
d21ae6c5 | 5398 | if { (eval echo configure:5399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
fff45483 TT |
5399 | rm -rf conftest* |
5400 | e2fsprogs_cv_have_d_reclen_dirent=yes | |
5401 | else | |
5402 | echo "configure: failed program was:" >&5 | |
5403 | cat conftest.$ac_ext >&5 | |
5404 | rm -rf conftest* | |
5405 | e2fsprogs_cv_have_d_reclen_dirent=no | |
5406 | fi | |
5407 | rm -f conftest* | |
5408 | fi | |
5409 | ||
5410 | echo "$ac_t""$e2fsprogs_cv_have_d_reclen_dirent" 1>&6 | |
5411 | if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then | |
5412 | cat >> confdefs.h <<\EOF | |
5413 | #define HAVE_RECLEN_DIRENT 1 | |
5414 | EOF | |
5415 | ||
5416 | fi | |
5417 | echo $ac_n "checking whether ssize_t declared""... $ac_c" 1>&6 | |
d21ae6c5 | 5418 | echo "configure:5419: checking whether ssize_t declared" >&5 |
fff45483 TT |
5419 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_ssize_t'+set}'`\" = set"; then |
5420 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5421 | else | |
5422 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 5423 | #line 5424 "configure" |
fff45483 TT |
5424 | #include "confdefs.h" |
5425 | #include <sys/types.h> | |
5426 | int main() { | |
5427 | ssize_t a = 0; | |
5428 | ; return 0; } | |
5429 | EOF | |
d21ae6c5 | 5430 | if { (eval echo configure:5431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
fff45483 TT |
5431 | rm -rf conftest* |
5432 | e2fsprogs_cv_have_ssize_t=yes | |
5433 | else | |
5434 | echo "configure: failed program was:" >&5 | |
5435 | cat conftest.$ac_ext >&5 | |
5436 | rm -rf conftest* | |
5437 | e2fsprogs_cv_have_ssize_t=no | |
5438 | fi | |
5439 | rm -f conftest* | |
5440 | fi | |
5441 | ||
5442 | echo "$ac_t""$e2fsprogs_cv_have_ssize_t" 1>&6 | |
5443 | if test "$e2fsprogs_cv_have_ssize_t" = yes; then | |
5444 | cat >> confdefs.h <<\EOF | |
5445 | #define HAVE_TYPE_SSIZE_T 1 | |
5446 | EOF | |
5447 | ||
5448 | fi | |
b0b9c4de | 5449 | echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6 |
d21ae6c5 | 5450 | echo "configure:5451: checking whether llseek declared in unistd.h" >&5 |
b0b9c4de TT |
5451 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then |
5452 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5453 | else | |
5454 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 5455 | #line 5456 "configure" |
b0b9c4de TT |
5456 | #include "confdefs.h" |
5457 | #include <unistd.h> | |
5458 | int main() { | |
5459 | extern int llseek(int); | |
5460 | ; return 0; } | |
5461 | EOF | |
d21ae6c5 | 5462 | if { (eval echo configure:5463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b0b9c4de TT |
5463 | rm -rf conftest* |
5464 | e2fsprogs_cv_have_llseek_prototype=no | |
5465 | else | |
5466 | echo "configure: failed program was:" >&5 | |
5467 | cat conftest.$ac_ext >&5 | |
5468 | rm -rf conftest* | |
5469 | e2fsprogs_cv_have_llseek_prototype=yes | |
5470 | fi | |
5471 | rm -f conftest* | |
5472 | fi | |
5473 | ||
5474 | echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6 | |
5475 | if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then | |
5476 | cat >> confdefs.h <<\EOF | |
5477 | #define HAVE_LLSEEK_PROTOTYPE 1 | |
5478 | EOF | |
5479 | ||
6928adc9 TT |
5480 | fi |
5481 | echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6 | |
d21ae6c5 | 5482 | echo "configure:5483: checking whether lseek64 declared in unistd.h" >&5 |
6928adc9 TT |
5483 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then |
5484 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5485 | else | |
5486 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 5487 | #line 5488 "configure" |
6928adc9 TT |
5488 | #include "confdefs.h" |
5489 | #define _LARGEFILE_SOURCE | |
5490 | #define _LARGEFILE64_SOURCE | |
5491 | #include <unistd.h> | |
5492 | int main() { | |
5493 | extern int lseek64(int); | |
5494 | ; return 0; } | |
5495 | EOF | |
d21ae6c5 | 5496 | if { (eval echo configure:5497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6928adc9 TT |
5497 | rm -rf conftest* |
5498 | e2fsprogs_cv_have_lseek64_prototype=no | |
5499 | else | |
5500 | echo "configure: failed program was:" >&5 | |
5501 | cat conftest.$ac_ext >&5 | |
5502 | rm -rf conftest* | |
5503 | e2fsprogs_cv_have_lseek64_prototype=yes | |
5504 | fi | |
5505 | rm -f conftest* | |
5506 | fi | |
5507 | ||
5508 | echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6 | |
5509 | if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then | |
5510 | cat >> confdefs.h <<\EOF | |
5511 | #define HAVE_LSEEK64_PROTOTYPE 1 | |
5512 | EOF | |
5513 | ||
50e1e10f TT |
5514 | fi |
5515 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then | |
5516 | # if cross-compiling, with no cached values, just assume something common. | |
5517 | ac_cv_sizeof_short=2 | |
5518 | ac_cv_sizeof_int=4 | |
5519 | ac_cv_sizeof_long=4 | |
6c133523 TT |
5520 | ac_cv_sizeof_long_long=8 |
5521 | echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2 | |
50e1e10f TT |
5522 | fi |
5523 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
d21ae6c5 | 5524 | echo "configure:5525: checking size of short" >&5 |
50e1e10f TT |
5525 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
5526 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5527 | else | |
5528 | if test "$cross_compiling" = yes; then | |
5529 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
5530 | else | |
21c84b71 | 5531 | cat > conftest.$ac_ext <<EOF |
d21ae6c5 | 5532 | #line 5533 "configure" |
50e1e10f TT |
5533 | #include "confdefs.h" |
5534 | #include <stdio.h> | |
250f79f0 | 5535 | #include <sys/types.h> |
50e1e10f TT |
5536 | main() |
5537 | { | |
5538 | FILE *f=fopen("conftestval", "w"); | |
5539 | if (!f) exit(1); | |
5540 | fprintf(f, "%d\n", sizeof(short)); | |
5541 | exit(0); | |
5542 | } | |
5543 | EOF | |
d21ae6c5 | 5544 | if { (eval echo configure:5545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21c84b71 | 5545 | then |
50e1e10f TT |
5546 | ac_cv_sizeof_short=`cat conftestval` |
5547 | else | |
21c84b71 TT |
5548 | echo "configure: failed program was:" >&5 |
5549 | cat conftest.$ac_ext >&5 | |
5550 | rm -fr conftest* | |
50e1e10f TT |
5551 | ac_cv_sizeof_short=0 |
5552 | fi | |
50e1e10f | 5553 | rm -fr conftest* |
21c84b71 TT |
5554 | fi |
5555 | ||
50e1e10f TT |
5556 | fi |
5557 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
5558 | cat >> confdefs.h <<EOF | |
5559 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
5560 | EOF | |
5561 | ||
5562 | ||
5563 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
d21ae6c5 | 5564 | echo "configure:5565: checking size of int" >&5 |
50e1e10f TT |
5565 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
5566 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5567 | else | |
5568 | if test "$cross_compiling" = yes; then | |
5569 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
5570 | else | |
21c84b71 | 5571 | cat > conftest.$ac_ext <<EOF |
d21ae6c5 | 5572 | #line 5573 "configure" |
50e1e10f TT |
5573 | #include "confdefs.h" |
5574 | #include <stdio.h> | |
250f79f0 | 5575 | #include <sys/types.h> |
50e1e10f TT |
5576 | main() |
5577 | { | |
5578 | FILE *f=fopen("conftestval", "w"); | |
5579 | if (!f) exit(1); | |
5580 | fprintf(f, "%d\n", sizeof(int)); | |
5581 | exit(0); | |
5582 | } | |
5583 | EOF | |
d21ae6c5 | 5584 | if { (eval echo configure:5585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21c84b71 | 5585 | then |
50e1e10f TT |
5586 | ac_cv_sizeof_int=`cat conftestval` |
5587 | else | |
21c84b71 TT |
5588 | echo "configure: failed program was:" >&5 |
5589 | cat conftest.$ac_ext >&5 | |
5590 | rm -fr conftest* | |
50e1e10f TT |
5591 | ac_cv_sizeof_int=0 |
5592 | fi | |
50e1e10f | 5593 | rm -fr conftest* |
21c84b71 TT |
5594 | fi |
5595 | ||
50e1e10f TT |
5596 | fi |
5597 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
5598 | cat >> confdefs.h <<EOF | |
5599 | #define SIZEOF_INT $ac_cv_sizeof_int | |
5600 | EOF | |
5601 | ||
5602 | ||
5603 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
d21ae6c5 | 5604 | echo "configure:5605: checking size of long" >&5 |
50e1e10f TT |
5605 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
5606 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5607 | else | |
5608 | if test "$cross_compiling" = yes; then | |
5609 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
5610 | else | |
21c84b71 | 5611 | cat > conftest.$ac_ext <<EOF |
d21ae6c5 | 5612 | #line 5613 "configure" |
50e1e10f TT |
5613 | #include "confdefs.h" |
5614 | #include <stdio.h> | |
250f79f0 | 5615 | #include <sys/types.h> |
50e1e10f TT |
5616 | main() |
5617 | { | |
5618 | FILE *f=fopen("conftestval", "w"); | |
5619 | if (!f) exit(1); | |
5620 | fprintf(f, "%d\n", sizeof(long)); | |
5621 | exit(0); | |
5622 | } | |
5623 | EOF | |
d21ae6c5 | 5624 | if { (eval echo configure:5625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21c84b71 | 5625 | then |
50e1e10f TT |
5626 | ac_cv_sizeof_long=`cat conftestval` |
5627 | else | |
21c84b71 TT |
5628 | echo "configure: failed program was:" >&5 |
5629 | cat conftest.$ac_ext >&5 | |
5630 | rm -fr conftest* | |
50e1e10f TT |
5631 | ac_cv_sizeof_long=0 |
5632 | fi | |
50e1e10f | 5633 | rm -fr conftest* |
21c84b71 TT |
5634 | fi |
5635 | ||
50e1e10f TT |
5636 | fi |
5637 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
5638 | cat >> confdefs.h <<EOF | |
5639 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
5640 | EOF | |
5641 | ||
5642 | ||
fc6d9d51 | 5643 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
d21ae6c5 | 5644 | echo "configure:5645: checking size of long long" >&5 |
fc6d9d51 TT |
5645 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
5646 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5647 | else | |
5648 | if test "$cross_compiling" = yes; then | |
5649 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
5650 | else | |
21c84b71 | 5651 | cat > conftest.$ac_ext <<EOF |
d21ae6c5 | 5652 | #line 5653 "configure" |
fc6d9d51 TT |
5653 | #include "confdefs.h" |
5654 | #include <stdio.h> | |
250f79f0 | 5655 | #include <sys/types.h> |
fc6d9d51 TT |
5656 | main() |
5657 | { | |
5658 | FILE *f=fopen("conftestval", "w"); | |
5659 | if (!f) exit(1); | |
5660 | fprintf(f, "%d\n", sizeof(long long)); | |
5661 | exit(0); | |
5662 | } | |
5663 | EOF | |
d21ae6c5 | 5664 | if { (eval echo configure:5665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21c84b71 | 5665 | then |
fc6d9d51 TT |
5666 | ac_cv_sizeof_long_long=`cat conftestval` |
5667 | else | |
21c84b71 TT |
5668 | echo "configure: failed program was:" >&5 |
5669 | cat conftest.$ac_ext >&5 | |
5670 | rm -fr conftest* | |
fc6d9d51 TT |
5671 | ac_cv_sizeof_long_long=0 |
5672 | fi | |
fc6d9d51 | 5673 | rm -fr conftest* |
21c84b71 TT |
5674 | fi |
5675 | ||
fc6d9d51 TT |
5676 | fi |
5677 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
5678 | cat >> confdefs.h <<EOF | |
5679 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
5680 | EOF | |
5681 | ||
5682 | ||
50e1e10f TT |
5683 | SIZEOF_SHORT=$ac_cv_sizeof_short |
5684 | SIZEOF_INT=$ac_cv_sizeof_int | |
5685 | SIZEOF_LONG=$ac_cv_sizeof_long | |
fc6d9d51 TT |
5686 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
5687 | ||
50e1e10f TT |
5688 | |
5689 | ||
5690 | ||
877eb6d9 | 5691 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
d21ae6c5 | 5692 | echo "configure:5693: checking whether byte ordering is bigendian" >&5 |
877eb6d9 TT |
5693 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
5694 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5695 | else | |
5696 | ac_cv_c_bigendian=unknown | |
5697 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5698 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 5699 | #line 5700 "configure" |
877eb6d9 TT |
5700 | #include "confdefs.h" |
5701 | #include <sys/types.h> | |
5702 | #include <sys/param.h> | |
5703 | int main() { | |
5704 | ||
5705 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
5706 | bogus endian macros | |
5707 | #endif | |
5708 | ; return 0; } | |
5709 | EOF | |
d21ae6c5 | 5710 | if { (eval echo configure:5711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
877eb6d9 TT |
5711 | rm -rf conftest* |
5712 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
5713 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 5714 | #line 5715 "configure" |
877eb6d9 TT |
5715 | #include "confdefs.h" |
5716 | #include <sys/types.h> | |
5717 | #include <sys/param.h> | |
5718 | int main() { | |
5719 | ||
5720 | #if BYTE_ORDER != BIG_ENDIAN | |
5721 | not big endian | |
5722 | #endif | |
5723 | ; return 0; } | |
5724 | EOF | |
d21ae6c5 | 5725 | if { (eval echo configure:5726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
877eb6d9 TT |
5726 | rm -rf conftest* |
5727 | ac_cv_c_bigendian=yes | |
5728 | else | |
5729 | echo "configure: failed program was:" >&5 | |
5730 | cat conftest.$ac_ext >&5 | |
5731 | rm -rf conftest* | |
5732 | ac_cv_c_bigendian=no | |
5733 | fi | |
5734 | rm -f conftest* | |
5735 | else | |
5736 | echo "configure: failed program was:" >&5 | |
5737 | cat conftest.$ac_ext >&5 | |
5738 | fi | |
5739 | rm -f conftest* | |
5740 | if test $ac_cv_c_bigendian = unknown; then | |
5741 | if test "$cross_compiling" = yes; then | |
5742 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
5743 | else | |
5744 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 5745 | #line 5746 "configure" |
877eb6d9 TT |
5746 | #include "confdefs.h" |
5747 | main () { | |
5748 | /* Are we little or big endian? From Harbison&Steele. */ | |
5749 | union | |
5750 | { | |
5751 | long l; | |
5752 | char c[sizeof (long)]; | |
5753 | } u; | |
5754 | u.l = 1; | |
5755 | exit (u.c[sizeof (long) - 1] == 1); | |
5756 | } | |
5757 | EOF | |
d21ae6c5 | 5758 | if { (eval echo configure:5759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
877eb6d9 TT |
5759 | then |
5760 | ac_cv_c_bigendian=no | |
5761 | else | |
5762 | echo "configure: failed program was:" >&5 | |
5763 | cat conftest.$ac_ext >&5 | |
5764 | rm -fr conftest* | |
5765 | ac_cv_c_bigendian=yes | |
5766 | fi | |
5767 | rm -fr conftest* | |
5768 | fi | |
5769 | ||
5770 | fi | |
5771 | fi | |
5772 | ||
5773 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
5774 | if test $ac_cv_c_bigendian = yes; then | |
5775 | cat >> confdefs.h <<\EOF | |
5776 | #define WORDS_BIGENDIAN 1 | |
5777 | EOF | |
5778 | ||
5779 | fi | |
5780 | ||
50e1e10f | 5781 | echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6 |
d21ae6c5 | 5782 | echo "configure:5783: checking whether struct stat has a st_flags field" >&5 |
50e1e10f TT |
5783 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then |
5784 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5785 | else | |
5786 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 5787 | #line 5788 "configure" |
50e1e10f TT |
5788 | #include "confdefs.h" |
5789 | #include <sys/stat.h> | |
21c84b71 | 5790 | int main() { |
50e1e10f TT |
5791 | struct stat stat; stat.st_flags = 0; |
5792 | ; return 0; } | |
5793 | EOF | |
d21ae6c5 | 5794 | if { (eval echo configure:5795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
50e1e10f TT |
5795 | rm -rf conftest* |
5796 | e2fsprogs_cv_struct_st_flags=yes | |
5797 | else | |
21c84b71 TT |
5798 | echo "configure: failed program was:" >&5 |
5799 | cat conftest.$ac_ext >&5 | |
50e1e10f TT |
5800 | rm -rf conftest* |
5801 | e2fsprogs_cv_struct_st_flags=no | |
5802 | fi | |
5803 | rm -f conftest* | |
50e1e10f TT |
5804 | fi |
5805 | ||
5806 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6 | |
5807 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then | |
c03bc4e8 | 5808 | echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6 |
d21ae6c5 | 5809 | echo "configure:5810: checking whether st_flags field is useful" >&5 |
c03bc4e8 TT |
5810 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then |
5811 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5812 | else | |
5813 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 5814 | #line 5815 "configure" |
c03bc4e8 TT |
5815 | #include "confdefs.h" |
5816 | #include <sys/stat.h> | |
5817 | int main() { | |
5818 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; | |
5819 | ; return 0; } | |
5820 | EOF | |
d21ae6c5 | 5821 | if { (eval echo configure:5822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c03bc4e8 TT |
5822 | rm -rf conftest* |
5823 | e2fsprogs_cv_struct_st_flags_immut=yes | |
5824 | else | |
5825 | echo "configure: failed program was:" >&5 | |
5826 | cat conftest.$ac_ext >&5 | |
5827 | rm -rf conftest* | |
5828 | e2fsprogs_cv_struct_st_flags_immut=no | |
5829 | fi | |
5830 | rm -f conftest* | |
5831 | fi | |
5832 | ||
5833 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6 | |
5834 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then | |
5835 | cat >> confdefs.h <<\EOF | |
50e1e10f TT |
5836 | #define HAVE_STAT_FLAGS 1 |
5837 | EOF | |
5838 | ||
c03bc4e8 | 5839 | fi |
50e1e10f | 5840 | fi |
a04eba3f | 5841 | for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf |
50e1e10f TT |
5842 | do |
5843 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d21ae6c5 | 5844 | echo "configure:5845: checking for $ac_func" >&5 |
50e1e10f TT |
5845 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5846 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5847 | else | |
5848 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 5849 | #line 5850 "configure" |
50e1e10f TT |
5850 | #include "confdefs.h" |
5851 | /* System header to define __stub macros and hopefully few prototypes, | |
5852 | which can conflict with char $ac_func(); below. */ | |
5853 | #include <assert.h> | |
5854 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21c84b71 TT |
5855 | /* We use char because int might match the return type of a gcc2 |
5856 | builtin and then its argument prototype would still apply. */ | |
5857 | char $ac_func(); | |
50e1e10f | 5858 | |
21c84b71 | 5859 | int main() { |
50e1e10f TT |
5860 | |
5861 | /* The GNU C library defines this for functions which it implements | |
5862 | to always fail with ENOSYS. Some functions are actually named | |
5863 | something starting with __ and the normal name is an alias. */ | |
5864 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5865 | choke me | |
5866 | #else | |
5867 | $ac_func(); | |
5868 | #endif | |
5869 | ||
5870 | ; return 0; } | |
5871 | EOF | |
d21ae6c5 | 5872 | if { (eval echo configure:5873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
50e1e10f TT |
5873 | rm -rf conftest* |
5874 | eval "ac_cv_func_$ac_func=yes" | |
5875 | else | |
21c84b71 TT |
5876 | echo "configure: failed program was:" >&5 |
5877 | cat conftest.$ac_ext >&5 | |
50e1e10f TT |
5878 | rm -rf conftest* |
5879 | eval "ac_cv_func_$ac_func=no" | |
5880 | fi | |
5881 | rm -f conftest* | |
50e1e10f | 5882 | fi |
21c84b71 | 5883 | |
50e1e10f TT |
5884 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
5885 | echo "$ac_t""yes" 1>&6 | |
21c84b71 | 5886 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
50e1e10f TT |
5887 | cat >> confdefs.h <<EOF |
5888 | #define $ac_tr_func 1 | |
5889 | EOF | |
5890 | ||
5891 | else | |
5892 | echo "$ac_t""no" 1>&6 | |
5893 | fi | |
5894 | done | |
5895 | ||
fc6d9d51 | 5896 | SOCKET_LIB='' |
21c84b71 | 5897 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
d21ae6c5 | 5898 | echo "configure:5899: checking for socket in -lsocket" >&5 |
21c84b71 TT |
5899 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
5900 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
50e1e10f TT |
5901 | echo $ac_n "(cached) $ac_c" 1>&6 |
5902 | else | |
fc6d9d51 TT |
5903 | ac_save_LIBS="$LIBS" |
5904 | LIBS="-lsocket $LIBS" | |
5905 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 5906 | #line 5907 "configure" |
50e1e10f | 5907 | #include "confdefs.h" |
21c84b71 TT |
5908 | /* Override any gcc2 internal prototype to avoid an error. */ |
5909 | /* We use char because int might match the return type of a gcc2 | |
5910 | builtin and then its argument prototype would still apply. */ | |
5911 | char socket(); | |
fc6d9d51 | 5912 | |
21c84b71 | 5913 | int main() { |
fc6d9d51 TT |
5914 | socket() |
5915 | ; return 0; } | |
50e1e10f | 5916 | EOF |
d21ae6c5 | 5917 | if { (eval echo configure:5918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
50e1e10f | 5918 | rm -rf conftest* |
21c84b71 | 5919 | eval "ac_cv_lib_$ac_lib_var=yes" |
50e1e10f | 5920 | else |
21c84b71 TT |
5921 | echo "configure: failed program was:" >&5 |
5922 | cat conftest.$ac_ext >&5 | |
50e1e10f | 5923 | rm -rf conftest* |
21c84b71 | 5924 | eval "ac_cv_lib_$ac_lib_var=no" |
50e1e10f TT |
5925 | fi |
5926 | rm -f conftest* | |
fc6d9d51 | 5927 | LIBS="$ac_save_LIBS" |
50e1e10f TT |
5928 | |
5929 | fi | |
21c84b71 | 5930 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
fc6d9d51 TT |
5931 | echo "$ac_t""yes" 1>&6 |
5932 | SOCKET_LIB=-lsocket | |
5933 | else | |
5934 | echo "$ac_t""no" 1>&6 | |
50e1e10f | 5935 | fi |
fc6d9d51 TT |
5936 | |
5937 | ||
bbac86bb TT |
5938 | DLOPEN_LIB='' |
5939 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
d21ae6c5 | 5940 | echo "configure:5941: checking for dlopen in -ldl" >&5 |
bbac86bb TT |
5941 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
5942 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5943 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5944 | else | |
5945 | ac_save_LIBS="$LIBS" | |
5946 | LIBS="-ldl $LIBS" | |
5947 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 5948 | #line 5949 "configure" |
bbac86bb TT |
5949 | #include "confdefs.h" |
5950 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5951 | /* We use char because int might match the return type of a gcc2 | |
5952 | builtin and then its argument prototype would still apply. */ | |
5953 | char dlopen(); | |
5954 | ||
5955 | int main() { | |
5956 | dlopen() | |
5957 | ; return 0; } | |
5958 | EOF | |
d21ae6c5 | 5959 | if { (eval echo configure:5960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
bbac86bb TT |
5960 | rm -rf conftest* |
5961 | eval "ac_cv_lib_$ac_lib_var=yes" | |
5962 | else | |
5963 | echo "configure: failed program was:" >&5 | |
5964 | cat conftest.$ac_ext >&5 | |
5965 | rm -rf conftest* | |
5966 | eval "ac_cv_lib_$ac_lib_var=no" | |
5967 | fi | |
5968 | rm -f conftest* | |
5969 | LIBS="$ac_save_LIBS" | |
5970 | ||
5971 | fi | |
5972 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5973 | echo "$ac_t""yes" 1>&6 | |
5974 | DLOPEN_LIB=-ldl | |
5975 | cat >> confdefs.h <<\EOF | |
5976 | #define HAVE_DLOPEN 1 | |
5977 | EOF | |
5978 | ||
5979 | else | |
5980 | echo "$ac_t""no" 1>&6 | |
5981 | fi | |
5982 | ||
5983 | ||
fc6d9d51 | 5984 | echo $ac_n "checking for optreset""... $ac_c" 1>&6 |
d21ae6c5 | 5985 | echo "configure:5986: checking for optreset" >&5 |
fc6d9d51 | 5986 | if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then |
50e1e10f TT |
5987 | echo $ac_n "(cached) $ac_c" 1>&6 |
5988 | else | |
5989 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 5990 | #line 5991 "configure" |
50e1e10f | 5991 | #include "confdefs.h" |
fc6d9d51 | 5992 | #include <unistd.h> |
50e1e10f | 5993 | EOF |
fc6d9d51 TT |
5994 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5995 | egrep "optreset" >/dev/null 2>&1; then | |
50e1e10f | 5996 | rm -rf conftest* |
fc6d9d51 | 5997 | ac_cv_have_optreset=yes |
50e1e10f TT |
5998 | else |
5999 | rm -rf conftest* | |
fc6d9d51 | 6000 | ac_cv_have_optreset=no |
50e1e10f TT |
6001 | fi |
6002 | rm -f conftest* | |
6003 | ||
6004 | fi | |
fc6d9d51 TT |
6005 | echo "$ac_t""$ac_cv_have_optreset" 1>&6 |
6006 | if test $ac_cv_have_optreset = yes; then | |
50e1e10f | 6007 | cat >> confdefs.h <<\EOF |
fc6d9d51 | 6008 | #define HAVE_OPTRESET 1 |
50e1e10f TT |
6009 | EOF |
6010 | ||
6011 | fi | |
8f3f29d3 TT |
6012 | case "$host_os" in |
6013 | linux*) | |
6014 | cat >> confdefs.h <<\EOF | |
50e1e10f TT |
6015 | #define HAVE_EXT2_IOCTLS 1 |
6016 | EOF | |
6017 | ||
8f3f29d3 TT |
6018 | ;; |
6019 | esac | |
e6f2bda3 | 6020 | LINUX_CMT="#" |
fff45483 TT |
6021 | CYGWIN_CMT="#" |
6022 | UNIX_CMT= | |
e6f2bda3 TT |
6023 | case "$host_os" in |
6024 | linux*) | |
6025 | LINUX_CMT= | |
fff45483 TT |
6026 | ;; |
6027 | cygwin) | |
6028 | CYGWIN_CMT= | |
6029 | UNIX_CMT="#" | |
d21ae6c5 | 6030 | EVMS_CMT="#" |
e6f2bda3 | 6031 | ;; |
d21ae6c5 TT |
6032 | *) |
6033 | EVMS_CMT="#" | |
e6f2bda3 TT |
6034 | esac |
6035 | ||
fff45483 TT |
6036 | |
6037 | ||
50e1e10f | 6038 | case "$host_os" in |
6c133523 | 6039 | linux* | gnu*) |
a4b2d3ce TT |
6040 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
6041 | root_prefix=""; | |
6042 | echo "On $host_os systems, root_prefix defaults to ''" | |
fc6d9d51 TT |
6043 | fi |
6044 | ;; | |
6045 | esac | |
fc6d9d51 TT |
6046 | case "$host_os" in |
6047 | linux* | gnu*) | |
6048 | if test "$prefix" = NONE ; then | |
a4b2d3ce TT |
6049 | prefix="/usr"; |
6050 | echo "On $host_os systems, prefix defaults to /usr" | |
bff61a7a TT |
6051 | if test "$mandir" = '${prefix}/man' ; then |
6052 | echo "...and mandir defaults to /usr/share/man" | |
6053 | mandir=/usr/share/man | |
6054 | fi | |
50e1e10f TT |
6055 | fi |
6056 | ;; | |
6057 | esac | |
a4b2d3ce | 6058 | if test "$root_prefix" = NONE ; then |
ffe1991f | 6059 | if test "$prefix" = NONE ; then |
a4b2d3ce TT |
6060 | root_prefix="$ac_default_prefix" |
6061 | else | |
6062 | root_prefix="$prefix" | |
6063 | fi | |
b5ffeade TT |
6064 | root_bindir=$bindir |
6065 | root_sbindir=$sbindir | |
6066 | root_libdir=$libdir | |
6067 | root_sysconfdir=$sysconfdir | |
6068 | else | |
6069 | root_bindir='${root_prefix}/bin' | |
6070 | root_sbindir='${root_prefix}/sbin' | |
6071 | root_libdir='${root_prefix}/lib' | |
6072 | root_sysconfdir='${root_prefix}/etc' | |
a4b2d3ce TT |
6073 | fi |
6074 | ||
b5ffeade TT |
6075 | |
6076 | ||
6077 | ||
6078 | ||
ae851482 | 6079 | echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6 |
d21ae6c5 | 6080 | echo "configure:6081: checking whether linker accepts -static" >&5 |
ae851482 TT |
6081 | if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then |
6082 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6083 | else | |
6084 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" | |
6085 | cat > conftest.$ac_ext <<EOF | |
d21ae6c5 | 6086 | #line 6087 "configure" |
ae851482 TT |
6087 | #include "confdefs.h" |
6088 | #include <stdio.h> | |
6089 | int main() { | |
6090 | fflush(stdout); | |
6091 | ; return 0; } | |
6092 | EOF | |
d21ae6c5 | 6093 | if { (eval echo configure:6094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ae851482 TT |
6094 | rm -rf conftest* |
6095 | ac_cv_e2fsprogs_use_static=yes | |
6096 | else | |
6097 | echo "configure: failed program was:" >&5 | |
6098 | cat conftest.$ac_ext >&5 | |
6099 | rm -rf conftest* | |
6100 | ac_cv_e2fsprogs_use_static=no | |
6101 | fi | |
6102 | rm -f conftest* | |
6103 | LDFLAGS=$SAVE_LDFLAGS | |
6104 | fi | |
50e1e10f | 6105 | |
defde784 TT |
6106 | case "$host_os" in |
6107 | solaris2.*) | |
6108 | ac_cv_e2fsprogs_use_static=no | |
6109 | ;; | |
6110 | esac | |
ae851482 | 6111 | echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6 |
74becf3c | 6112 | LDFLAG_STATIC= |
ae851482 | 6113 | if test $ac_cv_e2fsprogs_use_static = yes; then |
50e1e10f | 6114 | LDFLAG_STATIC=-static |
ae851482 | 6115 | fi |
50e1e10f | 6116 | |
50e1e10f TT |
6117 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
6118 | ET_DIR=`cd ${srcdir}/lib/et; pwd` | |
6119 | ||
6120 | ||
6121 | if test "$cross_compiling" = yes ; then | |
6122 | DO_TEST_SUITE= | |
6123 | else | |
6124 | DO_TEST_SUITE=check | |
6125 | fi | |
6126 | ||
6127 | test -d lib || mkdir lib | |
6128 | test -d include || mkdir include | |
6129 | test -d include/linux || mkdir include/linux | |
defde784 | 6130 | test -d include/asm || mkdir include/asm |
bff0cc95 TT |
6131 | for i in MCONFIG Makefile e2fsprogs.spec \ |
6132 | util/Makefile util/subst.conf util/gen-tarball \ | |
6133 | lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \ | |
94ba8c75 TT |
6134 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
6135 | lib/blkid/Makefile lib/blkid/blkid_types.h \ | |
6136 | lib/evms/Makefile misc/Makefile ext2ed/Makefile e2fsck/Makefile \ | |
6137 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ | |
6138 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do | |
6139 | if test -d `dirname ${srcdir}/$i` ; then | |
6140 | outlist="$outlist $i" | |
6141 | fi | |
6142 | done | |
50e1e10f TT |
6143 | trap '' 1 2 15 |
6144 | cat > confcache <<\EOF | |
6145 | # This file is a shell script that caches the results of configure | |
6146 | # tests run on this system so they can be shared between configure | |
6147 | # scripts and configure runs. It is not useful on other systems. | |
6148 | # If it contains results you don't want to keep, you may remove or edit it. | |
6149 | # | |
6150 | # By default, configure uses ./config.cache as the cache file, | |
6151 | # creating it if it does not exist already. You can give configure | |
6152 | # the --cache-file=FILE option to use a different cache file; that is | |
6153 | # what configure does when it calls configure scripts in | |
6154 | # subdirectories, so they share the cache. | |
6155 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6156 | # config.status only pays attention to the cache file if you give it the | |
6157 | # --recheck option to rerun configure. | |
6158 | # | |
6159 | EOF | |
21c84b71 TT |
6160 | # The following way of writing the cache mishandles newlines in values, |
6161 | # but we know of no workaround that is simple, portable, and efficient. | |
6162 | # So, don't put newlines in cache variables' values. | |
50e1e10f TT |
6163 | # Ultrix sh set writes to stderr and can't be redirected directly, |
6164 | # and sets the high bit in the cache file unless we assign to the vars. | |
6165 | (set) 2>&1 | | |
a4bf69d9 | 6166 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
21c84b71 TT |
6167 | *ac_space=\ *) |
6168 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6169 | # turns \\\\ into \\, and sed turns \\ into \). | |
6170 | sed -n \ | |
6171 | -e "s/'/'\\\\''/g" \ | |
6172 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6173 | ;; | |
6174 | *) | |
6175 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6176 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6177 | ;; | |
6178 | esac >> confcache | |
50e1e10f TT |
6179 | if cmp -s $cache_file confcache; then |
6180 | : | |
6181 | else | |
6182 | if test -w $cache_file; then | |
6183 | echo "updating cache $cache_file" | |
6184 | cat confcache > $cache_file | |
6185 | else | |
6186 | echo "not updating unwritable cache $cache_file" | |
6187 | fi | |
6188 | fi | |
6189 | rm -f confcache | |
6190 | ||
6191 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
6192 | ||
6193 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6194 | # Let make expand exec_prefix. | |
6195 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6196 | ||
6197 | # Any assignment to VPATH causes Sun make to only execute | |
6198 | # the first set of double-colon rules, so remove it if not needed. | |
6199 | # If there is a colon in the path, we need to keep it. | |
6200 | if test "x$srcdir" = x.; then | |
6201 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
6202 | fi | |
6203 | ||
6204 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
6205 | ||
6206 | # Transform confdefs.h into DEFS. | |
6207 | # Protect against shell expansion while executing Makefile rules. | |
6208 | # Protect against Makefile macro expansion. | |
6209 | cat > conftest.defs <<\EOF | |
21c84b71 | 6210 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
50e1e10f TT |
6211 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
6212 | s%\[%\\&%g | |
6213 | s%\]%\\&%g | |
6214 | s%\$%$$%g | |
6215 | EOF | |
6216 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
6217 | rm -f conftest.defs | |
6218 | ||
6219 | ||
6220 | # Without the "./", some shells look in PATH for config.status. | |
6221 | : ${CONFIG_STATUS=./config.status} | |
6222 | ||
6223 | echo creating $CONFIG_STATUS | |
6224 | rm -f $CONFIG_STATUS | |
6225 | cat > $CONFIG_STATUS <<EOF | |
6226 | #! /bin/sh | |
6227 | # Generated automatically by configure. | |
6228 | # Run this file to recreate the current configuration. | |
6229 | # This directory was configured as follows, | |
6230 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
6231 | # | |
6232 | # $0 $ac_configure_args | |
6233 | # | |
6234 | # Compiler output produced by configure, useful for debugging | |
6235 | # configure, is in ./config.log if it exists. | |
6236 | ||
6237 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
6238 | for ac_option | |
6239 | do | |
6240 | case "\$ac_option" in | |
6241 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
6242 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
6243 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
6244 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
a4bf69d9 | 6245 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
50e1e10f TT |
6246 | exit 0 ;; |
6247 | -help | --help | --hel | --he | --h) | |
6248 | echo "\$ac_cs_usage"; exit 0 ;; | |
6249 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
6250 | esac | |
6251 | done | |
6252 | ||
6253 | ac_given_srcdir=$srcdir | |
6254 | ac_given_INSTALL="$INSTALL" | |
6255 | ||
94ba8c75 | 6256 | trap 'rm -fr `echo "$outlist" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
21c84b71 TT |
6257 | EOF |
6258 | cat >> $CONFIG_STATUS <<EOF | |
50e1e10f | 6259 | |
21c84b71 TT |
6260 | # Protect against being on the right side of a sed subst in config.status. |
6261 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
6262 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
50e1e10f TT |
6263 | $ac_vpsub |
6264 | $extrasub | |
a4bf69d9 | 6265 | s%@SHELL@%$SHELL%g |
50e1e10f TT |
6266 | s%@CFLAGS@%$CFLAGS%g |
6267 | s%@CPPFLAGS@%$CPPFLAGS%g | |
6268 | s%@CXXFLAGS@%$CXXFLAGS%g | |
a4bf69d9 | 6269 | s%@FFLAGS@%$FFLAGS%g |
50e1e10f TT |
6270 | s%@DEFS@%$DEFS%g |
6271 | s%@LDFLAGS@%$LDFLAGS%g | |
6272 | s%@LIBS@%$LIBS%g | |
6273 | s%@exec_prefix@%$exec_prefix%g | |
6274 | s%@prefix@%$prefix%g | |
6275 | s%@program_transform_name@%$program_transform_name%g | |
21c84b71 TT |
6276 | s%@bindir@%$bindir%g |
6277 | s%@sbindir@%$sbindir%g | |
6278 | s%@libexecdir@%$libexecdir%g | |
6279 | s%@datadir@%$datadir%g | |
6280 | s%@sysconfdir@%$sysconfdir%g | |
6281 | s%@sharedstatedir@%$sharedstatedir%g | |
6282 | s%@localstatedir@%$localstatedir%g | |
6283 | s%@libdir@%$libdir%g | |
6284 | s%@includedir@%$includedir%g | |
6285 | s%@oldincludedir@%$oldincludedir%g | |
6286 | s%@infodir@%$infodir%g | |
6287 | s%@mandir@%$mandir%g | |
50e1e10f TT |
6288 | /@MCONFIG@/r $MCONFIG |
6289 | s%@MCONFIG@%%g | |
74becf3c TT |
6290 | s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g |
6291 | s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g | |
bff0cc95 | 6292 | s%@E2FSPROGS_DAY@%$E2FSPROGS_DAY%g |
74becf3c | 6293 | s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g |
fc6d9d51 TT |
6294 | s%@host@%$host%g |
6295 | s%@host_alias@%$host_alias%g | |
6296 | s%@host_cpu@%$host_cpu%g | |
6297 | s%@host_vendor@%$host_vendor%g | |
6298 | s%@host_os@%$host_os%g | |
d21ae6c5 | 6299 | s%@EVMS_CMT@%$EVMS_CMT%g |
74becf3c TT |
6300 | s%@CC@%$CC%g |
6301 | s%@LD@%$LD%g | |
f8bd9807 TT |
6302 | s%@CPP@%$CPP%g |
6303 | s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g | |
8fdc9985 TT |
6304 | s%@HTREE_CMT@%$HTREE_CMT%g |
6305 | s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g | |
a9d799a0 | 6306 | s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g |
50e1e10f TT |
6307 | s%@DLL_CMT@%$DLL_CMT%g |
6308 | /@MAKEFILE_DLL@/r $MAKEFILE_DLL | |
6309 | s%@MAKEFILE_DLL@%%g | |
6310 | s%@ELF_CMT@%$ELF_CMT%g | |
6311 | /@MAKEFILE_ELF@/r $MAKEFILE_ELF | |
6312 | s%@MAKEFILE_ELF@%%g | |
6313 | s%@BSDLIB_CMT@%$BSDLIB_CMT%g | |
6314 | /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB | |
6315 | s%@MAKEFILE_BSDLIB@%%g | |
cdf186e4 TT |
6316 | s%@PROFILE_CMT@%$PROFILE_CMT%g |
6317 | /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE | |
6318 | s%@MAKEFILE_PROFILE@%%g | |
6319 | s%@CHECKER_CMT@%$CHECKER_CMT%g | |
6320 | /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER | |
6321 | s%@MAKEFILE_CHECKER@%%g | |
6322 | s%@LIB_EXT@%$LIB_EXT%g | |
6323 | s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g | |
6324 | s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g | |
feb44c69 | 6325 | s%@SWAPFS_CMT@%$SWAPFS_CMT%g |
cdf186e4 TT |
6326 | s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g |
6327 | s%@IMAGER_CMT@%$IMAGER_CMT%g | |
6328 | s%@RESIZER_CMT@%$RESIZER_CMT%g | |
6329 | s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g | |
6330 | s%@FSCK_PROG@%$FSCK_PROG%g | |
6331 | s%@FSCK_MAN@%$FSCK_MAN%g | |
6332 | /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY | |
6333 | s%@MAKEFILE_LIBRARY@%%g | |
a64c9c13 TT |
6334 | s%@PACKAGE@%$PACKAGE%g |
6335 | s%@VERSION@%$VERSION%g | |
6336 | s%@SET_MAKE@%$SET_MAKE%g | |
a04eba3f TT |
6337 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
6338 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
6339 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
6340 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | |
a64c9c13 TT |
6341 | s%@MSGFMT@%$MSGFMT%g |
6342 | s%@GMSGFMT@%$GMSGFMT%g | |
6343 | s%@XGETTEXT@%$XGETTEXT%g | |
a04eba3f TT |
6344 | s%@MSGMERGE@%$MSGMERGE%g |
6345 | s%@RANLIB@%$RANLIB%g | |
6346 | s%@ALLOCA@%$ALLOCA%g | |
6347 | s%@GLIBC21@%$GLIBC21%g | |
6348 | s%@LIBICONV@%$LIBICONV%g | |
6349 | s%@LTLIBICONV@%$LTLIBICONV%g | |
6350 | s%@INTLBISON@%$INTLBISON%g | |
6351 | s%@USE_NLS@%$USE_NLS%g | |
6352 | s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g | |
a64c9c13 | 6353 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g |
a64c9c13 | 6354 | s%@CATOBJEXT@%$CATOBJEXT%g |
a04eba3f | 6355 | s%@INTLOBJS@%$INTLOBJS%g |
a64c9c13 | 6356 | s%@DATADIRNAME@%$DATADIRNAME%g |
a64c9c13 | 6357 | s%@INSTOBJEXT@%$INSTOBJEXT%g |
a04eba3f TT |
6358 | s%@GENCAT@%$GENCAT%g |
6359 | s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g | |
a64c9c13 | 6360 | s%@INTLLIBS@%$INTLLIBS%g |
a04eba3f TT |
6361 | s%@LIBINTL@%$LIBINTL%g |
6362 | s%@LTLIBINTL@%$LTLIBINTL%g | |
a64c9c13 | 6363 | s%@POSUB@%$POSUB%g |
74becf3c | 6364 | s%@BINARY_TYPE@%$BINARY_TYPE%g |
50e1e10f | 6365 | s%@LN@%$LN%g |
fc6d9d51 | 6366 | s%@LN_S@%$LN_S%g |
50e1e10f TT |
6367 | s%@MV@%$MV%g |
6368 | s%@CP@%$CP%g | |
6369 | s%@RM@%$RM%g | |
6370 | s%@CHMOD@%$CHMOD%g | |
6371 | s%@AWK@%$AWK%g | |
6372 | s%@SED@%$SED%g | |
9d564f73 | 6373 | s%@PERL@%$PERL%g |
250f79f0 | 6374 | s%@LDCONFIG@%$LDCONFIG%g |
50e1e10f TT |
6375 | s%@build@%$build%g |
6376 | s%@build_alias@%$build_alias%g | |
6377 | s%@build_cpu@%$build_cpu%g | |
6378 | s%@build_vendor@%$build_vendor%g | |
6379 | s%@build_os@%$build_os%g | |
6380 | s%@AR@%$AR%g | |
50e1e10f | 6381 | s%@STRIP@%$STRIP%g |
6c133523 | 6382 | s%@BUILD_CC@%$BUILD_CC%g |
50e1e10f TT |
6383 | s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g |
6384 | s%@SIZEOF_INT@%$SIZEOF_INT%g | |
6385 | s%@SIZEOF_LONG@%$SIZEOF_LONG%g | |
fc6d9d51 | 6386 | s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g |
fc6d9d51 | 6387 | s%@SOCKET_LIB@%$SOCKET_LIB%g |
bbac86bb | 6388 | s%@DLOPEN_LIB@%$DLOPEN_LIB%g |
e6f2bda3 | 6389 | s%@LINUX_CMT@%$LINUX_CMT%g |
fff45483 TT |
6390 | s%@CYGWIN_CMT@%$CYGWIN_CMT%g |
6391 | s%@UNIX_CMT@%$UNIX_CMT%g | |
a4b2d3ce | 6392 | s%@root_prefix@%$root_prefix%g |
b5ffeade TT |
6393 | s%@root_bindir@%$root_bindir%g |
6394 | s%@root_sbindir@%$root_sbindir%g | |
6395 | s%@root_libdir@%$root_libdir%g | |
6396 | s%@root_sysconfdir@%$root_sysconfdir%g | |
fc6d9d51 | 6397 | s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g |
50e1e10f TT |
6398 | s%@SS_DIR@%$SS_DIR%g |
6399 | s%@ET_DIR@%$ET_DIR%g | |
6400 | s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g | |
6401 | ||
6402 | CEOF | |
6403 | EOF | |
21c84b71 TT |
6404 | |
6405 | cat >> $CONFIG_STATUS <<\EOF | |
6406 | ||
6407 | # Split the substitutions into bite-sized pieces for seds with | |
6408 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
6409 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
6410 | ac_file=1 # Number of current file. | |
6411 | ac_beg=1 # First line for current file. | |
6412 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
6413 | ac_more_lines=: | |
6414 | ac_sed_cmds="" | |
6415 | while $ac_more_lines; do | |
6416 | if test $ac_beg -gt 1; then | |
6417 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
6418 | else | |
6419 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
6420 | fi | |
6421 | if test ! -s conftest.s$ac_file; then | |
6422 | ac_more_lines=false | |
6423 | rm -f conftest.s$ac_file | |
6424 | else | |
6425 | if test -z "$ac_sed_cmds"; then | |
6426 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
6427 | else | |
6428 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
6429 | fi | |
6430 | ac_file=`expr $ac_file + 1` | |
6431 | ac_beg=$ac_end | |
6432 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
6433 | fi | |
6434 | done | |
6435 | if test -z "$ac_sed_cmds"; then | |
6436 | ac_sed_cmds=cat | |
6437 | fi | |
6438 | EOF | |
6439 | ||
50e1e10f TT |
6440 | cat >> $CONFIG_STATUS <<EOF |
6441 | ||
94ba8c75 | 6442 | CONFIG_FILES=\${CONFIG_FILES-"$outlist"} |
50e1e10f TT |
6443 | EOF |
6444 | cat >> $CONFIG_STATUS <<\EOF | |
6445 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
21c84b71 | 6446 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
50e1e10f | 6447 | case "$ac_file" in |
21c84b71 | 6448 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
50e1e10f TT |
6449 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
6450 | *) ac_file_in="${ac_file}.in" ;; | |
6451 | esac | |
6452 | ||
21c84b71 | 6453 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
50e1e10f TT |
6454 | |
6455 | # Remove last slash and all that follows it. Not all systems have dirname. | |
6456 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
6457 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
6458 | # The file is in a subdirectory. | |
6459 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
6460 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
6461 | # A "../" for each directory in $ac_dir_suffix. | |
6462 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
6463 | else | |
6464 | ac_dir_suffix= ac_dots= | |
6465 | fi | |
6466 | ||
6467 | case "$ac_given_srcdir" in | |
6468 | .) srcdir=. | |
6469 | if test -z "$ac_dots"; then top_srcdir=. | |
6470 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
6471 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
6472 | *) # Relative path. | |
6473 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
6474 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
6475 | esac | |
6476 | ||
6477 | case "$ac_given_INSTALL" in | |
6478 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
6479 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
6480 | esac | |
21c84b71 | 6481 | |
50e1e10f TT |
6482 | echo creating "$ac_file" |
6483 | rm -f "$ac_file" | |
6484 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
6485 | case "$ac_file" in | |
6486 | *Makefile*) ac_comsub="1i\\ | |
6487 | # $configure_input" ;; | |
6488 | *) ac_comsub= ;; | |
6489 | esac | |
21c84b71 TT |
6490 | |
6491 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
50e1e10f TT |
6492 | sed -e "$ac_comsub |
6493 | s%@configure_input@%$configure_input%g | |
6494 | s%@srcdir@%$srcdir%g | |
6495 | s%@top_srcdir@%$top_srcdir%g | |
6496 | s%@INSTALL@%$INSTALL%g | |
21c84b71 | 6497 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
50e1e10f | 6498 | fi; done |
21c84b71 | 6499 | rm -f conftest.s* |
50e1e10f | 6500 | |
21c84b71 TT |
6501 | EOF |
6502 | cat >> $CONFIG_STATUS <<EOF | |
a04eba3f TT |
6503 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
6504 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
6505 | # from automake. | |
6506 | eval 'ALL_LINGUAS''="$ALL_LINGUAS"' | |
6507 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
6508 | LINGUAS="${LINGUAS-%UNSET%}" | |
6509 | ||
a64c9c13 | 6510 | |
21c84b71 TT |
6511 | EOF |
6512 | cat >> $CONFIG_STATUS <<\EOF | |
a04eba3f TT |
6513 | |
6514 | for ac_file in $CONFIG_FILES; do | |
6515 | # Support "outfile[:infile[:infile...]]" | |
6516 | case "$ac_file" in | |
6517 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
6518 | esac | |
6519 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
6520 | case "$ac_file" in */Makefile.in) | |
6521 | # Adjust a relative srcdir. | |
6522 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
6523 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
6524 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
6525 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
6526 | # In autoconf-2.50 it is called $srcdir. | |
6527 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
6528 | case "$ac_given_srcdir" in | |
6529 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
6530 | /*) top_srcdir="$ac_given_srcdir" ;; | |
6531 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
6532 | esac | |
6533 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
6534 | rm -f "$ac_dir/POTFILES" | |
6535 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
6536 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
6537 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
6538 | # on $ac_dir but don't depend on user-specified configuration | |
6539 | # parameters. | |
6540 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
6541 | # The LINGUAS file contains the set of available languages. | |
6542 | if test -n "$ALL_LINGUAS"; then | |
6543 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
6544 | fi | |
6545 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
6546 | # Hide the ALL_LINGUAS assigment from automake. | |
6547 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
6548 | fi | |
6549 | case "$ac_given_srcdir" in | |
6550 | .) srcdirpre= ;; | |
6551 | *) srcdirpre='$(srcdir)/' ;; | |
6552 | esac | |
6553 | POFILES= | |
6554 | GMOFILES= | |
6555 | UPDATEPOFILES= | |
6556 | DUMMYPOFILES= | |
6557 | for lang in $ALL_LINGUAS; do | |
6558 | POFILES="$POFILES $srcdirpre$lang.po" | |
6559 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
6560 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
6561 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
6562 | done | |
6563 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
6564 | # environment variable. | |
6565 | INST_LINGUAS= | |
6566 | if test -n "$ALL_LINGUAS"; then | |
6567 | for presentlang in $ALL_LINGUAS; do | |
6568 | useit=no | |
6569 | if test "%UNSET%" != "$LINGUAS"; then | |
6570 | desiredlanguages="$LINGUAS" | |
6571 | else | |
6572 | desiredlanguages="$ALL_LINGUAS" | |
6573 | fi | |
6574 | for desiredlang in $desiredlanguages; do | |
6575 | # Use the presentlang catalog if desiredlang is | |
6576 | # a. equal to presentlang, or | |
6577 | # b. a variant of presentlang (because in this case, | |
6578 | # presentlang can be used as a fallback for messages | |
6579 | # which are not translated in the desiredlang catalog). | |
6580 | case "$desiredlang" in | |
6581 | "$presentlang"*) useit=yes;; | |
6582 | esac | |
6583 | done | |
6584 | if test $useit = yes; then | |
6585 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
6586 | fi | |
6587 | done | |
6588 | fi | |
6589 | CATALOGS= | |
6590 | if test -n "$INST_LINGUAS"; then | |
6591 | for lang in $INST_LINGUAS; do | |
6592 | CATALOGS="$CATALOGS $lang.gmo" | |
6593 | done | |
6594 | fi | |
6595 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
6596 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
6597 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
6598 | if test -f "$f"; then | |
6599 | case "$f" in | |
6600 | *.orig | *.bak | *~) ;; | |
6601 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
6602 | esac | |
6603 | fi | |
6604 | done | |
6605 | fi | |
6606 | ;; | |
a64c9c13 | 6607 | esac |
a04eba3f | 6608 | done |
50e1e10f TT |
6609 | |
6610 | exit 0 | |
6611 | EOF | |
6612 | chmod +x $CONFIG_STATUS | |
6613 | rm -fr confdefs* $ac_clean_files | |
6614 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
6615 |