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 | --with-target-subdir=DIR" |
---|
16 | ac_help="$ac_help |
---|
17 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
18 | (and sometimes confusing) to the casual installer" |
---|
19 | |
---|
20 | # Initialize some variables set by options. |
---|
21 | # The variables have the same names as the options, with |
---|
22 | # dashes changed to underlines. |
---|
23 | build=NONE |
---|
24 | cache_file=./config.cache |
---|
25 | exec_prefix=NONE |
---|
26 | host=NONE |
---|
27 | no_create= |
---|
28 | nonopt=NONE |
---|
29 | no_recursion= |
---|
30 | prefix=NONE |
---|
31 | program_prefix=NONE |
---|
32 | program_suffix=NONE |
---|
33 | program_transform_name=s,x,x, |
---|
34 | silent= |
---|
35 | site= |
---|
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 |
---|
150 | --version print the version of autoconf that created configure |
---|
151 | Directory and file names: |
---|
152 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
153 | [$ac_default_prefix] |
---|
154 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
155 | [same as prefix] |
---|
156 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
157 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
158 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
159 | --datadir=DIR read-only architecture-independent data in DIR |
---|
160 | [PREFIX/share] |
---|
161 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
162 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
163 | [PREFIX/com] |
---|
164 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
165 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
166 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
167 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
168 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
169 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
170 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
171 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
172 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
173 | --program-transform-name=PROGRAM |
---|
174 | run sed PROGRAM on installed program names |
---|
175 | EOF |
---|
176 | cat << EOF |
---|
177 | Host type: |
---|
178 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
179 | --host=HOST configure for HOST [guessed] |
---|
180 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
181 | Features and packages: |
---|
182 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
183 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
184 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
185 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
186 | --x-includes=DIR X include files are in DIR |
---|
187 | --x-libraries=DIR X library files are in DIR |
---|
188 | EOF |
---|
189 | if test -n "$ac_help"; then |
---|
190 | echo "--enable and --with options recognized:$ac_help" |
---|
191 | fi |
---|
192 | exit 0 ;; |
---|
193 | |
---|
194 | -host | --host | --hos | --ho) |
---|
195 | ac_prev=host ;; |
---|
196 | -host=* | --host=* | --hos=* | --ho=*) |
---|
197 | host="$ac_optarg" ;; |
---|
198 | |
---|
199 | -includedir | --includedir | --includedi | --included | --include \ |
---|
200 | | --includ | --inclu | --incl | --inc) |
---|
201 | ac_prev=includedir ;; |
---|
202 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
203 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
204 | includedir="$ac_optarg" ;; |
---|
205 | |
---|
206 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
207 | ac_prev=infodir ;; |
---|
208 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
209 | infodir="$ac_optarg" ;; |
---|
210 | |
---|
211 | -libdir | --libdir | --libdi | --libd) |
---|
212 | ac_prev=libdir ;; |
---|
213 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
214 | libdir="$ac_optarg" ;; |
---|
215 | |
---|
216 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
217 | | --libexe | --libex | --libe) |
---|
218 | ac_prev=libexecdir ;; |
---|
219 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
220 | | --libexe=* | --libex=* | --libe=*) |
---|
221 | libexecdir="$ac_optarg" ;; |
---|
222 | |
---|
223 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
224 | | --localstate | --localstat | --localsta | --localst \ |
---|
225 | | --locals | --local | --loca | --loc | --lo) |
---|
226 | ac_prev=localstatedir ;; |
---|
227 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
228 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
229 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
230 | localstatedir="$ac_optarg" ;; |
---|
231 | |
---|
232 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
233 | ac_prev=mandir ;; |
---|
234 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
235 | mandir="$ac_optarg" ;; |
---|
236 | |
---|
237 | -nfp | --nfp | --nf) |
---|
238 | # Obsolete; use --without-fp. |
---|
239 | with_fp=no ;; |
---|
240 | |
---|
241 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
242 | | --no-cr | --no-c) |
---|
243 | no_create=yes ;; |
---|
244 | |
---|
245 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
246 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
247 | no_recursion=yes ;; |
---|
248 | |
---|
249 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
250 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
251 | | --oldin | --oldi | --old | --ol | --o) |
---|
252 | ac_prev=oldincludedir ;; |
---|
253 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
254 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
255 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
256 | oldincludedir="$ac_optarg" ;; |
---|
257 | |
---|
258 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
259 | ac_prev=prefix ;; |
---|
260 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
261 | prefix="$ac_optarg" ;; |
---|
262 | |
---|
263 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
264 | | --program-pre | --program-pr | --program-p) |
---|
265 | ac_prev=program_prefix ;; |
---|
266 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
267 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
268 | program_prefix="$ac_optarg" ;; |
---|
269 | |
---|
270 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
271 | | --program-suf | --program-su | --program-s) |
---|
272 | ac_prev=program_suffix ;; |
---|
273 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
274 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
275 | program_suffix="$ac_optarg" ;; |
---|
276 | |
---|
277 | -program-transform-name | --program-transform-name \ |
---|
278 | | --program-transform-nam | --program-transform-na \ |
---|
279 | | --program-transform-n | --program-transform- \ |
---|
280 | | --program-transform | --program-transfor \ |
---|
281 | | --program-transfo | --program-transf \ |
---|
282 | | --program-trans | --program-tran \ |
---|
283 | | --progr-tra | --program-tr | --program-t) |
---|
284 | ac_prev=program_transform_name ;; |
---|
285 | -program-transform-name=* | --program-transform-name=* \ |
---|
286 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
287 | | --program-transform-n=* | --program-transform-=* \ |
---|
288 | | --program-transform=* | --program-transfor=* \ |
---|
289 | | --program-transfo=* | --program-transf=* \ |
---|
290 | | --program-trans=* | --program-tran=* \ |
---|
291 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
292 | program_transform_name="$ac_optarg" ;; |
---|
293 | |
---|
294 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
295 | | -silent | --silent | --silen | --sile | --sil) |
---|
296 | silent=yes ;; |
---|
297 | |
---|
298 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
299 | ac_prev=sbindir ;; |
---|
300 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
301 | | --sbi=* | --sb=*) |
---|
302 | sbindir="$ac_optarg" ;; |
---|
303 | |
---|
304 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
305 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
306 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
307 | | --sha | --sh) |
---|
308 | ac_prev=sharedstatedir ;; |
---|
309 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
310 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
311 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
312 | | --sha=* | --sh=*) |
---|
313 | sharedstatedir="$ac_optarg" ;; |
---|
314 | |
---|
315 | -site | --site | --sit) |
---|
316 | ac_prev=site ;; |
---|
317 | -site=* | --site=* | --sit=*) |
---|
318 | site="$ac_optarg" ;; |
---|
319 | |
---|
320 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
321 | ac_prev=srcdir ;; |
---|
322 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
323 | srcdir="$ac_optarg" ;; |
---|
324 | |
---|
325 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
326 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
327 | ac_prev=sysconfdir ;; |
---|
328 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
329 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
330 | sysconfdir="$ac_optarg" ;; |
---|
331 | |
---|
332 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
333 | ac_prev=target ;; |
---|
334 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
335 | target="$ac_optarg" ;; |
---|
336 | |
---|
337 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
338 | verbose=yes ;; |
---|
339 | |
---|
340 | -version | --version | --versio | --versi | --vers) |
---|
341 | echo "configure generated by autoconf version 2.13" |
---|
342 | exit 0 ;; |
---|
343 | |
---|
344 | -with-* | --with-*) |
---|
345 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
346 | # Reject names that are not valid shell variable names. |
---|
347 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
348 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
349 | fi |
---|
350 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
351 | case "$ac_option" in |
---|
352 | *=*) ;; |
---|
353 | *) ac_optarg=yes ;; |
---|
354 | esac |
---|
355 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
356 | |
---|
357 | -without-* | --without-*) |
---|
358 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
359 | # Reject names that are not valid shell variable names. |
---|
360 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
361 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
362 | fi |
---|
363 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
364 | eval "with_${ac_package}=no" ;; |
---|
365 | |
---|
366 | --x) |
---|
367 | # Obsolete; use --with-x. |
---|
368 | with_x=yes ;; |
---|
369 | |
---|
370 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
371 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
372 | ac_prev=x_includes ;; |
---|
373 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
374 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
375 | x_includes="$ac_optarg" ;; |
---|
376 | |
---|
377 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
378 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
379 | ac_prev=x_libraries ;; |
---|
380 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
381 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
382 | x_libraries="$ac_optarg" ;; |
---|
383 | |
---|
384 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
385 | ;; |
---|
386 | |
---|
387 | *) |
---|
388 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
389 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
390 | fi |
---|
391 | if test "x$nonopt" != xNONE; then |
---|
392 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
393 | fi |
---|
394 | nonopt="$ac_option" |
---|
395 | ;; |
---|
396 | |
---|
397 | esac |
---|
398 | done |
---|
399 | |
---|
400 | if test -n "$ac_prev"; then |
---|
401 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
402 | fi |
---|
403 | |
---|
404 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
405 | |
---|
406 | # File descriptor usage: |
---|
407 | # 0 standard input |
---|
408 | # 1 file creation |
---|
409 | # 2 errors and warnings |
---|
410 | # 3 some systems may open it to /dev/tty |
---|
411 | # 4 used on the Kubota Titan |
---|
412 | # 6 checking for... messages and results |
---|
413 | # 5 compiler messages saved in config.log |
---|
414 | if test "$silent" = yes; then |
---|
415 | exec 6>/dev/null |
---|
416 | else |
---|
417 | exec 6>&1 |
---|
418 | fi |
---|
419 | exec 5>./config.log |
---|
420 | |
---|
421 | echo "\ |
---|
422 | This file contains any messages produced by compilers while |
---|
423 | running configure, to aid debugging if configure makes a mistake. |
---|
424 | " 1>&5 |
---|
425 | |
---|
426 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
427 | # Also quote any args containing shell metacharacters. |
---|
428 | ac_configure_args= |
---|
429 | for ac_arg |
---|
430 | do |
---|
431 | case "$ac_arg" in |
---|
432 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
433 | | --no-cr | --no-c) ;; |
---|
434 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
435 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
436 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
437 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
438 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
439 | esac |
---|
440 | done |
---|
441 | |
---|
442 | # NLS nuisances. |
---|
443 | # Only set these to C if already set. These must not be set unconditionally |
---|
444 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
445 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
446 | # Non-C LC_CTYPE values break the ctype check. |
---|
447 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
448 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
449 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
450 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
451 | |
---|
452 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
453 | rm -rf conftest* confdefs.h |
---|
454 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
455 | echo > confdefs.h |
---|
456 | |
---|
457 | # A filename unique to this package, relative to the directory that |
---|
458 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
459 | ac_unique_file=shgen.c |
---|
460 | |
---|
461 | # Find the source files, if location was not specified. |
---|
462 | if test -z "$srcdir"; then |
---|
463 | ac_srcdir_defaulted=yes |
---|
464 | # Try the directory containing this script, then its parent. |
---|
465 | ac_prog=$0 |
---|
466 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
467 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
468 | srcdir=$ac_confdir |
---|
469 | if test ! -r $srcdir/$ac_unique_file; then |
---|
470 | srcdir=.. |
---|
471 | fi |
---|
472 | else |
---|
473 | ac_srcdir_defaulted=no |
---|
474 | fi |
---|
475 | if test ! -r $srcdir/$ac_unique_file; then |
---|
476 | if test "$ac_srcdir_defaulted" = yes; then |
---|
477 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
478 | else |
---|
479 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
480 | fi |
---|
481 | fi |
---|
482 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
483 | |
---|
484 | # Prefer explicitly selected file to automatically selected ones. |
---|
485 | if test -z "$CONFIG_SITE"; then |
---|
486 | if test "x$prefix" != xNONE; then |
---|
487 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
488 | else |
---|
489 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
490 | fi |
---|
491 | fi |
---|
492 | for ac_site_file in $CONFIG_SITE; do |
---|
493 | if test -r "$ac_site_file"; then |
---|
494 | echo "loading site script $ac_site_file" |
---|
495 | . "$ac_site_file" |
---|
496 | fi |
---|
497 | done |
---|
498 | |
---|
499 | if test -r "$cache_file"; then |
---|
500 | echo "loading cache $cache_file" |
---|
501 | . $cache_file |
---|
502 | else |
---|
503 | echo "creating cache $cache_file" |
---|
504 | > $cache_file |
---|
505 | fi |
---|
506 | |
---|
507 | ac_ext=c |
---|
508 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
509 | ac_cpp='$CPP $CPPFLAGS' |
---|
510 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
511 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
512 | cross_compiling=$ac_cv_prog_cc_cross |
---|
513 | |
---|
514 | ac_exeext= |
---|
515 | ac_objext=o |
---|
516 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
517 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
518 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
519 | ac_n= ac_c=' |
---|
520 | ' ac_t=' ' |
---|
521 | else |
---|
522 | ac_n=-n ac_c= ac_t= |
---|
523 | fi |
---|
524 | else |
---|
525 | ac_n= ac_c='\c' ac_t= |
---|
526 | fi |
---|
527 | |
---|
528 | |
---|
529 | |
---|
530 | # Check whether --with-target-subdir or --without-target-subdir was given. |
---|
531 | if test "${with_target_subdir+set}" = set; then |
---|
532 | withval="$with_target_subdir" |
---|
533 | TARGET_SUBDIR="$withval" |
---|
534 | else |
---|
535 | TARGET_SUBDIR="." |
---|
536 | fi |
---|
537 | |
---|
538 | |
---|
539 | RTEMS_TOPdir="../../.."; |
---|
540 | |
---|
541 | |
---|
542 | echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6 |
---|
543 | echo "configure:544: checking for RTEMS Version" >&5 |
---|
544 | if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then |
---|
545 | RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \ |
---|
546 | sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'` |
---|
547 | else |
---|
548 | { echo "configure: error: Unable to find ${RTEMS_TOPdir}/VERSION" 1>&2; exit 1; } |
---|
549 | fi |
---|
550 | if test -z "$RTEMS_VERSION"; then |
---|
551 | { echo "configure: error: Unable to determine version" 1>&2; exit 1; } |
---|
552 | fi |
---|
553 | echo "$ac_t""$RTEMS_VERSION" 1>&6 |
---|
554 | |
---|
555 | ac_aux_dir= |
---|
556 | for ac_dir in ../../.. $srcdir/../../..; do |
---|
557 | if test -f $ac_dir/install-sh; then |
---|
558 | ac_aux_dir=$ac_dir |
---|
559 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
560 | break |
---|
561 | elif test -f $ac_dir/install.sh; then |
---|
562 | ac_aux_dir=$ac_dir |
---|
563 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
564 | break |
---|
565 | fi |
---|
566 | done |
---|
567 | if test -z "$ac_aux_dir"; then |
---|
568 | { echo "configure: error: can not find install-sh or install.sh in ../../.. $srcdir/../../.." 1>&2; exit 1; } |
---|
569 | fi |
---|
570 | ac_config_guess=$ac_aux_dir/config.guess |
---|
571 | ac_config_sub=$ac_aux_dir/config.sub |
---|
572 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
573 | |
---|
574 | |
---|
575 | |
---|
576 | |
---|
577 | # Do some error checking and defaulting for the host and target type. |
---|
578 | # The inputs are: |
---|
579 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT |
---|
580 | # |
---|
581 | # The rules are: |
---|
582 | # 1. You are not allowed to specify --host, --target, and nonopt at the |
---|
583 | # same time. |
---|
584 | # 2. Host defaults to nonopt. |
---|
585 | # 3. If nonopt is not specified, then host defaults to the current host, |
---|
586 | # as determined by config.guess. |
---|
587 | # 4. Target and build default to nonopt. |
---|
588 | # 5. If nonopt is not specified, then target and build default to host. |
---|
589 | |
---|
590 | # The aliases save the names the user supplied, while $host etc. |
---|
591 | # will get canonicalized. |
---|
592 | case $host---$target---$nonopt in |
---|
593 | NONE---*---* | *---NONE---* | *---*---NONE) ;; |
---|
594 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
---|
595 | esac |
---|
596 | |
---|
597 | |
---|
598 | # Make sure we can run config.sub. |
---|
599 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
600 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
601 | fi |
---|
602 | |
---|
603 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
604 | echo "configure:605: checking host system type" >&5 |
---|
605 | |
---|
606 | host_alias=$host |
---|
607 | case "$host_alias" in |
---|
608 | NONE) |
---|
609 | case $nonopt in |
---|
610 | NONE) |
---|
611 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
---|
612 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
613 | fi ;; |
---|
614 | *) host_alias=$nonopt ;; |
---|
615 | esac ;; |
---|
616 | esac |
---|
617 | |
---|
618 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
---|
619 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
620 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
621 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
622 | echo "$ac_t""$host" 1>&6 |
---|
623 | |
---|
624 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
---|
625 | echo "configure:626: checking target system type" >&5 |
---|
626 | |
---|
627 | target_alias=$target |
---|
628 | case "$target_alias" in |
---|
629 | NONE) |
---|
630 | case $nonopt in |
---|
631 | NONE) target_alias=$host_alias ;; |
---|
632 | *) target_alias=$nonopt ;; |
---|
633 | esac ;; |
---|
634 | esac |
---|
635 | |
---|
636 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
---|
637 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
638 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
639 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
640 | echo "$ac_t""$target" 1>&6 |
---|
641 | |
---|
642 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
---|
643 | echo "configure:644: checking build system type" >&5 |
---|
644 | |
---|
645 | build_alias=$build |
---|
646 | case "$build_alias" in |
---|
647 | NONE) |
---|
648 | case $nonopt in |
---|
649 | NONE) build_alias=$host_alias ;; |
---|
650 | *) build_alias=$nonopt ;; |
---|
651 | esac ;; |
---|
652 | esac |
---|
653 | |
---|
654 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
---|
655 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
656 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
657 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
658 | echo "$ac_t""$build" 1>&6 |
---|
659 | |
---|
660 | test "$host_alias" != "$target_alias" && |
---|
661 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
662 | NONENONEs,x,x, && |
---|
663 | program_prefix=${target_alias}- |
---|
664 | |
---|
665 | echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6 |
---|
666 | echo "configure:667: checking rtems target cpu" >&5 |
---|
667 | case "${target}" in |
---|
668 | # hpux unix port should go here |
---|
669 | i[3456]86-go32-rtems*) |
---|
670 | RTEMS_CPU=i386 |
---|
671 | ;; |
---|
672 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
673 | RTEMS_CPU=unix |
---|
674 | ;; |
---|
675 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
676 | RTEMS_CPU=unix |
---|
677 | ;; |
---|
678 | no_cpu-*rtems*) |
---|
679 | RTEMS_CPU=no_cpu |
---|
680 | ;; |
---|
681 | sparc-sun-solaris*) # unix "simulator" port |
---|
682 | RTEMS_CPU=unix |
---|
683 | ;; |
---|
684 | *) |
---|
685 | RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'` |
---|
686 | ;; |
---|
687 | esac |
---|
688 | |
---|
689 | echo "$ac_t""$RTEMS_CPU" 1>&6 |
---|
690 | |
---|
691 | |
---|
692 | # Find a good install program. We prefer a C program (faster), |
---|
693 | # so one script is as good as another. But avoid the broken or |
---|
694 | # incompatible versions: |
---|
695 | # SysV /etc/install, /usr/sbin/install |
---|
696 | # SunOS /usr/etc/install |
---|
697 | # IRIX /sbin/install |
---|
698 | # AIX /bin/install |
---|
699 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
700 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
701 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
702 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
703 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
704 | echo "configure:705: checking for a BSD compatible install" >&5 |
---|
705 | if test -z "$INSTALL"; then |
---|
706 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
707 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
708 | else |
---|
709 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
710 | for ac_dir in $PATH; do |
---|
711 | # Account for people who put trailing slashes in PATH elements. |
---|
712 | case "$ac_dir/" in |
---|
713 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
714 | *) |
---|
715 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
716 | # Don't use installbsd from OSF since it installs stuff as root |
---|
717 | # by default. |
---|
718 | for ac_prog in ginstall scoinst install; do |
---|
719 | if test -f $ac_dir/$ac_prog; then |
---|
720 | if test $ac_prog = install && |
---|
721 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
722 | # AIX install. It has an incompatible calling convention. |
---|
723 | : |
---|
724 | else |
---|
725 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
726 | break 2 |
---|
727 | fi |
---|
728 | fi |
---|
729 | done |
---|
730 | ;; |
---|
731 | esac |
---|
732 | done |
---|
733 | IFS="$ac_save_IFS" |
---|
734 | |
---|
735 | fi |
---|
736 | if test "${ac_cv_path_install+set}" = set; then |
---|
737 | INSTALL="$ac_cv_path_install" |
---|
738 | else |
---|
739 | # As a last resort, use the slow shell script. We don't cache a |
---|
740 | # path for INSTALL within a source directory, because that will |
---|
741 | # break other packages using the cache if that directory is |
---|
742 | # removed, or if the path is relative. |
---|
743 | INSTALL="$ac_install_sh" |
---|
744 | fi |
---|
745 | fi |
---|
746 | echo "$ac_t""$INSTALL" 1>&6 |
---|
747 | |
---|
748 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
749 | # It thinks the first close brace ends the variable substitution. |
---|
750 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
751 | |
---|
752 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
753 | |
---|
754 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
755 | |
---|
756 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
---|
757 | echo "configure:758: checking whether build environment is sane" >&5 |
---|
758 | # Just in case |
---|
759 | sleep 1 |
---|
760 | echo timestamp > conftestfile |
---|
761 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
762 | # arguments. Must try -L first in case configure is actually a |
---|
763 | # symlink; some systems play weird games with the mod time of symlinks |
---|
764 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
765 | # directory). |
---|
766 | if ( |
---|
767 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
---|
768 | if test "$*" = "X"; then |
---|
769 | # -L didn't work. |
---|
770 | set X `ls -t $srcdir/configure conftestfile` |
---|
771 | fi |
---|
772 | if test "$*" != "X $srcdir/configure conftestfile" \ |
---|
773 | && test "$*" != "X conftestfile $srcdir/configure"; then |
---|
774 | |
---|
775 | # If neither matched, then we have a broken ls. This can happen |
---|
776 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
777 | # broken ls alias from the environment. This has actually |
---|
778 | # happened. Such a system could not be considered "sane". |
---|
779 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
---|
780 | alias in your environment" 1>&2; exit 1; } |
---|
781 | fi |
---|
782 | |
---|
783 | test "$2" = conftestfile |
---|
784 | ) |
---|
785 | then |
---|
786 | # Ok. |
---|
787 | : |
---|
788 | else |
---|
789 | { echo "configure: error: newly created file is older than distributed files! |
---|
790 | Check your system clock" 1>&2; exit 1; } |
---|
791 | fi |
---|
792 | rm -f conftest* |
---|
793 | echo "$ac_t""yes" 1>&6 |
---|
794 | if test "$program_transform_name" = s,x,x,; then |
---|
795 | program_transform_name= |
---|
796 | else |
---|
797 | # Double any \ or $. echo might interpret backslashes. |
---|
798 | cat <<\EOF_SED > conftestsed |
---|
799 | s,\\,\\\\,g; s,\$,$$,g |
---|
800 | EOF_SED |
---|
801 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
---|
802 | rm -f conftestsed |
---|
803 | fi |
---|
804 | test "$program_prefix" != NONE && |
---|
805 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
---|
806 | # Use a double $ so make ignores it. |
---|
807 | test "$program_suffix" != NONE && |
---|
808 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
---|
809 | |
---|
810 | # sed with no file args requires a program. |
---|
811 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
---|
812 | |
---|
813 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
814 | echo "configure:815: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
815 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
816 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
817 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
818 | else |
---|
819 | cat > conftestmake <<\EOF |
---|
820 | all: |
---|
821 | @echo 'ac_maketemp="${MAKE}"' |
---|
822 | EOF |
---|
823 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
824 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
825 | if test -n "$ac_maketemp"; then |
---|
826 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
827 | else |
---|
828 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
829 | fi |
---|
830 | rm -f conftestmake |
---|
831 | fi |
---|
832 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
833 | echo "$ac_t""yes" 1>&6 |
---|
834 | SET_MAKE= |
---|
835 | else |
---|
836 | echo "$ac_t""no" 1>&6 |
---|
837 | SET_MAKE="MAKE=${MAKE-make}" |
---|
838 | fi |
---|
839 | |
---|
840 | |
---|
841 | |
---|
842 | PACKAGE=rtems-cpu-tools-sh |
---|
843 | |
---|
844 | VERSION=$RTEMS_VERSION |
---|
845 | |
---|
846 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
---|
847 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
---|
848 | fi |
---|
849 | |
---|
850 | |
---|
851 | |
---|
852 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
853 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
---|
854 | echo "configure:855: checking for working aclocal" >&5 |
---|
855 | # Run test in a subshell; some versions of sh will print an error if |
---|
856 | # an executable is not found, even if stderr is redirected. |
---|
857 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
858 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
---|
859 | ACLOCAL=aclocal |
---|
860 | echo "$ac_t""found" 1>&6 |
---|
861 | else |
---|
862 | ACLOCAL="$missing_dir/missing aclocal" |
---|
863 | echo "$ac_t""missing" 1>&6 |
---|
864 | fi |
---|
865 | |
---|
866 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
---|
867 | echo "configure:868: checking for working autoconf" >&5 |
---|
868 | # Run test in a subshell; some versions of sh will print an error if |
---|
869 | # an executable is not found, even if stderr is redirected. |
---|
870 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
871 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
---|
872 | AUTOCONF=autoconf |
---|
873 | echo "$ac_t""found" 1>&6 |
---|
874 | else |
---|
875 | AUTOCONF="$missing_dir/missing autoconf" |
---|
876 | echo "$ac_t""missing" 1>&6 |
---|
877 | fi |
---|
878 | |
---|
879 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
---|
880 | echo "configure:881: checking for working automake" >&5 |
---|
881 | # Run test in a subshell; some versions of sh will print an error if |
---|
882 | # an executable is not found, even if stderr is redirected. |
---|
883 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
884 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
---|
885 | AUTOMAKE=automake |
---|
886 | echo "$ac_t""found" 1>&6 |
---|
887 | else |
---|
888 | AUTOMAKE="$missing_dir/missing automake" |
---|
889 | echo "$ac_t""missing" 1>&6 |
---|
890 | fi |
---|
891 | |
---|
892 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
---|
893 | echo "configure:894: checking for working autoheader" >&5 |
---|
894 | # Run test in a subshell; some versions of sh will print an error if |
---|
895 | # an executable is not found, even if stderr is redirected. |
---|
896 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
897 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
---|
898 | AUTOHEADER=autoheader |
---|
899 | echo "$ac_t""found" 1>&6 |
---|
900 | else |
---|
901 | AUTOHEADER="$missing_dir/missing autoheader" |
---|
902 | echo "$ac_t""missing" 1>&6 |
---|
903 | fi |
---|
904 | |
---|
905 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
---|
906 | echo "configure:907: checking for working makeinfo" >&5 |
---|
907 | # Run test in a subshell; some versions of sh will print an error if |
---|
908 | # an executable is not found, even if stderr is redirected. |
---|
909 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
910 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
---|
911 | MAKEINFO=makeinfo |
---|
912 | echo "$ac_t""found" 1>&6 |
---|
913 | else |
---|
914 | MAKEINFO="$missing_dir/missing makeinfo" |
---|
915 | echo "$ac_t""missing" 1>&6 |
---|
916 | fi |
---|
917 | |
---|
918 | |
---|
919 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
---|
920 | echo "configure:921: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
921 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
922 | if test "${enable_maintainer_mode+set}" = set; then |
---|
923 | enableval="$enable_maintainer_mode" |
---|
924 | USE_MAINTAINER_MODE=$enableval |
---|
925 | else |
---|
926 | USE_MAINTAINER_MODE=no |
---|
927 | fi |
---|
928 | |
---|
929 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 |
---|
930 | |
---|
931 | |
---|
932 | if test $USE_MAINTAINER_MODE = yes; then |
---|
933 | MAINTAINER_MODE_TRUE= |
---|
934 | MAINTAINER_MODE_FALSE='#' |
---|
935 | else |
---|
936 | MAINTAINER_MODE_TRUE='#' |
---|
937 | MAINTAINER_MODE_FALSE= |
---|
938 | fi |
---|
939 | MAINT=$MAINTAINER_MODE_TRUE |
---|
940 | |
---|
941 | |
---|
942 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
---|
943 | echo "configure:944: checking for Cygwin environment" >&5 |
---|
944 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
---|
945 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
946 | else |
---|
947 | cat > conftest.$ac_ext <<EOF |
---|
948 | #line 949 "configure" |
---|
949 | #include "confdefs.h" |
---|
950 | |
---|
951 | int main() { |
---|
952 | |
---|
953 | #ifndef __CYGWIN__ |
---|
954 | #define __CYGWIN__ __CYGWIN32__ |
---|
955 | #endif |
---|
956 | return __CYGWIN__; |
---|
957 | ; return 0; } |
---|
958 | EOF |
---|
959 | if { (eval echo configure:960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
960 | rm -rf conftest* |
---|
961 | ac_cv_cygwin=yes |
---|
962 | else |
---|
963 | echo "configure: failed program was:" >&5 |
---|
964 | cat conftest.$ac_ext >&5 |
---|
965 | rm -rf conftest* |
---|
966 | ac_cv_cygwin=no |
---|
967 | fi |
---|
968 | rm -f conftest* |
---|
969 | rm -f conftest* |
---|
970 | fi |
---|
971 | |
---|
972 | echo "$ac_t""$ac_cv_cygwin" 1>&6 |
---|
973 | CYGWIN= |
---|
974 | test "$ac_cv_cygwin" = yes && CYGWIN=yes |
---|
975 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 |
---|
976 | echo "configure:977: checking for mingw32 environment" >&5 |
---|
977 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
---|
978 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
979 | else |
---|
980 | cat > conftest.$ac_ext <<EOF |
---|
981 | #line 982 "configure" |
---|
982 | #include "confdefs.h" |
---|
983 | |
---|
984 | int main() { |
---|
985 | return __MINGW32__; |
---|
986 | ; return 0; } |
---|
987 | EOF |
---|
988 | if { (eval echo configure:989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
989 | rm -rf conftest* |
---|
990 | ac_cv_mingw32=yes |
---|
991 | else |
---|
992 | echo "configure: failed program was:" >&5 |
---|
993 | cat conftest.$ac_ext >&5 |
---|
994 | rm -rf conftest* |
---|
995 | ac_cv_mingw32=no |
---|
996 | fi |
---|
997 | rm -f conftest* |
---|
998 | rm -f conftest* |
---|
999 | fi |
---|
1000 | |
---|
1001 | echo "$ac_t""$ac_cv_mingw32" 1>&6 |
---|
1002 | MINGW32= |
---|
1003 | test "$ac_cv_mingw32" = yes && MINGW32=yes |
---|
1004 | |
---|
1005 | |
---|
1006 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
---|
1007 | echo "configure:1008: checking for executable suffix" >&5 |
---|
1008 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
---|
1009 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1010 | else |
---|
1011 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
---|
1012 | ac_cv_exeext=.exe |
---|
1013 | else |
---|
1014 | rm -f conftest* |
---|
1015 | echo 'int main () { return 0; }' > conftest.$ac_ext |
---|
1016 | ac_cv_exeext= |
---|
1017 | if { (eval echo configure:1018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1018 | for file in conftest.*; do |
---|
1019 | case $file in |
---|
1020 | *.c | *.o | *.obj) ;; |
---|
1021 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
---|
1022 | esac |
---|
1023 | done |
---|
1024 | else |
---|
1025 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } |
---|
1026 | fi |
---|
1027 | rm -f conftest* |
---|
1028 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no |
---|
1029 | fi |
---|
1030 | fi |
---|
1031 | |
---|
1032 | EXEEXT="" |
---|
1033 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} |
---|
1034 | echo "$ac_t""${ac_cv_exeext}" 1>&6 |
---|
1035 | ac_exeext=$EXEEXT |
---|
1036 | |
---|
1037 | |
---|
1038 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
1039 | set dummy gcc; ac_word=$2 |
---|
1040 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1041 | echo "configure:1042: checking for $ac_word" >&5 |
---|
1042 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1043 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1044 | else |
---|
1045 | if test -n "$CC"; then |
---|
1046 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1047 | else |
---|
1048 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1049 | ac_dummy="$PATH" |
---|
1050 | for ac_dir in $ac_dummy; do |
---|
1051 | test -z "$ac_dir" && ac_dir=. |
---|
1052 | if test -f $ac_dir/$ac_word; then |
---|
1053 | ac_cv_prog_CC="gcc" |
---|
1054 | break |
---|
1055 | fi |
---|
1056 | done |
---|
1057 | IFS="$ac_save_ifs" |
---|
1058 | fi |
---|
1059 | fi |
---|
1060 | CC="$ac_cv_prog_CC" |
---|
1061 | if test -n "$CC"; then |
---|
1062 | echo "$ac_t""$CC" 1>&6 |
---|
1063 | else |
---|
1064 | echo "$ac_t""no" 1>&6 |
---|
1065 | fi |
---|
1066 | |
---|
1067 | if test -z "$CC"; then |
---|
1068 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1069 | set dummy cc; ac_word=$2 |
---|
1070 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1071 | echo "configure:1072: checking for $ac_word" >&5 |
---|
1072 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1073 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1074 | else |
---|
1075 | if test -n "$CC"; then |
---|
1076 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1077 | else |
---|
1078 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1079 | ac_prog_rejected=no |
---|
1080 | ac_dummy="$PATH" |
---|
1081 | for ac_dir in $ac_dummy; do |
---|
1082 | test -z "$ac_dir" && ac_dir=. |
---|
1083 | if test -f $ac_dir/$ac_word; then |
---|
1084 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
1085 | ac_prog_rejected=yes |
---|
1086 | continue |
---|
1087 | fi |
---|
1088 | ac_cv_prog_CC="cc" |
---|
1089 | break |
---|
1090 | fi |
---|
1091 | done |
---|
1092 | IFS="$ac_save_ifs" |
---|
1093 | if test $ac_prog_rejected = yes; then |
---|
1094 | # We found a bogon in the path, so make sure we never use it. |
---|
1095 | set dummy $ac_cv_prog_CC |
---|
1096 | shift |
---|
1097 | if test $# -gt 0; then |
---|
1098 | # We chose a different compiler from the bogus one. |
---|
1099 | # However, it has the same basename, so the bogon will be chosen |
---|
1100 | # first if we set CC to just the basename; use the full file name. |
---|
1101 | shift |
---|
1102 | set dummy "$ac_dir/$ac_word" "$@" |
---|
1103 | shift |
---|
1104 | ac_cv_prog_CC="$@" |
---|
1105 | fi |
---|
1106 | fi |
---|
1107 | fi |
---|
1108 | fi |
---|
1109 | CC="$ac_cv_prog_CC" |
---|
1110 | if test -n "$CC"; then |
---|
1111 | echo "$ac_t""$CC" 1>&6 |
---|
1112 | else |
---|
1113 | echo "$ac_t""no" 1>&6 |
---|
1114 | fi |
---|
1115 | |
---|
1116 | if test -z "$CC"; then |
---|
1117 | case "`uname -s`" in |
---|
1118 | *win32* | *WIN32*) |
---|
1119 | # Extract the first word of "cl", so it can be a program name with args. |
---|
1120 | set dummy cl; ac_word=$2 |
---|
1121 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1122 | echo "configure:1123: checking for $ac_word" >&5 |
---|
1123 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1124 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1125 | else |
---|
1126 | if test -n "$CC"; then |
---|
1127 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1128 | else |
---|
1129 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1130 | ac_dummy="$PATH" |
---|
1131 | for ac_dir in $ac_dummy; do |
---|
1132 | test -z "$ac_dir" && ac_dir=. |
---|
1133 | if test -f $ac_dir/$ac_word; then |
---|
1134 | ac_cv_prog_CC="cl" |
---|
1135 | break |
---|
1136 | fi |
---|
1137 | done |
---|
1138 | IFS="$ac_save_ifs" |
---|
1139 | fi |
---|
1140 | fi |
---|
1141 | CC="$ac_cv_prog_CC" |
---|
1142 | if test -n "$CC"; then |
---|
1143 | echo "$ac_t""$CC" 1>&6 |
---|
1144 | else |
---|
1145 | echo "$ac_t""no" 1>&6 |
---|
1146 | fi |
---|
1147 | ;; |
---|
1148 | esac |
---|
1149 | fi |
---|
1150 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
1151 | fi |
---|
1152 | |
---|
1153 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
1154 | echo "configure:1155: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
1155 | |
---|
1156 | ac_ext=c |
---|
1157 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1158 | ac_cpp='$CPP $CPPFLAGS' |
---|
1159 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1160 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1161 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1162 | |
---|
1163 | cat > conftest.$ac_ext << EOF |
---|
1164 | |
---|
1165 | #line 1166 "configure" |
---|
1166 | #include "confdefs.h" |
---|
1167 | |
---|
1168 | main(){return(0);} |
---|
1169 | EOF |
---|
1170 | if { (eval echo configure:1171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1171 | ac_cv_prog_cc_works=yes |
---|
1172 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
1173 | if (./conftest; exit) 2>/dev/null; then |
---|
1174 | ac_cv_prog_cc_cross=no |
---|
1175 | else |
---|
1176 | ac_cv_prog_cc_cross=yes |
---|
1177 | fi |
---|
1178 | else |
---|
1179 | echo "configure: failed program was:" >&5 |
---|
1180 | cat conftest.$ac_ext >&5 |
---|
1181 | ac_cv_prog_cc_works=no |
---|
1182 | fi |
---|
1183 | rm -fr conftest* |
---|
1184 | ac_ext=c |
---|
1185 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1186 | ac_cpp='$CPP $CPPFLAGS' |
---|
1187 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1188 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1189 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1190 | |
---|
1191 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
1192 | if test $ac_cv_prog_cc_works = no; then |
---|
1193 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
1194 | fi |
---|
1195 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
1196 | echo "configure:1197: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
1197 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
1198 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1199 | |
---|
1200 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
1201 | echo "configure:1202: checking whether we are using GNU C" >&5 |
---|
1202 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
1203 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1204 | else |
---|
1205 | cat > conftest.c <<EOF |
---|
1206 | #ifdef __GNUC__ |
---|
1207 | yes; |
---|
1208 | #endif |
---|
1209 | EOF |
---|
1210 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
1211 | ac_cv_prog_gcc=yes |
---|
1212 | else |
---|
1213 | ac_cv_prog_gcc=no |
---|
1214 | fi |
---|
1215 | fi |
---|
1216 | |
---|
1217 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
1218 | |
---|
1219 | if test $ac_cv_prog_gcc = yes; then |
---|
1220 | GCC=yes |
---|
1221 | else |
---|
1222 | GCC= |
---|
1223 | fi |
---|
1224 | |
---|
1225 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
1226 | ac_save_CFLAGS="$CFLAGS" |
---|
1227 | CFLAGS= |
---|
1228 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
1229 | echo "configure:1230: checking whether ${CC-cc} accepts -g" >&5 |
---|
1230 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
1231 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1232 | else |
---|
1233 | echo 'void f(){}' > conftest.c |
---|
1234 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
1235 | ac_cv_prog_cc_g=yes |
---|
1236 | else |
---|
1237 | ac_cv_prog_cc_g=no |
---|
1238 | fi |
---|
1239 | rm -f conftest* |
---|
1240 | |
---|
1241 | fi |
---|
1242 | |
---|
1243 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
1244 | if test "$ac_test_CFLAGS" = set; then |
---|
1245 | CFLAGS="$ac_save_CFLAGS" |
---|
1246 | elif test $ac_cv_prog_cc_g = yes; then |
---|
1247 | if test "$GCC" = yes; then |
---|
1248 | CFLAGS="-g -O2" |
---|
1249 | else |
---|
1250 | CFLAGS="-g" |
---|
1251 | fi |
---|
1252 | else |
---|
1253 | if test "$GCC" = yes; then |
---|
1254 | CFLAGS="-O2" |
---|
1255 | else |
---|
1256 | CFLAGS= |
---|
1257 | fi |
---|
1258 | fi |
---|
1259 | |
---|
1260 | echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6 |
---|
1261 | echo "configure:1262: checking for fabs in -lm" >&5 |
---|
1262 | ac_lib_var=`echo m'_'fabs | sed 'y%./+-%__p_%'` |
---|
1263 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1264 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1265 | else |
---|
1266 | ac_save_LIBS="$LIBS" |
---|
1267 | LIBS="-lm $LIBS" |
---|
1268 | cat > conftest.$ac_ext <<EOF |
---|
1269 | #line 1270 "configure" |
---|
1270 | #include "confdefs.h" |
---|
1271 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1272 | /* We use char because int might match the return type of a gcc2 |
---|
1273 | builtin and then its argument prototype would still apply. */ |
---|
1274 | char fabs(); |
---|
1275 | |
---|
1276 | int main() { |
---|
1277 | fabs() |
---|
1278 | ; return 0; } |
---|
1279 | EOF |
---|
1280 | if { (eval echo configure:1281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1281 | rm -rf conftest* |
---|
1282 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1283 | else |
---|
1284 | echo "configure: failed program was:" >&5 |
---|
1285 | cat conftest.$ac_ext >&5 |
---|
1286 | rm -rf conftest* |
---|
1287 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1288 | fi |
---|
1289 | rm -f conftest* |
---|
1290 | LIBS="$ac_save_LIBS" |
---|
1291 | |
---|
1292 | fi |
---|
1293 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1294 | echo "$ac_t""yes" 1>&6 |
---|
1295 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1296 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1297 | cat >> confdefs.h <<EOF |
---|
1298 | #define $ac_tr_lib 1 |
---|
1299 | EOF |
---|
1300 | |
---|
1301 | LIBS="-lm $LIBS" |
---|
1302 | |
---|
1303 | else |
---|
1304 | echo "$ac_t""no" 1>&6 |
---|
1305 | fi |
---|
1306 | |
---|
1307 | |
---|
1308 | |
---|
1309 | if test "$TARGET_SUBDIR" = "." ; then |
---|
1310 | PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)'; |
---|
1311 | else |
---|
1312 | PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)' |
---|
1313 | fi |
---|
1314 | |
---|
1315 | |
---|
1316 | RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP |
---|
1317 | |
---|
1318 | |
---|
1319 | INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change" |
---|
1320 | |
---|
1321 | |
---|
1322 | PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex" |
---|
1323 | |
---|
1324 | |
---|
1325 | |
---|
1326 | # tooldir='$(exec_prefix)/'$target_alias |
---|
1327 | # Temporary work-around until building in source tree is supported |
---|
1328 | |
---|
1329 | |
---|
1330 | tooldir='$(PROJECT_ROOT)' |
---|
1331 | |
---|
1332 | |
---|
1333 | project_includedir='$(tooldir)'/include |
---|
1334 | |
---|
1335 | |
---|
1336 | project_libdir='$(tooldir)/lib$(MULTISUBDIR)' |
---|
1337 | |
---|
1338 | |
---|
1339 | project_bindir='$(tooldir)/bin' |
---|
1340 | |
---|
1341 | |
---|
1342 | rtems_bspdir='$(prefix)/${RTEMS_BSP}' |
---|
1343 | |
---|
1344 | rtems_makedir='$(prefix)/make' |
---|
1345 | |
---|
1346 | |
---|
1347 | |
---|
1348 | trap '' 1 2 15 |
---|
1349 | cat > confcache <<\EOF |
---|
1350 | # This file is a shell script that caches the results of configure |
---|
1351 | # tests run on this system so they can be shared between configure |
---|
1352 | # scripts and configure runs. It is not useful on other systems. |
---|
1353 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
1354 | # |
---|
1355 | # By default, configure uses ./config.cache as the cache file, |
---|
1356 | # creating it if it does not exist already. You can give configure |
---|
1357 | # the --cache-file=FILE option to use a different cache file; that is |
---|
1358 | # what configure does when it calls configure scripts in |
---|
1359 | # subdirectories, so they share the cache. |
---|
1360 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
1361 | # config.status only pays attention to the cache file if you give it the |
---|
1362 | # --recheck option to rerun configure. |
---|
1363 | # |
---|
1364 | EOF |
---|
1365 | # The following way of writing the cache mishandles newlines in values, |
---|
1366 | # but we know of no workaround that is simple, portable, and efficient. |
---|
1367 | # So, don't put newlines in cache variables' values. |
---|
1368 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
1369 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
1370 | (set) 2>&1 | |
---|
1371 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
1372 | *ac_space=\ *) |
---|
1373 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
1374 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
1375 | sed -n \ |
---|
1376 | -e "s/'/'\\\\''/g" \ |
---|
1377 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
1378 | ;; |
---|
1379 | *) |
---|
1380 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
1381 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
1382 | ;; |
---|
1383 | esac >> confcache |
---|
1384 | if cmp -s $cache_file confcache; then |
---|
1385 | : |
---|
1386 | else |
---|
1387 | if test -w $cache_file; then |
---|
1388 | echo "updating cache $cache_file" |
---|
1389 | cat confcache > $cache_file |
---|
1390 | else |
---|
1391 | echo "not updating unwritable cache $cache_file" |
---|
1392 | fi |
---|
1393 | fi |
---|
1394 | rm -f confcache |
---|
1395 | |
---|
1396 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
1397 | |
---|
1398 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
1399 | # Let make expand exec_prefix. |
---|
1400 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
1401 | |
---|
1402 | # Any assignment to VPATH causes Sun make to only execute |
---|
1403 | # the first set of double-colon rules, so remove it if not needed. |
---|
1404 | # If there is a colon in the path, we need to keep it. |
---|
1405 | if test "x$srcdir" = x.; then |
---|
1406 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
1407 | fi |
---|
1408 | |
---|
1409 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
1410 | |
---|
1411 | # Transform confdefs.h into DEFS. |
---|
1412 | # Protect against shell expansion while executing Makefile rules. |
---|
1413 | # Protect against Makefile macro expansion. |
---|
1414 | cat > conftest.defs <<\EOF |
---|
1415 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
---|
1416 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
---|
1417 | s%\[%\\&%g |
---|
1418 | s%\]%\\&%g |
---|
1419 | s%\$%$$%g |
---|
1420 | EOF |
---|
1421 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
---|
1422 | rm -f conftest.defs |
---|
1423 | |
---|
1424 | |
---|
1425 | # Without the "./", some shells look in PATH for config.status. |
---|
1426 | : ${CONFIG_STATUS=./config.status} |
---|
1427 | |
---|
1428 | echo creating $CONFIG_STATUS |
---|
1429 | rm -f $CONFIG_STATUS |
---|
1430 | cat > $CONFIG_STATUS <<EOF |
---|
1431 | #! /bin/sh |
---|
1432 | # Generated automatically by configure. |
---|
1433 | # Run this file to recreate the current configuration. |
---|
1434 | # This directory was configured as follows, |
---|
1435 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
1436 | # |
---|
1437 | # $0 $ac_configure_args |
---|
1438 | # |
---|
1439 | # Compiler output produced by configure, useful for debugging |
---|
1440 | # configure, is in ./config.log if it exists. |
---|
1441 | |
---|
1442 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
1443 | for ac_option |
---|
1444 | do |
---|
1445 | case "\$ac_option" in |
---|
1446 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
1447 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
1448 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
1449 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
1450 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
1451 | exit 0 ;; |
---|
1452 | -help | --help | --hel | --he | --h) |
---|
1453 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
1454 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
1455 | esac |
---|
1456 | done |
---|
1457 | |
---|
1458 | ac_given_srcdir=$srcdir |
---|
1459 | ac_given_INSTALL="$INSTALL" |
---|
1460 | |
---|
1461 | trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
1462 | EOF |
---|
1463 | cat >> $CONFIG_STATUS <<EOF |
---|
1464 | |
---|
1465 | # Protect against being on the right side of a sed subst in config.status. |
---|
1466 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
1467 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
1468 | $ac_vpsub |
---|
1469 | $extrasub |
---|
1470 | s%@SHELL@%$SHELL%g |
---|
1471 | s%@CFLAGS@%$CFLAGS%g |
---|
1472 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
1473 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
1474 | s%@FFLAGS@%$FFLAGS%g |
---|
1475 | s%@DEFS@%$DEFS%g |
---|
1476 | s%@LDFLAGS@%$LDFLAGS%g |
---|
1477 | s%@LIBS@%$LIBS%g |
---|
1478 | s%@exec_prefix@%$exec_prefix%g |
---|
1479 | s%@prefix@%$prefix%g |
---|
1480 | s%@program_transform_name@%$program_transform_name%g |
---|
1481 | s%@bindir@%$bindir%g |
---|
1482 | s%@sbindir@%$sbindir%g |
---|
1483 | s%@libexecdir@%$libexecdir%g |
---|
1484 | s%@datadir@%$datadir%g |
---|
1485 | s%@sysconfdir@%$sysconfdir%g |
---|
1486 | s%@sharedstatedir@%$sharedstatedir%g |
---|
1487 | s%@localstatedir@%$localstatedir%g |
---|
1488 | s%@libdir@%$libdir%g |
---|
1489 | s%@includedir@%$includedir%g |
---|
1490 | s%@oldincludedir@%$oldincludedir%g |
---|
1491 | s%@infodir@%$infodir%g |
---|
1492 | s%@mandir@%$mandir%g |
---|
1493 | s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g |
---|
1494 | s%@host@%$host%g |
---|
1495 | s%@host_alias@%$host_alias%g |
---|
1496 | s%@host_cpu@%$host_cpu%g |
---|
1497 | s%@host_vendor@%$host_vendor%g |
---|
1498 | s%@host_os@%$host_os%g |
---|
1499 | s%@target@%$target%g |
---|
1500 | s%@target_alias@%$target_alias%g |
---|
1501 | s%@target_cpu@%$target_cpu%g |
---|
1502 | s%@target_vendor@%$target_vendor%g |
---|
1503 | s%@target_os@%$target_os%g |
---|
1504 | s%@build@%$build%g |
---|
1505 | s%@build_alias@%$build_alias%g |
---|
1506 | s%@build_cpu@%$build_cpu%g |
---|
1507 | s%@build_vendor@%$build_vendor%g |
---|
1508 | s%@build_os@%$build_os%g |
---|
1509 | s%@RTEMS_CPU@%$RTEMS_CPU%g |
---|
1510 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
1511 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
1512 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
1513 | s%@PACKAGE@%$PACKAGE%g |
---|
1514 | s%@VERSION@%$VERSION%g |
---|
1515 | s%@ACLOCAL@%$ACLOCAL%g |
---|
1516 | s%@AUTOCONF@%$AUTOCONF%g |
---|
1517 | s%@AUTOMAKE@%$AUTOMAKE%g |
---|
1518 | s%@AUTOHEADER@%$AUTOHEADER%g |
---|
1519 | s%@MAKEINFO@%$MAKEINFO%g |
---|
1520 | s%@SET_MAKE@%$SET_MAKE%g |
---|
1521 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
---|
1522 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g |
---|
1523 | s%@MAINT@%$MAINT%g |
---|
1524 | s%@EXEEXT@%$EXEEXT%g |
---|
1525 | s%@CC@%$CC%g |
---|
1526 | s%@PROJECT_ROOT@%$PROJECT_ROOT%g |
---|
1527 | s%@RTEMS_ROOT@%$RTEMS_ROOT%g |
---|
1528 | s%@INSTALL_CHANGE@%$INSTALL_CHANGE%g |
---|
1529 | s%@PACKHEX@%$PACKHEX%g |
---|
1530 | s%@tooldir@%$tooldir%g |
---|
1531 | s%@project_includedir@%$project_includedir%g |
---|
1532 | s%@project_libdir@%$project_libdir%g |
---|
1533 | s%@project_bindir@%$project_bindir%g |
---|
1534 | s%@rtems_bspdir@%$rtems_bspdir%g |
---|
1535 | s%@rtems_makedir@%$rtems_makedir%g |
---|
1536 | |
---|
1537 | CEOF |
---|
1538 | EOF |
---|
1539 | |
---|
1540 | cat >> $CONFIG_STATUS <<\EOF |
---|
1541 | |
---|
1542 | # Split the substitutions into bite-sized pieces for seds with |
---|
1543 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
1544 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
1545 | ac_file=1 # Number of current file. |
---|
1546 | ac_beg=1 # First line for current file. |
---|
1547 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
1548 | ac_more_lines=: |
---|
1549 | ac_sed_cmds="" |
---|
1550 | while $ac_more_lines; do |
---|
1551 | if test $ac_beg -gt 1; then |
---|
1552 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
1553 | else |
---|
1554 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
1555 | fi |
---|
1556 | if test ! -s conftest.s$ac_file; then |
---|
1557 | ac_more_lines=false |
---|
1558 | rm -f conftest.s$ac_file |
---|
1559 | else |
---|
1560 | if test -z "$ac_sed_cmds"; then |
---|
1561 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
1562 | else |
---|
1563 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
1564 | fi |
---|
1565 | ac_file=`expr $ac_file + 1` |
---|
1566 | ac_beg=$ac_end |
---|
1567 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
1568 | fi |
---|
1569 | done |
---|
1570 | if test -z "$ac_sed_cmds"; then |
---|
1571 | ac_sed_cmds=cat |
---|
1572 | fi |
---|
1573 | EOF |
---|
1574 | |
---|
1575 | cat >> $CONFIG_STATUS <<EOF |
---|
1576 | |
---|
1577 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
---|
1578 | EOF |
---|
1579 | cat >> $CONFIG_STATUS <<\EOF |
---|
1580 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
1581 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
1582 | case "$ac_file" in |
---|
1583 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
1584 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
1585 | *) ac_file_in="${ac_file}.in" ;; |
---|
1586 | esac |
---|
1587 | |
---|
1588 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
1589 | |
---|
1590 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
1591 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
1592 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
1593 | # The file is in a subdirectory. |
---|
1594 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
1595 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
1596 | # A "../" for each directory in $ac_dir_suffix. |
---|
1597 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
1598 | else |
---|
1599 | ac_dir_suffix= ac_dots= |
---|
1600 | fi |
---|
1601 | |
---|
1602 | case "$ac_given_srcdir" in |
---|
1603 | .) srcdir=. |
---|
1604 | if test -z "$ac_dots"; then top_srcdir=. |
---|
1605 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
1606 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
1607 | *) # Relative path. |
---|
1608 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
1609 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
1610 | esac |
---|
1611 | |
---|
1612 | case "$ac_given_INSTALL" in |
---|
1613 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
1614 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
1615 | esac |
---|
1616 | |
---|
1617 | echo creating "$ac_file" |
---|
1618 | rm -f "$ac_file" |
---|
1619 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
1620 | case "$ac_file" in |
---|
1621 | *Makefile*) ac_comsub="1i\\ |
---|
1622 | # $configure_input" ;; |
---|
1623 | *) ac_comsub= ;; |
---|
1624 | esac |
---|
1625 | |
---|
1626 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
1627 | sed -e "$ac_comsub |
---|
1628 | s%@configure_input@%$configure_input%g |
---|
1629 | s%@srcdir@%$srcdir%g |
---|
1630 | s%@top_srcdir@%$top_srcdir%g |
---|
1631 | s%@INSTALL@%$INSTALL%g |
---|
1632 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
1633 | fi; done |
---|
1634 | rm -f conftest.s* |
---|
1635 | |
---|
1636 | EOF |
---|
1637 | cat >> $CONFIG_STATUS <<EOF |
---|
1638 | |
---|
1639 | EOF |
---|
1640 | cat >> $CONFIG_STATUS <<\EOF |
---|
1641 | |
---|
1642 | exit 0 |
---|
1643 | EOF |
---|
1644 | chmod +x $CONFIG_STATUS |
---|
1645 | rm -fr confdefs* $ac_clean_files |
---|
1646 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
1647 | |
---|