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