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