Commit | Line | Data |
---|---|---|
7858d8dc C |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
15ec5eb3 | 4 | # Generated automatically using autoconf version 2.12.2 |
8530ae8e | 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
7858d8dc C |
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: | |
ba8e3a2e | 14 | ac_help="$ac_help |
15ec5eb3 | 15 | --enable-shared[=PKGS] build shared libraries [default=yes]" |
274e44ae | 16 | ac_help="$ac_help |
15ec5eb3 | 17 | --enable-static[=PKGS] build static libraries [default=yes]" |
274e44ae | 18 | ac_help="$ac_help |
86884cd1 | 19 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
16a02269 TT |
20 | ac_help="$ac_help |
21 | --disable-nls do not use Native Language Support" | |
22 | ac_help="$ac_help | |
23 | --with-included-gettext use the GNU gettext library included here" | |
2f1fec47 ILT |
24 | ac_help="$ac_help |
25 | --enable-maintainer-mode enable make rules and dependencies not useful | |
26 | (and sometimes confusing) to the casual installer" | |
7858d8dc C |
27 | |
28 | # Initialize some variables set by options. | |
29 | # The variables have the same names as the options, with | |
30 | # dashes changed to underlines. | |
31 | build=NONE | |
32 | cache_file=./config.cache | |
33 | exec_prefix=NONE | |
34 | host=NONE | |
35 | no_create= | |
36 | nonopt=NONE | |
37 | no_recursion= | |
38 | prefix=NONE | |
39 | program_prefix=NONE | |
40 | program_suffix=NONE | |
41 | program_transform_name=s,x,x, | |
42 | silent= | |
43 | site= | |
44 | srcdir= | |
45 | target=NONE | |
46 | verbose= | |
47 | x_includes=NONE | |
48 | x_libraries=NONE | |
ba8e3a2e ILT |
49 | bindir='${exec_prefix}/bin' |
50 | sbindir='${exec_prefix}/sbin' | |
51 | libexecdir='${exec_prefix}/libexec' | |
52 | datadir='${prefix}/share' | |
53 | sysconfdir='${prefix}/etc' | |
54 | sharedstatedir='${prefix}/com' | |
55 | localstatedir='${prefix}/var' | |
56 | libdir='${exec_prefix}/lib' | |
57 | includedir='${prefix}/include' | |
58 | oldincludedir='/usr/include' | |
59 | infodir='${prefix}/info' | |
60 | mandir='${prefix}/man' | |
7858d8dc C |
61 | |
62 | # Initialize some other variables. | |
63 | subdirs= | |
ba8e3a2e | 64 | MFLAGS= MAKEFLAGS= |
c3de2a19 | 65 | SHELL=${CONFIG_SHELL-/bin/sh} |
4947b15f ILT |
66 | # Maximum number of lines to put in a shell here document. |
67 | ac_max_here_lines=12 | |
7858d8dc C |
68 | |
69 | ac_prev= | |
70 | for ac_option | |
71 | do | |
72 | ||
73 | # If the previous option needs an argument, assign it. | |
74 | if test -n "$ac_prev"; then | |
75 | eval "$ac_prev=\$ac_option" | |
76 | ac_prev= | |
77 | continue | |
78 | fi | |
79 | ||
80 | case "$ac_option" in | |
81 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
82 | *) ac_optarg= ;; | |
83 | esac | |
84 | ||
85 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
86 | ||
87 | case "$ac_option" in | |
88 | ||
ba8e3a2e ILT |
89 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
90 | ac_prev=bindir ;; | |
91 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
92 | bindir="$ac_optarg" ;; | |
93 | ||
94 | -build | --build | --buil | --bui | --bu) | |
7858d8dc | 95 | ac_prev=build ;; |
ba8e3a2e | 96 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
7858d8dc C |
97 | build="$ac_optarg" ;; |
98 | ||
99 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
100 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
101 | ac_prev=cache_file ;; | |
102 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
103 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
104 | cache_file="$ac_optarg" ;; | |
105 | ||
ba8e3a2e ILT |
106 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
107 | ac_prev=datadir ;; | |
108 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
109 | | --da=*) | |
110 | datadir="$ac_optarg" ;; | |
111 | ||
7858d8dc C |
112 | -disable-* | --disable-*) |
113 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
114 | # Reject names that are not valid shell variable names. | |
115 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
116 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
117 | fi | |
118 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
119 | eval "enable_${ac_feature}=no" ;; | |
120 | ||
121 | -enable-* | --enable-*) | |
122 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
123 | # Reject names that are not valid shell variable names. | |
124 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
125 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
126 | fi | |
127 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
128 | case "$ac_option" in | |
129 | *=*) ;; | |
130 | *) ac_optarg=yes ;; | |
131 | esac | |
132 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
133 | ||
134 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
135 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
136 | | --exec | --exe | --ex) | |
137 | ac_prev=exec_prefix ;; | |
138 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
139 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
140 | | --exec=* | --exe=* | --ex=*) | |
141 | exec_prefix="$ac_optarg" ;; | |
142 | ||
143 | -gas | --gas | --ga | --g) | |
144 | # Obsolete; use --with-gas. | |
145 | with_gas=yes ;; | |
146 | ||
147 | -help | --help | --hel | --he) | |
148 | # Omit some internal or obsolete options to make the list less imposing. | |
149 | # This message is too long to be a string in the A/UX 3.1 sh. | |
150 | cat << EOF | |
151 | Usage: configure [options] [host] | |
152 | Options: [defaults in brackets after descriptions] | |
153 | Configuration: | |
154 | --cache-file=FILE cache test results in FILE | |
155 | --help print this message | |
156 | --no-create do not create output files | |
157 | --quiet, --silent do not print \`checking...' messages | |
158 | --version print the version of autoconf that created configure | |
159 | Directory and file names: | |
160 | --prefix=PREFIX install architecture-independent files in PREFIX | |
161 | [$ac_default_prefix] | |
ba8e3a2e | 162 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
7858d8dc | 163 | [same as prefix] |
ba8e3a2e ILT |
164 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
165 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
166 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
167 | --datadir=DIR read-only architecture-independent data in DIR | |
168 | [PREFIX/share] | |
169 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
170 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
171 | [PREFIX/com] | |
172 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
173 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
174 | --includedir=DIR C header files in DIR [PREFIX/include] | |
175 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
176 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
177 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
7858d8dc C |
178 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
179 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
180 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
ba8e3a2e ILT |
181 | --program-transform-name=PROGRAM |
182 | run sed PROGRAM on installed program names | |
183 | EOF | |
184 | cat << EOF | |
7858d8dc C |
185 | Host type: |
186 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
187 | --host=HOST configure for HOST [guessed] | |
188 | --target=TARGET configure for TARGET [TARGET=HOST] | |
189 | Features and packages: | |
190 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
191 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
192 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
193 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
194 | --x-includes=DIR X include files are in DIR | |
195 | --x-libraries=DIR X library files are in DIR | |
7858d8dc | 196 | EOF |
ba8e3a2e ILT |
197 | if test -n "$ac_help"; then |
198 | echo "--enable and --with options recognized:$ac_help" | |
199 | fi | |
7858d8dc C |
200 | exit 0 ;; |
201 | ||
202 | -host | --host | --hos | --ho) | |
203 | ac_prev=host ;; | |
204 | -host=* | --host=* | --hos=* | --ho=*) | |
205 | host="$ac_optarg" ;; | |
206 | ||
ba8e3a2e ILT |
207 | -includedir | --includedir | --includedi | --included | --include \ |
208 | | --includ | --inclu | --incl | --inc) | |
209 | ac_prev=includedir ;; | |
210 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
211 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
212 | includedir="$ac_optarg" ;; | |
213 | ||
214 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
215 | ac_prev=infodir ;; | |
216 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
217 | infodir="$ac_optarg" ;; | |
218 | ||
219 | -libdir | --libdir | --libdi | --libd) | |
220 | ac_prev=libdir ;; | |
221 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
222 | libdir="$ac_optarg" ;; | |
223 | ||
224 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
225 | | --libexe | --libex | --libe) | |
226 | ac_prev=libexecdir ;; | |
227 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
228 | | --libexe=* | --libex=* | --libe=*) | |
229 | libexecdir="$ac_optarg" ;; | |
230 | ||
231 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
232 | | --localstate | --localstat | --localsta | --localst \ | |
233 | | --locals | --local | --loca | --loc | --lo) | |
234 | ac_prev=localstatedir ;; | |
235 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
236 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
237 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
238 | localstatedir="$ac_optarg" ;; | |
239 | ||
240 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
241 | ac_prev=mandir ;; | |
242 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
243 | mandir="$ac_optarg" ;; | |
244 | ||
7858d8dc C |
245 | -nfp | --nfp | --nf) |
246 | # Obsolete; use --without-fp. | |
247 | with_fp=no ;; | |
248 | ||
249 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
250 | | --no-cr | --no-c) | |
251 | no_create=yes ;; | |
252 | ||
253 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
254 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
255 | no_recursion=yes ;; | |
256 | ||
ba8e3a2e ILT |
257 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
258 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
259 | | --oldin | --oldi | --old | --ol | --o) | |
260 | ac_prev=oldincludedir ;; | |
261 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
262 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
263 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
264 | oldincludedir="$ac_optarg" ;; | |
265 | ||
7858d8dc C |
266 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
267 | ac_prev=prefix ;; | |
268 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
269 | prefix="$ac_optarg" ;; | |
270 | ||
271 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
272 | | --program-pre | --program-pr | --program-p) | |
273 | ac_prev=program_prefix ;; | |
274 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
275 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
276 | program_prefix="$ac_optarg" ;; | |
277 | ||
278 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
279 | | --program-suf | --program-su | --program-s) | |
280 | ac_prev=program_suffix ;; | |
281 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
282 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
283 | program_suffix="$ac_optarg" ;; | |
284 | ||
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 | ac_prev=program_transform_name ;; | |
293 | -program-transform-name=* | --program-transform-name=* \ | |
294 | | --program-transform-nam=* | --program-transform-na=* \ | |
295 | | --program-transform-n=* | --program-transform-=* \ | |
296 | | --program-transform=* | --program-transfor=* \ | |
297 | | --program-transfo=* | --program-transf=* \ | |
298 | | --program-trans=* | --program-tran=* \ | |
299 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
300 | program_transform_name="$ac_optarg" ;; | |
301 | ||
302 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
303 | | -silent | --silent | --silen | --sile | --sil) | |
304 | silent=yes ;; | |
305 | ||
ba8e3a2e ILT |
306 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
307 | ac_prev=sbindir ;; | |
308 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
309 | | --sbi=* | --sb=*) | |
310 | sbindir="$ac_optarg" ;; | |
311 | ||
312 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
313 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
314 | | --sharedst | --shareds | --shared | --share | --shar \ | |
315 | | --sha | --sh) | |
316 | ac_prev=sharedstatedir ;; | |
317 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
318 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
319 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
320 | | --sha=* | --sh=*) | |
321 | sharedstatedir="$ac_optarg" ;; | |
322 | ||
7858d8dc C |
323 | -site | --site | --sit) |
324 | ac_prev=site ;; | |
325 | -site=* | --site=* | --sit=*) | |
326 | site="$ac_optarg" ;; | |
327 | ||
328 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
329 | ac_prev=srcdir ;; | |
330 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
331 | srcdir="$ac_optarg" ;; | |
332 | ||
ba8e3a2e ILT |
333 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
334 | | --syscon | --sysco | --sysc | --sys | --sy) | |
335 | ac_prev=sysconfdir ;; | |
336 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
337 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
338 | sysconfdir="$ac_optarg" ;; | |
339 | ||
7858d8dc C |
340 | -target | --target | --targe | --targ | --tar | --ta | --t) |
341 | ac_prev=target ;; | |
342 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
343 | target="$ac_optarg" ;; | |
344 | ||
345 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
346 | verbose=yes ;; | |
347 | ||
348 | -version | --version | --versio | --versi | --vers) | |
15ec5eb3 | 349 | echo "configure generated by autoconf version 2.12.2" |
7858d8dc C |
350 | exit 0 ;; |
351 | ||
352 | -with-* | --with-*) | |
353 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
354 | # Reject names that are not valid shell variable names. | |
355 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
356 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
357 | fi | |
358 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
359 | case "$ac_option" in | |
360 | *=*) ;; | |
361 | *) ac_optarg=yes ;; | |
362 | esac | |
363 | eval "with_${ac_package}='$ac_optarg'" ;; | |
364 | ||
365 | -without-* | --without-*) | |
366 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
367 | # Reject names that are not valid shell variable names. | |
368 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
369 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
370 | fi | |
371 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
372 | eval "with_${ac_package}=no" ;; | |
373 | ||
374 | --x) | |
375 | # Obsolete; use --with-x. | |
376 | with_x=yes ;; | |
377 | ||
378 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
379 | | --x-incl | --x-inc | --x-in | --x-i) | |
380 | ac_prev=x_includes ;; | |
381 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
382 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
383 | x_includes="$ac_optarg" ;; | |
384 | ||
385 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
386 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
387 | ac_prev=x_libraries ;; | |
388 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
389 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
390 | x_libraries="$ac_optarg" ;; | |
391 | ||
392 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
393 | ;; | |
394 | ||
ba8e3a2e | 395 | *) |
7858d8dc C |
396 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
397 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
398 | fi | |
399 | if test "x$nonopt" != xNONE; then | |
400 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
401 | fi | |
402 | nonopt="$ac_option" | |
403 | ;; | |
404 | ||
405 | esac | |
406 | done | |
407 | ||
408 | if test -n "$ac_prev"; then | |
409 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
410 | fi | |
411 | ||
412 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
413 | ||
414 | # File descriptor usage: | |
415 | # 0 standard input | |
416 | # 1 file creation | |
417 | # 2 errors and warnings | |
418 | # 3 some systems may open it to /dev/tty | |
419 | # 4 used on the Kubota Titan | |
420 | # 6 checking for... messages and results | |
421 | # 5 compiler messages saved in config.log | |
422 | if test "$silent" = yes; then | |
423 | exec 6>/dev/null | |
424 | else | |
425 | exec 6>&1 | |
426 | fi | |
427 | exec 5>./config.log | |
428 | ||
429 | echo "\ | |
430 | This file contains any messages produced by compilers while | |
431 | running configure, to aid debugging if configure makes a mistake. | |
432 | " 1>&5 | |
433 | ||
434 | # Strip out --no-create and --no-recursion so they do not pile up. | |
435 | # Also quote any args containing shell metacharacters. | |
436 | ac_configure_args= | |
437 | for ac_arg | |
438 | do | |
439 | case "$ac_arg" in | |
440 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
441 | | --no-cr | --no-c) ;; | |
442 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
443 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
444 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
445 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
446 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
447 | esac | |
448 | done | |
449 | ||
450 | # NLS nuisances. | |
4947b15f ILT |
451 | # Only set these to C if already set. These must not be set unconditionally |
452 | # because not all systems understand e.g. LANG=C (notably SCO). | |
453 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
454 | # Non-C LC_CTYPE values break the ctype check. | |
7858d8dc | 455 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
4947b15f ILT |
456 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
457 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
458 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
7858d8dc C |
459 | |
460 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
461 | rm -rf conftest* confdefs.h | |
462 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
463 | echo > confdefs.h | |
464 | ||
465 | # A filename unique to this package, relative to the directory that | |
466 | # configure is in, which we can look for to find out if srcdir is correct. | |
467 | ac_unique_file=gprof.c | |
468 | ||
469 | # Find the source files, if location was not specified. | |
470 | if test -z "$srcdir"; then | |
471 | ac_srcdir_defaulted=yes | |
472 | # Try the directory containing this script, then its parent. | |
473 | ac_prog=$0 | |
474 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
475 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
476 | srcdir=$ac_confdir | |
477 | if test ! -r $srcdir/$ac_unique_file; then | |
478 | srcdir=.. | |
479 | fi | |
480 | else | |
481 | ac_srcdir_defaulted=no | |
482 | fi | |
483 | if test ! -r $srcdir/$ac_unique_file; then | |
484 | if test "$ac_srcdir_defaulted" = yes; then | |
485 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
486 | else | |
487 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
488 | fi | |
489 | fi | |
490 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
491 | ||
492 | # Prefer explicitly selected file to automatically selected ones. | |
493 | if test -z "$CONFIG_SITE"; then | |
494 | if test "x$prefix" != xNONE; then | |
495 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
496 | else | |
497 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
498 | fi | |
499 | fi | |
500 | for ac_site_file in $CONFIG_SITE; do | |
501 | if test -r "$ac_site_file"; then | |
502 | echo "loading site script $ac_site_file" | |
503 | . "$ac_site_file" | |
504 | fi | |
505 | done | |
506 | ||
507 | if test -r "$cache_file"; then | |
508 | echo "loading cache $cache_file" | |
509 | . $cache_file | |
510 | else | |
511 | echo "creating cache $cache_file" | |
512 | > $cache_file | |
513 | fi | |
514 | ||
515 | ac_ext=c | |
516 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
ea2488ad ILT |
517 | ac_cpp='$CPP $CPPFLAGS' |
518 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15ec5eb3 | 519 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
4947b15f | 520 | cross_compiling=$ac_cv_prog_cc_cross |
7858d8dc | 521 | |
15ec5eb3 ILT |
522 | ac_exeext= |
523 | ac_objext=o | |
7858d8dc C |
524 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
525 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
526 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
527 | ac_n= ac_c=' | |
528 | ' ac_t=' ' | |
529 | else | |
530 | ac_n=-n ac_c= ac_t= | |
531 | fi | |
532 | else | |
533 | ac_n= ac_c='\c' ac_t= | |
534 | fi | |
535 | ||
536 | ||
537 | ||
2f1fec47 ILT |
538 | ac_aux_dir= |
539 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
540 | if test -f $ac_dir/install-sh; then | |
541 | ac_aux_dir=$ac_dir | |
542 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
543 | break | |
544 | elif 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 | fi | |
549 | done | |
550 | if test -z "$ac_aux_dir"; then | |
551 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
552 | fi | |
553 | ac_config_guess=$ac_aux_dir/config.guess | |
554 | ac_config_sub=$ac_aux_dir/config.sub | |
555 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
556 | ||
557 | ||
558 | # Do some error checking and defaulting for the host and target type. | |
559 | # The inputs are: | |
560 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
561 | # | |
562 | # The rules are: | |
563 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
564 | # same time. | |
565 | # 2. Host defaults to nonopt. | |
566 | # 3. If nonopt is not specified, then host defaults to the current host, | |
567 | # as determined by config.guess. | |
568 | # 4. Target and build default to nonopt. | |
569 | # 5. If nonopt is not specified, then target and build default to host. | |
570 | ||
571 | # The aliases save the names the user supplied, while $host etc. | |
572 | # will get canonicalized. | |
573 | case $host---$target---$nonopt in | |
574 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
575 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
576 | esac | |
577 | ||
578 | ||
579 | # Make sure we can run config.sub. | |
274e44ae | 580 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
2f1fec47 ILT |
581 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
582 | fi | |
583 | ||
584 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
15ec5eb3 | 585 | echo "configure:586: checking host system type" >&5 |
2f1fec47 ILT |
586 | |
587 | host_alias=$host | |
588 | case "$host_alias" in | |
589 | NONE) | |
590 | case $nonopt in | |
591 | NONE) | |
274e44ae | 592 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
2f1fec47 ILT |
593 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
594 | fi ;; | |
595 | *) host_alias=$nonopt ;; | |
596 | esac ;; | |
597 | esac | |
598 | ||
274e44ae | 599 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
2f1fec47 ILT |
600 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
601 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
602 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
603 | echo "$ac_t""$host" 1>&6 | |
604 | ||
605 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
15ec5eb3 | 606 | echo "configure:607: checking target system type" >&5 |
2f1fec47 ILT |
607 | |
608 | target_alias=$target | |
609 | case "$target_alias" in | |
610 | NONE) | |
611 | case $nonopt in | |
612 | NONE) target_alias=$host_alias ;; | |
613 | *) target_alias=$nonopt ;; | |
614 | esac ;; | |
615 | esac | |
616 | ||
274e44ae | 617 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
2f1fec47 ILT |
618 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
619 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
620 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
621 | echo "$ac_t""$target" 1>&6 | |
622 | ||
623 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
15ec5eb3 | 624 | echo "configure:625: checking build system type" >&5 |
2f1fec47 ILT |
625 | |
626 | build_alias=$build | |
627 | case "$build_alias" in | |
628 | NONE) | |
629 | case $nonopt in | |
630 | NONE) build_alias=$host_alias ;; | |
631 | *) build_alias=$nonopt ;; | |
632 | esac ;; | |
633 | esac | |
634 | ||
274e44ae | 635 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
2f1fec47 ILT |
636 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
637 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
638 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
639 | echo "$ac_t""$build" 1>&6 | |
640 | ||
641 | test "$host_alias" != "$target_alias" && | |
642 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
643 | NONENONEs,x,x, && | |
644 | program_prefix=${target_alias}- | |
645 | ||
646 | ||
647 | # Find a good install program. We prefer a C program (faster), | |
648 | # so one script is as good as another. But avoid the broken or | |
649 | # incompatible versions: | |
650 | # SysV /etc/install, /usr/sbin/install | |
651 | # SunOS /usr/etc/install | |
652 | # IRIX /sbin/install | |
653 | # AIX /bin/install | |
c3de2a19 | 654 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2f1fec47 ILT |
655 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
656 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
657 | # ./install, which can be erroneously created by make from ./install.sh. | |
658 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
15ec5eb3 | 659 | echo "configure:660: checking for a BSD compatible install" >&5 |
2f1fec47 ILT |
660 | if test -z "$INSTALL"; then |
661 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
662 | echo $ac_n "(cached) $ac_c" 1>&6 | |
663 | else | |
15ec5eb3 | 664 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
2f1fec47 ILT |
665 | for ac_dir in $PATH; do |
666 | # Account for people who put trailing slashes in PATH elements. | |
667 | case "$ac_dir/" in | |
668 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
669 | *) | |
670 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
c3de2a19 ILT |
671 | # Don't use installbsd from OSF since it installs stuff as root |
672 | # by default. | |
673 | for ac_prog in ginstall scoinst install; do | |
2f1fec47 ILT |
674 | if test -f $ac_dir/$ac_prog; then |
675 | if test $ac_prog = install && | |
676 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
677 | # AIX install. It has an incompatible calling convention. | |
2f1fec47 ILT |
678 | : |
679 | else | |
680 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
681 | break 2 | |
682 | fi | |
683 | fi | |
684 | done | |
685 | ;; | |
686 | esac | |
687 | done | |
688 | IFS="$ac_save_IFS" | |
689 | ||
690 | fi | |
691 | if test "${ac_cv_path_install+set}" = set; then | |
692 | INSTALL="$ac_cv_path_install" | |
693 | else | |
694 | # As a last resort, use the slow shell script. We don't cache a | |
695 | # path for INSTALL within a source directory, because that will | |
696 | # break other packages using the cache if that directory is | |
697 | # removed, or if the path is relative. | |
698 | INSTALL="$ac_install_sh" | |
699 | fi | |
700 | fi | |
701 | echo "$ac_t""$INSTALL" 1>&6 | |
702 | ||
703 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
704 | # It thinks the first close brace ends the variable substitution. | |
705 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
706 | ||
707 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
708 | ||
709 | ||
710 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
711 | ||
2f1fec47 | 712 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
15ec5eb3 | 713 | echo "configure:714: checking whether build environment is sane" >&5 |
2f1fec47 ILT |
714 | # Just in case |
715 | sleep 1 | |
716 | echo timestamp > conftestfile | |
717 | # Do `set' in a subshell so we don't clobber the current shell's | |
718 | # arguments. Must try -L first in case configure is actually a | |
719 | # symlink; some systems play weird games with the mod time of symlinks | |
720 | # (eg FreeBSD returns the mod time of the symlink's containing | |
721 | # directory). | |
722 | if ( | |
723 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
86884cd1 | 724 | if test "$*" = "X"; then |
2f1fec47 ILT |
725 | # -L didn't work. |
726 | set X `ls -t $srcdir/configure conftestfile` | |
727 | fi | |
86884cd1 ILT |
728 | if test "$*" != "X $srcdir/configure conftestfile" \ |
729 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
730 | ||
731 | # If neither matched, then we have a broken ls. This can happen | |
732 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
733 | # broken ls alias from the environment. This has actually | |
734 | # happened. Such a system could not be considered "sane". | |
735 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken | |
736 | alias in your environment" 1>&2; exit 1; } | |
737 | fi | |
738 | ||
2f1fec47 ILT |
739 | test "$2" = conftestfile |
740 | ) | |
741 | then | |
742 | # Ok. | |
743 | : | |
744 | else | |
745 | { echo "configure: error: newly created file is older than distributed files! | |
746 | Check your system clock" 1>&2; exit 1; } | |
747 | fi | |
748 | rm -f conftest* | |
749 | echo "$ac_t""yes" 1>&6 | |
750 | if test "$program_transform_name" = s,x,x,; then | |
751 | program_transform_name= | |
752 | else | |
753 | # Double any \ or $. echo might interpret backslashes. | |
754 | cat <<\EOF_SED > conftestsed | |
755 | s,\\,\\\\,g; s,\$,$$,g | |
756 | EOF_SED | |
757 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
758 | rm -f conftestsed | |
759 | fi | |
760 | test "$program_prefix" != NONE && | |
761 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
762 | # Use a double $ so make ignores it. | |
763 | test "$program_suffix" != NONE && | |
764 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
765 | ||
766 | # sed with no file args requires a program. | |
767 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
768 | ||
86884cd1 | 769 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
15ec5eb3 | 770 | echo "configure:771: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
86884cd1 ILT |
771 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
772 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
774 | else | |
775 | cat > conftestmake <<\EOF | |
776 | all: | |
777 | @echo 'ac_maketemp="${MAKE}"' | |
778 | EOF | |
779 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
780 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
781 | if test -n "$ac_maketemp"; then | |
782 | eval ac_cv_prog_make_${ac_make}_set=yes | |
783 | else | |
784 | eval ac_cv_prog_make_${ac_make}_set=no | |
785 | fi | |
786 | rm -f conftestmake | |
787 | fi | |
788 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
789 | echo "$ac_t""yes" 1>&6 | |
790 | SET_MAKE= | |
791 | else | |
792 | echo "$ac_t""no" 1>&6 | |
793 | SET_MAKE="MAKE=${MAKE-make}" | |
794 | fi | |
795 | ||
796 | ||
797 | PACKAGE=gprof | |
798 | ||
cc4f98f5 | 799 | VERSION=2.9.4 |
86884cd1 ILT |
800 | |
801 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
802 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | |
803 | fi | |
804 | cat >> confdefs.h <<EOF | |
805 | #define PACKAGE "$PACKAGE" | |
806 | EOF | |
807 | ||
808 | cat >> confdefs.h <<EOF | |
809 | #define VERSION "$VERSION" | |
810 | EOF | |
811 | ||
812 | ||
813 | ||
2f1fec47 ILT |
814 | missing_dir=`cd $ac_aux_dir && pwd` |
815 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 | |
15ec5eb3 | 816 | echo "configure:817: checking for working aclocal" >&5 |
2f1fec47 ILT |
817 | # Run test in a subshell; some versions of sh will print an error if |
818 | # an executable is not found, even if stderr is redirected. | |
50fb7977 ILT |
819 | # Redirect stdin to placate older versions of autoconf. Sigh. |
820 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
2f1fec47 ILT |
821 | ACLOCAL=aclocal |
822 | echo "$ac_t""found" 1>&6 | |
823 | else | |
824 | ACLOCAL="$missing_dir/missing aclocal" | |
825 | echo "$ac_t""missing" 1>&6 | |
826 | fi | |
827 | ||
828 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | |
15ec5eb3 | 829 | echo "configure:830: checking for working autoconf" >&5 |
2f1fec47 ILT |
830 | # Run test in a subshell; some versions of sh will print an error if |
831 | # an executable is not found, even if stderr is redirected. | |
50fb7977 ILT |
832 | # Redirect stdin to placate older versions of autoconf. Sigh. |
833 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
2f1fec47 ILT |
834 | AUTOCONF=autoconf |
835 | echo "$ac_t""found" 1>&6 | |
836 | else | |
837 | AUTOCONF="$missing_dir/missing autoconf" | |
838 | echo "$ac_t""missing" 1>&6 | |
839 | fi | |
840 | ||
841 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 | |
15ec5eb3 | 842 | echo "configure:843: checking for working automake" >&5 |
2f1fec47 ILT |
843 | # Run test in a subshell; some versions of sh will print an error if |
844 | # an executable is not found, even if stderr is redirected. | |
50fb7977 ILT |
845 | # Redirect stdin to placate older versions of autoconf. Sigh. |
846 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
2f1fec47 ILT |
847 | AUTOMAKE=automake |
848 | echo "$ac_t""found" 1>&6 | |
849 | else | |
850 | AUTOMAKE="$missing_dir/missing automake" | |
851 | echo "$ac_t""missing" 1>&6 | |
852 | fi | |
853 | ||
854 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | |
15ec5eb3 | 855 | echo "configure:856: checking for working autoheader" >&5 |
2f1fec47 ILT |
856 | # Run test in a subshell; some versions of sh will print an error if |
857 | # an executable is not found, even if stderr is redirected. | |
50fb7977 ILT |
858 | # Redirect stdin to placate older versions of autoconf. Sigh. |
859 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
2f1fec47 ILT |
860 | AUTOHEADER=autoheader |
861 | echo "$ac_t""found" 1>&6 | |
862 | else | |
863 | AUTOHEADER="$missing_dir/missing autoheader" | |
864 | echo "$ac_t""missing" 1>&6 | |
865 | fi | |
866 | ||
867 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | |
15ec5eb3 | 868 | echo "configure:869: checking for working makeinfo" >&5 |
2f1fec47 ILT |
869 | # Run test in a subshell; some versions of sh will print an error if |
870 | # an executable is not found, even if stderr is redirected. | |
50fb7977 ILT |
871 | # Redirect stdin to placate older versions of autoconf. Sigh. |
872 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
2f1fec47 ILT |
873 | MAKEINFO=makeinfo |
874 | echo "$ac_t""found" 1>&6 | |
875 | else | |
876 | MAKEINFO="$missing_dir/missing makeinfo" | |
877 | echo "$ac_t""missing" 1>&6 | |
878 | fi | |
879 | ||
86884cd1 ILT |
880 | |
881 | ||
882 | # Check whether --enable-shared or --disable-shared was given. | |
883 | if test "${enable_shared+set}" = set; then | |
884 | enableval="$enable_shared" | |
885 | p=${PACKAGE-default} | |
886 | case "$enableval" in | |
887 | yes) enable_shared=yes ;; | |
888 | no) enable_shared=no ;; | |
889 | *) | |
890 | enable_shared=no | |
891 | # Look at the argument we got. We use all the common list separators. | |
892 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
893 | for pkg in $enableval; do | |
894 | if test "X$pkg" = "X$p"; then | |
895 | enable_shared=yes | |
896 | fi | |
897 | done | |
898 | IFS="$ac_save_ifs" | |
899 | ;; | |
900 | esac | |
2f1fec47 | 901 | else |
86884cd1 | 902 | enable_shared=yes |
2f1fec47 | 903 | fi |
86884cd1 ILT |
904 | |
905 | # Check whether --enable-static or --disable-static was given. | |
906 | if test "${enable_static+set}" = set; then | |
907 | enableval="$enable_static" | |
908 | p=${PACKAGE-default} | |
909 | case "$enableval" in | |
910 | yes) enable_static=yes ;; | |
911 | no) enable_static=no ;; | |
912 | *) | |
913 | enable_static=no | |
914 | # Look at the argument we got. We use all the common list separators. | |
915 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
916 | for pkg in $enableval; do | |
917 | if test "X$pkg" = "X$p"; then | |
918 | enable_static=yes | |
919 | fi | |
920 | done | |
921 | IFS="$ac_save_ifs" | |
922 | ;; | |
923 | esac | |
2f1fec47 | 924 | else |
86884cd1 | 925 | enable_static=yes |
2f1fec47 ILT |
926 | fi |
927 | ||
fa1a1b32 ILT |
928 | # Extract the first word of "ranlib", so it can be a program name with args. |
929 | set dummy ranlib; ac_word=$2 | |
930 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
15ec5eb3 | 931 | echo "configure:932: checking for $ac_word" >&5 |
fa1a1b32 ILT |
932 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
933 | echo $ac_n "(cached) $ac_c" 1>&6 | |
934 | else | |
935 | if test -n "$RANLIB"; then | |
936 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
937 | else | |
15ec5eb3 | 938 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
fa1a1b32 ILT |
939 | for ac_dir in $PATH; do |
940 | test -z "$ac_dir" && ac_dir=. | |
941 | if test -f $ac_dir/$ac_word; then | |
942 | ac_cv_prog_RANLIB="ranlib" | |
943 | break | |
944 | fi | |
945 | done | |
946 | IFS="$ac_save_ifs" | |
947 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
948 | fi | |
949 | fi | |
950 | RANLIB="$ac_cv_prog_RANLIB" | |
951 | if test -n "$RANLIB"; then | |
952 | echo "$ac_t""$RANLIB" 1>&6 | |
953 | else | |
954 | echo "$ac_t""no" 1>&6 | |
955 | fi | |
956 | ||
7858d8dc C |
957 | # Extract the first word of "gcc", so it can be a program name with args. |
958 | set dummy gcc; ac_word=$2 | |
959 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
15ec5eb3 | 960 | echo "configure:961: checking for $ac_word" >&5 |
7858d8dc C |
961 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
962 | echo $ac_n "(cached) $ac_c" 1>&6 | |
963 | else | |
964 | if test -n "$CC"; then | |
965 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
966 | else | |
15ec5eb3 | 967 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7858d8dc C |
968 | for ac_dir in $PATH; do |
969 | test -z "$ac_dir" && ac_dir=. | |
970 | if test -f $ac_dir/$ac_word; then | |
971 | ac_cv_prog_CC="gcc" | |
972 | break | |
973 | fi | |
974 | done | |
975 | IFS="$ac_save_ifs" | |
7858d8dc C |
976 | fi |
977 | fi | |
978 | CC="$ac_cv_prog_CC" | |
979 | if test -n "$CC"; then | |
980 | echo "$ac_t""$CC" 1>&6 | |
981 | else | |
982 | echo "$ac_t""no" 1>&6 | |
983 | fi | |
984 | ||
ea2488ad ILT |
985 | if test -z "$CC"; then |
986 | # Extract the first word of "cc", so it can be a program name with args. | |
987 | set dummy cc; ac_word=$2 | |
988 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
15ec5eb3 | 989 | echo "configure:990: checking for $ac_word" >&5 |
ea2488ad ILT |
990 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
991 | echo $ac_n "(cached) $ac_c" 1>&6 | |
992 | else | |
993 | if test -n "$CC"; then | |
994 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
995 | else | |
15ec5eb3 | 996 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
ea2488ad ILT |
997 | ac_prog_rejected=no |
998 | for ac_dir in $PATH; do | |
999 | test -z "$ac_dir" && ac_dir=. | |
1000 | if test -f $ac_dir/$ac_word; then | |
1001 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1002 | ac_prog_rejected=yes | |
1003 | continue | |
1004 | fi | |
1005 | ac_cv_prog_CC="cc" | |
1006 | break | |
1007 | fi | |
1008 | done | |
1009 | IFS="$ac_save_ifs" | |
1010 | if test $ac_prog_rejected = yes; then | |
1011 | # We found a bogon in the path, so make sure we never use it. | |
1012 | set dummy $ac_cv_prog_CC | |
1013 | shift | |
1014 | if test $# -gt 0; then | |
1015 | # We chose a different compiler from the bogus one. | |
1016 | # However, it has the same basename, so the bogon will be chosen | |
1017 | # first if we set CC to just the basename; use the full file name. | |
1018 | shift | |
1019 | set dummy "$ac_dir/$ac_word" "$@" | |
1020 | shift | |
1021 | ac_cv_prog_CC="$@" | |
1022 | fi | |
1023 | fi | |
1024 | fi | |
1025 | fi | |
1026 | CC="$ac_cv_prog_CC" | |
1027 | if test -n "$CC"; then | |
1028 | echo "$ac_t""$CC" 1>&6 | |
1029 | else | |
1030 | echo "$ac_t""no" 1>&6 | |
1031 | fi | |
1032 | ||
15ec5eb3 ILT |
1033 | if test -z "$CC"; then |
1034 | case "`uname -s`" in | |
1035 | *win32* | *WIN32*) | |
1036 | # Extract the first word of "cl", so it can be a program name with args. | |
1037 | set dummy cl; ac_word=$2 | |
1038 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1039 | echo "configure:1040: checking for $ac_word" >&5 | |
1040 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
1041 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1042 | else | |
1043 | if test -n "$CC"; then | |
1044 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1045 | else | |
1046 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1047 | for ac_dir in $PATH; do | |
1048 | test -z "$ac_dir" && ac_dir=. | |
1049 | if test -f $ac_dir/$ac_word; then | |
1050 | ac_cv_prog_CC="cl" | |
1051 | break | |
1052 | fi | |
1053 | done | |
1054 | IFS="$ac_save_ifs" | |
1055 | fi | |
1056 | fi | |
1057 | CC="$ac_cv_prog_CC" | |
1058 | if test -n "$CC"; then | |
1059 | echo "$ac_t""$CC" 1>&6 | |
1060 | else | |
1061 | echo "$ac_t""no" 1>&6 | |
1062 | fi | |
1063 | ;; | |
1064 | esac | |
1065 | fi | |
ea2488ad ILT |
1066 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1067 | fi | |
7858d8dc | 1068 | |
4947b15f | 1069 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
15ec5eb3 | 1070 | echo "configure:1071: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
4947b15f ILT |
1071 | |
1072 | ac_ext=c | |
1073 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1074 | ac_cpp='$CPP $CPPFLAGS' | |
1075 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15ec5eb3 | 1076 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
4947b15f ILT |
1077 | cross_compiling=$ac_cv_prog_cc_cross |
1078 | ||
1079 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 1080 | #line 1081 "configure" |
4947b15f ILT |
1081 | #include "confdefs.h" |
1082 | main(){return(0);} | |
1083 | EOF | |
15ec5eb3 | 1084 | if { (eval echo configure:1085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4947b15f ILT |
1085 | ac_cv_prog_cc_works=yes |
1086 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1087 | if (./conftest; exit) 2>/dev/null; then | |
1088 | ac_cv_prog_cc_cross=no | |
1089 | else | |
1090 | ac_cv_prog_cc_cross=yes | |
1091 | fi | |
1092 | else | |
1093 | echo "configure: failed program was:" >&5 | |
1094 | cat conftest.$ac_ext >&5 | |
1095 | ac_cv_prog_cc_works=no | |
1096 | fi | |
1097 | rm -fr conftest* | |
1098 | ||
1099 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1100 | if test $ac_cv_prog_cc_works = no; then | |
1101 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1102 | fi | |
1103 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
15ec5eb3 | 1104 | echo "configure:1105: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
4947b15f ILT |
1105 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1106 | cross_compiling=$ac_cv_prog_cc_cross | |
1107 | ||
7858d8dc | 1108 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
15ec5eb3 | 1109 | echo "configure:1110: checking whether we are using GNU C" >&5 |
7858d8dc C |
1110 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1111 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1112 | else | |
1113 | cat > conftest.c <<EOF | |
1114 | #ifdef __GNUC__ | |
1115 | yes; | |
1116 | #endif | |
1117 | EOF | |
15ec5eb3 | 1118 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
7858d8dc C |
1119 | ac_cv_prog_gcc=yes |
1120 | else | |
1121 | ac_cv_prog_gcc=no | |
1122 | fi | |
1123 | fi | |
ba8e3a2e | 1124 | |
7858d8dc | 1125 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
4947b15f | 1126 | |
7858d8dc C |
1127 | if test $ac_cv_prog_gcc = yes; then |
1128 | GCC=yes | |
15ec5eb3 ILT |
1129 | else |
1130 | GCC= | |
1131 | fi | |
1132 | ||
1133 | ac_test_CFLAGS="${CFLAGS+set}" | |
1134 | ac_save_CFLAGS="$CFLAGS" | |
1135 | CFLAGS= | |
1136 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
1137 | echo "configure:1138: checking whether ${CC-cc} accepts -g" >&5 | |
4947b15f | 1138 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
7858d8dc C |
1139 | echo $ac_n "(cached) $ac_c" 1>&6 |
1140 | else | |
1141 | echo 'void f(){}' > conftest.c | |
1142 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
4947b15f | 1143 | ac_cv_prog_cc_g=yes |
7858d8dc | 1144 | else |
4947b15f | 1145 | ac_cv_prog_cc_g=no |
7858d8dc C |
1146 | fi |
1147 | rm -f conftest* | |
1148 | ||
1149 | fi | |
ba8e3a2e | 1150 | |
4947b15f | 1151 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
15ec5eb3 ILT |
1152 | if test "$ac_test_CFLAGS" = set; then |
1153 | CFLAGS="$ac_save_CFLAGS" | |
1154 | elif test $ac_cv_prog_cc_g = yes; then | |
1155 | if test "$GCC" = yes; then | |
4947b15f ILT |
1156 | CFLAGS="-g -O2" |
1157 | else | |
15ec5eb3 | 1158 | CFLAGS="-g" |
7858d8dc C |
1159 | fi |
1160 | else | |
15ec5eb3 ILT |
1161 | if test "$GCC" = yes; then |
1162 | CFLAGS="-O2" | |
1163 | else | |
1164 | CFLAGS= | |
1165 | fi | |
7858d8dc C |
1166 | fi |
1167 | ||
274e44ae ILT |
1168 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
1169 | if test "${with_gnu_ld+set}" = set; then | |
1170 | withval="$with_gnu_ld" | |
1171 | test "$withval" = no || with_gnu_ld=yes | |
1172 | else | |
1173 | with_gnu_ld=no | |
39c3964f | 1174 | fi |
274e44ae | 1175 | |
fa1a1b32 ILT |
1176 | |
1177 | ac_prog=ld | |
1178 | if test "$ac_cv_prog_gcc" = yes; then | |
1179 | # Check if gcc -print-prog-name=ld gives a path. | |
1180 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | |
15ec5eb3 | 1181 | echo "configure:1182: checking for ld used by GCC" >&5 |
fa1a1b32 ILT |
1182 | ac_prog=`($CC -print-prog-name=ld) 2>&5` |
1183 | case "$ac_prog" in | |
1184 | # Accept absolute paths. | |
86884cd1 | 1185 | /* | [A-Za-z]:\\*) |
fa1a1b32 ILT |
1186 | test -z "$LD" && LD="$ac_prog" |
1187 | ;; | |
1188 | "") | |
1189 | # If it fails, then pretend we aren't using GCC. | |
1190 | ac_prog=ld | |
1191 | ;; | |
1192 | *) | |
1193 | # If it is relative, then search for the first ld in PATH. | |
1194 | with_gnu_ld=unknown | |
1195 | ;; | |
1196 | esac | |
1197 | elif test "$with_gnu_ld" = yes; then | |
274e44ae | 1198 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
15ec5eb3 | 1199 | echo "configure:1200: checking for GNU ld" >&5 |
274e44ae ILT |
1200 | else |
1201 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | |
15ec5eb3 | 1202 | echo "configure:1203: checking for non-GNU ld" >&5 |
274e44ae ILT |
1203 | fi |
1204 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then | |
1205 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1206 | else | |
fa1a1b32 | 1207 | if test -z "$LD"; then |
274e44ae ILT |
1208 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
1209 | for ac_dir in $PATH; do | |
1210 | test -z "$ac_dir" && ac_dir=. | |
fa1a1b32 ILT |
1211 | if test -f "$ac_dir/$ac_prog"; then |
1212 | ac_cv_path_LD="$ac_dir/$ac_prog" | |
274e44ae ILT |
1213 | # Check to see if the program is GNU ld. I'd rather use --version, |
1214 | # but apparently some GNU ld's only accept -v. | |
1215 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
fa1a1b32 ILT |
1216 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
1217 | test "$with_gnu_ld" != no && break | |
274e44ae ILT |
1218 | else |
1219 | test "$with_gnu_ld" != yes && break | |
1220 | fi | |
1221 | fi | |
1222 | done | |
1223 | IFS="$ac_save_ifs" | |
fa1a1b32 | 1224 | else |
42a62317 | 1225 | ac_cv_path_LD="$LD" # Let the user override the test with a path. |
fa1a1b32 | 1226 | fi |
274e44ae ILT |
1227 | fi |
1228 | ||
1229 | LD="$ac_cv_path_LD" | |
1230 | if test -n "$LD"; then | |
1231 | echo "$ac_t""$LD" 1>&6 | |
1232 | else | |
1233 | echo "$ac_t""no" 1>&6 | |
1234 | fi | |
1235 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | |
1236 | ||
fa1a1b32 | 1237 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
15ec5eb3 | 1238 | echo "configure:1239: checking if the linker ($LD) is GNU ld" >&5 |
274e44ae ILT |
1239 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
1240 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1241 | else | |
1242 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
fa1a1b32 | 1243 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
274e44ae ILT |
1244 | ac_cv_prog_gnu_ld=yes |
1245 | else | |
1246 | ac_cv_prog_gnu_ld=no | |
1247 | fi | |
1248 | fi | |
1249 | ||
1250 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 | |
1251 | ||
1252 | ||
fa1a1b32 | 1253 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
15ec5eb3 | 1254 | echo "configure:1255: checking for BSD-compatible nm" >&5 |
fa1a1b32 ILT |
1255 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
1256 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1257 | else | |
15ec5eb3 ILT |
1258 | if test -n "$NM"; then |
1259 | # Let the user override the test. | |
1260 | ac_cv_path_NM="$NM" | |
1261 | else | |
fa1a1b32 ILT |
1262 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
1263 | for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do | |
86884cd1 | 1264 | test -z "$ac_dir" && ac_dir=. |
fa1a1b32 ILT |
1265 | if test -f $ac_dir/nm; then |
1266 | # Check to see if the nm accepts a BSD-compat flag. | |
86884cd1 | 1267 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
fa1a1b32 | 1268 | # nm: unknown option "B" ignored |
86884cd1 | 1269 | if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
fa1a1b32 | 1270 | ac_cv_path_NM="$ac_dir/nm -B" |
86884cd1 | 1271 | elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
fa1a1b32 ILT |
1272 | ac_cv_path_NM="$ac_dir/nm -p" |
1273 | else | |
1274 | ac_cv_path_NM="$ac_dir/nm" | |
1275 | fi | |
1276 | break | |
1277 | fi | |
1278 | done | |
1279 | IFS="$ac_save_ifs" | |
1280 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm | |
16a02269 | 1281 | fi |
fa1a1b32 ILT |
1282 | fi |
1283 | ||
1284 | NM="$ac_cv_path_NM" | |
1285 | echo "$ac_t""$NM" 1>&6 | |
1286 | ||
1287 | ||
274e44ae | 1288 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
15ec5eb3 | 1289 | echo "configure:1290: checking whether ln -s works" >&5 |
274e44ae ILT |
1290 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1291 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1292 | else | |
1293 | rm -f conftestdata | |
1294 | if ln -s X conftestdata 2>/dev/null | |
1295 | then | |
1296 | rm -f conftestdata | |
1297 | ac_cv_prog_LN_S="ln -s" | |
1298 | else | |
1299 | ac_cv_prog_LN_S=ln | |
1300 | fi | |
1301 | fi | |
1302 | LN_S="$ac_cv_prog_LN_S" | |
1303 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1304 | echo "$ac_t""yes" 1>&6 | |
1305 | else | |
1306 | echo "$ac_t""no" 1>&6 | |
1307 | fi | |
1308 | ||
16a02269 TT |
1309 | if test $host != $build; then |
1310 | ac_tool_prefix=${host_alias}- | |
1311 | else | |
1312 | ac_tool_prefix= | |
1313 | fi | |
1314 | ||
274e44ae | 1315 | # Always use our own libtool. |
c3de2a19 | 1316 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
274e44ae | 1317 | |
86884cd1 ILT |
1318 | # Check for any special flags to pass to ltconfig. |
1319 | libtool_flags= | |
1320 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
1321 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
274e44ae ILT |
1322 | test "$silent" = yes && libtool_flags="$libtool_flags --silent" |
1323 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" | |
1324 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
1325 | ||
1326 | # Some flags need to be propagated to the compiler or linker for good | |
1327 | # libtool support. | |
1328 | case "$host" in | |
86884cd1 | 1329 | *-*-irix6*) |
641146fe | 1330 | # Find out which ABI we are using. |
15ec5eb3 ILT |
1331 | echo '#line 1332 "configure"' > conftest.$ac_ext |
1332 | if { (eval echo configure:1333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
641146fe ILT |
1333 | case "`/usr/bin/file conftest.o`" in |
1334 | *32-bit*) | |
1335 | LD="${LD-ld} -32" | |
fa1a1b32 | 1336 | ;; |
641146fe ILT |
1337 | *N32*) |
1338 | LD="${LD-ld} -n32" | |
1339 | ;; | |
1340 | *64-bit*) | |
1341 | LD="${LD-ld} -64" | |
fa1a1b32 ILT |
1342 | ;; |
1343 | esac | |
641146fe ILT |
1344 | fi |
1345 | rm -rf conftest* | |
274e44ae ILT |
1346 | ;; |
1347 | ||
1348 | *-*-sco3.2v5*) | |
1349 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
1350 | CFLAGS="$CFLAGS -belf" | |
1351 | ;; | |
16a02269 TT |
1352 | |
1353 | *-*-cygwin32*) | |
1354 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
1355 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
1356 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
15ec5eb3 | 1357 | echo "configure:1358: checking for $ac_word" >&5 |
16a02269 TT |
1358 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then |
1359 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1360 | else | |
1361 | if test -n "$DLLTOOL"; then | |
1362 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
1363 | else | |
15ec5eb3 | 1364 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16a02269 TT |
1365 | for ac_dir in $PATH; do |
1366 | test -z "$ac_dir" && ac_dir=. | |
1367 | if test -f $ac_dir/$ac_word; then | |
1368 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
1369 | break | |
1370 | fi | |
1371 | done | |
1372 | IFS="$ac_save_ifs" | |
1373 | fi | |
1374 | fi | |
1375 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
1376 | if test -n "$DLLTOOL"; then | |
1377 | echo "$ac_t""$DLLTOOL" 1>&6 | |
1378 | else | |
1379 | echo "$ac_t""no" 1>&6 | |
1380 | fi | |
1381 | ||
1382 | ||
1383 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
1384 | if test -n "$ac_tool_prefix"; then | |
1385 | # Extract the first word of "dlltool", so it can be a program name with args. | |
1386 | set dummy dlltool; ac_word=$2 | |
1387 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
15ec5eb3 | 1388 | echo "configure:1389: checking for $ac_word" >&5 |
16a02269 TT |
1389 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then |
1390 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1391 | else | |
1392 | if test -n "$DLLTOOL"; then | |
1393 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
1394 | else | |
15ec5eb3 | 1395 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16a02269 TT |
1396 | for ac_dir in $PATH; do |
1397 | test -z "$ac_dir" && ac_dir=. | |
1398 | if test -f $ac_dir/$ac_word; then | |
1399 | ac_cv_prog_DLLTOOL="dlltool" | |
1400 | break | |
1401 | fi | |
1402 | done | |
1403 | IFS="$ac_save_ifs" | |
1404 | test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false" | |
1405 | fi | |
1406 | fi | |
1407 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
1408 | if test -n "$DLLTOOL"; then | |
1409 | echo "$ac_t""$DLLTOOL" 1>&6 | |
1410 | else | |
1411 | echo "$ac_t""no" 1>&6 | |
1412 | fi | |
1413 | ||
1414 | else | |
1415 | DLLTOOL="false" | |
1416 | fi | |
1417 | fi | |
1418 | ||
1419 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
1420 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
1421 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
15ec5eb3 | 1422 | echo "configure:1423: checking for $ac_word" >&5 |
16a02269 TT |
1423 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then |
1424 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1425 | else | |
1426 | if test -n "$AS"; then | |
1427 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
1428 | else | |
15ec5eb3 | 1429 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16a02269 TT |
1430 | for ac_dir in $PATH; do |
1431 | test -z "$ac_dir" && ac_dir=. | |
1432 | if test -f $ac_dir/$ac_word; then | |
1433 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
1434 | break | |
1435 | fi | |
1436 | done | |
1437 | IFS="$ac_save_ifs" | |
1438 | fi | |
1439 | fi | |
1440 | AS="$ac_cv_prog_AS" | |
1441 | if test -n "$AS"; then | |
1442 | echo "$ac_t""$AS" 1>&6 | |
1443 | else | |
1444 | echo "$ac_t""no" 1>&6 | |
1445 | fi | |
1446 | ||
1447 | ||
1448 | if test -z "$ac_cv_prog_AS"; then | |
1449 | if test -n "$ac_tool_prefix"; then | |
1450 | # Extract the first word of "as", so it can be a program name with args. | |
1451 | set dummy as; ac_word=$2 | |
1452 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
15ec5eb3 | 1453 | echo "configure:1454: checking for $ac_word" >&5 |
16a02269 TT |
1454 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then |
1455 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1456 | else | |
1457 | if test -n "$AS"; then | |
1458 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
1459 | else | |
15ec5eb3 | 1460 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16a02269 TT |
1461 | for ac_dir in $PATH; do |
1462 | test -z "$ac_dir" && ac_dir=. | |
1463 | if test -f $ac_dir/$ac_word; then | |
1464 | ac_cv_prog_AS="as" | |
1465 | break | |
1466 | fi | |
1467 | done | |
1468 | IFS="$ac_save_ifs" | |
1469 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false" | |
1470 | fi | |
1471 | fi | |
1472 | AS="$ac_cv_prog_AS" | |
1473 | if test -n "$AS"; then | |
1474 | echo "$ac_t""$AS" 1>&6 | |
1475 | else | |
1476 | echo "$ac_t""no" 1>&6 | |
1477 | fi | |
1478 | ||
1479 | else | |
1480 | AS="false" | |
1481 | fi | |
1482 | fi | |
1483 | ||
1484 | ||
1485 | ;; | |
1486 | ||
274e44ae ILT |
1487 | esac |
1488 | ||
1489 | # Actually configure libtool. ac_aux_dir is where install-sh is found. | |
1490 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
fa1a1b32 | 1491 | LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \ |
16a02269 | 1492 | DLLTOOL="$DLLTOOL" AS="$AS" \ |
15ec5eb3 | 1493 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
274e44ae ILT |
1494 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ |
1495 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } | |
1496 | ||
15ec5eb3 ILT |
1497 | # Redirect the config.log output again, so that the ltconfig log is not |
1498 | # clobbered by the next message. | |
1499 | exec 5>>./config.log | |
1500 | ||
274e44ae ILT |
1501 | |
1502 | ||
1503 | ||
1504 | ||
1505 | ||
1506 | # Extract the first word of "gcc", so it can be a program name with args. | |
1507 | set dummy gcc; ac_word=$2 | |
1508 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
15ec5eb3 | 1509 | echo "configure:1510: checking for $ac_word" >&5 |
274e44ae ILT |
1510 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1511 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1512 | else | |
1513 | if test -n "$CC"; then | |
1514 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1515 | else | |
15ec5eb3 | 1516 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
274e44ae ILT |
1517 | for ac_dir in $PATH; do |
1518 | test -z "$ac_dir" && ac_dir=. | |
1519 | if test -f $ac_dir/$ac_word; then | |
1520 | ac_cv_prog_CC="gcc" | |
1521 | break | |
1522 | fi | |
1523 | done | |
1524 | IFS="$ac_save_ifs" | |
1525 | fi | |
1526 | fi | |
1527 | CC="$ac_cv_prog_CC" | |
1528 | if test -n "$CC"; then | |
1529 | echo "$ac_t""$CC" 1>&6 | |
1530 | else | |
1531 | echo "$ac_t""no" 1>&6 | |
1532 | fi | |
1533 | ||
1534 | if test -z "$CC"; then | |
1535 | # Extract the first word of "cc", so it can be a program name with args. | |
1536 | set dummy cc; ac_word=$2 | |
1537 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
15ec5eb3 | 1538 | echo "configure:1539: checking for $ac_word" >&5 |
274e44ae ILT |
1539 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1540 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1541 | else | |
1542 | if test -n "$CC"; then | |
1543 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1544 | else | |
15ec5eb3 | 1545 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
274e44ae ILT |
1546 | ac_prog_rejected=no |
1547 | for ac_dir in $PATH; do | |
1548 | test -z "$ac_dir" && ac_dir=. | |
1549 | if test -f $ac_dir/$ac_word; then | |
1550 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1551 | ac_prog_rejected=yes | |
1552 | continue | |
1553 | fi | |
1554 | ac_cv_prog_CC="cc" | |
1555 | break | |
1556 | fi | |
1557 | done | |
1558 | IFS="$ac_save_ifs" | |
1559 | if test $ac_prog_rejected = yes; then | |
1560 | # We found a bogon in the path, so make sure we never use it. | |
1561 | set dummy $ac_cv_prog_CC | |
1562 | shift | |
1563 | if test $# -gt 0; then | |
1564 | # We chose a different compiler from the bogus one. | |
1565 | # However, it has the same basename, so the bogon will be chosen | |
1566 | # first if we set CC to just the basename; use the full file name. | |
1567 | shift | |
1568 | set dummy "$ac_dir/$ac_word" "$@" | |
1569 | shift | |
1570 | ac_cv_prog_CC="$@" | |
1571 | fi | |
1572 | fi | |
1573 | fi | |
1574 | fi | |
1575 | CC="$ac_cv_prog_CC" | |
1576 | if test -n "$CC"; then | |
1577 | echo "$ac_t""$CC" 1>&6 | |
1578 | else | |
1579 | echo "$ac_t""no" 1>&6 | |
1580 | fi | |
1581 | ||
15ec5eb3 ILT |
1582 | if test -z "$CC"; then |
1583 | case "`uname -s`" in | |
1584 | *win32* | *WIN32*) | |
1585 | # Extract the first word of "cl", so it can be a program name with args. | |
1586 | set dummy cl; ac_word=$2 | |
1587 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1588 | echo "configure:1589: checking for $ac_word" >&5 | |
1589 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
1590 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1591 | else | |
1592 | if test -n "$CC"; then | |
1593 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1594 | else | |
1595 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1596 | for ac_dir in $PATH; do | |
1597 | test -z "$ac_dir" && ac_dir=. | |
1598 | if test -f $ac_dir/$ac_word; then | |
1599 | ac_cv_prog_CC="cl" | |
1600 | break | |
1601 | fi | |
1602 | done | |
1603 | IFS="$ac_save_ifs" | |
1604 | fi | |
1605 | fi | |
1606 | CC="$ac_cv_prog_CC" | |
1607 | if test -n "$CC"; then | |
1608 | echo "$ac_t""$CC" 1>&6 | |
1609 | else | |
1610 | echo "$ac_t""no" 1>&6 | |
1611 | fi | |
1612 | ;; | |
1613 | esac | |
1614 | fi | |
274e44ae ILT |
1615 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1616 | fi | |
1617 | ||
1618 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
15ec5eb3 | 1619 | echo "configure:1620: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
274e44ae ILT |
1620 | |
1621 | ac_ext=c | |
1622 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1623 | ac_cpp='$CPP $CPPFLAGS' | |
1624 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15ec5eb3 | 1625 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
274e44ae ILT |
1626 | cross_compiling=$ac_cv_prog_cc_cross |
1627 | ||
1628 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 1629 | #line 1630 "configure" |
274e44ae ILT |
1630 | #include "confdefs.h" |
1631 | main(){return(0);} | |
1632 | EOF | |
15ec5eb3 | 1633 | if { (eval echo configure:1634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
274e44ae ILT |
1634 | ac_cv_prog_cc_works=yes |
1635 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1636 | if (./conftest; exit) 2>/dev/null; then | |
1637 | ac_cv_prog_cc_cross=no | |
39c3964f | 1638 | else |
274e44ae | 1639 | ac_cv_prog_cc_cross=yes |
39c3964f | 1640 | fi |
274e44ae ILT |
1641 | else |
1642 | echo "configure: failed program was:" >&5 | |
1643 | cat conftest.$ac_ext >&5 | |
1644 | ac_cv_prog_cc_works=no | |
39c3964f | 1645 | fi |
274e44ae | 1646 | rm -fr conftest* |
39c3964f | 1647 | |
274e44ae ILT |
1648 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1649 | if test $ac_cv_prog_cc_works = no; then | |
1650 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1651 | fi | |
1652 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
15ec5eb3 | 1653 | echo "configure:1654: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
274e44ae ILT |
1654 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1655 | cross_compiling=$ac_cv_prog_cc_cross | |
39c3964f | 1656 | |
274e44ae | 1657 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
15ec5eb3 | 1658 | echo "configure:1659: checking whether we are using GNU C" >&5 |
274e44ae ILT |
1659 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1660 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1661 | else | |
1662 | cat > conftest.c <<EOF | |
1663 | #ifdef __GNUC__ | |
1664 | yes; | |
1665 | #endif | |
1666 | EOF | |
15ec5eb3 | 1667 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
274e44ae ILT |
1668 | ac_cv_prog_gcc=yes |
1669 | else | |
1670 | ac_cv_prog_gcc=no | |
1671 | fi | |
1672 | fi | |
1673 | ||
1674 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1675 | ||
1676 | if test $ac_cv_prog_gcc = yes; then | |
1677 | GCC=yes | |
15ec5eb3 ILT |
1678 | else |
1679 | GCC= | |
1680 | fi | |
1681 | ||
1682 | ac_test_CFLAGS="${CFLAGS+set}" | |
1683 | ac_save_CFLAGS="$CFLAGS" | |
1684 | CFLAGS= | |
1685 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
1686 | echo "configure:1687: checking whether ${CC-cc} accepts -g" >&5 | |
274e44ae ILT |
1687 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1688 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1689 | else | |
1690 | echo 'void f(){}' > conftest.c | |
1691 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1692 | ac_cv_prog_cc_g=yes | |
1693 | else | |
1694 | ac_cv_prog_cc_g=no | |
1695 | fi | |
1696 | rm -f conftest* | |
1697 | ||
1698 | fi | |
1699 | ||
1700 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
15ec5eb3 ILT |
1701 | if test "$ac_test_CFLAGS" = set; then |
1702 | CFLAGS="$ac_save_CFLAGS" | |
1703 | elif test $ac_cv_prog_cc_g = yes; then | |
1704 | if test "$GCC" = yes; then | |
274e44ae ILT |
1705 | CFLAGS="-g -O2" |
1706 | else | |
15ec5eb3 | 1707 | CFLAGS="-g" |
274e44ae ILT |
1708 | fi |
1709 | else | |
15ec5eb3 ILT |
1710 | if test "$GCC" = yes; then |
1711 | CFLAGS="-O2" | |
1712 | else | |
1713 | CFLAGS= | |
1714 | fi | |
274e44ae ILT |
1715 | fi |
1716 | ||
1717 | ||
1718 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
39c3964f JM |
1719 | |
1720 | ||
e3c0e00b | 1721 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
15ec5eb3 | 1722 | echo "configure:1723: checking for POSIXized ISC" >&5 |
e3c0e00b ILT |
1723 | if test -d /etc/conf/kconfig.d && |
1724 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 | |
1725 | then | |
1726 | echo "$ac_t""yes" 1>&6 | |
1727 | ISC=yes # If later tests want to check for ISC. | |
1728 | cat >> confdefs.h <<\EOF | |
1729 | #define _POSIX_SOURCE 1 | |
1730 | EOF | |
1731 | ||
1732 | if test "$GCC" = yes; then | |
1733 | CC="$CC -posix" | |
1734 | else | |
1735 | CC="$CC -Xp" | |
1736 | fi | |
1737 | else | |
1738 | echo "$ac_t""no" 1>&6 | |
1739 | ISC= | |
1740 | fi | |
1741 | ||
1742 | ||
16a02269 TT |
1743 | ALL_LINGUAS= |
1744 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
15ec5eb3 | 1745 | echo "configure:1746: checking how to run the C preprocessor" >&5 |
16a02269 TT |
1746 | # On Suns, sometimes $CPP names a directory. |
1747 | if test -n "$CPP" && test -d "$CPP"; then | |
1748 | CPP= | |
1749 | fi | |
1750 | if test -z "$CPP"; then | |
1751 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1752 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1753 | else | |
1754 | # This must be in double quotes, not single quotes, because CPP may get | |
1755 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1756 | CPP="${CC-cc} -E" | |
1757 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1758 | # not just through cpp. | |
1759 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 1760 | #line 1761 "configure" |
16a02269 TT |
1761 | #include "confdefs.h" |
1762 | #include <assert.h> | |
1763 | Syntax Error | |
22395d7e | 1764 | EOF |
16a02269 | 1765 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
15ec5eb3 ILT |
1766 | { (eval echo configure:1767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1767 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
16a02269 TT |
1768 | if test -z "$ac_err"; then |
1769 | : | |
2f1fec47 | 1770 | else |
16a02269 TT |
1771 | echo "$ac_err" >&5 |
1772 | echo "configure: failed program was:" >&5 | |
1773 | cat conftest.$ac_ext >&5 | |
1774 | rm -rf conftest* | |
1775 | CPP="${CC-cc} -E -traditional-cpp" | |
1776 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 ILT |
1777 | #line 1778 "configure" |
1778 | #include "confdefs.h" | |
1779 | #include <assert.h> | |
1780 | Syntax Error | |
1781 | EOF | |
1782 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1783 | { (eval echo configure:1784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1784 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
1785 | if test -z "$ac_err"; then | |
1786 | : | |
1787 | else | |
1788 | echo "$ac_err" >&5 | |
1789 | echo "configure: failed program was:" >&5 | |
1790 | cat conftest.$ac_ext >&5 | |
1791 | rm -rf conftest* | |
1792 | CPP="${CC-cc} -nologo -E" | |
1793 | cat > conftest.$ac_ext <<EOF | |
1794 | #line 1795 "configure" | |
16a02269 TT |
1795 | #include "confdefs.h" |
1796 | #include <assert.h> | |
1797 | Syntax Error | |
1798 | EOF | |
1799 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
15ec5eb3 ILT |
1800 | { (eval echo configure:1801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1801 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
16a02269 TT |
1802 | if test -z "$ac_err"; then |
1803 | : | |
1804 | else | |
1805 | echo "$ac_err" >&5 | |
1806 | echo "configure: failed program was:" >&5 | |
1807 | cat conftest.$ac_ext >&5 | |
1808 | rm -rf conftest* | |
1809 | CPP=/lib/cpp | |
2f1fec47 | 1810 | fi |
16a02269 TT |
1811 | rm -f conftest* |
1812 | fi | |
15ec5eb3 ILT |
1813 | rm -f conftest* |
1814 | fi | |
16a02269 TT |
1815 | rm -f conftest* |
1816 | ac_cv_prog_CPP="$CPP" | |
1817 | fi | |
1818 | CPP="$ac_cv_prog_CPP" | |
1819 | else | |
1820 | ac_cv_prog_CPP="$CPP" | |
1821 | fi | |
1822 | echo "$ac_t""$CPP" 1>&6 | |
2f1fec47 | 1823 | |
16a02269 | 1824 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
15ec5eb3 | 1825 | echo "configure:1826: checking for ANSI C header files" >&5 |
16a02269 | 1826 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2f1fec47 ILT |
1827 | echo $ac_n "(cached) $ac_c" 1>&6 |
1828 | else | |
274e44ae | 1829 | cat > conftest.$ac_ext <<EOF |
15ec5eb3 | 1830 | #line 1831 "configure" |
274e44ae | 1831 | #include "confdefs.h" |
16a02269 TT |
1832 | #include <stdlib.h> |
1833 | #include <stdarg.h> | |
1834 | #include <string.h> | |
1835 | #include <float.h> | |
2f1fec47 | 1836 | EOF |
16a02269 | 1837 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
15ec5eb3 ILT |
1838 | { (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1839 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
16a02269 | 1840 | if test -z "$ac_err"; then |
274e44ae | 1841 | rm -rf conftest* |
16a02269 | 1842 | ac_cv_header_stdc=yes |
2f1fec47 | 1843 | else |
16a02269 | 1844 | echo "$ac_err" >&5 |
274e44ae ILT |
1845 | echo "configure: failed program was:" >&5 |
1846 | cat conftest.$ac_ext >&5 | |
1847 | rm -rf conftest* | |
16a02269 TT |
1848 | ac_cv_header_stdc=no |
1849 | fi | |
1850 | rm -f conftest* | |
1851 | ||
1852 | if test $ac_cv_header_stdc = yes; then | |
1853 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1854 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 1855 | #line 1856 "configure" |
16a02269 TT |
1856 | #include "confdefs.h" |
1857 | #include <string.h> | |
1858 | EOF | |
1859 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1860 | egrep "memchr" >/dev/null 2>&1; then | |
1861 | : | |
1862 | else | |
1863 | rm -rf conftest* | |
1864 | ac_cv_header_stdc=no | |
2f1fec47 ILT |
1865 | fi |
1866 | rm -f conftest* | |
16a02269 TT |
1867 | |
1868 | fi | |
1869 | ||
1870 | if test $ac_cv_header_stdc = yes; then | |
1871 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1872 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 1873 | #line 1874 "configure" |
16a02269 TT |
1874 | #include "confdefs.h" |
1875 | #include <stdlib.h> | |
1876 | EOF | |
1877 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1878 | egrep "free" >/dev/null 2>&1; then | |
1879 | : | |
1880 | else | |
1881 | rm -rf conftest* | |
1882 | ac_cv_header_stdc=no | |
1883 | fi | |
274e44ae | 1884 | rm -f conftest* |
16a02269 | 1885 | |
2f1fec47 | 1886 | fi |
2f1fec47 | 1887 | |
16a02269 TT |
1888 | if test $ac_cv_header_stdc = yes; then |
1889 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
1890 | if test "$cross_compiling" = yes; then | |
1891 | : | |
1892 | else | |
1893 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 1894 | #line 1895 "configure" |
16a02269 TT |
1895 | #include "confdefs.h" |
1896 | #include <ctype.h> | |
1897 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1898 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1899 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
1900 | int main () { int i; for (i = 0; i < 256; i++) | |
1901 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
1902 | exit (0); } | |
1903 | ||
1904 | EOF | |
15ec5eb3 | 1905 | if { (eval echo configure:1906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
16a02269 TT |
1906 | then |
1907 | : | |
1908 | else | |
1909 | echo "configure: failed program was:" >&5 | |
1910 | cat conftest.$ac_ext >&5 | |
1911 | rm -fr conftest* | |
1912 | ac_cv_header_stdc=no | |
1913 | fi | |
1914 | rm -fr conftest* | |
1915 | fi | |
1916 | ||
1917 | fi | |
1918 | fi | |
1919 | ||
1920 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
1921 | if test $ac_cv_header_stdc = yes; then | |
1922 | cat >> confdefs.h <<\EOF | |
1923 | #define STDC_HEADERS 1 | |
1924 | EOF | |
1925 | ||
1926 | fi | |
1927 | ||
1928 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
15ec5eb3 | 1929 | echo "configure:1930: checking for working const" >&5 |
16a02269 | 1930 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
c3de2a19 ILT |
1931 | echo $ac_n "(cached) $ac_c" 1>&6 |
1932 | else | |
1933 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 1934 | #line 1935 "configure" |
c3de2a19 ILT |
1935 | #include "confdefs.h" |
1936 | ||
1937 | int main() { | |
16a02269 TT |
1938 | |
1939 | /* Ultrix mips cc rejects this. */ | |
1940 | typedef int charset[2]; const charset x; | |
1941 | /* SunOS 4.1.1 cc rejects this. */ | |
1942 | char const *const *ccp; | |
1943 | char **p; | |
1944 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
1945 | struct point {int x, y;}; | |
1946 | static struct point const zero = {0,0}; | |
1947 | /* AIX XL C 1.02.0.0 rejects this. | |
1948 | It does not let you subtract one const X* pointer from another in an arm | |
1949 | of an if-expression whose if-part is not a constant expression */ | |
1950 | const char *g = "string"; | |
1951 | ccp = &g + (g ? g-g : 0); | |
1952 | /* HPUX 7.0 cc rejects these. */ | |
1953 | ++ccp; | |
1954 | p = (char**) ccp; | |
1955 | ccp = (char const *const *) p; | |
1956 | { /* SCO 3.2v4 cc rejects this. */ | |
1957 | char *t; | |
1958 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
1959 | ||
1960 | *t++ = 0; | |
1961 | } | |
1962 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
1963 | int x[] = {25, 17}; | |
1964 | const int *foo = &x[0]; | |
1965 | ++foo; | |
1966 | } | |
1967 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
1968 | typedef const int *iptr; | |
1969 | iptr p = 0; | |
1970 | ++p; | |
1971 | } | |
1972 | { /* AIX XL C 1.02.0.0 rejects this saying | |
1973 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
1974 | struct s { int j; const int *ap[3]; }; | |
1975 | struct s *b; b->j = 5; | |
1976 | } | |
1977 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
1978 | const int foo = 10; | |
1979 | } | |
1980 | ||
c3de2a19 ILT |
1981 | ; return 0; } |
1982 | EOF | |
15ec5eb3 | 1983 | if { (eval echo configure:1984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c3de2a19 | 1984 | rm -rf conftest* |
16a02269 | 1985 | ac_cv_c_const=yes |
c3de2a19 ILT |
1986 | else |
1987 | echo "configure: failed program was:" >&5 | |
1988 | cat conftest.$ac_ext >&5 | |
1989 | rm -rf conftest* | |
16a02269 | 1990 | ac_cv_c_const=no |
c3de2a19 ILT |
1991 | fi |
1992 | rm -f conftest* | |
c3de2a19 ILT |
1993 | fi |
1994 | ||
16a02269 TT |
1995 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
1996 | if test $ac_cv_c_const = no; then | |
1997 | cat >> confdefs.h <<\EOF | |
1998 | #define const | |
1999 | EOF | |
c3de2a19 | 2000 | |
16a02269 | 2001 | fi |
274e44ae | 2002 | |
16a02269 | 2003 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
15ec5eb3 | 2004 | echo "configure:2005: checking for inline" >&5 |
16a02269 | 2005 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
274e44ae ILT |
2006 | echo $ac_n "(cached) $ac_c" 1>&6 |
2007 | else | |
16a02269 TT |
2008 | ac_cv_c_inline=no |
2009 | for ac_kw in inline __inline__ __inline; do | |
2010 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 2011 | #line 2012 "configure" |
16a02269 TT |
2012 | #include "confdefs.h" |
2013 | ||
274e44ae | 2014 | int main() { |
16a02269 TT |
2015 | } $ac_kw foo() { |
2016 | ; return 0; } | |
274e44ae | 2017 | EOF |
15ec5eb3 | 2018 | if { (eval echo configure:2019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
16a02269 TT |
2019 | rm -rf conftest* |
2020 | ac_cv_c_inline=$ac_kw; break | |
2021 | else | |
2022 | echo "configure: failed program was:" >&5 | |
2023 | cat conftest.$ac_ext >&5 | |
274e44ae | 2024 | fi |
16a02269 TT |
2025 | rm -f conftest* |
2026 | done | |
274e44ae | 2027 | |
274e44ae | 2028 | fi |
2f1fec47 | 2029 | |
16a02269 TT |
2030 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
2031 | case "$ac_cv_c_inline" in | |
2032 | inline | yes) ;; | |
2033 | no) cat >> confdefs.h <<\EOF | |
2034 | #define inline | |
2035 | EOF | |
2036 | ;; | |
2037 | *) cat >> confdefs.h <<EOF | |
2038 | #define inline $ac_cv_c_inline | |
2039 | EOF | |
2040 | ;; | |
2041 | esac | |
2f1fec47 | 2042 | |
16a02269 | 2043 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
15ec5eb3 | 2044 | echo "configure:2045: checking for off_t" >&5 |
16a02269 TT |
2045 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
2046 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2047 | else | |
2048 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 2049 | #line 2050 "configure" |
16a02269 TT |
2050 | #include "confdefs.h" |
2051 | #include <sys/types.h> | |
2052 | #if STDC_HEADERS | |
2053 | #include <stdlib.h> | |
2054 | #include <stddef.h> | |
2055 | #endif | |
2056 | EOF | |
2057 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2058 | egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2059 | rm -rf conftest* | |
2060 | ac_cv_type_off_t=yes | |
2061 | else | |
2062 | rm -rf conftest* | |
2063 | ac_cv_type_off_t=no | |
2064 | fi | |
2065 | rm -f conftest* | |
2066 | ||
2067 | fi | |
2068 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
2069 | if test $ac_cv_type_off_t = no; then | |
2070 | cat >> confdefs.h <<\EOF | |
2071 | #define off_t long | |
2072 | EOF | |
2073 | ||
2074 | fi | |
2075 | ||
2076 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
15ec5eb3 | 2077 | echo "configure:2078: checking for size_t" >&5 |
16a02269 TT |
2078 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
2079 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2080 | else | |
2081 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 2082 | #line 2083 "configure" |
16a02269 TT |
2083 | #include "confdefs.h" |
2084 | #include <sys/types.h> | |
2085 | #if STDC_HEADERS | |
2086 | #include <stdlib.h> | |
2087 | #include <stddef.h> | |
2088 | #endif | |
2089 | EOF | |
2090 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2091 | egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2092 | rm -rf conftest* | |
2093 | ac_cv_type_size_t=yes | |
2094 | else | |
2095 | rm -rf conftest* | |
2096 | ac_cv_type_size_t=no | |
2097 | fi | |
2098 | rm -f conftest* | |
2099 | ||
2100 | fi | |
2101 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
2102 | if test $ac_cv_type_size_t = no; then | |
2103 | cat >> confdefs.h <<\EOF | |
2104 | #define size_t unsigned | |
2105 | EOF | |
2106 | ||
2107 | fi | |
2108 | ||
2109 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
2110 | # for constant arguments. Useless! | |
2111 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
15ec5eb3 | 2112 | echo "configure:2113: checking for working alloca.h" >&5 |
16a02269 TT |
2113 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
2114 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2115 | else | |
2116 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 2117 | #line 2118 "configure" |
16a02269 TT |
2118 | #include "confdefs.h" |
2119 | #include <alloca.h> | |
2120 | int main() { | |
2121 | char *p = alloca(2 * sizeof(int)); | |
2122 | ; return 0; } | |
2123 | EOF | |
15ec5eb3 | 2124 | if { (eval echo configure:2125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16a02269 TT |
2125 | rm -rf conftest* |
2126 | ac_cv_header_alloca_h=yes | |
2127 | else | |
2128 | echo "configure: failed program was:" >&5 | |
2129 | cat conftest.$ac_ext >&5 | |
2130 | rm -rf conftest* | |
2131 | ac_cv_header_alloca_h=no | |
2132 | fi | |
2133 | rm -f conftest* | |
2134 | fi | |
2135 | ||
2136 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
2137 | if test $ac_cv_header_alloca_h = yes; then | |
2138 | cat >> confdefs.h <<\EOF | |
2139 | #define HAVE_ALLOCA_H 1 | |
2140 | EOF | |
2141 | ||
2142 | fi | |
2143 | ||
2144 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
15ec5eb3 | 2145 | echo "configure:2146: checking for alloca" >&5 |
16a02269 TT |
2146 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
2147 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2148 | else | |
2149 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 2150 | #line 2151 "configure" |
16a02269 TT |
2151 | #include "confdefs.h" |
2152 | ||
2153 | #ifdef __GNUC__ | |
2154 | # define alloca __builtin_alloca | |
2155 | #else | |
15ec5eb3 ILT |
2156 | # ifdef _MSC_VER |
2157 | # include <malloc.h> | |
2158 | # define alloca _alloca | |
16a02269 | 2159 | # else |
15ec5eb3 ILT |
2160 | # if HAVE_ALLOCA_H |
2161 | # include <alloca.h> | |
16a02269 | 2162 | # else |
15ec5eb3 ILT |
2163 | # ifdef _AIX |
2164 | #pragma alloca | |
2165 | # else | |
2166 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
16a02269 | 2167 | char *alloca (); |
15ec5eb3 | 2168 | # endif |
16a02269 TT |
2169 | # endif |
2170 | # endif | |
2171 | # endif | |
2172 | #endif | |
2173 | ||
2174 | int main() { | |
2175 | char *p = (char *) alloca(1); | |
2176 | ; return 0; } | |
2177 | EOF | |
15ec5eb3 | 2178 | if { (eval echo configure:2179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16a02269 TT |
2179 | rm -rf conftest* |
2180 | ac_cv_func_alloca_works=yes | |
2181 | else | |
2182 | echo "configure: failed program was:" >&5 | |
2183 | cat conftest.$ac_ext >&5 | |
2184 | rm -rf conftest* | |
2185 | ac_cv_func_alloca_works=no | |
2186 | fi | |
2187 | rm -f conftest* | |
2188 | fi | |
2189 | ||
2190 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
2191 | if test $ac_cv_func_alloca_works = yes; then | |
2192 | cat >> confdefs.h <<\EOF | |
2193 | #define HAVE_ALLOCA 1 | |
2194 | EOF | |
2195 | ||
2196 | fi | |
2197 | ||
2198 | if test $ac_cv_func_alloca_works = no; then | |
2199 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
2200 | # that cause trouble. Some versions do not even contain alloca or | |
2201 | # contain a buggy version. If you still want to use their alloca, | |
2202 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
15ec5eb3 | 2203 | ALLOCA=alloca.${ac_objext} |
16a02269 TT |
2204 | cat >> confdefs.h <<\EOF |
2205 | #define C_ALLOCA 1 | |
2206 | EOF | |
2207 | ||
2208 | ||
2209 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
15ec5eb3 | 2210 | echo "configure:2211: checking whether alloca needs Cray hooks" >&5 |
16a02269 TT |
2211 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
2212 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2213 | else | |
2214 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 2215 | #line 2216 "configure" |
16a02269 TT |
2216 | #include "confdefs.h" |
2217 | #if defined(CRAY) && ! defined(CRAY2) | |
2218 | webecray | |
2219 | #else | |
2220 | wenotbecray | |
2221 | #endif | |
2222 | ||
2223 | EOF | |
2224 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2225 | egrep "webecray" >/dev/null 2>&1; then | |
2226 | rm -rf conftest* | |
2227 | ac_cv_os_cray=yes | |
2228 | else | |
2229 | rm -rf conftest* | |
2230 | ac_cv_os_cray=no | |
2231 | fi | |
2232 | rm -f conftest* | |
2233 | ||
2234 | fi | |
2235 | ||
2236 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
2237 | if test $ac_cv_os_cray = yes; then | |
2238 | for ac_func in _getb67 GETB67 getb67; do | |
2239 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
15ec5eb3 | 2240 | echo "configure:2241: checking for $ac_func" >&5 |
16a02269 TT |
2241 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2242 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2243 | else | |
2244 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 2245 | #line 2246 "configure" |
16a02269 TT |
2246 | #include "confdefs.h" |
2247 | /* System header to define __stub macros and hopefully few prototypes, | |
2248 | which can conflict with char $ac_func(); below. */ | |
2249 | #include <assert.h> | |
2250 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2251 | /* We use char because int might match the return type of a gcc2 | |
2252 | builtin and then its argument prototype would still apply. */ | |
2253 | char $ac_func(); | |
2254 | ||
2255 | int main() { | |
2256 | ||
2257 | /* The GNU C library defines this for functions which it implements | |
2258 | to always fail with ENOSYS. Some functions are actually named | |
2259 | something starting with __ and the normal name is an alias. */ | |
2260 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2261 | choke me | |
2262 | #else | |
2263 | $ac_func(); | |
2264 | #endif | |
2265 | ||
2266 | ; return 0; } | |
2267 | EOF | |
15ec5eb3 | 2268 | if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16a02269 TT |
2269 | rm -rf conftest* |
2270 | eval "ac_cv_func_$ac_func=yes" | |
2271 | else | |
2272 | echo "configure: failed program was:" >&5 | |
2273 | cat conftest.$ac_ext >&5 | |
2274 | rm -rf conftest* | |
2275 | eval "ac_cv_func_$ac_func=no" | |
2276 | fi | |
2277 | rm -f conftest* | |
2278 | fi | |
2279 | ||
2280 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2281 | echo "$ac_t""yes" 1>&6 | |
2282 | cat >> confdefs.h <<EOF | |
2283 | #define CRAY_STACKSEG_END $ac_func | |
2284 | EOF | |
2285 | ||
2286 | break | |
2287 | else | |
2288 | echo "$ac_t""no" 1>&6 | |
2289 | fi | |
2290 | ||
2291 | done | |
2292 | fi | |
2293 | ||
2294 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
15ec5eb3 | 2295 | echo "configure:2296: checking stack direction for C alloca" >&5 |
16a02269 TT |
2296 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
2297 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2298 | else | |
2299 | if test "$cross_compiling" = yes; then | |
2300 | ac_cv_c_stack_direction=0 | |
2301 | else | |
2302 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 2303 | #line 2304 "configure" |
16a02269 TT |
2304 | #include "confdefs.h" |
2305 | find_stack_direction () | |
2306 | { | |
2307 | static char *addr = 0; | |
2308 | auto char dummy; | |
2309 | if (addr == 0) | |
2310 | { | |
2311 | addr = &dummy; | |
2312 | return find_stack_direction (); | |
2313 | } | |
2314 | else | |
2315 | return (&dummy > addr) ? 1 : -1; | |
2316 | } | |
2317 | main () | |
2318 | { | |
2319 | exit (find_stack_direction() < 0); | |
2320 | } | |
2321 | EOF | |
15ec5eb3 | 2322 | if { (eval echo configure:2323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
16a02269 TT |
2323 | then |
2324 | ac_cv_c_stack_direction=1 | |
2325 | else | |
2326 | echo "configure: failed program was:" >&5 | |
2327 | cat conftest.$ac_ext >&5 | |
2328 | rm -fr conftest* | |
2329 | ac_cv_c_stack_direction=-1 | |
2330 | fi | |
2331 | rm -fr conftest* | |
2332 | fi | |
2333 | ||
2334 | fi | |
2335 | ||
2336 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
2337 | cat >> confdefs.h <<EOF | |
2338 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
2339 | EOF | |
2340 | ||
2341 | fi | |
2342 | ||
2343 | for ac_hdr in unistd.h | |
2344 | do | |
2345 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2346 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
15ec5eb3 | 2347 | echo "configure:2348: checking for $ac_hdr" >&5 |
16a02269 TT |
2348 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2349 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2350 | else | |
2351 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 2352 | #line 2353 "configure" |
16a02269 TT |
2353 | #include "confdefs.h" |
2354 | #include <$ac_hdr> | |
2355 | EOF | |
2356 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
15ec5eb3 ILT |
2357 | { (eval echo configure:2358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2358 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
16a02269 TT |
2359 | if test -z "$ac_err"; then |
2360 | rm -rf conftest* | |
2361 | eval "ac_cv_header_$ac_safe=yes" | |
2362 | else | |
2363 | echo "$ac_err" >&5 | |
2364 | echo "configure: failed program was:" >&5 | |
2365 | cat conftest.$ac_ext >&5 | |
2366 | rm -rf conftest* | |
2367 | eval "ac_cv_header_$ac_safe=no" | |
2368 | fi | |
2369 | rm -f conftest* | |
2370 | fi | |
2371 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2372 | echo "$ac_t""yes" 1>&6 | |
2373 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2374 | cat >> confdefs.h <<EOF | |
2375 | #define $ac_tr_hdr 1 | |
2376 | EOF | |
2377 | ||
2378 | else | |
2379 | echo "$ac_t""no" 1>&6 | |
2380 | fi | |
2381 | done | |
2382 | ||
2383 | for ac_func in getpagesize | |
2384 | do | |
2385 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
15ec5eb3 | 2386 | echo "configure:2387: checking for $ac_func" >&5 |
16a02269 TT |
2387 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2388 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2389 | else | |
2390 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 2391 | #line 2392 "configure" |
16a02269 TT |
2392 | #include "confdefs.h" |
2393 | /* System header to define __stub macros and hopefully few prototypes, | |
2394 | which can conflict with char $ac_func(); below. */ | |
2395 | #include <assert.h> | |
2396 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2397 | /* We use char because int might match the return type of a gcc2 | |
2398 | builtin and then its argument prototype would still apply. */ | |
2399 | char $ac_func(); | |
2400 | ||
2401 | int main() { | |
2402 | ||
2403 | /* The GNU C library defines this for functions which it implements | |
2404 | to always fail with ENOSYS. Some functions are actually named | |
2405 | something starting with __ and the normal name is an alias. */ | |
2406 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2407 | choke me | |
2408 | #else | |
2409 | $ac_func(); | |
2410 | #endif | |
2411 | ||
2412 | ; return 0; } | |
2413 | EOF | |
15ec5eb3 | 2414 | if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16a02269 TT |
2415 | rm -rf conftest* |
2416 | eval "ac_cv_func_$ac_func=yes" | |
2417 | else | |
2418 | echo "configure: failed program was:" >&5 | |
2419 | cat conftest.$ac_ext >&5 | |
2420 | rm -rf conftest* | |
2421 | eval "ac_cv_func_$ac_func=no" | |
2422 | fi | |
2423 | rm -f conftest* | |
2424 | fi | |
2425 | ||
2426 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2427 | echo "$ac_t""yes" 1>&6 | |
2428 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2429 | cat >> confdefs.h <<EOF | |
2430 | #define $ac_tr_func 1 | |
2431 | EOF | |
2432 | ||
2433 | else | |
2434 | echo "$ac_t""no" 1>&6 | |
2435 | fi | |
2436 | done | |
2437 | ||
2438 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
15ec5eb3 | 2439 | echo "configure:2440: checking for working mmap" >&5 |
16a02269 TT |
2440 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
2441 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2442 | else | |
2443 | if test "$cross_compiling" = yes; then | |
2444 | ac_cv_func_mmap_fixed_mapped=no | |
2445 | else | |
2446 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 2447 | #line 2448 "configure" |
16a02269 TT |
2448 | #include "confdefs.h" |
2449 | ||
2450 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
2451 | Here is a matrix of mmap possibilities: | |
2452 | mmap private not fixed | |
2453 | mmap private fixed at somewhere currently unmapped | |
2454 | mmap private fixed at somewhere already mapped | |
2455 | mmap shared not fixed | |
2456 | mmap shared fixed at somewhere currently unmapped | |
2457 | mmap shared fixed at somewhere already mapped | |
2458 | For private mappings, we should verify that changes cannot be read() | |
2459 | back from the file, nor mmap's back from the file at a different | |
2460 | address. (There have been systems where private was not correctly | |
2461 | implemented like the infamous i386 svr4.0, and systems where the | |
2462 | VM page cache was not coherent with the filesystem buffer cache | |
2463 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
2464 | For shared mappings, we should conversely verify that changes get | |
2465 | propogated back to all the places they're supposed to be. | |
2466 | ||
2467 | Grep wants private fixed already mapped. | |
2468 | The main things grep needs to know about mmap are: | |
2469 | * does it exist and is it safe to write into the mmap'd area | |
2470 | * how to use it (BSD variants) */ | |
2471 | #include <sys/types.h> | |
2472 | #include <fcntl.h> | |
2473 | #include <sys/mman.h> | |
2474 | ||
2475 | /* This mess was copied from the GNU getpagesize.h. */ | |
2476 | #ifndef HAVE_GETPAGESIZE | |
2477 | # ifdef HAVE_UNISTD_H | |
2478 | # include <unistd.h> | |
2479 | # endif | |
2480 | ||
2481 | /* Assume that all systems that can run configure have sys/param.h. */ | |
2482 | # ifndef HAVE_SYS_PARAM_H | |
2483 | # define HAVE_SYS_PARAM_H 1 | |
2484 | # endif | |
2485 | ||
2486 | # ifdef _SC_PAGESIZE | |
2487 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
2488 | # else /* no _SC_PAGESIZE */ | |
2489 | # ifdef HAVE_SYS_PARAM_H | |
2490 | # include <sys/param.h> | |
2491 | # ifdef EXEC_PAGESIZE | |
2492 | # define getpagesize() EXEC_PAGESIZE | |
2493 | # else /* no EXEC_PAGESIZE */ | |
2494 | # ifdef NBPG | |
2495 | # define getpagesize() NBPG * CLSIZE | |
2496 | # ifndef CLSIZE | |
2497 | # define CLSIZE 1 | |
2498 | # endif /* no CLSIZE */ | |
2499 | # else /* no NBPG */ | |
2500 | # ifdef NBPC | |
2501 | # define getpagesize() NBPC | |
2502 | # else /* no NBPC */ | |
2503 | # ifdef PAGESIZE | |
2504 | # define getpagesize() PAGESIZE | |
2505 | # endif /* PAGESIZE */ | |
2506 | # endif /* no NBPC */ | |
2507 | # endif /* no NBPG */ | |
2508 | # endif /* no EXEC_PAGESIZE */ | |
2509 | # else /* no HAVE_SYS_PARAM_H */ | |
2510 | # define getpagesize() 8192 /* punt totally */ | |
2511 | # endif /* no HAVE_SYS_PARAM_H */ | |
2512 | # endif /* no _SC_PAGESIZE */ | |
2513 | ||
2514 | #endif /* no HAVE_GETPAGESIZE */ | |
2515 | ||
2516 | #ifdef __cplusplus | |
2517 | extern "C" { void *malloc(unsigned); } | |
2518 | #else | |
2519 | char *malloc(); | |
2520 | #endif | |
2521 | ||
2522 | int | |
2523 | main() | |
2524 | { | |
2525 | char *data, *data2, *data3; | |
2526 | int i, pagesize; | |
2527 | int fd; | |
2528 | ||
2529 | pagesize = getpagesize(); | |
2530 | ||
2531 | /* | |
2532 | * First, make a file with some known garbage in it. | |
2533 | */ | |
2534 | data = malloc(pagesize); | |
2535 | if (!data) | |
2536 | exit(1); | |
2537 | for (i = 0; i < pagesize; ++i) | |
2538 | *(data + i) = rand(); | |
2539 | umask(0); | |
2540 | fd = creat("conftestmmap", 0600); | |
2541 | if (fd < 0) | |
2542 | exit(1); | |
2543 | if (write(fd, data, pagesize) != pagesize) | |
2544 | exit(1); | |
2545 | close(fd); | |
2546 | ||
2547 | /* | |
2548 | * Next, try to mmap the file at a fixed address which | |
2549 | * already has something else allocated at it. If we can, | |
2550 | * also make sure that we see the same garbage. | |
2551 | */ | |
2552 | fd = open("conftestmmap", O_RDWR); | |
2553 | if (fd < 0) | |
2554 | exit(1); | |
2555 | data2 = malloc(2 * pagesize); | |
2556 | if (!data2) | |
2557 | exit(1); | |
2558 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
2559 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
2560 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
2561 | exit(1); | |
2562 | for (i = 0; i < pagesize; ++i) | |
2563 | if (*(data + i) != *(data2 + i)) | |
2564 | exit(1); | |
2565 | ||
2566 | /* | |
2567 | * Finally, make sure that changes to the mapped area | |
2568 | * do not percolate back to the file as seen by read(). | |
2569 | * (This is a bug on some variants of i386 svr4.0.) | |
2570 | */ | |
2571 | for (i = 0; i < pagesize; ++i) | |
2572 | *(data2 + i) = *(data2 + i) + 1; | |
2573 | data3 = malloc(pagesize); | |
2574 | if (!data3) | |
2575 | exit(1); | |
2576 | if (read(fd, data3, pagesize) != pagesize) | |
2577 | exit(1); | |
2578 | for (i = 0; i < pagesize; ++i) | |
2579 | if (*(data + i) != *(data3 + i)) | |
2580 | exit(1); | |
2581 | close(fd); | |
2582 | unlink("conftestmmap"); | |
2583 | exit(0); | |
2584 | } | |
2585 | ||
2586 | EOF | |
15ec5eb3 | 2587 | if { (eval echo configure:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
16a02269 TT |
2588 | then |
2589 | ac_cv_func_mmap_fixed_mapped=yes | |
2590 | else | |
2591 | echo "configure: failed program was:" >&5 | |
2592 | cat conftest.$ac_ext >&5 | |
2593 | rm -fr conftest* | |
2594 | ac_cv_func_mmap_fixed_mapped=no | |
2595 | fi | |
2596 | rm -fr conftest* | |
2597 | fi | |
2598 | ||
2599 | fi | |
2600 | ||
2601 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
2602 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
2603 | cat >> confdefs.h <<\EOF | |
2604 | #define HAVE_MMAP 1 | |
2605 | EOF | |
2606 | ||
2607 | fi | |
2608 | ||
2609 | ||
2610 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
2611 | unistd.h values.h sys/param.h | |
2612 | do | |
2613 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2614 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
15ec5eb3 | 2615 | echo "configure:2616: checking for $ac_hdr" >&5 |
16a02269 TT |
2616 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2617 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2618 | else | |
2619 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 2620 | #line 2621 "configure" |
16a02269 TT |
2621 | #include "confdefs.h" |
2622 | #include <$ac_hdr> | |
2623 | EOF | |
2624 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
15ec5eb3 ILT |
2625 | { (eval echo configure:2626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2626 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
16a02269 TT |
2627 | if test -z "$ac_err"; then |
2628 | rm -rf conftest* | |
2629 | eval "ac_cv_header_$ac_safe=yes" | |
2630 | else | |
2631 | echo "$ac_err" >&5 | |
2632 | echo "configure: failed program was:" >&5 | |
2633 | cat conftest.$ac_ext >&5 | |
2634 | rm -rf conftest* | |
2635 | eval "ac_cv_header_$ac_safe=no" | |
2636 | fi | |
2637 | rm -f conftest* | |
2638 | fi | |
2639 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2640 | echo "$ac_t""yes" 1>&6 | |
2641 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2642 | cat >> confdefs.h <<EOF | |
2643 | #define $ac_tr_hdr 1 | |
2644 | EOF | |
2645 | ||
2646 | else | |
2647 | echo "$ac_t""no" 1>&6 | |
2648 | fi | |
2649 | done | |
2650 | ||
2651 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
2652 | __argz_count __argz_stringify __argz_next | |
2653 | do | |
2654 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
15ec5eb3 | 2655 | echo "configure:2656: checking for $ac_func" >&5 |
16a02269 TT |
2656 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2657 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2658 | else | |
2659 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 2660 | #line 2661 "configure" |
16a02269 TT |
2661 | #include "confdefs.h" |
2662 | /* System header to define __stub macros and hopefully few prototypes, | |
2663 | which can conflict with char $ac_func(); below. */ | |
2664 | #include <assert.h> | |
2665 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2666 | /* We use char because int might match the return type of a gcc2 | |
2667 | builtin and then its argument prototype would still apply. */ | |
2668 | char $ac_func(); | |
2669 | ||
2670 | int main() { | |
2671 | ||
2672 | /* The GNU C library defines this for functions which it implements | |
2673 | to always fail with ENOSYS. Some functions are actually named | |
2674 | something starting with __ and the normal name is an alias. */ | |
2675 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2676 | choke me | |
2677 | #else | |
2678 | $ac_func(); | |
2679 | #endif | |
2680 | ||
2681 | ; return 0; } | |
2682 | EOF | |
15ec5eb3 | 2683 | if { (eval echo configure:2684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16a02269 TT |
2684 | rm -rf conftest* |
2685 | eval "ac_cv_func_$ac_func=yes" | |
2686 | else | |
2687 | echo "configure: failed program was:" >&5 | |
2688 | cat conftest.$ac_ext >&5 | |
2689 | rm -rf conftest* | |
2690 | eval "ac_cv_func_$ac_func=no" | |
2691 | fi | |
2692 | rm -f conftest* | |
2693 | fi | |
2694 | ||
2695 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2696 | echo "$ac_t""yes" 1>&6 | |
2697 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2698 | cat >> confdefs.h <<EOF | |
2699 | #define $ac_tr_func 1 | |
2700 | EOF | |
2701 | ||
2702 | else | |
2703 | echo "$ac_t""no" 1>&6 | |
2704 | fi | |
2705 | done | |
2706 | ||
2707 | ||
2708 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
2709 | for ac_func in stpcpy | |
2710 | do | |
2711 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
15ec5eb3 | 2712 | echo "configure:2713: checking for $ac_func" >&5 |
16a02269 TT |
2713 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2714 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2715 | else | |
2716 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 2717 | #line 2718 "configure" |
16a02269 TT |
2718 | #include "confdefs.h" |
2719 | /* System header to define __stub macros and hopefully few prototypes, | |
2720 | which can conflict with char $ac_func(); below. */ | |
2721 | #include <assert.h> | |
2722 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2723 | /* We use char because int might match the return type of a gcc2 | |
2724 | builtin and then its argument prototype would still apply. */ | |
2725 | char $ac_func(); | |
2726 | ||
2727 | int main() { | |
2728 | ||
2729 | /* The GNU C library defines this for functions which it implements | |
2730 | to always fail with ENOSYS. Some functions are actually named | |
2731 | something starting with __ and the normal name is an alias. */ | |
2732 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2733 | choke me | |
2734 | #else | |
2735 | $ac_func(); | |
2736 | #endif | |
2737 | ||
2738 | ; return 0; } | |
2739 | EOF | |
15ec5eb3 | 2740 | if { (eval echo configure:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16a02269 TT |
2741 | rm -rf conftest* |
2742 | eval "ac_cv_func_$ac_func=yes" | |
2743 | else | |
2744 | echo "configure: failed program was:" >&5 | |
2745 | cat conftest.$ac_ext >&5 | |
2746 | rm -rf conftest* | |
2747 | eval "ac_cv_func_$ac_func=no" | |
2748 | fi | |
2749 | rm -f conftest* | |
2750 | fi | |
2751 | ||
2752 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2753 | echo "$ac_t""yes" 1>&6 | |
2754 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2755 | cat >> confdefs.h <<EOF | |
2756 | #define $ac_tr_func 1 | |
2757 | EOF | |
2758 | ||
2759 | else | |
2760 | echo "$ac_t""no" 1>&6 | |
2761 | fi | |
2762 | done | |
2763 | ||
2764 | fi | |
2765 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
2766 | cat >> confdefs.h <<\EOF | |
2767 | #define HAVE_STPCPY 1 | |
2768 | EOF | |
2769 | ||
2770 | fi | |
2771 | ||
2772 | if test $ac_cv_header_locale_h = yes; then | |
2773 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | |
15ec5eb3 | 2774 | echo "configure:2775: checking for LC_MESSAGES" >&5 |
16a02269 TT |
2775 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
2776 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2777 | else | |
2778 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 2779 | #line 2780 "configure" |
16a02269 TT |
2780 | #include "confdefs.h" |
2781 | #include <locale.h> | |
2782 | int main() { | |
2783 | return LC_MESSAGES | |
2784 | ; return 0; } | |
2785 | EOF | |
15ec5eb3 | 2786 | if { (eval echo configure:2787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16a02269 TT |
2787 | rm -rf conftest* |
2788 | am_cv_val_LC_MESSAGES=yes | |
2789 | else | |
2790 | echo "configure: failed program was:" >&5 | |
2791 | cat conftest.$ac_ext >&5 | |
2792 | rm -rf conftest* | |
2793 | am_cv_val_LC_MESSAGES=no | |
2794 | fi | |
2795 | rm -f conftest* | |
2796 | fi | |
2797 | ||
2798 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | |
2799 | if test $am_cv_val_LC_MESSAGES = yes; then | |
2800 | cat >> confdefs.h <<\EOF | |
2801 | #define HAVE_LC_MESSAGES 1 | |
2802 | EOF | |
2803 | ||
2804 | fi | |
2805 | fi | |
2806 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | |
15ec5eb3 | 2807 | echo "configure:2808: checking whether NLS is requested" >&5 |
16a02269 TT |
2808 | # Check whether --enable-nls or --disable-nls was given. |
2809 | if test "${enable_nls+set}" = set; then | |
2810 | enableval="$enable_nls" | |
2811 | USE_NLS=$enableval | |
2812 | else | |
2813 | USE_NLS=yes | |
2814 | fi | |
2815 | ||
2816 | echo "$ac_t""$USE_NLS" 1>&6 | |
2817 | ||
2818 | ||
2819 | USE_INCLUDED_LIBINTL=no | |
2820 | ||
2821 | if test "$USE_NLS" = "yes"; then | |
2822 | cat >> confdefs.h <<\EOF | |
2823 | #define ENABLE_NLS 1 | |
2824 | EOF | |
2825 | ||
2826 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | |
15ec5eb3 | 2827 | echo "configure:2828: checking whether included gettext is requested" >&5 |
16a02269 TT |
2828 | # Check whether --with-included-gettext or --without-included-gettext was given. |
2829 | if test "${with_included_gettext+set}" = set; then | |
2830 | withval="$with_included_gettext" | |
2831 | nls_cv_force_use_gnu_gettext=$withval | |
2832 | else | |
2833 | nls_cv_force_use_gnu_gettext=no | |
2834 | fi | |
2835 | ||
2836 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | |
2837 | ||
2838 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
2839 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
2840 | nls_cv_header_intl= | |
2841 | nls_cv_header_libgt= | |
2842 | CATOBJEXT=NONE | |
2843 | ||
2844 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` | |
2845 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | |
15ec5eb3 | 2846 | echo "configure:2847: checking for libintl.h" >&5 |
16a02269 TT |
2847 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2848 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2849 | else | |
2850 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 2851 | #line 2852 "configure" |
16a02269 TT |
2852 | #include "confdefs.h" |
2853 | #include <libintl.h> | |
2854 | EOF | |
2855 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
15ec5eb3 ILT |
2856 | { (eval echo configure:2857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2857 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
16a02269 TT |
2858 | if test -z "$ac_err"; then |
2859 | rm -rf conftest* | |
2860 | eval "ac_cv_header_$ac_safe=yes" | |
2861 | else | |
2862 | echo "$ac_err" >&5 | |
2863 | echo "configure: failed program was:" >&5 | |
2864 | cat conftest.$ac_ext >&5 | |
2865 | rm -rf conftest* | |
2866 | eval "ac_cv_header_$ac_safe=no" | |
2867 | fi | |
2868 | rm -f conftest* | |
2869 | fi | |
2870 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2871 | echo "$ac_t""yes" 1>&6 | |
2872 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | |
15ec5eb3 | 2873 | echo "configure:2874: checking for gettext in libc" >&5 |
16a02269 TT |
2874 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
2875 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2876 | else | |
2877 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 2878 | #line 2879 "configure" |
16a02269 TT |
2879 | #include "confdefs.h" |
2880 | #include <libintl.h> | |
2881 | int main() { | |
2882 | return (int) gettext ("") | |
2883 | ; return 0; } | |
2884 | EOF | |
15ec5eb3 | 2885 | if { (eval echo configure:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16a02269 TT |
2886 | rm -rf conftest* |
2887 | gt_cv_func_gettext_libc=yes | |
2888 | else | |
2889 | echo "configure: failed program was:" >&5 | |
2890 | cat conftest.$ac_ext >&5 | |
2891 | rm -rf conftest* | |
2892 | gt_cv_func_gettext_libc=no | |
2893 | fi | |
2894 | rm -f conftest* | |
2895 | fi | |
2896 | ||
2897 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | |
2898 | ||
2899 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
2900 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 | |
15ec5eb3 | 2901 | echo "configure:2902: checking for bindtextdomain in -lintl" >&5 |
16a02269 TT |
2902 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
2903 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2904 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2905 | else | |
2906 | ac_save_LIBS="$LIBS" | |
2907 | LIBS="-lintl $LIBS" | |
2908 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 2909 | #line 2910 "configure" |
16a02269 TT |
2910 | #include "confdefs.h" |
2911 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2912 | /* We use char because int might match the return type of a gcc2 | |
2913 | builtin and then its argument prototype would still apply. */ | |
2914 | char bindtextdomain(); | |
2915 | ||
2916 | int main() { | |
2917 | bindtextdomain() | |
2918 | ; return 0; } | |
2919 | EOF | |
15ec5eb3 | 2920 | if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16a02269 TT |
2921 | rm -rf conftest* |
2922 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2923 | else | |
2924 | echo "configure: failed program was:" >&5 | |
2925 | cat conftest.$ac_ext >&5 | |
2926 | rm -rf conftest* | |
2927 | eval "ac_cv_lib_$ac_lib_var=no" | |
2928 | fi | |
2929 | rm -f conftest* | |
2930 | LIBS="$ac_save_LIBS" | |
2931 | ||
2932 | fi | |
2933 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2934 | echo "$ac_t""yes" 1>&6 | |
2935 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | |
15ec5eb3 | 2936 | echo "configure:2937: checking for gettext in libintl" >&5 |
16a02269 TT |
2937 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
2938 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2939 | else | |
2940 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 2941 | #line 2942 "configure" |
16a02269 TT |
2942 | #include "confdefs.h" |
2943 | ||
2944 | int main() { | |
2945 | return (int) gettext ("") | |
2946 | ; return 0; } | |
2947 | EOF | |
15ec5eb3 | 2948 | if { (eval echo configure:2949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16a02269 TT |
2949 | rm -rf conftest* |
2950 | gt_cv_func_gettext_libintl=yes | |
2951 | else | |
2952 | echo "configure: failed program was:" >&5 | |
2953 | cat conftest.$ac_ext >&5 | |
2954 | rm -rf conftest* | |
2955 | gt_cv_func_gettext_libintl=no | |
2956 | fi | |
2957 | rm -f conftest* | |
2958 | fi | |
2959 | ||
2960 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | |
2961 | else | |
2962 | echo "$ac_t""no" 1>&6 | |
2963 | fi | |
2964 | ||
2965 | fi | |
2966 | ||
2967 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
2968 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
2969 | cat >> confdefs.h <<\EOF | |
2970 | #define HAVE_GETTEXT 1 | |
2971 | EOF | |
2972 | ||
2973 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
2974 | set dummy msgfmt; ac_word=$2 | |
2975 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
15ec5eb3 | 2976 | echo "configure:2977: checking for $ac_word" >&5 |
16a02269 TT |
2977 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
2978 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2979 | else | |
2980 | case "$MSGFMT" in | |
2981 | /*) | |
2982 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
2983 | ;; | |
2984 | *) | |
2985 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
2986 | for ac_dir in $PATH; do | |
2987 | test -z "$ac_dir" && ac_dir=. | |
2988 | if test -f $ac_dir/$ac_word; then | |
2989 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
2990 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
2991 | break | |
2992 | fi | |
2993 | fi | |
2994 | done | |
2995 | IFS="$ac_save_ifs" | |
2996 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
2997 | ;; | |
2998 | esac | |
2999 | fi | |
3000 | MSGFMT="$ac_cv_path_MSGFMT" | |
3001 | if test -n "$MSGFMT"; then | |
3002 | echo "$ac_t""$MSGFMT" 1>&6 | |
3003 | else | |
3004 | echo "$ac_t""no" 1>&6 | |
3005 | fi | |
3006 | if test "$MSGFMT" != "no"; then | |
3007 | for ac_func in dcgettext | |
3008 | do | |
3009 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
15ec5eb3 | 3010 | echo "configure:3011: checking for $ac_func" >&5 |
16a02269 TT |
3011 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3012 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3013 | else | |
3014 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 3015 | #line 3016 "configure" |
16a02269 TT |
3016 | #include "confdefs.h" |
3017 | /* System header to define __stub macros and hopefully few prototypes, | |
3018 | which can conflict with char $ac_func(); below. */ | |
3019 | #include <assert.h> | |
3020 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3021 | /* We use char because int might match the return type of a gcc2 | |
3022 | builtin and then its argument prototype would still apply. */ | |
3023 | char $ac_func(); | |
3024 | ||
3025 | int main() { | |
3026 | ||
3027 | /* The GNU C library defines this for functions which it implements | |
3028 | to always fail with ENOSYS. Some functions are actually named | |
3029 | something starting with __ and the normal name is an alias. */ | |
3030 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3031 | choke me | |
3032 | #else | |
3033 | $ac_func(); | |
3034 | #endif | |
3035 | ||
3036 | ; return 0; } | |
3037 | EOF | |
15ec5eb3 | 3038 | if { (eval echo configure:3039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16a02269 TT |
3039 | rm -rf conftest* |
3040 | eval "ac_cv_func_$ac_func=yes" | |
3041 | else | |
3042 | echo "configure: failed program was:" >&5 | |
3043 | cat conftest.$ac_ext >&5 | |
3044 | rm -rf conftest* | |
3045 | eval "ac_cv_func_$ac_func=no" | |
3046 | fi | |
3047 | rm -f conftest* | |
3048 | fi | |
3049 | ||
3050 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3051 | echo "$ac_t""yes" 1>&6 | |
3052 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3053 | cat >> confdefs.h <<EOF | |
3054 | #define $ac_tr_func 1 | |
3055 | EOF | |
3056 | ||
3057 | else | |
3058 | echo "$ac_t""no" 1>&6 | |
3059 | fi | |
3060 | done | |
3061 | ||
3062 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
3063 | set dummy gmsgfmt; ac_word=$2 | |
3064 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
15ec5eb3 | 3065 | echo "configure:3066: checking for $ac_word" >&5 |
16a02269 TT |
3066 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
3067 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3068 | else | |
3069 | case "$GMSGFMT" in | |
3070 | /*) | |
3071 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
3072 | ;; | |
3073 | ?:/*) | |
3074 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
3075 | ;; | |
3076 | *) | |
15ec5eb3 | 3077 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16a02269 TT |
3078 | for ac_dir in $PATH; do |
3079 | test -z "$ac_dir" && ac_dir=. | |
3080 | if test -f $ac_dir/$ac_word; then | |
3081 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
3082 | break | |
3083 | fi | |
3084 | done | |
3085 | IFS="$ac_save_ifs" | |
3086 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
3087 | ;; | |
3088 | esac | |
3089 | fi | |
3090 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
3091 | if test -n "$GMSGFMT"; then | |
3092 | echo "$ac_t""$GMSGFMT" 1>&6 | |
3093 | else | |
3094 | echo "$ac_t""no" 1>&6 | |
3095 | fi | |
3096 | ||
3097 | # Extract the first word of "xgettext", so it can be a program name with args. | |
3098 | set dummy xgettext; ac_word=$2 | |
3099 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
15ec5eb3 | 3100 | echo "configure:3101: checking for $ac_word" >&5 |
16a02269 TT |
3101 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
3102 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3103 | else | |
3104 | case "$XGETTEXT" in | |
3105 | /*) | |
3106 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
3107 | ;; | |
3108 | *) | |
3109 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3110 | for ac_dir in $PATH; do | |
3111 | test -z "$ac_dir" && ac_dir=. | |
3112 | if test -f $ac_dir/$ac_word; then | |
3113 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
3114 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
3115 | break | |
3116 | fi | |
3117 | fi | |
3118 | done | |
3119 | IFS="$ac_save_ifs" | |
3120 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
3121 | ;; | |
3122 | esac | |
3123 | fi | |
3124 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
3125 | if test -n "$XGETTEXT"; then | |
3126 | echo "$ac_t""$XGETTEXT" 1>&6 | |
3127 | else | |
3128 | echo "$ac_t""no" 1>&6 | |
3129 | fi | |
3130 | ||
3131 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 3132 | #line 3133 "configure" |
16a02269 TT |
3133 | #include "confdefs.h" |
3134 | ||
3135 | int main() { | |
3136 | extern int _nl_msg_cat_cntr; | |
3137 | return _nl_msg_cat_cntr | |
3138 | ; return 0; } | |
3139 | EOF | |
15ec5eb3 | 3140 | if { (eval echo configure:3141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16a02269 TT |
3141 | rm -rf conftest* |
3142 | CATOBJEXT=.gmo | |
3143 | DATADIRNAME=share | |
3144 | else | |
3145 | echo "configure: failed program was:" >&5 | |
3146 | cat conftest.$ac_ext >&5 | |
3147 | rm -rf conftest* | |
3148 | CATOBJEXT=.mo | |
3149 | DATADIRNAME=lib | |
3150 | fi | |
3151 | rm -f conftest* | |
3152 | INSTOBJEXT=.mo | |
3153 | fi | |
3154 | fi | |
3155 | ||
3156 | else | |
3157 | echo "$ac_t""no" 1>&6 | |
3158 | fi | |
3159 | ||
3160 | ||
3161 | ||
3162 | if test "$CATOBJEXT" = "NONE"; then | |
3163 | nls_cv_use_gnu_gettext=yes | |
3164 | fi | |
3165 | fi | |
3166 | ||
3167 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
3168 | INTLOBJS="\$(GETTOBJS)" | |
3169 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
3170 | set dummy msgfmt; ac_word=$2 | |
3171 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
15ec5eb3 | 3172 | echo "configure:3173: checking for $ac_word" >&5 |
16a02269 TT |
3173 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
3174 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3175 | else | |
3176 | case "$MSGFMT" in | |
3177 | /*) | |
3178 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
3179 | ;; | |
3180 | *) | |
3181 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3182 | for ac_dir in $PATH; do | |
3183 | test -z "$ac_dir" && ac_dir=. | |
3184 | if test -f $ac_dir/$ac_word; then | |
3185 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
3186 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
3187 | break | |
3188 | fi | |
3189 | fi | |
3190 | done | |
3191 | IFS="$ac_save_ifs" | |
3192 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
3193 | ;; | |
3194 | esac | |
3195 | fi | |
3196 | MSGFMT="$ac_cv_path_MSGFMT" | |
3197 | if test -n "$MSGFMT"; then | |
3198 | echo "$ac_t""$MSGFMT" 1>&6 | |
3199 | else | |
3200 | echo "$ac_t""no" 1>&6 | |
3201 | fi | |
3202 | ||
3203 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
3204 | set dummy gmsgfmt; ac_word=$2 | |
3205 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
15ec5eb3 | 3206 | echo "configure:3207: checking for $ac_word" >&5 |
16a02269 TT |
3207 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
3208 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3209 | else | |
3210 | case "$GMSGFMT" in | |
3211 | /*) | |
3212 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
3213 | ;; | |
3214 | ?:/*) | |
3215 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
3216 | ;; | |
3217 | *) | |
15ec5eb3 | 3218 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16a02269 TT |
3219 | for ac_dir in $PATH; do |
3220 | test -z "$ac_dir" && ac_dir=. | |
3221 | if test -f $ac_dir/$ac_word; then | |
3222 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
3223 | break | |
3224 | fi | |
3225 | done | |
3226 | IFS="$ac_save_ifs" | |
3227 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
3228 | ;; | |
3229 | esac | |
3230 | fi | |
3231 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
3232 | if test -n "$GMSGFMT"; then | |
3233 | echo "$ac_t""$GMSGFMT" 1>&6 | |
3234 | else | |
3235 | echo "$ac_t""no" 1>&6 | |
3236 | fi | |
3237 | ||
3238 | # Extract the first word of "xgettext", so it can be a program name with args. | |
3239 | set dummy xgettext; ac_word=$2 | |
3240 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
15ec5eb3 | 3241 | echo "configure:3242: checking for $ac_word" >&5 |
16a02269 TT |
3242 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
3243 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3244 | else | |
3245 | case "$XGETTEXT" in | |
3246 | /*) | |
3247 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
3248 | ;; | |
3249 | *) | |
3250 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3251 | for ac_dir in $PATH; do | |
3252 | test -z "$ac_dir" && ac_dir=. | |
3253 | if test -f $ac_dir/$ac_word; then | |
3254 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
3255 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
3256 | break | |
3257 | fi | |
3258 | fi | |
3259 | done | |
3260 | IFS="$ac_save_ifs" | |
3261 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
3262 | ;; | |
3263 | esac | |
3264 | fi | |
3265 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
3266 | if test -n "$XGETTEXT"; then | |
3267 | echo "$ac_t""$XGETTEXT" 1>&6 | |
3268 | else | |
3269 | echo "$ac_t""no" 1>&6 | |
3270 | fi | |
3271 | ||
3272 | ||
3273 | USE_INCLUDED_LIBINTL=yes | |
3274 | CATOBJEXT=.gmo | |
3275 | INSTOBJEXT=.mo | |
3276 | DATADIRNAME=share | |
3277 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
3278 | INTLLIBS=$INTLDEPS | |
3279 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
3280 | nls_cv_header_intl=libintl.h | |
3281 | nls_cv_header_libgt=libgettext.h | |
3282 | fi | |
3283 | ||
3284 | if test "$XGETTEXT" != ":"; then | |
3285 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
3286 | : ; | |
3287 | else | |
3288 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 | |
3289 | XGETTEXT=":" | |
3290 | fi | |
3291 | fi | |
3292 | ||
3293 | # We need to process the po/ directory. | |
3294 | POSUB=po | |
3295 | else | |
3296 | DATADIRNAME=share | |
3297 | nls_cv_header_intl=libintl.h | |
3298 | nls_cv_header_libgt=libgettext.h | |
3299 | fi | |
3300 | ||
3301 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
3302 | # because some of the sources are only built for this goal. | |
3303 | if test "$PACKAGE" = gettext; then | |
3304 | USE_NLS=yes | |
3305 | USE_INCLUDED_LIBINTL=yes | |
3306 | fi | |
3307 | ||
3308 | for lang in $ALL_LINGUAS; do | |
3309 | GMOFILES="$GMOFILES $lang.gmo" | |
3310 | POFILES="$POFILES $lang.po" | |
3311 | done | |
3312 | ||
3313 | ||
3314 | ||
3315 | ||
3316 | ||
3317 | ||
3318 | ||
3319 | ||
3320 | ||
3321 | ||
3322 | ||
3323 | ||
3324 | ||
3325 | ||
3326 | if test "x$CATOBJEXT" != "x"; then | |
3327 | if test "x$ALL_LINGUAS" = "x"; then | |
3328 | LINGUAS= | |
3329 | else | |
3330 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 | |
15ec5eb3 | 3331 | echo "configure:3332: checking for catalogs to be installed" >&5 |
16a02269 TT |
3332 | NEW_LINGUAS= |
3333 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
3334 | case "$ALL_LINGUAS" in | |
3335 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
3336 | esac | |
3337 | done | |
3338 | LINGUAS=$NEW_LINGUAS | |
3339 | echo "$ac_t""$LINGUAS" 1>&6 | |
3340 | fi | |
3341 | ||
3342 | if test -n "$LINGUAS"; then | |
3343 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
3344 | fi | |
3345 | fi | |
3346 | ||
3347 | if test $ac_cv_header_locale_h = yes; then | |
3348 | INCLUDE_LOCALE_H="#include <locale.h>" | |
3349 | else | |
3350 | INCLUDE_LOCALE_H="\ | |
3351 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
3352 | fi | |
3353 | ||
3354 | ||
3355 | if test -f $srcdir/po2tbl.sed.in; then | |
3356 | if test "$CATOBJEXT" = ".cat"; then | |
3357 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` | |
3358 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | |
15ec5eb3 | 3359 | echo "configure:3360: checking for linux/version.h" >&5 |
16a02269 TT |
3360 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3361 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3362 | else | |
3363 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 3364 | #line 3365 "configure" |
16a02269 TT |
3365 | #include "confdefs.h" |
3366 | #include <linux/version.h> | |
3367 | EOF | |
3368 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
15ec5eb3 ILT |
3369 | { (eval echo configure:3370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3370 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
16a02269 TT |
3371 | if test -z "$ac_err"; then |
3372 | rm -rf conftest* | |
3373 | eval "ac_cv_header_$ac_safe=yes" | |
3374 | else | |
3375 | echo "$ac_err" >&5 | |
3376 | echo "configure: failed program was:" >&5 | |
3377 | cat conftest.$ac_ext >&5 | |
3378 | rm -rf conftest* | |
3379 | eval "ac_cv_header_$ac_safe=no" | |
3380 | fi | |
3381 | rm -f conftest* | |
3382 | fi | |
3383 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3384 | echo "$ac_t""yes" 1>&6 | |
3385 | msgformat=linux | |
3386 | else | |
3387 | echo "$ac_t""no" 1>&6 | |
3388 | msgformat=xopen | |
3389 | fi | |
3390 | ||
3391 | ||
3392 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed | |
3393 | fi | |
3394 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
3395 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
3396 | fi | |
3397 | ||
3398 | if test "$PACKAGE" = "gettext"; then | |
3399 | GT_NO="#NO#" | |
3400 | GT_YES= | |
3401 | else | |
3402 | GT_NO= | |
3403 | GT_YES="#YES#" | |
3404 | fi | |
3405 | ||
3406 | ||
3407 | ||
3408 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
3409 | ||
3410 | ||
3411 | l= | |
3412 | ||
3413 | ||
3414 | if test -d $srcdir/po; then | |
3415 | test -d po || mkdir po | |
3416 | if test "x$srcdir" != "x."; then | |
3417 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
3418 | posrcprefix="$srcdir/" | |
3419 | else | |
3420 | posrcprefix="../$srcdir/" | |
3421 | fi | |
3422 | else | |
3423 | posrcprefix="../" | |
3424 | fi | |
3425 | rm -f po/POTFILES | |
3426 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
3427 | < $srcdir/po/POTFILES.in > po/POTFILES | |
3428 | fi | |
3429 | ||
3430 | ||
3431 | case "${target}" in | |
47f7fb8b SC |
3432 | *-*-bsd4.4* | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* \ |
3433 | | *-*-cygwin32 | *-*-mingw32 | *-*-win32 ) | |
16a02269 TT |
3434 | cat >> confdefs.h <<\EOF |
3435 | #define BSD44_FORMAT 1 | |
3436 | EOF | |
3437 | ||
3438 | ;; | |
3439 | esac | |
3440 | ||
3441 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 | |
15ec5eb3 | 3442 | echo "configure:3443: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
16a02269 TT |
3443 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
3444 | if test "${enable_maintainer_mode+set}" = set; then | |
3445 | enableval="$enable_maintainer_mode" | |
3446 | USE_MAINTAINER_MODE=$enableval | |
3447 | else | |
3448 | USE_MAINTAINER_MODE=no | |
3449 | fi | |
3450 | ||
3451 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
3452 | if test $USE_MAINTAINER_MODE = yes; then | |
3453 | MAINT= | |
3454 | else | |
3455 | MAINT='#M#' | |
3456 | fi | |
3457 | ||
3458 | ||
3459 | echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6 | |
15ec5eb3 | 3460 | echo "configure:3461: checking for Cygwin32 environment" >&5 |
16a02269 TT |
3461 | if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then |
3462 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3463 | else | |
3464 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 3465 | #line 3466 "configure" |
16a02269 TT |
3466 | #include "confdefs.h" |
3467 | ||
3468 | int main() { | |
3469 | return __CYGWIN32__; | |
3470 | ; return 0; } | |
3471 | EOF | |
15ec5eb3 | 3472 | if { (eval echo configure:3473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
16a02269 TT |
3473 | rm -rf conftest* |
3474 | am_cv_cygwin32=yes | |
3475 | else | |
3476 | echo "configure: failed program was:" >&5 | |
3477 | cat conftest.$ac_ext >&5 | |
3478 | rm -rf conftest* | |
3479 | am_cv_cygwin32=no | |
3480 | fi | |
3481 | rm -f conftest* | |
3482 | rm -f conftest* | |
3483 | fi | |
3484 | ||
3485 | echo "$ac_t""$am_cv_cygwin32" 1>&6 | |
3486 | CYGWIN32= | |
3487 | test "$am_cv_cygwin32" = yes && CYGWIN32=yes | |
3488 | echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6 | |
15ec5eb3 | 3489 | echo "configure:3490: checking for Mingw32 environment" >&5 |
16a02269 TT |
3490 | if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then |
3491 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3492 | else | |
3493 | cat > conftest.$ac_ext <<EOF | |
15ec5eb3 | 3494 | #line 3495 "configure" |
16a02269 TT |
3495 | #include "confdefs.h" |
3496 | ||
3497 | int main() { | |
3498 | return __MINGW32__; | |
3499 | ; return 0; } | |
3500 | EOF | |
15ec5eb3 | 3501 | if { (eval echo configure:3502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
16a02269 TT |
3502 | rm -rf conftest* |
3503 | am_cv_mingw32=yes | |
3504 | else | |
3505 | echo "configure: failed program was:" >&5 | |
3506 | cat conftest.$ac_ext >&5 | |
3507 | rm -rf conftest* | |
3508 | am_cv_mingw32=no | |
3509 | fi | |
3510 | rm -f conftest* | |
3511 | rm -f conftest* | |
3512 | fi | |
3513 | ||
3514 | echo "$ac_t""$am_cv_mingw32" 1>&6 | |
3515 | MINGW32= | |
3516 | test "$am_cv_mingw32" = yes && MINGW32=yes | |
3517 | ||
3518 | ||
3519 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
15ec5eb3 | 3520 | echo "configure:3521: checking for executable suffix" >&5 |
16a02269 TT |
3521 | if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then |
3522 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3523 | else | |
3524 | if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then | |
3525 | am_cv_exeext=.exe | |
3526 | else | |
3527 | cat > am_c_test.c << 'EOF' | |
3528 | int main() { | |
3529 | /* Nothing needed here */ | |
3530 | } | |
3531 | EOF | |
3532 | ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 | |
3533 | am_cv_exeext= | |
3534 | for file in am_c_test.*; do | |
3535 | case $file in | |
3536 | *.c) ;; | |
3537 | *.o) ;; | |
3538 | *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;; | |
3539 | esac | |
3540 | done | |
3541 | rm -f am_c_test* | |
3542 | fi | |
3543 | ||
3544 | test x"${am_cv_exeext}" = x && am_cv_exeext=no | |
3545 | fi | |
3546 | EXEEXT="" | |
3547 | test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} | |
3548 | echo "$ac_t""${am_cv_exeext}" 1>&6 | |
3549 | ||
3550 | ||
3551 | trap '' 1 2 15 | |
3552 | cat > confcache <<\EOF | |
3553 | # This file is a shell script that caches the results of configure | |
3554 | # tests run on this system so they can be shared between configure | |
3555 | # scripts and configure runs. It is not useful on other systems. | |
3556 | # If it contains results you don't want to keep, you may remove or edit it. | |
3557 | # | |
3558 | # By default, configure uses ./config.cache as the cache file, | |
3559 | # creating it if it does not exist already. You can give configure | |
3560 | # the --cache-file=FILE option to use a different cache file; that is | |
3561 | # what configure does when it calls configure scripts in | |
3562 | # subdirectories, so they share the cache. | |
7858d8dc C |
3563 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
3564 | # config.status only pays attention to the cache file if you give it the | |
3565 | # --recheck option to rerun configure. | |
3566 | # | |
3567 | EOF | |
4947b15f ILT |
3568 | # The following way of writing the cache mishandles newlines in values, |
3569 | # but we know of no workaround that is simple, portable, and efficient. | |
3570 | # So, don't put newlines in cache variables' values. | |
7858d8dc C |
3571 | # Ultrix sh set writes to stderr and can't be redirected directly, |
3572 | # and sets the high bit in the cache file unless we assign to the vars. | |
3573 | (set) 2>&1 | | |
c3de2a19 | 3574 | case `(ac_space=' '; set) 2>&1 | grep ac_space` in |
4947b15f ILT |
3575 | *ac_space=\ *) |
3576 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
3577 | # turns \\\\ into \\, and sed turns \\ into \). | |
3578 | sed -n \ | |
3579 | -e "s/'/'\\\\''/g" \ | |
3580 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
3581 | ;; | |
3582 | *) | |
3583 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3584 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
3585 | ;; | |
3586 | esac >> confcache | |
7858d8dc C |
3587 | if cmp -s $cache_file confcache; then |
3588 | : | |
3589 | else | |
3590 | if test -w $cache_file; then | |
3591 | echo "updating cache $cache_file" | |
3592 | cat confcache > $cache_file | |
3593 | else | |
3594 | echo "not updating unwritable cache $cache_file" | |
3595 | fi | |
3596 | fi | |
3597 | rm -f confcache | |
3598 | ||
3599 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
3600 | ||
3601 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
3602 | # Let make expand exec_prefix. | |
3603 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3604 | ||
3605 | # Any assignment to VPATH causes Sun make to only execute | |
3606 | # the first set of double-colon rules, so remove it if not needed. | |
3607 | # If there is a colon in the path, we need to keep it. | |
3608 | if test "x$srcdir" = x.; then | |
3609 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
3610 | fi | |
3611 | ||
3612 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
3613 | ||
274e44ae | 3614 | DEFS=-DHAVE_CONFIG_H |
7858d8dc C |
3615 | |
3616 | # Without the "./", some shells look in PATH for config.status. | |
3617 | : ${CONFIG_STATUS=./config.status} | |
3618 | ||
3619 | echo creating $CONFIG_STATUS | |
3620 | rm -f $CONFIG_STATUS | |
3621 | cat > $CONFIG_STATUS <<EOF | |
3622 | #! /bin/sh | |
3623 | # Generated automatically by configure. | |
3624 | # Run this file to recreate the current configuration. | |
3625 | # This directory was configured as follows, | |
3626 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
3627 | # | |
3628 | # $0 $ac_configure_args | |
3629 | # | |
3630 | # Compiler output produced by configure, useful for debugging | |
3631 | # configure, is in ./config.log if it exists. | |
3632 | ||
3633 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
3634 | for ac_option | |
3635 | do | |
3636 | case "\$ac_option" in | |
3637 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
3638 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
3639 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
3640 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
15ec5eb3 | 3641 | echo "$CONFIG_STATUS generated by autoconf version 2.12.2" |
7858d8dc C |
3642 | exit 0 ;; |
3643 | -help | --help | --hel | --he | --h) | |
3644 | echo "\$ac_cs_usage"; exit 0 ;; | |
3645 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
3646 | esac | |
3647 | done | |
3648 | ||
3649 | ac_given_srcdir=$srcdir | |
39c3964f | 3650 | ac_given_INSTALL="$INSTALL" |
7858d8dc | 3651 | |
16a02269 | 3652 | trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
ba8e3a2e ILT |
3653 | EOF |
3654 | cat >> $CONFIG_STATUS <<EOF | |
7858d8dc | 3655 | |
ba8e3a2e ILT |
3656 | # Protect against being on the right side of a sed subst in config.status. |
3657 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
3658 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
7858d8dc C |
3659 | $ac_vpsub |
3660 | $extrasub | |
c3de2a19 | 3661 | s%@SHELL@%$SHELL%g |
7858d8dc C |
3662 | s%@CFLAGS@%$CFLAGS%g |
3663 | s%@CPPFLAGS@%$CPPFLAGS%g | |
3664 | s%@CXXFLAGS@%$CXXFLAGS%g | |
3665 | s%@DEFS@%$DEFS%g | |
3666 | s%@LDFLAGS@%$LDFLAGS%g | |
3667 | s%@LIBS@%$LIBS%g | |
3668 | s%@exec_prefix@%$exec_prefix%g | |
3669 | s%@prefix@%$prefix%g | |
3670 | s%@program_transform_name@%$program_transform_name%g | |
ba8e3a2e ILT |
3671 | s%@bindir@%$bindir%g |
3672 | s%@sbindir@%$sbindir%g | |
3673 | s%@libexecdir@%$libexecdir%g | |
3674 | s%@datadir@%$datadir%g | |
3675 | s%@sysconfdir@%$sysconfdir%g | |
3676 | s%@sharedstatedir@%$sharedstatedir%g | |
3677 | s%@localstatedir@%$localstatedir%g | |
3678 | s%@libdir@%$libdir%g | |
3679 | s%@includedir@%$includedir%g | |
3680 | s%@oldincludedir@%$oldincludedir%g | |
3681 | s%@infodir@%$infodir%g | |
3682 | s%@mandir@%$mandir%g | |
7858d8dc C |
3683 | s%@host@%$host%g |
3684 | s%@host_alias@%$host_alias%g | |
3685 | s%@host_cpu@%$host_cpu%g | |
3686 | s%@host_vendor@%$host_vendor%g | |
3687 | s%@host_os@%$host_os%g | |
3688 | s%@target@%$target%g | |
3689 | s%@target_alias@%$target_alias%g | |
3690 | s%@target_cpu@%$target_cpu%g | |
3691 | s%@target_vendor@%$target_vendor%g | |
3692 | s%@target_os@%$target_os%g | |
3693 | s%@build@%$build%g | |
3694 | s%@build_alias@%$build_alias%g | |
3695 | s%@build_cpu@%$build_cpu%g | |
3696 | s%@build_vendor@%$build_vendor%g | |
3697 | s%@build_os@%$build_os%g | |
2f1fec47 ILT |
3698 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
3699 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
3700 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
3701 | s%@PACKAGE@%$PACKAGE%g | |
3702 | s%@VERSION@%$VERSION%g | |
3703 | s%@ACLOCAL@%$ACLOCAL%g | |
3704 | s%@AUTOCONF@%$AUTOCONF%g | |
3705 | s%@AUTOMAKE@%$AUTOMAKE%g | |
3706 | s%@AUTOHEADER@%$AUTOHEADER%g | |
3707 | s%@MAKEINFO@%$MAKEINFO%g | |
3708 | s%@SET_MAKE@%$SET_MAKE%g | |
274e44ae | 3709 | s%@RANLIB@%$RANLIB%g |
fa1a1b32 | 3710 | s%@CC@%$CC%g |
274e44ae | 3711 | s%@LD@%$LD%g |
fa1a1b32 | 3712 | s%@NM@%$NM%g |
274e44ae ILT |
3713 | s%@LN_S@%$LN_S%g |
3714 | s%@LIBTOOL@%$LIBTOOL%g | |
16a02269 TT |
3715 | s%@DLLTOOL@%$DLLTOOL%g |
3716 | s%@AS@%$AS%g | |
3717 | s%@CPP@%$CPP%g | |
3718 | s%@ALLOCA@%$ALLOCA%g | |
3719 | s%@USE_NLS@%$USE_NLS%g | |
3720 | s%@MSGFMT@%$MSGFMT%g | |
3721 | s%@GMSGFMT@%$GMSGFMT%g | |
3722 | s%@XGETTEXT@%$XGETTEXT%g | |
3723 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | |
3724 | s%@CATALOGS@%$CATALOGS%g | |
3725 | s%@CATOBJEXT@%$CATOBJEXT%g | |
3726 | s%@DATADIRNAME@%$DATADIRNAME%g | |
3727 | s%@GMOFILES@%$GMOFILES%g | |
3728 | s%@INSTOBJEXT@%$INSTOBJEXT%g | |
3729 | s%@INTLDEPS@%$INTLDEPS%g | |
3730 | s%@INTLLIBS@%$INTLLIBS%g | |
3731 | s%@INTLOBJS@%$INTLOBJS%g | |
3732 | s%@POFILES@%$POFILES%g | |
3733 | s%@POSUB@%$POSUB%g | |
3734 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | |
3735 | s%@GT_NO@%$GT_NO%g | |
3736 | s%@GT_YES@%$GT_YES%g | |
3737 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | |
3738 | s%@l@%$l%g | |
2f1fec47 | 3739 | s%@MAINT@%$MAINT%g |
2f1fec47 | 3740 | s%@EXEEXT@%$EXEEXT%g |
7858d8dc C |
3741 | |
3742 | CEOF | |
3743 | EOF | |
4947b15f ILT |
3744 | |
3745 | cat >> $CONFIG_STATUS <<\EOF | |
3746 | ||
3747 | # Split the substitutions into bite-sized pieces for seds with | |
3748 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
3749 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
3750 | ac_file=1 # Number of current file. | |
3751 | ac_beg=1 # First line for current file. | |
3752 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
3753 | ac_more_lines=: | |
3754 | ac_sed_cmds="" | |
3755 | while $ac_more_lines; do | |
3756 | if test $ac_beg -gt 1; then | |
3757 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
3758 | else | |
3759 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
3760 | fi | |
3761 | if test ! -s conftest.s$ac_file; then | |
3762 | ac_more_lines=false | |
3763 | rm -f conftest.s$ac_file | |
3764 | else | |
3765 | if test -z "$ac_sed_cmds"; then | |
3766 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
3767 | else | |
3768 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
3769 | fi | |
3770 | ac_file=`expr $ac_file + 1` | |
3771 | ac_beg=$ac_end | |
3772 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
3773 | fi | |
3774 | done | |
3775 | if test -z "$ac_sed_cmds"; then | |
3776 | ac_sed_cmds=cat | |
3777 | fi | |
3778 | EOF | |
3779 | ||
7858d8dc C |
3780 | cat >> $CONFIG_STATUS <<EOF |
3781 | ||
16a02269 | 3782 | CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"} |
7858d8dc C |
3783 | EOF |
3784 | cat >> $CONFIG_STATUS <<\EOF | |
3785 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
4947b15f | 3786 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
7858d8dc | 3787 | case "$ac_file" in |
4947b15f | 3788 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
7858d8dc C |
3789 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
3790 | *) ac_file_in="${ac_file}.in" ;; | |
3791 | esac | |
3792 | ||
4947b15f | 3793 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
7858d8dc C |
3794 | |
3795 | # Remove last slash and all that follows it. Not all systems have dirname. | |
3796 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
3797 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
3798 | # The file is in a subdirectory. | |
3799 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
3800 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
3801 | # A "../" for each directory in $ac_dir_suffix. | |
3802 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
3803 | else | |
3804 | ac_dir_suffix= ac_dots= | |
3805 | fi | |
3806 | ||
3807 | case "$ac_given_srcdir" in | |
3808 | .) srcdir=. | |
3809 | if test -z "$ac_dots"; then top_srcdir=. | |
3810 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
3811 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
3812 | *) # Relative path. | |
3813 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
3814 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
3815 | esac | |
3816 | ||
39c3964f JM |
3817 | case "$ac_given_INSTALL" in |
3818 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
3819 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
3820 | esac | |
4947b15f | 3821 | |
7858d8dc C |
3822 | echo creating "$ac_file" |
3823 | rm -f "$ac_file" | |
3824 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
3825 | case "$ac_file" in | |
3826 | *Makefile*) ac_comsub="1i\\ | |
3827 | # $configure_input" ;; | |
3828 | *) ac_comsub= ;; | |
3829 | esac | |
4947b15f ILT |
3830 | |
3831 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
7858d8dc C |
3832 | sed -e "$ac_comsub |
3833 | s%@configure_input@%$configure_input%g | |
3834 | s%@srcdir@%$srcdir%g | |
3835 | s%@top_srcdir@%$top_srcdir%g | |
39c3964f | 3836 | s%@INSTALL@%$INSTALL%g |
4947b15f | 3837 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
7858d8dc | 3838 | fi; done |
4947b15f | 3839 | rm -f conftest.s* |
7858d8dc | 3840 | |
274e44ae ILT |
3841 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
3842 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
3843 | # | |
3844 | # ac_d sets the value in "#define NAME VALUE" lines. | |
3845 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
3846 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
3847 | ac_dC='\3' | |
3848 | ac_dD='%g' | |
3849 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
3850 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
3851 | ac_uB='\([ ]\)%\1#\2define\3' | |
3852 | ac_uC=' ' | |
3853 | ac_uD='\4%g' | |
3854 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
3855 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
3856 | ac_eB='$%\1#\2define\3' | |
3857 | ac_eC=' ' | |
3858 | ac_eD='%g' | |
3859 | ||
3860 | if test "${CONFIG_HEADERS+set}" != set; then | |
4947b15f ILT |
3861 | EOF |
3862 | cat >> $CONFIG_STATUS <<EOF | |
274e44ae ILT |
3863 | CONFIG_HEADERS="gconfig.h:gconfig.in" |
3864 | EOF | |
3865 | cat >> $CONFIG_STATUS <<\EOF | |
3866 | fi | |
3867 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
3868 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
3869 | case "$ac_file" in | |
3870 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
3871 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
3872 | *) ac_file_in="${ac_file}.in" ;; | |
3873 | esac | |
3874 | ||
3875 | echo creating $ac_file | |
3876 | ||
3877 | rm -f conftest.frag conftest.in conftest.out | |
3878 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
3879 | cat $ac_file_inputs > conftest.in | |
3880 | ||
3881 | EOF | |
3882 | ||
3883 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
3884 | # the proper values into config.h.in to produce config.h. And first: | |
3885 | # Protect against being on the right side of a sed subst in config.status. | |
3886 | # Protect against being in an unquoted here document in config.status. | |
3887 | rm -f conftest.vals | |
3888 | cat > conftest.hdr <<\EOF | |
3889 | s/[\\&%]/\\&/g | |
3890 | s%[\\$`]%\\&%g | |
3891 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
3892 | s%ac_d%ac_u%gp | |
3893 | s%ac_u%ac_e%gp | |
3894 | EOF | |
3895 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
3896 | rm -f conftest.hdr | |
3897 | ||
3898 | # This sed command replaces #undef with comments. This is necessary, for | |
3899 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
3900 | # on some systems where configure will not decide to define it. | |
3901 | cat >> conftest.vals <<\EOF | |
3902 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
3903 | EOF | |
3904 | ||
3905 | # Break up conftest.vals because some shells have a limit on | |
3906 | # the size of here documents, and old seds have small limits too. | |
3907 | ||
3908 | rm -f conftest.tail | |
3909 | while : | |
3910 | do | |
3911 | ac_lines=`grep -c . conftest.vals` | |
3912 | # grep -c gives empty output for an empty file on some AIX systems. | |
3913 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
3914 | # Write a limited-size here document to conftest.frag. | |
3915 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
3916 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
3917 | echo 'CEOF | |
3918 | sed -f conftest.frag conftest.in > conftest.out | |
3919 | rm -f conftest.in | |
3920 | mv conftest.out conftest.in | |
3921 | ' >> $CONFIG_STATUS | |
3922 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
3923 | rm -f conftest.vals | |
3924 | mv conftest.tail conftest.vals | |
3925 | done | |
3926 | rm -f conftest.vals | |
3927 | ||
3928 | cat >> $CONFIG_STATUS <<\EOF | |
3929 | rm -f conftest.frag conftest.h | |
3930 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
3931 | cat conftest.in >> conftest.h | |
3932 | rm -f conftest.in | |
3933 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
3934 | echo "$ac_file is unchanged" | |
3935 | rm -f conftest.h | |
3936 | else | |
3937 | # Remove last slash and all that follows it. Not all systems have dirname. | |
3938 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
3939 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
3940 | # The file is in a subdirectory. | |
3941 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
3942 | fi | |
3943 | rm -f $ac_file | |
3944 | mv conftest.h $ac_file | |
3945 | fi | |
3946 | fi; done | |
3947 | ||
3948 | EOF | |
3949 | cat >> $CONFIG_STATUS <<EOF | |
3950 | ||
7858d8dc | 3951 | |
4947b15f ILT |
3952 | EOF |
3953 | cat >> $CONFIG_STATUS <<\EOF | |
274e44ae | 3954 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h |
16a02269 | 3955 | sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile |
7858d8dc C |
3956 | exit 0 |
3957 | EOF | |
3958 | chmod +x $CONFIG_STATUS | |
3959 | rm -fr confdefs* $ac_clean_files | |
3960 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
3961 |