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