Commit | Line | Data |
---|---|---|
c906108c SS |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated automatically using autoconf version 2.13 | |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
6 | # | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | # Defaults: | |
11 | ac_help= | |
12 | ac_default_prefix=/usr/local | |
13 | # Any additions from configure.in: | |
14 | ac_help="$ac_help | |
15 | --enable-shared use shared libraries" | |
7a292a7a SS |
16 | ac_help="$ac_help |
17 | --enable-gdbtk " | |
c906108c SS |
18 | |
19 | # Initialize some variables set by options. | |
20 | # The variables have the same names as the options, with | |
21 | # dashes changed to underlines. | |
22 | build=NONE | |
23 | cache_file=./config.cache | |
24 | exec_prefix=NONE | |
25 | host=NONE | |
26 | no_create= | |
27 | nonopt=NONE | |
28 | no_recursion= | |
29 | prefix=NONE | |
30 | program_prefix=NONE | |
31 | program_suffix=NONE | |
32 | program_transform_name=s,x,x, | |
33 | silent= | |
34 | site= | |
8b93c638 | 35 | sitefile= |
c906108c SS |
36 | srcdir= |
37 | target=NONE | |
38 | verbose= | |
39 | x_includes=NONE | |
40 | x_libraries=NONE | |
41 | bindir='${exec_prefix}/bin' | |
42 | sbindir='${exec_prefix}/sbin' | |
43 | libexecdir='${exec_prefix}/libexec' | |
44 | datadir='${prefix}/share' | |
45 | sysconfdir='${prefix}/etc' | |
46 | sharedstatedir='${prefix}/com' | |
47 | localstatedir='${prefix}/var' | |
48 | libdir='${exec_prefix}/lib' | |
49 | includedir='${prefix}/include' | |
50 | oldincludedir='/usr/include' | |
51 | infodir='${prefix}/info' | |
52 | mandir='${prefix}/man' | |
53 | ||
54 | # Initialize some other variables. | |
55 | subdirs= | |
56 | MFLAGS= MAKEFLAGS= | |
57 | SHELL=${CONFIG_SHELL-/bin/sh} | |
58 | # Maximum number of lines to put in a shell here document. | |
59 | ac_max_here_lines=12 | |
60 | ||
61 | ac_prev= | |
62 | for ac_option | |
63 | do | |
64 | ||
65 | # If the previous option needs an argument, assign it. | |
66 | if test -n "$ac_prev"; then | |
67 | eval "$ac_prev=\$ac_option" | |
68 | ac_prev= | |
69 | continue | |
70 | fi | |
71 | ||
72 | case "$ac_option" in | |
73 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
74 | *) ac_optarg= ;; | |
75 | esac | |
76 | ||
77 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
78 | ||
79 | case "$ac_option" in | |
80 | ||
81 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
82 | ac_prev=bindir ;; | |
83 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
84 | bindir="$ac_optarg" ;; | |
85 | ||
86 | -build | --build | --buil | --bui | --bu) | |
87 | ac_prev=build ;; | |
88 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
89 | build="$ac_optarg" ;; | |
90 | ||
91 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
92 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
93 | ac_prev=cache_file ;; | |
94 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
95 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
96 | cache_file="$ac_optarg" ;; | |
97 | ||
98 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
99 | ac_prev=datadir ;; | |
100 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
101 | | --da=*) | |
102 | datadir="$ac_optarg" ;; | |
103 | ||
104 | -disable-* | --disable-*) | |
105 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
106 | # Reject names that are not valid shell variable names. | |
107 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
108 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
109 | fi | |
110 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
111 | eval "enable_${ac_feature}=no" ;; | |
112 | ||
113 | -enable-* | --enable-*) | |
114 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
115 | # Reject names that are not valid shell variable names. | |
116 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
117 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
118 | fi | |
119 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
120 | case "$ac_option" in | |
121 | *=*) ;; | |
122 | *) ac_optarg=yes ;; | |
123 | esac | |
124 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
125 | ||
126 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
127 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
128 | | --exec | --exe | --ex) | |
129 | ac_prev=exec_prefix ;; | |
130 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
131 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
132 | | --exec=* | --exe=* | --ex=*) | |
133 | exec_prefix="$ac_optarg" ;; | |
134 | ||
135 | -gas | --gas | --ga | --g) | |
136 | # Obsolete; use --with-gas. | |
137 | with_gas=yes ;; | |
138 | ||
139 | -help | --help | --hel | --he) | |
140 | # Omit some internal or obsolete options to make the list less imposing. | |
141 | # This message is too long to be a string in the A/UX 3.1 sh. | |
142 | cat << EOF | |
143 | Usage: configure [options] [host] | |
144 | Options: [defaults in brackets after descriptions] | |
145 | Configuration: | |
146 | --cache-file=FILE cache test results in FILE | |
147 | --help print this message | |
148 | --no-create do not create output files | |
149 | --quiet, --silent do not print \`checking...' messages | |
8b93c638 | 150 | --site-file=FILE use FILE as the site file |
c906108c SS |
151 | --version print the version of autoconf that created configure |
152 | Directory and file names: | |
153 | --prefix=PREFIX install architecture-independent files in PREFIX | |
154 | [$ac_default_prefix] | |
155 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
156 | [same as prefix] | |
157 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
158 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
159 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
160 | --datadir=DIR read-only architecture-independent data in DIR | |
161 | [PREFIX/share] | |
162 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
163 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
164 | [PREFIX/com] | |
165 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
166 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
167 | --includedir=DIR C header files in DIR [PREFIX/include] | |
168 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
169 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
170 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
171 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
172 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
173 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
174 | --program-transform-name=PROGRAM | |
175 | run sed PROGRAM on installed program names | |
176 | EOF | |
177 | cat << EOF | |
178 | Host type: | |
179 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
180 | --host=HOST configure for HOST [guessed] | |
181 | --target=TARGET configure for TARGET [TARGET=HOST] | |
182 | Features and packages: | |
183 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
184 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
185 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
186 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
187 | --x-includes=DIR X include files are in DIR | |
188 | --x-libraries=DIR X library files are in DIR | |
189 | EOF | |
190 | if test -n "$ac_help"; then | |
191 | echo "--enable and --with options recognized:$ac_help" | |
192 | fi | |
193 | exit 0 ;; | |
194 | ||
195 | -host | --host | --hos | --ho) | |
196 | ac_prev=host ;; | |
197 | -host=* | --host=* | --hos=* | --ho=*) | |
198 | host="$ac_optarg" ;; | |
199 | ||
200 | -includedir | --includedir | --includedi | --included | --include \ | |
201 | | --includ | --inclu | --incl | --inc) | |
202 | ac_prev=includedir ;; | |
203 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
204 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
205 | includedir="$ac_optarg" ;; | |
206 | ||
207 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
208 | ac_prev=infodir ;; | |
209 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
210 | infodir="$ac_optarg" ;; | |
211 | ||
212 | -libdir | --libdir | --libdi | --libd) | |
213 | ac_prev=libdir ;; | |
214 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
215 | libdir="$ac_optarg" ;; | |
216 | ||
217 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
218 | | --libexe | --libex | --libe) | |
219 | ac_prev=libexecdir ;; | |
220 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
221 | | --libexe=* | --libex=* | --libe=*) | |
222 | libexecdir="$ac_optarg" ;; | |
223 | ||
224 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
225 | | --localstate | --localstat | --localsta | --localst \ | |
226 | | --locals | --local | --loca | --loc | --lo) | |
227 | ac_prev=localstatedir ;; | |
228 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
229 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
230 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
231 | localstatedir="$ac_optarg" ;; | |
232 | ||
233 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
234 | ac_prev=mandir ;; | |
235 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
236 | mandir="$ac_optarg" ;; | |
237 | ||
238 | -nfp | --nfp | --nf) | |
239 | # Obsolete; use --without-fp. | |
240 | with_fp=no ;; | |
241 | ||
242 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
243 | | --no-cr | --no-c) | |
244 | no_create=yes ;; | |
245 | ||
246 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
247 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
248 | no_recursion=yes ;; | |
249 | ||
250 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
251 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
252 | | --oldin | --oldi | --old | --ol | --o) | |
253 | ac_prev=oldincludedir ;; | |
254 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
255 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
256 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
257 | oldincludedir="$ac_optarg" ;; | |
258 | ||
259 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
260 | ac_prev=prefix ;; | |
261 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
262 | prefix="$ac_optarg" ;; | |
263 | ||
264 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
265 | | --program-pre | --program-pr | --program-p) | |
266 | ac_prev=program_prefix ;; | |
267 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
268 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
269 | program_prefix="$ac_optarg" ;; | |
270 | ||
271 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
272 | | --program-suf | --program-su | --program-s) | |
273 | ac_prev=program_suffix ;; | |
274 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
275 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
276 | program_suffix="$ac_optarg" ;; | |
277 | ||
278 | -program-transform-name | --program-transform-name \ | |
279 | | --program-transform-nam | --program-transform-na \ | |
280 | | --program-transform-n | --program-transform- \ | |
281 | | --program-transform | --program-transfor \ | |
282 | | --program-transfo | --program-transf \ | |
283 | | --program-trans | --program-tran \ | |
284 | | --progr-tra | --program-tr | --program-t) | |
285 | ac_prev=program_transform_name ;; | |
286 | -program-transform-name=* | --program-transform-name=* \ | |
287 | | --program-transform-nam=* | --program-transform-na=* \ | |
288 | | --program-transform-n=* | --program-transform-=* \ | |
289 | | --program-transform=* | --program-transfor=* \ | |
290 | | --program-transfo=* | --program-transf=* \ | |
291 | | --program-trans=* | --program-tran=* \ | |
292 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
293 | program_transform_name="$ac_optarg" ;; | |
294 | ||
295 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
296 | | -silent | --silent | --silen | --sile | --sil) | |
297 | silent=yes ;; | |
298 | ||
299 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
300 | ac_prev=sbindir ;; | |
301 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
302 | | --sbi=* | --sb=*) | |
303 | sbindir="$ac_optarg" ;; | |
304 | ||
305 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
306 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
307 | | --sharedst | --shareds | --shared | --share | --shar \ | |
308 | | --sha | --sh) | |
309 | ac_prev=sharedstatedir ;; | |
310 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
311 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
312 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
313 | | --sha=* | --sh=*) | |
314 | sharedstatedir="$ac_optarg" ;; | |
315 | ||
316 | -site | --site | --sit) | |
317 | ac_prev=site ;; | |
318 | -site=* | --site=* | --sit=*) | |
319 | site="$ac_optarg" ;; | |
320 | ||
8b93c638 JM |
321 | -site-file | --site-file | --site-fil | --site-fi | --site-f) |
322 | ac_prev=sitefile ;; | |
323 | -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) | |
324 | sitefile="$ac_optarg" ;; | |
325 | ||
c906108c SS |
326 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
327 | ac_prev=srcdir ;; | |
328 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
329 | srcdir="$ac_optarg" ;; | |
330 | ||
331 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
332 | | --syscon | --sysco | --sysc | --sys | --sy) | |
333 | ac_prev=sysconfdir ;; | |
334 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
335 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
336 | sysconfdir="$ac_optarg" ;; | |
337 | ||
338 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
339 | ac_prev=target ;; | |
340 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
341 | target="$ac_optarg" ;; | |
342 | ||
343 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
344 | verbose=yes ;; | |
345 | ||
346 | -version | --version | --versio | --versi | --vers) | |
347 | echo "configure generated by autoconf version 2.13" | |
348 | exit 0 ;; | |
349 | ||
350 | -with-* | --with-*) | |
351 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
352 | # Reject names that are not valid shell variable names. | |
353 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
354 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
355 | fi | |
356 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
357 | case "$ac_option" in | |
358 | *=*) ;; | |
359 | *) ac_optarg=yes ;; | |
360 | esac | |
361 | eval "with_${ac_package}='$ac_optarg'" ;; | |
362 | ||
363 | -without-* | --without-*) | |
364 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
365 | # Reject names that are not valid shell variable names. | |
366 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
367 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
368 | fi | |
369 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
370 | eval "with_${ac_package}=no" ;; | |
371 | ||
372 | --x) | |
373 | # Obsolete; use --with-x. | |
374 | with_x=yes ;; | |
375 | ||
376 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
377 | | --x-incl | --x-inc | --x-in | --x-i) | |
378 | ac_prev=x_includes ;; | |
379 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
380 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
381 | x_includes="$ac_optarg" ;; | |
382 | ||
383 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
384 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
385 | ac_prev=x_libraries ;; | |
386 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
387 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
388 | x_libraries="$ac_optarg" ;; | |
389 | ||
390 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
391 | ;; | |
392 | ||
393 | *) | |
394 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
395 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
396 | fi | |
397 | if test "x$nonopt" != xNONE; then | |
398 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
399 | fi | |
400 | nonopt="$ac_option" | |
401 | ;; | |
402 | ||
403 | esac | |
404 | done | |
405 | ||
406 | if test -n "$ac_prev"; then | |
407 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
408 | fi | |
409 | ||
410 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
411 | ||
412 | # File descriptor usage: | |
413 | # 0 standard input | |
414 | # 1 file creation | |
415 | # 2 errors and warnings | |
416 | # 3 some systems may open it to /dev/tty | |
417 | # 4 used on the Kubota Titan | |
418 | # 6 checking for... messages and results | |
419 | # 5 compiler messages saved in config.log | |
420 | if test "$silent" = yes; then | |
421 | exec 6>/dev/null | |
422 | else | |
423 | exec 6>&1 | |
424 | fi | |
425 | exec 5>./config.log | |
426 | ||
427 | echo "\ | |
428 | This file contains any messages produced by compilers while | |
429 | running configure, to aid debugging if configure makes a mistake. | |
430 | " 1>&5 | |
431 | ||
432 | # Strip out --no-create and --no-recursion so they do not pile up. | |
433 | # Also quote any args containing shell metacharacters. | |
434 | ac_configure_args= | |
435 | for ac_arg | |
436 | do | |
437 | case "$ac_arg" in | |
438 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
439 | | --no-cr | --no-c) ;; | |
440 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
441 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
442 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
443 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
444 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
445 | esac | |
446 | done | |
447 | ||
448 | # NLS nuisances. | |
449 | # Only set these to C if already set. These must not be set unconditionally | |
450 | # because not all systems understand e.g. LANG=C (notably SCO). | |
451 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
452 | # Non-C LC_CTYPE values break the ctype check. | |
453 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
454 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
455 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
456 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
457 | ||
458 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
459 | rm -rf conftest* confdefs.h | |
460 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
461 | echo > confdefs.h | |
462 | ||
463 | # A filename unique to this package, relative to the directory that | |
464 | # configure is in, which we can look for to find out if srcdir is correct. | |
465 | ac_unique_file=gdb.base | |
466 | ||
467 | # Find the source files, if location was not specified. | |
468 | if test -z "$srcdir"; then | |
469 | ac_srcdir_defaulted=yes | |
470 | # Try the directory containing this script, then its parent. | |
471 | ac_prog=$0 | |
472 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
473 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
474 | srcdir=$ac_confdir | |
475 | if test ! -r $srcdir/$ac_unique_file; then | |
476 | srcdir=.. | |
477 | fi | |
478 | else | |
479 | ac_srcdir_defaulted=no | |
480 | fi | |
481 | if test ! -r $srcdir/$ac_unique_file; then | |
482 | if test "$ac_srcdir_defaulted" = yes; then | |
483 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
484 | else | |
485 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
486 | fi | |
487 | fi | |
488 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
489 | ||
490 | # Prefer explicitly selected file to automatically selected ones. | |
8b93c638 JM |
491 | if test -z "$sitefile"; then |
492 | if test -z "$CONFIG_SITE"; then | |
493 | if test "x$prefix" != xNONE; then | |
494 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
495 | else | |
496 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
497 | fi | |
c906108c | 498 | fi |
8b93c638 JM |
499 | else |
500 | CONFIG_SITE="$sitefile" | |
c906108c SS |
501 | fi |
502 | for ac_site_file in $CONFIG_SITE; do | |
503 | if test -r "$ac_site_file"; then | |
504 | echo "loading site script $ac_site_file" | |
505 | . "$ac_site_file" | |
506 | fi | |
507 | done | |
508 | ||
509 | if test -r "$cache_file"; then | |
510 | echo "loading cache $cache_file" | |
511 | . $cache_file | |
512 | else | |
513 | echo "creating cache $cache_file" | |
514 | > $cache_file | |
515 | fi | |
516 | ||
517 | ac_ext=c | |
518 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
519 | ac_cpp='$CPP $CPPFLAGS' | |
520 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
521 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
522 | cross_compiling=$ac_cv_prog_cc_cross | |
523 | ||
524 | ac_exeext= | |
525 | ac_objext=o | |
526 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
527 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
528 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
529 | ac_n= ac_c=' | |
530 | ' ac_t=' ' | |
531 | else | |
532 | ac_n=-n ac_c= ac_t= | |
533 | fi | |
534 | else | |
535 | ac_n= ac_c='\c' ac_t= | |
536 | fi | |
537 | ||
538 | ||
539 | ||
540 | CC=${CC-cc} | |
541 | ||
542 | ac_aux_dir= | |
543 | for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do | |
544 | if test -f $ac_dir/install-sh; then | |
545 | ac_aux_dir=$ac_dir | |
546 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
547 | break | |
548 | elif test -f $ac_dir/install.sh; then | |
549 | ac_aux_dir=$ac_dir | |
550 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
551 | break | |
552 | fi | |
553 | done | |
554 | if test -z "$ac_aux_dir"; then | |
555 | { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; } | |
556 | fi | |
557 | ac_config_guess=$ac_aux_dir/config.guess | |
558 | ac_config_sub=$ac_aux_dir/config.sub | |
559 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
560 | ||
561 | ||
562 | # Do some error checking and defaulting for the host and target type. | |
563 | # The inputs are: | |
564 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
565 | # | |
566 | # The rules are: | |
567 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
568 | # same time. | |
569 | # 2. Host defaults to nonopt. | |
570 | # 3. If nonopt is not specified, then host defaults to the current host, | |
571 | # as determined by config.guess. | |
572 | # 4. Target and build default to nonopt. | |
573 | # 5. If nonopt is not specified, then target and build default to host. | |
574 | ||
575 | # The aliases save the names the user supplied, while $host etc. | |
576 | # will get canonicalized. | |
577 | case $host---$target---$nonopt in | |
578 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
579 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
580 | esac | |
581 | ||
582 | ||
583 | # Make sure we can run config.sub. | |
584 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
585 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
586 | fi | |
587 | ||
588 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
8b93c638 | 589 | echo "configure:590: checking host system type" >&5 |
c906108c SS |
590 | |
591 | host_alias=$host | |
592 | case "$host_alias" in | |
593 | NONE) | |
594 | case $nonopt in | |
595 | NONE) | |
596 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
597 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
598 | fi ;; | |
599 | *) host_alias=$nonopt ;; | |
600 | esac ;; | |
601 | esac | |
602 | ||
603 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
604 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
605 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
606 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
607 | echo "$ac_t""$host" 1>&6 | |
608 | ||
609 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
8b93c638 | 610 | echo "configure:611: checking target system type" >&5 |
c906108c SS |
611 | |
612 | target_alias=$target | |
613 | case "$target_alias" in | |
614 | NONE) | |
615 | case $nonopt in | |
616 | NONE) target_alias=$host_alias ;; | |
617 | *) target_alias=$nonopt ;; | |
618 | esac ;; | |
619 | esac | |
620 | ||
621 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
622 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
623 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
624 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
625 | echo "$ac_t""$target" 1>&6 | |
626 | ||
627 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
8b93c638 | 628 | echo "configure:629: checking build system type" >&5 |
c906108c SS |
629 | |
630 | build_alias=$build | |
631 | case "$build_alias" in | |
632 | NONE) | |
633 | case $nonopt in | |
634 | NONE) build_alias=$host_alias ;; | |
635 | *) build_alias=$nonopt ;; | |
636 | esac ;; | |
637 | esac | |
638 | ||
639 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
640 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
641 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
642 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
643 | echo "$ac_t""$build" 1>&6 | |
644 | ||
645 | test "$host_alias" != "$target_alias" && | |
646 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
647 | NONENONEs,x,x, && | |
648 | program_prefix=${target_alias}- | |
649 | ||
650 | ||
651 | # Directories to use in all configurations. | |
cce74817 JM |
652 | configdirs="gdb.asm \ |
653 | gdb.base \ | |
654 | gdb.c++ \ | |
9d273ca3 | 655 | gdb.java \ |
cce74817 JM |
656 | gdb.disasm \ |
657 | gdb.chill \ | |
fb40c209 | 658 | gdb.mi \ |
cce74817 JM |
659 | gdb.threads \ |
660 | gdb.trace" | |
661 | ||
c906108c SS |
662 | |
663 | # Directories to use for a configuration which uses stabs. | |
664 | stabsdirs="gdb.stabs" | |
665 | ||
666 | # this section is for targets that use stabs | |
667 | # add stabs tests for appropriate targets | |
668 | case "${target}" in | |
669 | powerpc-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;; | |
670 | rs6000-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;; | |
671 | *-*-bsd*) configdirs="${configdirs} ${stabsdirs}" ;; | |
672 | *-*-go32*) configdirs="${configdirs} ${stabsdirs}" ;; | |
673 | *-*-linux*) configdirs="${configdirs} ${stabsdirs}" ;; | |
674 | *-*-lynxos*) configdirs="${configdirs} ${stabsdirs}" ;; | |
675 | *-sun-*) configdirs="${configdirs} ${stabsdirs}" ;; | |
676 | hppa*-*-*) configdirs="${configdirs} ${stabsdirs}" ;; | |
677 | *-*-elf*) configdirs="${configdirs} ${stabsdirs}" ;; | |
678 | *) if test "x${with_stabs}" = x"yes" ; then | |
679 | configdirs="${configdirs} ${stabsdirs}" | |
680 | fi ;; | |
681 | esac | |
682 | ||
683 | # Directory with HP specific tests. They will run only with HP's compilers. | |
684 | # These tests will not work on other platforms and compilers. | |
685 | ||
686 | hpdir="gdb.hp" | |
687 | ||
688 | case "${target}" in | |
689 | hppa*-*-hpux*) configdirs="${configdirs} ${hpdir}" ;; | |
690 | esac | |
691 | ||
692 | ||
693 | # Begin stuff to support --enable-shared | |
694 | # Check whether --enable-shared or --disable-shared was given. | |
695 | if test "${enable_shared+set}" = set; then | |
696 | enableval="$enable_shared" | |
697 | case "${enableval}" in | |
698 | yes) shared=true ;; | |
699 | no) shared=false ;; | |
700 | *) shared=true ;; | |
701 | esac | |
702 | fi | |
703 | RPATH_ENVVAR=LD_LIBRARY_PATH | |
704 | # If we have shared libraries, try to set RPATH_ENVVAR reasonably. | |
705 | if test "${shared}" = "true"; then | |
706 | case "${host}" in | |
707 | *-*-hpux*) | |
708 | RPATH_ENVVAR=SHLIB_PATH | |
709 | ;; | |
710 | esac | |
711 | fi | |
712 | ||
3fc11d3e JM |
713 | # End stuff to support --enable-shared |
714 | # Start stuff to support --enable-gdbtk | |
715 | # Check whether --enable-gdbtk or --disable-gdbtk was given. | |
716 | if test "${enable_gdbtk+set}" = set; then | |
717 | enableval="$enable_gdbtk" | |
718 | case "${enableval}" in | |
719 | yes) | |
720 | case "$host" in | |
721 | *go32*) | |
722 | enable_gdbtk=no ;; | |
723 | *windows*) | |
724 | enable_gdbtk=no ;; | |
725 | *) | |
726 | enable_gdbtk=yes ;; | |
727 | esac ;; | |
728 | no) | |
729 | enable_gdbtk=no ;; | |
730 | *) | |
731 | { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;; | |
732 | esac | |
733 | else | |
734 | ||
735 | # Default is on for everything but go32 and windows | |
736 | case "$host" in | |
737 | *go32* | *windows*) | |
738 | ;; | |
739 | *) | |
740 | enable_gdbtk=yes ;; | |
741 | esac | |
742 | ||
743 | fi | |
744 | ||
745 | ||
746 | if test "${enable_gdbtk}" = "yes"; then | |
747 | configdirs="${configdirs} gdb.gdbtk" | |
748 | fi | |
c906108c SS |
749 | # End stuff to support --enable-shared |
750 | ||
93076499 ND |
751 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
752 | echo "configure:753: checking for Cygwin environment" >&5 | |
753 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then | |
754 | echo $ac_n "(cached) $ac_c" 1>&6 | |
755 | else | |
756 | cat > conftest.$ac_ext <<EOF | |
757 | #line 758 "configure" | |
758 | #include "confdefs.h" | |
759 | ||
760 | int main() { | |
761 | ||
762 | #ifndef __CYGWIN__ | |
763 | #define __CYGWIN__ __CYGWIN32__ | |
764 | #endif | |
765 | return __CYGWIN__; | |
766 | ; return 0; } | |
767 | EOF | |
768 | if { (eval echo configure:769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
769 | rm -rf conftest* | |
770 | ac_cv_cygwin=yes | |
771 | else | |
772 | echo "configure: failed program was:" >&5 | |
773 | cat conftest.$ac_ext >&5 | |
774 | rm -rf conftest* | |
775 | ac_cv_cygwin=no | |
776 | fi | |
777 | rm -f conftest* | |
778 | rm -f conftest* | |
779 | fi | |
780 | ||
781 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
782 | CYGWIN= | |
783 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
784 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
785 | echo "configure:786: checking for mingw32 environment" >&5 | |
786 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then | |
787 | echo $ac_n "(cached) $ac_c" 1>&6 | |
788 | else | |
789 | cat > conftest.$ac_ext <<EOF | |
790 | #line 791 "configure" | |
791 | #include "confdefs.h" | |
792 | ||
793 | int main() { | |
794 | return __MINGW32__; | |
795 | ; return 0; } | |
796 | EOF | |
797 | if { (eval echo configure:798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
798 | rm -rf conftest* | |
799 | ac_cv_mingw32=yes | |
800 | else | |
801 | echo "configure: failed program was:" >&5 | |
802 | cat conftest.$ac_ext >&5 | |
803 | rm -rf conftest* | |
804 | ac_cv_mingw32=no | |
805 | fi | |
806 | rm -f conftest* | |
807 | rm -f conftest* | |
808 | fi | |
809 | ||
810 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
811 | MINGW32= | |
812 | test "$ac_cv_mingw32" = yes && MINGW32=yes | |
813 | ||
814 | ||
815 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
816 | echo "configure:817: checking for executable suffix" >&5 | |
817 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then | |
818 | echo $ac_n "(cached) $ac_c" 1>&6 | |
819 | else | |
820 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
821 | ac_cv_exeext=.exe | |
822 | else | |
823 | rm -f conftest* | |
824 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
825 | ac_cv_exeext= | |
826 | if { (eval echo configure:827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then | |
827 | for file in conftest.*; do | |
828 | case $file in | |
829 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
830 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; | |
831 | esac | |
832 | done | |
833 | else | |
834 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
835 | fi | |
836 | rm -f conftest* | |
837 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
838 | fi | |
839 | fi | |
840 | ||
841 | EXEEXT="" | |
842 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
843 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
844 | ac_exeext=$EXEEXT | |
845 | ||
846 | ||
c906108c SS |
847 | # configure the subdirectories too |
848 | subdirs="$configdirs" | |
849 | ||
850 | ||
851 | trap '' 1 2 15 | |
852 | cat > confcache <<\EOF | |
853 | # This file is a shell script that caches the results of configure | |
854 | # tests run on this system so they can be shared between configure | |
855 | # scripts and configure runs. It is not useful on other systems. | |
856 | # If it contains results you don't want to keep, you may remove or edit it. | |
857 | # | |
858 | # By default, configure uses ./config.cache as the cache file, | |
859 | # creating it if it does not exist already. You can give configure | |
860 | # the --cache-file=FILE option to use a different cache file; that is | |
861 | # what configure does when it calls configure scripts in | |
862 | # subdirectories, so they share the cache. | |
863 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
864 | # config.status only pays attention to the cache file if you give it the | |
865 | # --recheck option to rerun configure. | |
866 | # | |
867 | EOF | |
868 | # The following way of writing the cache mishandles newlines in values, | |
869 | # but we know of no workaround that is simple, portable, and efficient. | |
870 | # So, don't put newlines in cache variables' values. | |
871 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
872 | # and sets the high bit in the cache file unless we assign to the vars. | |
873 | (set) 2>&1 | | |
874 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
875 | *ac_space=\ *) | |
876 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
877 | # turns \\\\ into \\, and sed turns \\ into \). | |
878 | sed -n \ | |
879 | -e "s/'/'\\\\''/g" \ | |
880 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
881 | ;; | |
882 | *) | |
883 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
884 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
885 | ;; | |
886 | esac >> confcache | |
887 | if cmp -s $cache_file confcache; then | |
888 | : | |
889 | else | |
890 | if test -w $cache_file; then | |
891 | echo "updating cache $cache_file" | |
892 | cat confcache > $cache_file | |
893 | else | |
894 | echo "not updating unwritable cache $cache_file" | |
895 | fi | |
896 | fi | |
897 | rm -f confcache | |
898 | ||
899 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
900 | ||
901 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
902 | # Let make expand exec_prefix. | |
903 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
904 | ||
905 | # Any assignment to VPATH causes Sun make to only execute | |
906 | # the first set of double-colon rules, so remove it if not needed. | |
907 | # If there is a colon in the path, we need to keep it. | |
908 | if test "x$srcdir" = x.; then | |
909 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
910 | fi | |
911 | ||
912 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
913 | ||
914 | # Transform confdefs.h into DEFS. | |
915 | # Protect against shell expansion while executing Makefile rules. | |
916 | # Protect against Makefile macro expansion. | |
917 | cat > conftest.defs <<\EOF | |
918 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g | |
919 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g | |
920 | s%\[%\\&%g | |
921 | s%\]%\\&%g | |
922 | s%\$%$$%g | |
923 | EOF | |
924 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
925 | rm -f conftest.defs | |
926 | ||
927 | ||
928 | # Without the "./", some shells look in PATH for config.status. | |
929 | : ${CONFIG_STATUS=./config.status} | |
930 | ||
931 | echo creating $CONFIG_STATUS | |
932 | rm -f $CONFIG_STATUS | |
933 | cat > $CONFIG_STATUS <<EOF | |
934 | #! /bin/sh | |
935 | # Generated automatically by configure. | |
936 | # Run this file to recreate the current configuration. | |
937 | # This directory was configured as follows, | |
938 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
939 | # | |
940 | # $0 $ac_configure_args | |
941 | # | |
942 | # Compiler output produced by configure, useful for debugging | |
943 | # configure, is in ./config.log if it exists. | |
944 | ||
945 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
946 | for ac_option | |
947 | do | |
948 | case "\$ac_option" in | |
949 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
950 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
951 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
952 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
953 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
954 | exit 0 ;; | |
955 | -help | --help | --hel | --he | --h) | |
956 | echo "\$ac_cs_usage"; exit 0 ;; | |
957 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
958 | esac | |
959 | done | |
960 | ||
961 | ac_given_srcdir=$srcdir | |
962 | ||
963 | trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
964 | EOF | |
965 | cat >> $CONFIG_STATUS <<EOF | |
966 | ||
967 | # Protect against being on the right side of a sed subst in config.status. | |
968 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
969 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
970 | $ac_vpsub | |
971 | $extrasub | |
972 | s%@SHELL@%$SHELL%g | |
973 | s%@CFLAGS@%$CFLAGS%g | |
974 | s%@CPPFLAGS@%$CPPFLAGS%g | |
975 | s%@CXXFLAGS@%$CXXFLAGS%g | |
976 | s%@FFLAGS@%$FFLAGS%g | |
977 | s%@DEFS@%$DEFS%g | |
978 | s%@LDFLAGS@%$LDFLAGS%g | |
979 | s%@LIBS@%$LIBS%g | |
980 | s%@exec_prefix@%$exec_prefix%g | |
981 | s%@prefix@%$prefix%g | |
982 | s%@program_transform_name@%$program_transform_name%g | |
983 | s%@bindir@%$bindir%g | |
984 | s%@sbindir@%$sbindir%g | |
985 | s%@libexecdir@%$libexecdir%g | |
986 | s%@datadir@%$datadir%g | |
987 | s%@sysconfdir@%$sysconfdir%g | |
988 | s%@sharedstatedir@%$sharedstatedir%g | |
989 | s%@localstatedir@%$localstatedir%g | |
990 | s%@libdir@%$libdir%g | |
991 | s%@includedir@%$includedir%g | |
992 | s%@oldincludedir@%$oldincludedir%g | |
993 | s%@infodir@%$infodir%g | |
994 | s%@mandir@%$mandir%g | |
995 | s%@CC@%$CC%g | |
996 | s%@host@%$host%g | |
997 | s%@host_alias@%$host_alias%g | |
998 | s%@host_cpu@%$host_cpu%g | |
999 | s%@host_vendor@%$host_vendor%g | |
1000 | s%@host_os@%$host_os%g | |
1001 | s%@target@%$target%g | |
1002 | s%@target_alias@%$target_alias%g | |
1003 | s%@target_cpu@%$target_cpu%g | |
1004 | s%@target_vendor@%$target_vendor%g | |
1005 | s%@target_os@%$target_os%g | |
1006 | s%@build@%$build%g | |
1007 | s%@build_alias@%$build_alias%g | |
1008 | s%@build_cpu@%$build_cpu%g | |
1009 | s%@build_vendor@%$build_vendor%g | |
1010 | s%@build_os@%$build_os%g | |
1011 | s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g | |
93076499 | 1012 | s%@EXEEXT@%$EXEEXT%g |
c906108c SS |
1013 | s%@subdirs@%$subdirs%g |
1014 | ||
1015 | CEOF | |
1016 | EOF | |
1017 | ||
1018 | cat >> $CONFIG_STATUS <<\EOF | |
1019 | ||
1020 | # Split the substitutions into bite-sized pieces for seds with | |
1021 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
1022 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
1023 | ac_file=1 # Number of current file. | |
1024 | ac_beg=1 # First line for current file. | |
1025 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
1026 | ac_more_lines=: | |
1027 | ac_sed_cmds="" | |
1028 | while $ac_more_lines; do | |
1029 | if test $ac_beg -gt 1; then | |
1030 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
1031 | else | |
1032 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
1033 | fi | |
1034 | if test ! -s conftest.s$ac_file; then | |
1035 | ac_more_lines=false | |
1036 | rm -f conftest.s$ac_file | |
1037 | else | |
1038 | if test -z "$ac_sed_cmds"; then | |
1039 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
1040 | else | |
1041 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
1042 | fi | |
1043 | ac_file=`expr $ac_file + 1` | |
1044 | ac_beg=$ac_end | |
1045 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
1046 | fi | |
1047 | done | |
1048 | if test -z "$ac_sed_cmds"; then | |
1049 | ac_sed_cmds=cat | |
1050 | fi | |
1051 | EOF | |
1052 | ||
1053 | cat >> $CONFIG_STATUS <<EOF | |
1054 | ||
1055 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} | |
1056 | EOF | |
1057 | cat >> $CONFIG_STATUS <<\EOF | |
1058 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
1059 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
1060 | case "$ac_file" in | |
1061 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
1062 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
1063 | *) ac_file_in="${ac_file}.in" ;; | |
1064 | esac | |
1065 | ||
1066 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
1067 | ||
1068 | # Remove last slash and all that follows it. Not all systems have dirname. | |
1069 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
1070 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
1071 | # The file is in a subdirectory. | |
1072 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
1073 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
1074 | # A "../" for each directory in $ac_dir_suffix. | |
1075 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
1076 | else | |
1077 | ac_dir_suffix= ac_dots= | |
1078 | fi | |
1079 | ||
1080 | case "$ac_given_srcdir" in | |
1081 | .) srcdir=. | |
1082 | if test -z "$ac_dots"; then top_srcdir=. | |
1083 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
1084 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
1085 | *) # Relative path. | |
1086 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
1087 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
1088 | esac | |
1089 | ||
1090 | ||
1091 | echo creating "$ac_file" | |
1092 | rm -f "$ac_file" | |
1093 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
1094 | case "$ac_file" in | |
1095 | *Makefile*) ac_comsub="1i\\ | |
1096 | # $configure_input" ;; | |
1097 | *) ac_comsub= ;; | |
1098 | esac | |
1099 | ||
1100 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
1101 | sed -e "$ac_comsub | |
1102 | s%@configure_input@%$configure_input%g | |
1103 | s%@srcdir@%$srcdir%g | |
1104 | s%@top_srcdir@%$top_srcdir%g | |
1105 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
1106 | fi; done | |
1107 | rm -f conftest.s* | |
1108 | ||
1109 | EOF | |
1110 | cat >> $CONFIG_STATUS <<EOF | |
1111 | ||
1112 | EOF | |
1113 | cat >> $CONFIG_STATUS <<\EOF | |
1114 | ||
1115 | exit 0 | |
1116 | EOF | |
1117 | chmod +x $CONFIG_STATUS | |
1118 | rm -fr confdefs* $ac_clean_files | |
1119 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
1120 | ||
1121 | if test "$no_recursion" != yes; then | |
1122 | ||
1123 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
1124 | ac_sub_configure_args= | |
1125 | ac_prev= | |
1126 | for ac_arg in $ac_configure_args; do | |
1127 | if test -n "$ac_prev"; then | |
1128 | ac_prev= | |
1129 | continue | |
1130 | fi | |
1131 | case "$ac_arg" in | |
1132 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1133 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1134 | ac_prev=cache_file ;; | |
1135 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1136 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1137 | ;; | |
1138 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1139 | ac_prev=srcdir ;; | |
1140 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1141 | ;; | |
1142 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
1143 | esac | |
1144 | done | |
1145 | ||
1146 | for ac_config_dir in $configdirs; do | |
1147 | ||
1148 | # Do not complain, so a configure script can configure whichever | |
1149 | # parts of a large source tree are present. | |
1150 | if test ! -d $srcdir/$ac_config_dir; then | |
1151 | continue | |
1152 | fi | |
1153 | ||
1154 | echo configuring in $ac_config_dir | |
1155 | ||
1156 | case "$srcdir" in | |
1157 | .) ;; | |
1158 | *) | |
1159 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
1160 | else | |
1161 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
1162 | fi | |
1163 | ;; | |
1164 | esac | |
1165 | ||
1166 | ac_popdir=`pwd` | |
1167 | cd $ac_config_dir | |
1168 | ||
1169 | # A "../" for each directory in /$ac_config_dir. | |
1170 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
1171 | ||
1172 | case "$srcdir" in | |
1173 | .) # No --srcdir option. We are building in place. | |
1174 | ac_sub_srcdir=$srcdir ;; | |
1175 | /*) # Absolute path. | |
1176 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
1177 | *) # Relative path. | |
1178 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
1179 | esac | |
1180 | ||
1181 | # Check for guested configure; otherwise get Cygnus style configure. | |
1182 | if test -f $ac_sub_srcdir/configure; then | |
1183 | ac_sub_configure=$ac_sub_srcdir/configure | |
1184 | elif test -f $ac_sub_srcdir/configure.in; then | |
1185 | ac_sub_configure=$ac_configure | |
1186 | else | |
1187 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
1188 | ac_sub_configure= | |
1189 | fi | |
1190 | ||
1191 | # The recursion is here. | |
1192 | if test -n "$ac_sub_configure"; then | |
1193 | ||
1194 | # Make the cache file name correct relative to the subdirectory. | |
1195 | case "$cache_file" in | |
1196 | /*) ac_sub_cache_file=$cache_file ;; | |
1197 | *) # Relative path. | |
1198 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
1199 | esac | |
1200 | ||
1201 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
1202 | # The eval makes quoting arguments work. | |
1203 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
1204 | then : | |
1205 | else | |
1206 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
1207 | fi | |
1208 | fi | |
1209 | ||
1210 | cd $ac_popdir | |
1211 | done | |
1212 | fi | |
1213 |