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