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