]>
Commit | Line | Data |
---|---|---|
c801d85f KB |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated automatically using autoconf version 2.12 | |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
6 | # | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | # Defaults: | |
11 | ac_help= | |
12 | ac_default_prefix=/usr/local | |
13 | # Any additions from configure.in: | |
14 | ac_help="$ac_help | |
15 | --with-x use the X Window System" | |
16 | ac_help="$ac_help | |
17 | **--with-shared create shared libraries" | |
18 | ac_help="$ac_help | |
19 | **--without-optimise create unoptimised code" | |
20 | ac_help="$ac_help | |
21 | **--with-debug_flag create code with DEBUG define set to 1" | |
22 | ac_help="$ac_help | |
23 | **--with-debug_info create code with debuging information included" | |
24 | ac_help="$ac_help | |
25 | **--with-mem_traing create code with memory tracing" | |
26 | ac_help="$ac_help | |
27 | **--with-profile create code with profiling information included" | |
28 | ac_help="$ac_help | |
29 | **--with-zlib use zlib (LZW comression)" | |
30 | ac_help="$ac_help | |
31 | **--with-gdk_imlib use Raster's gdk_imlib (Image library)" | |
32 | ac_help="$ac_help | |
33 | **--with-libpng use libpng (PNG image format)" | |
34 | ac_help="$ac_help | |
35 | **--with-threads use threads" | |
36 | ac_help="$ac_help | |
37 | **--with-opengl use opengl (OpenGL or Mesa)" | |
38 | ac_help="$ac_help | |
39 | **--with-storable use storable classes" | |
40 | ac_help="$ac_help | |
41 | **--with-autotrans use gettext automatic translation" | |
42 | ac_help="$ac_help | |
43 | **--with-afmfonts use Adobe Font Metric Font table" | |
44 | ac_help="$ac_help | |
45 | **--with-PS-normalized use normalized PS fonts" | |
46 | ac_help="$ac_help | |
47 | **--with-rpc use RPC" | |
48 | ac_help="$ac_help | |
49 | **--with-wxresources use wxresources" | |
50 | ac_help="$ac_help | |
51 | **--with-prologio use prologio" | |
52 | ac_help="$ac_help | |
53 | **--with-postscript use postscript-device-context" | |
54 | ac_help="$ac_help | |
55 | **--with-metafile use metafile" | |
56 | ac_help="$ac_help | |
57 | **--with-form use form" | |
58 | ac_help="$ac_help | |
59 | **--with-help use help" | |
60 | ac_help="$ac_help | |
61 | **--with-ipc use ipc" | |
62 | ac_help="$ac_help | |
63 | **--with-enhanceddialog use enhanced dialog" | |
64 | ac_help="$ac_help | |
65 | **--with-resources use resources" | |
66 | ac_help="$ac_help | |
67 | **--with-clipboard use clipboard" | |
68 | ac_help="$ac_help | |
69 | **--with-timedate use timedate" | |
70 | ac_help="$ac_help | |
71 | **--with-fraction use fraction" | |
72 | ac_help="$ac_help | |
73 | **--with-constraints use constraints" | |
74 | ac_help="$ac_help | |
75 | **--with-toolbar use toolbar" | |
76 | ac_help="$ac_help | |
77 | **--with-gauge use gauge" | |
78 | ac_help="$ac_help | |
79 | **--with-vlbox use virtual list box" | |
80 | ac_help="$ac_help | |
81 | **--with-scrollbar use scrollbar" | |
82 | ac_help="$ac_help | |
83 | **--with-docview use document view architecture" | |
84 | ac_help="$ac_help | |
85 | **--with-printarch use printing architecture" | |
86 | ac_help="$ac_help | |
87 | **--with-typetree use typetree" | |
88 | ac_help="$ac_help | |
89 | **--with-wxgraph use wxgraph" | |
90 | ac_help="$ac_help | |
91 | **--with-wxtree use wxtree" | |
92 | ac_help="$ac_help | |
93 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
94 | ac_help="$ac_help | |
95 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
96 | ||
97 | # Initialize some variables set by options. | |
98 | # The variables have the same names as the options, with | |
99 | # dashes changed to underlines. | |
100 | build=NONE | |
101 | cache_file=./config.cache | |
102 | exec_prefix=NONE | |
103 | host=NONE | |
104 | no_create= | |
105 | nonopt=NONE | |
106 | no_recursion= | |
107 | prefix=NONE | |
108 | program_prefix=NONE | |
109 | program_suffix=NONE | |
110 | program_transform_name=s,x,x, | |
111 | silent= | |
112 | site= | |
113 | srcdir= | |
114 | target=NONE | |
115 | verbose= | |
116 | x_includes=NONE | |
117 | x_libraries=NONE | |
118 | bindir='${exec_prefix}/bin' | |
119 | sbindir='${exec_prefix}/sbin' | |
120 | libexecdir='${exec_prefix}/libexec' | |
121 | datadir='${prefix}/share' | |
122 | sysconfdir='${prefix}/etc' | |
123 | sharedstatedir='${prefix}/com' | |
124 | localstatedir='${prefix}/var' | |
125 | libdir='${exec_prefix}/lib' | |
126 | includedir='${prefix}/include' | |
127 | oldincludedir='/usr/include' | |
128 | infodir='${prefix}/info' | |
129 | mandir='${prefix}/man' | |
130 | ||
131 | # Initialize some other variables. | |
132 | subdirs= | |
133 | MFLAGS= MAKEFLAGS= | |
134 | # Maximum number of lines to put in a shell here document. | |
135 | ac_max_here_lines=12 | |
136 | ||
137 | ac_prev= | |
138 | for ac_option | |
139 | do | |
140 | ||
141 | # If the previous option needs an argument, assign it. | |
142 | if test -n "$ac_prev"; then | |
143 | eval "$ac_prev=\$ac_option" | |
144 | ac_prev= | |
145 | continue | |
146 | fi | |
147 | ||
148 | case "$ac_option" in | |
149 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
150 | *) ac_optarg= ;; | |
151 | esac | |
152 | ||
153 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
154 | ||
155 | case "$ac_option" in | |
156 | ||
157 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
158 | ac_prev=bindir ;; | |
159 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
160 | bindir="$ac_optarg" ;; | |
161 | ||
162 | -build | --build | --buil | --bui | --bu) | |
163 | ac_prev=build ;; | |
164 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
165 | build="$ac_optarg" ;; | |
166 | ||
167 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
168 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
169 | ac_prev=cache_file ;; | |
170 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
171 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
172 | cache_file="$ac_optarg" ;; | |
173 | ||
174 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
175 | ac_prev=datadir ;; | |
176 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
177 | | --da=*) | |
178 | datadir="$ac_optarg" ;; | |
179 | ||
180 | -disable-* | --disable-*) | |
181 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
182 | # Reject names that are not valid shell variable names. | |
183 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
184 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
185 | fi | |
186 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
187 | eval "enable_${ac_feature}=no" ;; | |
188 | ||
189 | -enable-* | --enable-*) | |
190 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
191 | # Reject names that are not valid shell variable names. | |
192 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
193 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
194 | fi | |
195 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
196 | case "$ac_option" in | |
197 | *=*) ;; | |
198 | *) ac_optarg=yes ;; | |
199 | esac | |
200 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
201 | ||
202 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
203 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
204 | | --exec | --exe | --ex) | |
205 | ac_prev=exec_prefix ;; | |
206 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
207 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
208 | | --exec=* | --exe=* | --ex=*) | |
209 | exec_prefix="$ac_optarg" ;; | |
210 | ||
211 | -gas | --gas | --ga | --g) | |
212 | # Obsolete; use --with-gas. | |
213 | with_gas=yes ;; | |
214 | ||
215 | -help | --help | --hel | --he) | |
216 | # Omit some internal or obsolete options to make the list less imposing. | |
217 | # This message is too long to be a string in the A/UX 3.1 sh. | |
218 | cat << EOF | |
219 | Usage: configure [options] [host] | |
220 | Options: [defaults in brackets after descriptions] | |
221 | Configuration: | |
222 | --cache-file=FILE cache test results in FILE | |
223 | --help print this message | |
224 | --no-create do not create output files | |
225 | --quiet, --silent do not print \`checking...' messages | |
226 | --version print the version of autoconf that created configure | |
227 | Directory and file names: | |
228 | --prefix=PREFIX install architecture-independent files in PREFIX | |
229 | [$ac_default_prefix] | |
230 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
231 | [same as prefix] | |
232 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
233 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
234 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
235 | --datadir=DIR read-only architecture-independent data in DIR | |
236 | [PREFIX/share] | |
237 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
238 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
239 | [PREFIX/com] | |
240 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
241 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
242 | --includedir=DIR C header files in DIR [PREFIX/include] | |
243 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
244 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
245 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
246 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
247 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
248 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
249 | --program-transform-name=PROGRAM | |
250 | run sed PROGRAM on installed program names | |
251 | EOF | |
252 | cat << EOF | |
253 | Host type: | |
254 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
255 | --host=HOST configure for HOST [guessed] | |
256 | --target=TARGET configure for TARGET [TARGET=HOST] | |
257 | Features and packages: | |
258 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
259 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
260 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
261 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
262 | --x-includes=DIR X include files are in DIR | |
263 | --x-libraries=DIR X library files are in DIR | |
264 | EOF | |
265 | if test -n "$ac_help"; then | |
266 | echo "--enable and --with options recognized:$ac_help" | |
267 | fi | |
268 | exit 0 ;; | |
269 | ||
270 | -host | --host | --hos | --ho) | |
271 | ac_prev=host ;; | |
272 | -host=* | --host=* | --hos=* | --ho=*) | |
273 | host="$ac_optarg" ;; | |
274 | ||
275 | -includedir | --includedir | --includedi | --included | --include \ | |
276 | | --includ | --inclu | --incl | --inc) | |
277 | ac_prev=includedir ;; | |
278 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
279 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
280 | includedir="$ac_optarg" ;; | |
281 | ||
282 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
283 | ac_prev=infodir ;; | |
284 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
285 | infodir="$ac_optarg" ;; | |
286 | ||
287 | -libdir | --libdir | --libdi | --libd) | |
288 | ac_prev=libdir ;; | |
289 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
290 | libdir="$ac_optarg" ;; | |
291 | ||
292 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
293 | | --libexe | --libex | --libe) | |
294 | ac_prev=libexecdir ;; | |
295 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
296 | | --libexe=* | --libex=* | --libe=*) | |
297 | libexecdir="$ac_optarg" ;; | |
298 | ||
299 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
300 | | --localstate | --localstat | --localsta | --localst \ | |
301 | | --locals | --local | --loca | --loc | --lo) | |
302 | ac_prev=localstatedir ;; | |
303 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
304 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
305 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
306 | localstatedir="$ac_optarg" ;; | |
307 | ||
308 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
309 | ac_prev=mandir ;; | |
310 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
311 | mandir="$ac_optarg" ;; | |
312 | ||
313 | -nfp | --nfp | --nf) | |
314 | # Obsolete; use --without-fp. | |
315 | with_fp=no ;; | |
316 | ||
317 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
318 | | --no-cr | --no-c) | |
319 | no_create=yes ;; | |
320 | ||
321 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
322 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
323 | no_recursion=yes ;; | |
324 | ||
325 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
326 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
327 | | --oldin | --oldi | --old | --ol | --o) | |
328 | ac_prev=oldincludedir ;; | |
329 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
330 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
331 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
332 | oldincludedir="$ac_optarg" ;; | |
333 | ||
334 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
335 | ac_prev=prefix ;; | |
336 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
337 | prefix="$ac_optarg" ;; | |
338 | ||
339 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
340 | | --program-pre | --program-pr | --program-p) | |
341 | ac_prev=program_prefix ;; | |
342 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
343 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
344 | program_prefix="$ac_optarg" ;; | |
345 | ||
346 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
347 | | --program-suf | --program-su | --program-s) | |
348 | ac_prev=program_suffix ;; | |
349 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
350 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
351 | program_suffix="$ac_optarg" ;; | |
352 | ||
353 | -program-transform-name | --program-transform-name \ | |
354 | | --program-transform-nam | --program-transform-na \ | |
355 | | --program-transform-n | --program-transform- \ | |
356 | | --program-transform | --program-transfor \ | |
357 | | --program-transfo | --program-transf \ | |
358 | | --program-trans | --program-tran \ | |
359 | | --progr-tra | --program-tr | --program-t) | |
360 | ac_prev=program_transform_name ;; | |
361 | -program-transform-name=* | --program-transform-name=* \ | |
362 | | --program-transform-nam=* | --program-transform-na=* \ | |
363 | | --program-transform-n=* | --program-transform-=* \ | |
364 | | --program-transform=* | --program-transfor=* \ | |
365 | | --program-transfo=* | --program-transf=* \ | |
366 | | --program-trans=* | --program-tran=* \ | |
367 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
368 | program_transform_name="$ac_optarg" ;; | |
369 | ||
370 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
371 | | -silent | --silent | --silen | --sile | --sil) | |
372 | silent=yes ;; | |
373 | ||
374 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
375 | ac_prev=sbindir ;; | |
376 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
377 | | --sbi=* | --sb=*) | |
378 | sbindir="$ac_optarg" ;; | |
379 | ||
380 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
381 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
382 | | --sharedst | --shareds | --shared | --share | --shar \ | |
383 | | --sha | --sh) | |
384 | ac_prev=sharedstatedir ;; | |
385 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
386 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
387 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
388 | | --sha=* | --sh=*) | |
389 | sharedstatedir="$ac_optarg" ;; | |
390 | ||
391 | -site | --site | --sit) | |
392 | ac_prev=site ;; | |
393 | -site=* | --site=* | --sit=*) | |
394 | site="$ac_optarg" ;; | |
395 | ||
396 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
397 | ac_prev=srcdir ;; | |
398 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
399 | srcdir="$ac_optarg" ;; | |
400 | ||
401 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
402 | | --syscon | --sysco | --sysc | --sys | --sy) | |
403 | ac_prev=sysconfdir ;; | |
404 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
405 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
406 | sysconfdir="$ac_optarg" ;; | |
407 | ||
408 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
409 | ac_prev=target ;; | |
410 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
411 | target="$ac_optarg" ;; | |
412 | ||
413 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
414 | verbose=yes ;; | |
415 | ||
416 | -version | --version | --versio | --versi | --vers) | |
417 | echo "configure generated by autoconf version 2.12" | |
418 | exit 0 ;; | |
419 | ||
420 | -with-* | --with-*) | |
421 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
422 | # Reject names that are not valid shell variable names. | |
423 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
424 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
425 | fi | |
426 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
427 | case "$ac_option" in | |
428 | *=*) ;; | |
429 | *) ac_optarg=yes ;; | |
430 | esac | |
431 | eval "with_${ac_package}='$ac_optarg'" ;; | |
432 | ||
433 | -without-* | --without-*) | |
434 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
435 | # Reject names that are not valid shell variable names. | |
436 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
437 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
438 | fi | |
439 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
440 | eval "with_${ac_package}=no" ;; | |
441 | ||
442 | --x) | |
443 | # Obsolete; use --with-x. | |
444 | with_x=yes ;; | |
445 | ||
446 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
447 | | --x-incl | --x-inc | --x-in | --x-i) | |
448 | ac_prev=x_includes ;; | |
449 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
450 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
451 | x_includes="$ac_optarg" ;; | |
452 | ||
453 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
454 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
455 | ac_prev=x_libraries ;; | |
456 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
457 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
458 | x_libraries="$ac_optarg" ;; | |
459 | ||
460 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
461 | ;; | |
462 | ||
463 | *) | |
464 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
465 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
466 | fi | |
467 | if test "x$nonopt" != xNONE; then | |
468 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
469 | fi | |
470 | nonopt="$ac_option" | |
471 | ;; | |
472 | ||
473 | esac | |
474 | done | |
475 | ||
476 | if test -n "$ac_prev"; then | |
477 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
478 | fi | |
479 | ||
480 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
481 | ||
482 | # File descriptor usage: | |
483 | # 0 standard input | |
484 | # 1 file creation | |
485 | # 2 errors and warnings | |
486 | # 3 some systems may open it to /dev/tty | |
487 | # 4 used on the Kubota Titan | |
488 | # 6 checking for... messages and results | |
489 | # 5 compiler messages saved in config.log | |
490 | if test "$silent" = yes; then | |
491 | exec 6>/dev/null | |
492 | else | |
493 | exec 6>&1 | |
494 | fi | |
495 | exec 5>./config.log | |
496 | ||
497 | echo "\ | |
498 | This file contains any messages produced by compilers while | |
499 | running configure, to aid debugging if configure makes a mistake. | |
500 | " 1>&5 | |
501 | ||
502 | # Strip out --no-create and --no-recursion so they do not pile up. | |
503 | # Also quote any args containing shell metacharacters. | |
504 | ac_configure_args= | |
505 | for ac_arg | |
506 | do | |
507 | case "$ac_arg" in | |
508 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
509 | | --no-cr | --no-c) ;; | |
510 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
511 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
512 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
513 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
514 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
515 | esac | |
516 | done | |
517 | ||
518 | # NLS nuisances. | |
519 | # Only set these to C if already set. These must not be set unconditionally | |
520 | # because not all systems understand e.g. LANG=C (notably SCO). | |
521 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
522 | # Non-C LC_CTYPE values break the ctype check. | |
523 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
524 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
525 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
526 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
527 | ||
528 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
529 | rm -rf conftest* confdefs.h | |
530 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
531 | echo > confdefs.h | |
532 | ||
533 | # A filename unique to this package, relative to the directory that | |
534 | # configure is in, which we can look for to find out if srcdir is correct. | |
535 | ac_unique_file=configure.in | |
536 | ||
537 | # Find the source files, if location was not specified. | |
538 | if test -z "$srcdir"; then | |
539 | ac_srcdir_defaulted=yes | |
540 | # Try the directory containing this script, then its parent. | |
541 | ac_prog=$0 | |
542 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
543 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
544 | srcdir=$ac_confdir | |
545 | if test ! -r $srcdir/$ac_unique_file; then | |
546 | srcdir=.. | |
547 | fi | |
548 | else | |
549 | ac_srcdir_defaulted=no | |
550 | fi | |
551 | if test ! -r $srcdir/$ac_unique_file; then | |
552 | if test "$ac_srcdir_defaulted" = yes; then | |
553 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
554 | else | |
555 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
556 | fi | |
557 | fi | |
558 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
559 | ||
560 | # Prefer explicitly selected file to automatically selected ones. | |
561 | if test -z "$CONFIG_SITE"; then | |
562 | if test "x$prefix" != xNONE; then | |
563 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
564 | else | |
565 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
566 | fi | |
567 | fi | |
568 | for ac_site_file in $CONFIG_SITE; do | |
569 | if test -r "$ac_site_file"; then | |
570 | echo "loading site script $ac_site_file" | |
571 | . "$ac_site_file" | |
572 | fi | |
573 | done | |
574 | ||
575 | if test -r "$cache_file"; then | |
576 | echo "loading cache $cache_file" | |
577 | . $cache_file | |
578 | else | |
579 | echo "creating cache $cache_file" | |
580 | > $cache_file | |
581 | fi | |
582 | ||
583 | ac_ext=c | |
584 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
585 | ac_cpp='$CPP $CPPFLAGS' | |
586 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
587 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
588 | cross_compiling=$ac_cv_prog_cc_cross | |
589 | ||
590 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
591 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
592 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
593 | ac_n= ac_c=' | |
594 | ' ac_t=' ' | |
595 | else | |
596 | ac_n=-n ac_c= ac_t= | |
597 | fi | |
598 | else | |
599 | ac_n= ac_c='\c' ac_t= | |
600 | fi | |
601 | ||
602 | ||
603 | ||
604 | ||
605 | OS="${OSTYPE}" | |
606 | ||
607 | if test "x$OS" = "x"; then | |
608 | UNAME=`uname` | |
609 | { echo "configure: error: "The system variable OS has not been set" | |
610 | "please set is everytime befor compiling on this system" | |
611 | "A good example for this system would be:" | |
612 | "setenv OSTYPE $UNAME for csh as a SHELL" | |
613 | "EXPORT OSTYPE=$UNAME for sh as SHELL" | |
614 | "please set this and restart again." | |
615 | " 1>&2; exit 1; } | |
616 | fi | |
617 | ||
618 | ||
abe1d62e | 619 | cd ../.. |
c801d85f | 620 | WXBASEDIR=`pwd` |
abe1d62e | 621 | cd install/gtk |
c801d85f KB |
622 | |
623 | ||
624 | ||
625 | SEARCH_INCLUDE="\ | |
626 | /usr/Motif1.2/include \ | |
627 | \ | |
628 | /usr/X11R6/include \ | |
629 | /usr/X11R5/include \ | |
630 | /usr/X11R4/include \ | |
631 | \ | |
632 | /usr/include/X11R6 \ | |
633 | /usr/include/X11R5 \ | |
634 | /usr/include/X11R4 \ | |
635 | \ | |
636 | /usr/local/X11R6/include \ | |
637 | /usr/local/X11R5/include \ | |
638 | /usr/local/X11R4/include \ | |
639 | \ | |
640 | /usr/local/include/X11R6 \ | |
641 | /usr/local/include/X11R5 \ | |
642 | /usr/local/include/X11R4 \ | |
643 | \ | |
644 | /usr/X11/include \ | |
645 | /usr/include/X11 \ | |
646 | /usr/local/X11/include \ | |
647 | /usr/local/include/X11 \ | |
648 | \ | |
649 | /usr/X386/include \ | |
650 | /usr/x386/include \ | |
651 | /usr/XFree86/include/X11 \ | |
652 | \ | |
653 | /usr/include \ | |
654 | /usr/local/include \ | |
655 | /usr/local/include/gtk \ | |
656 | /usr/unsupported/include \ | |
657 | /usr/athena/include \ | |
658 | /usr/local/x11r5/include \ | |
659 | /usr/lpp/Xamples/include \ | |
660 | \ | |
661 | /usr/openwin/include \ | |
662 | /usr/openwin/share/include \ | |
663 | " | |
664 | ||
665 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` \ | |
666 | " | |
667 | ||
668 | ||
669 | ||
670 | # Extract the first word of "gcc", so it can be a program name with args. | |
671 | set dummy gcc; ac_word=$2 | |
672 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
abe1d62e | 673 | echo "configure:674: checking for $ac_word" >&5 |
c801d85f KB |
674 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
675 | echo $ac_n "(cached) $ac_c" 1>&6 | |
676 | else | |
677 | if test -n "$CC"; then | |
678 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
679 | else | |
680 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
681 | for ac_dir in $PATH; do | |
682 | test -z "$ac_dir" && ac_dir=. | |
683 | if test -f $ac_dir/$ac_word; then | |
684 | ac_cv_prog_CC="gcc" | |
685 | break | |
686 | fi | |
687 | done | |
688 | IFS="$ac_save_ifs" | |
689 | fi | |
690 | fi | |
691 | CC="$ac_cv_prog_CC" | |
692 | if test -n "$CC"; then | |
693 | echo "$ac_t""$CC" 1>&6 | |
694 | else | |
695 | echo "$ac_t""no" 1>&6 | |
696 | fi | |
697 | ||
698 | if test -z "$CC"; then | |
699 | # Extract the first word of "cc", so it can be a program name with args. | |
700 | set dummy cc; ac_word=$2 | |
701 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
abe1d62e | 702 | echo "configure:703: checking for $ac_word" >&5 |
c801d85f KB |
703 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
704 | echo $ac_n "(cached) $ac_c" 1>&6 | |
705 | else | |
706 | if test -n "$CC"; then | |
707 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
708 | else | |
709 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
710 | ac_prog_rejected=no | |
711 | for ac_dir in $PATH; do | |
712 | test -z "$ac_dir" && ac_dir=. | |
713 | if test -f $ac_dir/$ac_word; then | |
714 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
715 | ac_prog_rejected=yes | |
716 | continue | |
717 | fi | |
718 | ac_cv_prog_CC="cc" | |
719 | break | |
720 | fi | |
721 | done | |
722 | IFS="$ac_save_ifs" | |
723 | if test $ac_prog_rejected = yes; then | |
724 | # We found a bogon in the path, so make sure we never use it. | |
725 | set dummy $ac_cv_prog_CC | |
726 | shift | |
727 | if test $# -gt 0; then | |
728 | # We chose a different compiler from the bogus one. | |
729 | # However, it has the same basename, so the bogon will be chosen | |
730 | # first if we set CC to just the basename; use the full file name. | |
731 | shift | |
732 | set dummy "$ac_dir/$ac_word" "$@" | |
733 | shift | |
734 | ac_cv_prog_CC="$@" | |
735 | fi | |
736 | fi | |
737 | fi | |
738 | fi | |
739 | CC="$ac_cv_prog_CC" | |
740 | if test -n "$CC"; then | |
741 | echo "$ac_t""$CC" 1>&6 | |
742 | else | |
743 | echo "$ac_t""no" 1>&6 | |
744 | fi | |
745 | ||
746 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
747 | fi | |
748 | ||
749 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
abe1d62e | 750 | echo "configure:751: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
c801d85f KB |
751 | |
752 | ac_ext=c | |
753 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
754 | ac_cpp='$CPP $CPPFLAGS' | |
755 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
756 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
757 | cross_compiling=$ac_cv_prog_cc_cross | |
758 | ||
759 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 760 | #line 761 "configure" |
c801d85f KB |
761 | #include "confdefs.h" |
762 | main(){return(0);} | |
763 | EOF | |
abe1d62e | 764 | if { (eval echo configure:765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
765 | ac_cv_prog_cc_works=yes |
766 | # If we can't run a trivial program, we are probably using a cross compiler. | |
767 | if (./conftest; exit) 2>/dev/null; then | |
768 | ac_cv_prog_cc_cross=no | |
769 | else | |
770 | ac_cv_prog_cc_cross=yes | |
771 | fi | |
772 | else | |
773 | echo "configure: failed program was:" >&5 | |
774 | cat conftest.$ac_ext >&5 | |
775 | ac_cv_prog_cc_works=no | |
776 | fi | |
777 | rm -fr conftest* | |
778 | ||
779 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
780 | if test $ac_cv_prog_cc_works = no; then | |
781 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
782 | fi | |
783 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
abe1d62e | 784 | echo "configure:785: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
c801d85f KB |
785 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
786 | cross_compiling=$ac_cv_prog_cc_cross | |
787 | ||
788 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
abe1d62e | 789 | echo "configure:790: checking whether we are using GNU C" >&5 |
c801d85f KB |
790 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
791 | echo $ac_n "(cached) $ac_c" 1>&6 | |
792 | else | |
793 | cat > conftest.c <<EOF | |
794 | #ifdef __GNUC__ | |
795 | yes; | |
796 | #endif | |
797 | EOF | |
abe1d62e | 798 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
c801d85f KB |
799 | ac_cv_prog_gcc=yes |
800 | else | |
801 | ac_cv_prog_gcc=no | |
802 | fi | |
803 | fi | |
804 | ||
805 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
806 | ||
807 | if test $ac_cv_prog_gcc = yes; then | |
808 | GCC=yes | |
809 | ac_test_CFLAGS="${CFLAGS+set}" | |
810 | ac_save_CFLAGS="$CFLAGS" | |
811 | CFLAGS= | |
812 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
abe1d62e | 813 | echo "configure:814: checking whether ${CC-cc} accepts -g" >&5 |
c801d85f KB |
814 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
815 | echo $ac_n "(cached) $ac_c" 1>&6 | |
816 | else | |
817 | echo 'void f(){}' > conftest.c | |
818 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
819 | ac_cv_prog_cc_g=yes | |
820 | else | |
821 | ac_cv_prog_cc_g=no | |
822 | fi | |
823 | rm -f conftest* | |
824 | ||
825 | fi | |
826 | ||
827 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
828 | if test "$ac_test_CFLAGS" = set; then | |
829 | CFLAGS="$ac_save_CFLAGS" | |
830 | elif test $ac_cv_prog_cc_g = yes; then | |
831 | CFLAGS="-g -O2" | |
832 | else | |
833 | CFLAGS="-O2" | |
834 | fi | |
835 | else | |
836 | GCC= | |
837 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
838 | fi | |
839 | ||
840 | ||
841 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
842 | ||
843 | if test "x$CC" != xcc; then | |
844 | echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6 | |
abe1d62e | 845 | echo "configure:846: checking whether $CC and cc understand -c and -o together" >&5 |
c801d85f KB |
846 | else |
847 | echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6 | |
abe1d62e | 848 | echo "configure:849: checking whether cc understands -c and -o together" >&5 |
c801d85f KB |
849 | fi |
850 | set dummy $CC; ac_cc="`echo $2 | | |
851 | sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" | |
852 | if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then | |
853 | echo $ac_n "(cached) $ac_c" 1>&6 | |
854 | else | |
855 | echo 'foo(){}' > conftest.c | |
856 | # Make sure it works both with $CC and with simple cc. | |
857 | # We do the test twice because some compilers refuse to overwrite an | |
858 | # existing .o file with -o, though they will create one. | |
859 | ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5' | |
abe1d62e RR |
860 | if { (eval echo configure:861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && |
861 | test -f conftest.o && { (eval echo configure:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; | |
c801d85f KB |
862 | then |
863 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
864 | if test "x$CC" != xcc; then | |
865 | # Test first that cc exists at all. | |
abe1d62e | 866 | if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
c801d85f | 867 | ac_try='cc -c conftest.c -o conftest.o 1>&5' |
abe1d62e RR |
868 | if { (eval echo configure:869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && |
869 | test -f conftest.o && { (eval echo configure:870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; | |
c801d85f KB |
870 | then |
871 | # cc works too. | |
872 | : | |
873 | else | |
874 | # cc exists but doesn't like -o. | |
875 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
876 | fi | |
877 | fi | |
878 | fi | |
879 | else | |
880 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
881 | fi | |
882 | rm -f conftest* | |
883 | ||
884 | fi | |
885 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then | |
886 | echo "$ac_t""yes" 1>&6 | |
887 | else | |
888 | echo "$ac_t""no" 1>&6 | |
889 | cat >> confdefs.h <<\EOF | |
890 | #define NO_MINUS_C_MINUS_O 1 | |
891 | EOF | |
892 | ||
893 | fi | |
894 | ||
895 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
abe1d62e | 896 | echo "configure:897: checking how to run the C preprocessor" >&5 |
c801d85f KB |
897 | # On Suns, sometimes $CPP names a directory. |
898 | if test -n "$CPP" && test -d "$CPP"; then | |
899 | CPP= | |
900 | fi | |
901 | if test -z "$CPP"; then | |
902 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
903 | echo $ac_n "(cached) $ac_c" 1>&6 | |
904 | else | |
905 | # This must be in double quotes, not single quotes, because CPP may get | |
906 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
907 | CPP="${CC-cc} -E" | |
908 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
909 | # not just through cpp. | |
910 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 911 | #line 912 "configure" |
c801d85f KB |
912 | #include "confdefs.h" |
913 | #include <assert.h> | |
914 | Syntax Error | |
915 | EOF | |
916 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
abe1d62e | 917 | { (eval echo configure:918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
918 | ac_err=`grep -v '^ *+' conftest.out` |
919 | if test -z "$ac_err"; then | |
920 | : | |
921 | else | |
922 | echo "$ac_err" >&5 | |
923 | echo "configure: failed program was:" >&5 | |
924 | cat conftest.$ac_ext >&5 | |
925 | rm -rf conftest* | |
926 | CPP="${CC-cc} -E -traditional-cpp" | |
927 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 928 | #line 929 "configure" |
c801d85f KB |
929 | #include "confdefs.h" |
930 | #include <assert.h> | |
931 | Syntax Error | |
932 | EOF | |
933 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
abe1d62e | 934 | { (eval echo configure:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
935 | ac_err=`grep -v '^ *+' conftest.out` |
936 | if test -z "$ac_err"; then | |
937 | : | |
938 | else | |
939 | echo "$ac_err" >&5 | |
940 | echo "configure: failed program was:" >&5 | |
941 | cat conftest.$ac_ext >&5 | |
942 | rm -rf conftest* | |
943 | CPP=/lib/cpp | |
944 | fi | |
945 | rm -f conftest* | |
946 | fi | |
947 | rm -f conftest* | |
948 | ac_cv_prog_CPP="$CPP" | |
949 | fi | |
950 | CPP="$ac_cv_prog_CPP" | |
951 | else | |
952 | ac_cv_prog_CPP="$CPP" | |
953 | fi | |
954 | echo "$ac_t""$CPP" 1>&6 | |
955 | ||
956 | if test $ac_cv_prog_gcc = yes; then | |
957 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
abe1d62e | 958 | echo "configure:959: checking whether ${CC-cc} needs -traditional" >&5 |
c801d85f KB |
959 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
960 | echo $ac_n "(cached) $ac_c" 1>&6 | |
961 | else | |
962 | ac_pattern="Autoconf.*'x'" | |
963 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 964 | #line 965 "configure" |
c801d85f KB |
965 | #include "confdefs.h" |
966 | #include <sgtty.h> | |
967 | Autoconf TIOCGETP | |
968 | EOF | |
969 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
970 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
971 | rm -rf conftest* | |
972 | ac_cv_prog_gcc_traditional=yes | |
973 | else | |
974 | rm -rf conftest* | |
975 | ac_cv_prog_gcc_traditional=no | |
976 | fi | |
977 | rm -f conftest* | |
978 | ||
979 | ||
980 | if test $ac_cv_prog_gcc_traditional = no; then | |
981 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 982 | #line 983 "configure" |
c801d85f KB |
983 | #include "confdefs.h" |
984 | #include <termio.h> | |
985 | Autoconf TCGETA | |
986 | EOF | |
987 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
988 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
989 | rm -rf conftest* | |
990 | ac_cv_prog_gcc_traditional=yes | |
991 | fi | |
992 | rm -f conftest* | |
993 | ||
994 | fi | |
995 | fi | |
996 | ||
997 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
998 | if test $ac_cv_prog_gcc_traditional = yes; then | |
999 | CC="$CC -traditional" | |
1000 | fi | |
1001 | fi | |
1002 | ||
1003 | ||
1004 | ||
1005 | ||
1006 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ | |
1007 | do | |
1008 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1009 | set dummy $ac_prog; ac_word=$2 | |
1010 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
abe1d62e | 1011 | echo "configure:1012: checking for $ac_word" >&5 |
c801d85f KB |
1012 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
1013 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1014 | else | |
1015 | if test -n "$CXX"; then | |
1016 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
1017 | else | |
1018 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1019 | for ac_dir in $PATH; do | |
1020 | test -z "$ac_dir" && ac_dir=. | |
1021 | if test -f $ac_dir/$ac_word; then | |
1022 | ac_cv_prog_CXX="$ac_prog" | |
1023 | break | |
1024 | fi | |
1025 | done | |
1026 | IFS="$ac_save_ifs" | |
1027 | fi | |
1028 | fi | |
1029 | CXX="$ac_cv_prog_CXX" | |
1030 | if test -n "$CXX"; then | |
1031 | echo "$ac_t""$CXX" 1>&6 | |
1032 | else | |
1033 | echo "$ac_t""no" 1>&6 | |
1034 | fi | |
1035 | ||
1036 | test -n "$CXX" && break | |
1037 | done | |
1038 | test -n "$CXX" || CXX="gcc" | |
1039 | ||
1040 | ||
1041 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
abe1d62e | 1042 | echo "configure:1043: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
c801d85f KB |
1043 | |
1044 | ac_ext=C | |
1045 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1046 | ac_cpp='$CXXCPP $CPPFLAGS' | |
1047 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1048 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1049 | cross_compiling=$ac_cv_prog_cxx_cross | |
1050 | ||
1051 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 1052 | #line 1053 "configure" |
c801d85f KB |
1053 | #include "confdefs.h" |
1054 | main(){return(0);} | |
1055 | EOF | |
abe1d62e | 1056 | if { (eval echo configure:1057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1057 | ac_cv_prog_cxx_works=yes |
1058 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1059 | if (./conftest; exit) 2>/dev/null; then | |
1060 | ac_cv_prog_cxx_cross=no | |
1061 | else | |
1062 | ac_cv_prog_cxx_cross=yes | |
1063 | fi | |
1064 | else | |
1065 | echo "configure: failed program was:" >&5 | |
1066 | cat conftest.$ac_ext >&5 | |
1067 | ac_cv_prog_cxx_works=no | |
1068 | fi | |
1069 | rm -fr conftest* | |
1070 | ac_ext=c | |
1071 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1072 | ac_cpp='$CPP $CPPFLAGS' | |
1073 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1074 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1075 | cross_compiling=$ac_cv_prog_cc_cross | |
1076 | ||
1077 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
1078 | if test $ac_cv_prog_cxx_works = no; then | |
1079 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
1080 | fi | |
1081 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
abe1d62e | 1082 | echo "configure:1083: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
c801d85f KB |
1083 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
1084 | cross_compiling=$ac_cv_prog_cxx_cross | |
1085 | ||
1086 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
abe1d62e | 1087 | echo "configure:1088: checking whether we are using GNU C++" >&5 |
c801d85f KB |
1088 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
1089 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1090 | else | |
1091 | cat > conftest.C <<EOF | |
1092 | #ifdef __GNUC__ | |
1093 | yes; | |
1094 | #endif | |
1095 | EOF | |
abe1d62e | 1096 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
c801d85f KB |
1097 | ac_cv_prog_gxx=yes |
1098 | else | |
1099 | ac_cv_prog_gxx=no | |
1100 | fi | |
1101 | fi | |
1102 | ||
1103 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
1104 | ||
1105 | if test $ac_cv_prog_gxx = yes; then | |
1106 | GXX=yes | |
1107 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
1108 | ac_save_CXXFLAGS="$CXXFLAGS" | |
1109 | CXXFLAGS= | |
1110 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
abe1d62e | 1111 | echo "configure:1112: checking whether ${CXX-g++} accepts -g" >&5 |
c801d85f KB |
1112 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
1113 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1114 | else | |
1115 | echo 'void f(){}' > conftest.cc | |
1116 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
1117 | ac_cv_prog_cxx_g=yes | |
1118 | else | |
1119 | ac_cv_prog_cxx_g=no | |
1120 | fi | |
1121 | rm -f conftest* | |
1122 | ||
1123 | fi | |
1124 | ||
1125 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
1126 | if test "$ac_test_CXXFLAGS" = set; then | |
1127 | CXXFLAGS="$ac_save_CXXFLAGS" | |
1128 | elif test $ac_cv_prog_cxx_g = yes; then | |
1129 | CXXFLAGS="-g -O2" | |
1130 | else | |
1131 | CXXFLAGS="-O2" | |
1132 | fi | |
1133 | else | |
1134 | GXX= | |
1135 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" | |
1136 | fi | |
1137 | ||
1138 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
abe1d62e | 1139 | echo "configure:1140: checking how to run the C++ preprocessor" >&5 |
c801d85f KB |
1140 | if test -z "$CXXCPP"; then |
1141 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
1142 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1143 | else | |
1144 | ac_ext=C | |
1145 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1146 | ac_cpp='$CXXCPP $CPPFLAGS' | |
1147 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1148 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1149 | cross_compiling=$ac_cv_prog_cxx_cross | |
1150 | CXXCPP="${CXX-g++} -E" | |
1151 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 1152 | #line 1153 "configure" |
c801d85f KB |
1153 | #include "confdefs.h" |
1154 | #include <stdlib.h> | |
1155 | EOF | |
1156 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
abe1d62e | 1157 | { (eval echo configure:1158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
1158 | ac_err=`grep -v '^ *+' conftest.out` |
1159 | if test -z "$ac_err"; then | |
1160 | : | |
1161 | else | |
1162 | echo "$ac_err" >&5 | |
1163 | echo "configure: failed program was:" >&5 | |
1164 | cat conftest.$ac_ext >&5 | |
1165 | rm -rf conftest* | |
1166 | CXXCPP=/lib/cpp | |
1167 | fi | |
1168 | rm -f conftest* | |
1169 | ac_cv_prog_CXXCPP="$CXXCPP" | |
1170 | ac_ext=c | |
1171 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1172 | ac_cpp='$CPP $CPPFLAGS' | |
1173 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1174 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1175 | cross_compiling=$ac_cv_prog_cc_cross | |
1176 | fi | |
1177 | fi | |
1178 | CXXCPP="$ac_cv_prog_CXXCPP" | |
1179 | echo "$ac_t""$CXXCPP" 1>&6 | |
1180 | ||
1181 | ||
1182 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
1183 | ||
1184 | ||
1185 | ||
1186 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1187 | set dummy ranlib; ac_word=$2 | |
1188 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
abe1d62e | 1189 | echo "configure:1190: checking for $ac_word" >&5 |
c801d85f KB |
1190 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1191 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1192 | else | |
1193 | if test -n "$RANLIB"; then | |
1194 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1195 | else | |
1196 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1197 | for ac_dir in $PATH; do | |
1198 | test -z "$ac_dir" && ac_dir=. | |
1199 | if test -f $ac_dir/$ac_word; then | |
1200 | ac_cv_prog_RANLIB="ranlib" | |
1201 | break | |
1202 | fi | |
1203 | done | |
1204 | IFS="$ac_save_ifs" | |
1205 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1206 | fi | |
1207 | fi | |
1208 | RANLIB="$ac_cv_prog_RANLIB" | |
1209 | if test -n "$RANLIB"; then | |
1210 | echo "$ac_t""$RANLIB" 1>&6 | |
1211 | else | |
1212 | echo "$ac_t""no" 1>&6 | |
1213 | fi | |
1214 | ||
1215 | ||
1216 | # Extract the first word of "ar", so it can be a program name with args. | |
1217 | set dummy ar; ac_word=$2 | |
1218 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
abe1d62e | 1219 | echo "configure:1220: checking for $ac_word" >&5 |
c801d85f KB |
1220 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
1221 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1222 | else | |
1223 | if test -n "$AR"; then | |
1224 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
1225 | else | |
1226 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1227 | for ac_dir in $PATH; do | |
1228 | test -z "$ac_dir" && ac_dir=. | |
1229 | if test -f $ac_dir/$ac_word; then | |
1230 | ac_cv_prog_AR="ar" | |
1231 | break | |
1232 | fi | |
1233 | done | |
1234 | IFS="$ac_save_ifs" | |
1235 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
1236 | fi | |
1237 | fi | |
1238 | AR="$ac_cv_prog_AR" | |
1239 | if test -n "$AR"; then | |
1240 | echo "$ac_t""$AR" 1>&6 | |
1241 | else | |
1242 | echo "$ac_t""no" 1>&6 | |
1243 | fi | |
1244 | ||
1245 | ||
1246 | ac_aux_dir= | |
1247 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1248 | if test -f $ac_dir/install-sh; then | |
1249 | ac_aux_dir=$ac_dir | |
1250 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1251 | break | |
1252 | elif test -f $ac_dir/install.sh; then | |
1253 | ac_aux_dir=$ac_dir | |
1254 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1255 | break | |
1256 | fi | |
1257 | done | |
1258 | if test -z "$ac_aux_dir"; then | |
1259 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
1260 | fi | |
1261 | ac_config_guess=$ac_aux_dir/config.guess | |
1262 | ac_config_sub=$ac_aux_dir/config.sub | |
1263 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
1264 | ||
1265 | # Find a good install program. We prefer a C program (faster), | |
1266 | # so one script is as good as another. But avoid the broken or | |
1267 | # incompatible versions: | |
1268 | # SysV /etc/install, /usr/sbin/install | |
1269 | # SunOS /usr/etc/install | |
1270 | # IRIX /sbin/install | |
1271 | # AIX /bin/install | |
1272 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1273 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1274 | # ./install, which can be erroneously created by make from ./install.sh. | |
1275 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
abe1d62e | 1276 | echo "configure:1277: checking for a BSD compatible install" >&5 |
c801d85f KB |
1277 | if test -z "$INSTALL"; then |
1278 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1279 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1280 | else | |
1281 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
1282 | for ac_dir in $PATH; do | |
1283 | # Account for people who put trailing slashes in PATH elements. | |
1284 | case "$ac_dir/" in | |
1285 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1286 | *) | |
1287 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1288 | for ac_prog in ginstall installbsd scoinst install; do | |
1289 | if test -f $ac_dir/$ac_prog; then | |
1290 | if test $ac_prog = install && | |
1291 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1292 | # AIX install. It has an incompatible calling convention. | |
1293 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
1294 | : | |
1295 | else | |
1296 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1297 | break 2 | |
1298 | fi | |
1299 | fi | |
1300 | done | |
1301 | ;; | |
1302 | esac | |
1303 | done | |
1304 | IFS="$ac_save_IFS" | |
1305 | ||
1306 | fi | |
1307 | if test "${ac_cv_path_install+set}" = set; then | |
1308 | INSTALL="$ac_cv_path_install" | |
1309 | else | |
1310 | # As a last resort, use the slow shell script. We don't cache a | |
1311 | # path for INSTALL within a source directory, because that will | |
1312 | # break other packages using the cache if that directory is | |
1313 | # removed, or if the path is relative. | |
1314 | INSTALL="$ac_install_sh" | |
1315 | fi | |
1316 | fi | |
1317 | echo "$ac_t""$INSTALL" 1>&6 | |
1318 | ||
1319 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1320 | # It thinks the first close brace ends the variable substitution. | |
1321 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1322 | ||
1323 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1324 | ||
1325 | ||
1326 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
abe1d62e | 1327 | echo "configure:1328: checking whether ln -s works" >&5 |
c801d85f KB |
1328 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1329 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1330 | else | |
1331 | rm -f conftestdata | |
1332 | if ln -s X conftestdata 2>/dev/null | |
1333 | then | |
1334 | rm -f conftestdata | |
1335 | ac_cv_prog_LN_S="ln -s" | |
1336 | else | |
1337 | ac_cv_prog_LN_S=ln | |
1338 | fi | |
1339 | fi | |
1340 | LN_S="$ac_cv_prog_LN_S" | |
1341 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1342 | echo "$ac_t""yes" 1>&6 | |
1343 | else | |
1344 | echo "$ac_t""no" 1>&6 | |
1345 | fi | |
1346 | ||
1347 | ||
1348 | for ac_prog in mawk gawk nawk awk | |
1349 | do | |
1350 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1351 | set dummy $ac_prog; ac_word=$2 | |
1352 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
abe1d62e | 1353 | echo "configure:1354: checking for $ac_word" >&5 |
c801d85f KB |
1354 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
1355 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1356 | else | |
1357 | if test -n "$AWK"; then | |
1358 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1359 | else | |
1360 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1361 | for ac_dir in $PATH; do | |
1362 | test -z "$ac_dir" && ac_dir=. | |
1363 | if test -f $ac_dir/$ac_word; then | |
1364 | ac_cv_prog_AWK="$ac_prog" | |
1365 | break | |
1366 | fi | |
1367 | done | |
1368 | IFS="$ac_save_ifs" | |
1369 | fi | |
1370 | fi | |
1371 | AWK="$ac_cv_prog_AWK" | |
1372 | if test -n "$AWK"; then | |
1373 | echo "$ac_t""$AWK" 1>&6 | |
1374 | else | |
1375 | echo "$ac_t""no" 1>&6 | |
1376 | fi | |
1377 | ||
1378 | test -n "$AWK" && break | |
1379 | done | |
1380 | ||
1381 | ||
1382 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 | |
abe1d62e | 1383 | echo "configure:1384: checking "make for VPATH support"" >&5 |
c801d85f KB |
1384 | cat - << EOF > confMake |
1385 | check : file | |
1386 | cp \$? \$@ | |
1387 | cp \$? final_file | |
1388 | EOF | |
1389 | ||
1390 | if test ! -d sub ; then | |
1391 | mkdir sub | |
1392 | fi | |
1393 | echo dummy > sub/file | |
1394 | ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null | |
1395 | RESULT=$? | |
1396 | rm -f sub/file check final_file config.log confMake | |
1397 | rmdir sub | |
1398 | if test "$RESULT" = 0; then | |
1399 | echo "$ac_t""yes" 1>&6 | |
1400 | else | |
1401 | echo "$ac_t""no" 1>&6 | |
1402 | { echo "configure: error: You need a make-utility that is able to use the variable | |
1403 | VPATH correctly. | |
1404 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } | |
1405 | fi | |
1406 | ||
1407 | ||
1408 | # If we find X, set shell vars x_includes and x_libraries to the | |
1409 | # paths, otherwise set no_x=yes. | |
1410 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
1411 | # --without-x overrides everything else, but does not touch the cache. | |
1412 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
abe1d62e | 1413 | echo "configure:1414: checking for X" >&5 |
c801d85f KB |
1414 | |
1415 | # Check whether --with-x or --without-x was given. | |
1416 | if test "${with_x+set}" = set; then | |
1417 | withval="$with_x" | |
1418 | : | |
1419 | fi | |
1420 | ||
1421 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
1422 | if test "x$with_x" = xno; then | |
1423 | # The user explicitly disabled X. | |
1424 | have_x=disabled | |
1425 | else | |
1426 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
1427 | # Both variables are already set. | |
1428 | have_x=yes | |
1429 | else | |
1430 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
1431 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1432 | else | |
1433 | # One or both of the vars are not set, and there is no cached value. | |
1434 | ac_x_includes=NO ac_x_libraries=NO | |
1435 | rm -fr conftestdir | |
1436 | if mkdir conftestdir; then | |
1437 | cd conftestdir | |
1438 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
1439 | cat > Imakefile <<'EOF' | |
1440 | acfindx: | |
1441 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
1442 | EOF | |
1443 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
1444 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1445 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
1446 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
1447 | for ac_extension in a so sl; do | |
1448 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
1449 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
1450 | ac_im_usrlibdir=$ac_im_libdir; break | |
1451 | fi | |
1452 | done | |
1453 | # Screen out bogus values from the imake configuration. They are | |
1454 | # bogus both because they are the default anyway, and because | |
1455 | # using them would break gcc on systems where it needs fixed includes. | |
1456 | case "$ac_im_incroot" in | |
1457 | /usr/include) ;; | |
1458 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
1459 | esac | |
1460 | case "$ac_im_usrlibdir" in | |
1461 | /usr/lib | /lib) ;; | |
1462 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
1463 | esac | |
1464 | fi | |
1465 | cd .. | |
1466 | rm -fr conftestdir | |
1467 | fi | |
1468 | ||
1469 | if test "$ac_x_includes" = NO; then | |
1470 | # Guess where to find include files, by looking for this one X11 .h file. | |
1471 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
1472 | ||
1473 | # First, try using that file with no special directory specified. | |
1474 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 1475 | #line 1476 "configure" |
c801d85f KB |
1476 | #include "confdefs.h" |
1477 | #include <$x_direct_test_include> | |
1478 | EOF | |
1479 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
abe1d62e | 1480 | { (eval echo configure:1481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
1481 | ac_err=`grep -v '^ *+' conftest.out` |
1482 | if test -z "$ac_err"; then | |
1483 | rm -rf conftest* | |
1484 | # We can compile using X headers with no special include directory. | |
1485 | ac_x_includes= | |
1486 | else | |
1487 | echo "$ac_err" >&5 | |
1488 | echo "configure: failed program was:" >&5 | |
1489 | cat conftest.$ac_ext >&5 | |
1490 | rm -rf conftest* | |
1491 | # Look for the header file in a standard set of common directories. | |
1492 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
1493 | for ac_dir in \ | |
1494 | /usr/X11/include \ | |
1495 | /usr/X11R6/include \ | |
1496 | /usr/X11R5/include \ | |
1497 | /usr/X11R4/include \ | |
1498 | \ | |
1499 | /usr/include/X11 \ | |
1500 | /usr/include/X11R6 \ | |
1501 | /usr/include/X11R5 \ | |
1502 | /usr/include/X11R4 \ | |
1503 | \ | |
1504 | /usr/local/X11/include \ | |
1505 | /usr/local/X11R6/include \ | |
1506 | /usr/local/X11R5/include \ | |
1507 | /usr/local/X11R4/include \ | |
1508 | \ | |
1509 | /usr/local/include/X11 \ | |
1510 | /usr/local/include/X11R6 \ | |
1511 | /usr/local/include/X11R5 \ | |
1512 | /usr/local/include/X11R4 \ | |
1513 | \ | |
1514 | /usr/X386/include \ | |
1515 | /usr/x386/include \ | |
1516 | /usr/XFree86/include/X11 \ | |
1517 | \ | |
1518 | /usr/include \ | |
1519 | /usr/local/include \ | |
1520 | /usr/unsupported/include \ | |
1521 | /usr/athena/include \ | |
1522 | /usr/local/x11r5/include \ | |
1523 | /usr/lpp/Xamples/include \ | |
1524 | \ | |
1525 | /usr/openwin/include \ | |
1526 | /usr/openwin/share/include \ | |
1527 | ; \ | |
1528 | do | |
1529 | if test -r "$ac_dir/$x_direct_test_include"; then | |
1530 | ac_x_includes=$ac_dir | |
1531 | break | |
1532 | fi | |
1533 | done | |
1534 | fi | |
1535 | rm -f conftest* | |
1536 | fi # $ac_x_includes = NO | |
1537 | ||
1538 | if test "$ac_x_libraries" = NO; then | |
1539 | # Check for the libraries. | |
1540 | ||
1541 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
1542 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
1543 | ||
1544 | # See if we find them without any special options. | |
1545 | # Don't add to $LIBS permanently. | |
1546 | ac_save_LIBS="$LIBS" | |
1547 | LIBS="-l$x_direct_test_library $LIBS" | |
1548 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 1549 | #line 1550 "configure" |
c801d85f KB |
1550 | #include "confdefs.h" |
1551 | ||
1552 | int main() { | |
1553 | ${x_direct_test_function}() | |
1554 | ; return 0; } | |
1555 | EOF | |
abe1d62e | 1556 | if { (eval echo configure:1557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1557 | rm -rf conftest* |
1558 | LIBS="$ac_save_LIBS" | |
1559 | # We can link X programs with no special library path. | |
1560 | ac_x_libraries= | |
1561 | else | |
1562 | echo "configure: failed program was:" >&5 | |
1563 | cat conftest.$ac_ext >&5 | |
1564 | rm -rf conftest* | |
1565 | LIBS="$ac_save_LIBS" | |
1566 | # First see if replacing the include by lib works. | |
1567 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
1568 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
1569 | /usr/X11/lib \ | |
1570 | /usr/X11R6/lib \ | |
1571 | /usr/X11R5/lib \ | |
1572 | /usr/X11R4/lib \ | |
1573 | \ | |
1574 | /usr/lib/X11 \ | |
1575 | /usr/lib/X11R6 \ | |
1576 | /usr/lib/X11R5 \ | |
1577 | /usr/lib/X11R4 \ | |
1578 | \ | |
1579 | /usr/local/X11/lib \ | |
1580 | /usr/local/X11R6/lib \ | |
1581 | /usr/local/X11R5/lib \ | |
1582 | /usr/local/X11R4/lib \ | |
1583 | \ | |
1584 | /usr/local/lib/X11 \ | |
1585 | /usr/local/lib/X11R6 \ | |
1586 | /usr/local/lib/X11R5 \ | |
1587 | /usr/local/lib/X11R4 \ | |
1588 | \ | |
1589 | /usr/X386/lib \ | |
1590 | /usr/x386/lib \ | |
1591 | /usr/XFree86/lib/X11 \ | |
1592 | \ | |
1593 | /usr/lib \ | |
1594 | /usr/local/lib \ | |
1595 | /usr/unsupported/lib \ | |
1596 | /usr/athena/lib \ | |
1597 | /usr/local/x11r5/lib \ | |
1598 | /usr/lpp/Xamples/lib \ | |
1599 | /lib/usr/lib/X11 \ | |
1600 | \ | |
1601 | /usr/openwin/lib \ | |
1602 | /usr/openwin/share/lib \ | |
1603 | ; \ | |
1604 | do | |
1605 | for ac_extension in a so sl; do | |
1606 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
1607 | ac_x_libraries=$ac_dir | |
1608 | break 2 | |
1609 | fi | |
1610 | done | |
1611 | done | |
1612 | fi | |
1613 | rm -f conftest* | |
1614 | fi # $ac_x_libraries = NO | |
1615 | ||
1616 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
1617 | # Didn't find X anywhere. Cache the known absence of X. | |
1618 | ac_cv_have_x="have_x=no" | |
1619 | else | |
1620 | # Record where we found X for the cache. | |
1621 | ac_cv_have_x="have_x=yes \ | |
1622 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
1623 | fi | |
1624 | fi | |
1625 | fi | |
1626 | eval "$ac_cv_have_x" | |
1627 | fi # $with_x != no | |
1628 | ||
1629 | if test "$have_x" != yes; then | |
1630 | echo "$ac_t""$have_x" 1>&6 | |
1631 | no_x=yes | |
1632 | else | |
1633 | # If each of the values was on the command line, it overrides each guess. | |
1634 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
1635 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
1636 | # Update the cache value to reflect the command line values. | |
1637 | ac_cv_have_x="have_x=yes \ | |
1638 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
1639 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
1640 | fi | |
1641 | ||
1642 | if test "$no_x" = yes; then | |
1643 | # Not all programs may use this symbol, but it does not hurt to define it. | |
1644 | cat >> confdefs.h <<\EOF | |
1645 | #define X_DISPLAY_MISSING 1 | |
1646 | EOF | |
1647 | ||
1648 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
1649 | else | |
1650 | if test -n "$x_includes"; then | |
1651 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
1652 | fi | |
1653 | ||
1654 | # It would also be nice to do this for all -L options, not just this one. | |
1655 | if test -n "$x_libraries"; then | |
1656 | X_LIBS="$X_LIBS -L$x_libraries" | |
1657 | # For Solaris; some versions of Sun CC require a space after -R and | |
1658 | # others require no space. Words are not sufficient . . . . | |
1659 | case "`(uname -sr) 2>/dev/null`" in | |
1660 | "SunOS 5"*) | |
1661 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
abe1d62e | 1662 | echo "configure:1663: checking whether -R must be followed by a space" >&5 |
c801d85f KB |
1663 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
1664 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 1665 | #line 1666 "configure" |
c801d85f KB |
1666 | #include "confdefs.h" |
1667 | ||
1668 | int main() { | |
1669 | ||
1670 | ; return 0; } | |
1671 | EOF | |
abe1d62e | 1672 | if { (eval echo configure:1673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1673 | rm -rf conftest* |
1674 | ac_R_nospace=yes | |
1675 | else | |
1676 | echo "configure: failed program was:" >&5 | |
1677 | cat conftest.$ac_ext >&5 | |
1678 | rm -rf conftest* | |
1679 | ac_R_nospace=no | |
1680 | fi | |
1681 | rm -f conftest* | |
1682 | if test $ac_R_nospace = yes; then | |
1683 | echo "$ac_t""no" 1>&6 | |
1684 | X_LIBS="$X_LIBS -R$x_libraries" | |
1685 | else | |
1686 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
1687 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 1688 | #line 1689 "configure" |
c801d85f KB |
1689 | #include "confdefs.h" |
1690 | ||
1691 | int main() { | |
1692 | ||
1693 | ; return 0; } | |
1694 | EOF | |
abe1d62e | 1695 | if { (eval echo configure:1696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1696 | rm -rf conftest* |
1697 | ac_R_space=yes | |
1698 | else | |
1699 | echo "configure: failed program was:" >&5 | |
1700 | cat conftest.$ac_ext >&5 | |
1701 | rm -rf conftest* | |
1702 | ac_R_space=no | |
1703 | fi | |
1704 | rm -f conftest* | |
1705 | if test $ac_R_space = yes; then | |
1706 | echo "$ac_t""yes" 1>&6 | |
1707 | X_LIBS="$X_LIBS -R $x_libraries" | |
1708 | else | |
1709 | echo "$ac_t""neither works" 1>&6 | |
1710 | fi | |
1711 | fi | |
1712 | LIBS="$ac_xsave_LIBS" | |
1713 | esac | |
1714 | fi | |
1715 | ||
1716 | # Check for system-dependent libraries X programs must link with. | |
1717 | # Do this before checking for the system-independent R6 libraries | |
1718 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
1719 | ||
1720 | if test "$ISC" = yes; then | |
1721 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
1722 | else | |
1723 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
1724 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
1725 | # the Alpha needs dnet_stub (dnet does not exist). | |
1726 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
abe1d62e | 1727 | echo "configure:1728: checking for dnet_ntoa in -ldnet" >&5 |
c801d85f KB |
1728 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
1729 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1730 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1731 | else | |
1732 | ac_save_LIBS="$LIBS" | |
1733 | LIBS="-ldnet $LIBS" | |
1734 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 1735 | #line 1736 "configure" |
c801d85f KB |
1736 | #include "confdefs.h" |
1737 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1738 | /* We use char because int might match the return type of a gcc2 | |
1739 | builtin and then its argument prototype would still apply. */ | |
1740 | char dnet_ntoa(); | |
1741 | ||
1742 | int main() { | |
1743 | dnet_ntoa() | |
1744 | ; return 0; } | |
1745 | EOF | |
abe1d62e | 1746 | if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1747 | rm -rf conftest* |
1748 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1749 | else | |
1750 | echo "configure: failed program was:" >&5 | |
1751 | cat conftest.$ac_ext >&5 | |
1752 | rm -rf conftest* | |
1753 | eval "ac_cv_lib_$ac_lib_var=no" | |
1754 | fi | |
1755 | rm -f conftest* | |
1756 | LIBS="$ac_save_LIBS" | |
1757 | ||
1758 | fi | |
1759 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1760 | echo "$ac_t""yes" 1>&6 | |
1761 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
1762 | else | |
1763 | echo "$ac_t""no" 1>&6 | |
1764 | fi | |
1765 | ||
1766 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
1767 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
abe1d62e | 1768 | echo "configure:1769: checking for dnet_ntoa in -ldnet_stub" >&5 |
c801d85f KB |
1769 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
1770 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1772 | else | |
1773 | ac_save_LIBS="$LIBS" | |
1774 | LIBS="-ldnet_stub $LIBS" | |
1775 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 1776 | #line 1777 "configure" |
c801d85f KB |
1777 | #include "confdefs.h" |
1778 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1779 | /* We use char because int might match the return type of a gcc2 | |
1780 | builtin and then its argument prototype would still apply. */ | |
1781 | char dnet_ntoa(); | |
1782 | ||
1783 | int main() { | |
1784 | dnet_ntoa() | |
1785 | ; return 0; } | |
1786 | EOF | |
abe1d62e | 1787 | if { (eval echo configure:1788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1788 | rm -rf conftest* |
1789 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1790 | else | |
1791 | echo "configure: failed program was:" >&5 | |
1792 | cat conftest.$ac_ext >&5 | |
1793 | rm -rf conftest* | |
1794 | eval "ac_cv_lib_$ac_lib_var=no" | |
1795 | fi | |
1796 | rm -f conftest* | |
1797 | LIBS="$ac_save_LIBS" | |
1798 | ||
1799 | fi | |
1800 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1801 | echo "$ac_t""yes" 1>&6 | |
1802 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
1803 | else | |
1804 | echo "$ac_t""no" 1>&6 | |
1805 | fi | |
1806 | ||
1807 | fi | |
1808 | ||
1809 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
1810 | # to get the SysV transport functions. | |
1811 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
1812 | # needs -lnsl. | |
1813 | # The nsl library prevents programs from opening the X display | |
1814 | # on Irix 5.2, according to dickey@clark.net. | |
1815 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
abe1d62e | 1816 | echo "configure:1817: checking for gethostbyname" >&5 |
c801d85f KB |
1817 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
1818 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1819 | else | |
1820 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 1821 | #line 1822 "configure" |
c801d85f KB |
1822 | #include "confdefs.h" |
1823 | /* System header to define __stub macros and hopefully few prototypes, | |
1824 | which can conflict with char gethostbyname(); below. */ | |
1825 | #include <assert.h> | |
1826 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1827 | /* We use char because int might match the return type of a gcc2 | |
1828 | builtin and then its argument prototype would still apply. */ | |
1829 | char gethostbyname(); | |
1830 | ||
1831 | int main() { | |
1832 | ||
1833 | /* The GNU C library defines this for functions which it implements | |
1834 | to always fail with ENOSYS. Some functions are actually named | |
1835 | something starting with __ and the normal name is an alias. */ | |
1836 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
1837 | choke me | |
1838 | #else | |
1839 | gethostbyname(); | |
1840 | #endif | |
1841 | ||
1842 | ; return 0; } | |
1843 | EOF | |
abe1d62e | 1844 | if { (eval echo configure:1845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1845 | rm -rf conftest* |
1846 | eval "ac_cv_func_gethostbyname=yes" | |
1847 | else | |
1848 | echo "configure: failed program was:" >&5 | |
1849 | cat conftest.$ac_ext >&5 | |
1850 | rm -rf conftest* | |
1851 | eval "ac_cv_func_gethostbyname=no" | |
1852 | fi | |
1853 | rm -f conftest* | |
1854 | fi | |
1855 | ||
1856 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
1857 | echo "$ac_t""yes" 1>&6 | |
1858 | : | |
1859 | else | |
1860 | echo "$ac_t""no" 1>&6 | |
1861 | fi | |
1862 | ||
1863 | if test $ac_cv_func_gethostbyname = no; then | |
1864 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
abe1d62e | 1865 | echo "configure:1866: checking for gethostbyname in -lnsl" >&5 |
c801d85f KB |
1866 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
1867 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1868 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1869 | else | |
1870 | ac_save_LIBS="$LIBS" | |
1871 | LIBS="-lnsl $LIBS" | |
1872 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 1873 | #line 1874 "configure" |
c801d85f KB |
1874 | #include "confdefs.h" |
1875 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1876 | /* We use char because int might match the return type of a gcc2 | |
1877 | builtin and then its argument prototype would still apply. */ | |
1878 | char gethostbyname(); | |
1879 | ||
1880 | int main() { | |
1881 | gethostbyname() | |
1882 | ; return 0; } | |
1883 | EOF | |
abe1d62e | 1884 | if { (eval echo configure:1885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1885 | rm -rf conftest* |
1886 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1887 | else | |
1888 | echo "configure: failed program was:" >&5 | |
1889 | cat conftest.$ac_ext >&5 | |
1890 | rm -rf conftest* | |
1891 | eval "ac_cv_lib_$ac_lib_var=no" | |
1892 | fi | |
1893 | rm -f conftest* | |
1894 | LIBS="$ac_save_LIBS" | |
1895 | ||
1896 | fi | |
1897 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1898 | echo "$ac_t""yes" 1>&6 | |
1899 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
1900 | else | |
1901 | echo "$ac_t""no" 1>&6 | |
1902 | fi | |
1903 | ||
1904 | fi | |
1905 | ||
1906 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
1907 | # socket/setsockopt and other routines are undefined under SCO ODT | |
1908 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
1909 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
1910 | # gethostby* variants that don't use the nameserver (or something). | |
1911 | # -lsocket must be given before -lnsl if both are needed. | |
1912 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
1913 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
abe1d62e | 1914 | echo "configure:1915: checking for connect" >&5 |
c801d85f KB |
1915 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
1916 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1917 | else | |
1918 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 1919 | #line 1920 "configure" |
c801d85f KB |
1920 | #include "confdefs.h" |
1921 | /* System header to define __stub macros and hopefully few prototypes, | |
1922 | which can conflict with char connect(); below. */ | |
1923 | #include <assert.h> | |
1924 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1925 | /* We use char because int might match the return type of a gcc2 | |
1926 | builtin and then its argument prototype would still apply. */ | |
1927 | char connect(); | |
1928 | ||
1929 | int main() { | |
1930 | ||
1931 | /* The GNU C library defines this for functions which it implements | |
1932 | to always fail with ENOSYS. Some functions are actually named | |
1933 | something starting with __ and the normal name is an alias. */ | |
1934 | #if defined (__stub_connect) || defined (__stub___connect) | |
1935 | choke me | |
1936 | #else | |
1937 | connect(); | |
1938 | #endif | |
1939 | ||
1940 | ; return 0; } | |
1941 | EOF | |
abe1d62e | 1942 | if { (eval echo configure:1943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1943 | rm -rf conftest* |
1944 | eval "ac_cv_func_connect=yes" | |
1945 | else | |
1946 | echo "configure: failed program was:" >&5 | |
1947 | cat conftest.$ac_ext >&5 | |
1948 | rm -rf conftest* | |
1949 | eval "ac_cv_func_connect=no" | |
1950 | fi | |
1951 | rm -f conftest* | |
1952 | fi | |
1953 | ||
1954 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
1955 | echo "$ac_t""yes" 1>&6 | |
1956 | : | |
1957 | else | |
1958 | echo "$ac_t""no" 1>&6 | |
1959 | fi | |
1960 | ||
1961 | if test $ac_cv_func_connect = no; then | |
1962 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
abe1d62e | 1963 | echo "configure:1964: checking for connect in -lsocket" >&5 |
c801d85f KB |
1964 | ac_lib_var=`echo socket'_'connect | 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="-lsocket $X_EXTRA_LIBS $LIBS" | |
1970 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 1971 | #line 1972 "configure" |
c801d85f KB |
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 connect(); | |
1977 | ||
1978 | int main() { | |
1979 | connect() | |
1980 | ; return 0; } | |
1981 | EOF | |
abe1d62e | 1982 | if { (eval echo configure:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
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 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
1998 | else | |
1999 | echo "$ac_t""no" 1>&6 | |
2000 | fi | |
2001 | ||
2002 | fi | |
2003 | ||
2004 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
2005 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
abe1d62e | 2006 | echo "configure:2007: checking for remove" >&5 |
c801d85f KB |
2007 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
2008 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2009 | else | |
2010 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2011 | #line 2012 "configure" |
c801d85f KB |
2012 | #include "confdefs.h" |
2013 | /* System header to define __stub macros and hopefully few prototypes, | |
2014 | which can conflict with char remove(); below. */ | |
2015 | #include <assert.h> | |
2016 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2017 | /* We use char because int might match the return type of a gcc2 | |
2018 | builtin and then its argument prototype would still apply. */ | |
2019 | char remove(); | |
2020 | ||
2021 | int main() { | |
2022 | ||
2023 | /* The GNU C library defines this for functions which it implements | |
2024 | to always fail with ENOSYS. Some functions are actually named | |
2025 | something starting with __ and the normal name is an alias. */ | |
2026 | #if defined (__stub_remove) || defined (__stub___remove) | |
2027 | choke me | |
2028 | #else | |
2029 | remove(); | |
2030 | #endif | |
2031 | ||
2032 | ; return 0; } | |
2033 | EOF | |
abe1d62e | 2034 | if { (eval echo configure:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2035 | rm -rf conftest* |
2036 | eval "ac_cv_func_remove=yes" | |
2037 | else | |
2038 | echo "configure: failed program was:" >&5 | |
2039 | cat conftest.$ac_ext >&5 | |
2040 | rm -rf conftest* | |
2041 | eval "ac_cv_func_remove=no" | |
2042 | fi | |
2043 | rm -f conftest* | |
2044 | fi | |
2045 | ||
2046 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
2047 | echo "$ac_t""yes" 1>&6 | |
2048 | : | |
2049 | else | |
2050 | echo "$ac_t""no" 1>&6 | |
2051 | fi | |
2052 | ||
2053 | if test $ac_cv_func_remove = no; then | |
2054 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
abe1d62e | 2055 | echo "configure:2056: checking for remove in -lposix" >&5 |
c801d85f KB |
2056 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
2057 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2058 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2059 | else | |
2060 | ac_save_LIBS="$LIBS" | |
2061 | LIBS="-lposix $LIBS" | |
2062 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2063 | #line 2064 "configure" |
c801d85f KB |
2064 | #include "confdefs.h" |
2065 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2066 | /* We use char because int might match the return type of a gcc2 | |
2067 | builtin and then its argument prototype would still apply. */ | |
2068 | char remove(); | |
2069 | ||
2070 | int main() { | |
2071 | remove() | |
2072 | ; return 0; } | |
2073 | EOF | |
abe1d62e | 2074 | if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2075 | rm -rf conftest* |
2076 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2077 | else | |
2078 | echo "configure: failed program was:" >&5 | |
2079 | cat conftest.$ac_ext >&5 | |
2080 | rm -rf conftest* | |
2081 | eval "ac_cv_lib_$ac_lib_var=no" | |
2082 | fi | |
2083 | rm -f conftest* | |
2084 | LIBS="$ac_save_LIBS" | |
2085 | ||
2086 | fi | |
2087 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2088 | echo "$ac_t""yes" 1>&6 | |
2089 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
2090 | else | |
2091 | echo "$ac_t""no" 1>&6 | |
2092 | fi | |
2093 | ||
2094 | fi | |
2095 | ||
2096 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
2097 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
abe1d62e | 2098 | echo "configure:2099: checking for shmat" >&5 |
c801d85f KB |
2099 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
2100 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2101 | else | |
2102 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2103 | #line 2104 "configure" |
c801d85f KB |
2104 | #include "confdefs.h" |
2105 | /* System header to define __stub macros and hopefully few prototypes, | |
2106 | which can conflict with char shmat(); below. */ | |
2107 | #include <assert.h> | |
2108 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2109 | /* We use char because int might match the return type of a gcc2 | |
2110 | builtin and then its argument prototype would still apply. */ | |
2111 | char shmat(); | |
2112 | ||
2113 | int main() { | |
2114 | ||
2115 | /* The GNU C library defines this for functions which it implements | |
2116 | to always fail with ENOSYS. Some functions are actually named | |
2117 | something starting with __ and the normal name is an alias. */ | |
2118 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
2119 | choke me | |
2120 | #else | |
2121 | shmat(); | |
2122 | #endif | |
2123 | ||
2124 | ; return 0; } | |
2125 | EOF | |
abe1d62e | 2126 | if { (eval echo configure:2127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2127 | rm -rf conftest* |
2128 | eval "ac_cv_func_shmat=yes" | |
2129 | else | |
2130 | echo "configure: failed program was:" >&5 | |
2131 | cat conftest.$ac_ext >&5 | |
2132 | rm -rf conftest* | |
2133 | eval "ac_cv_func_shmat=no" | |
2134 | fi | |
2135 | rm -f conftest* | |
2136 | fi | |
2137 | ||
2138 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
2139 | echo "$ac_t""yes" 1>&6 | |
2140 | : | |
2141 | else | |
2142 | echo "$ac_t""no" 1>&6 | |
2143 | fi | |
2144 | ||
2145 | if test $ac_cv_func_shmat = no; then | |
2146 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
abe1d62e | 2147 | echo "configure:2148: checking for shmat in -lipc" >&5 |
c801d85f KB |
2148 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
2149 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2150 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2151 | else | |
2152 | ac_save_LIBS="$LIBS" | |
2153 | LIBS="-lipc $LIBS" | |
2154 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2155 | #line 2156 "configure" |
c801d85f KB |
2156 | #include "confdefs.h" |
2157 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2158 | /* We use char because int might match the return type of a gcc2 | |
2159 | builtin and then its argument prototype would still apply. */ | |
2160 | char shmat(); | |
2161 | ||
2162 | int main() { | |
2163 | shmat() | |
2164 | ; return 0; } | |
2165 | EOF | |
abe1d62e | 2166 | if { (eval echo configure:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2167 | rm -rf conftest* |
2168 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2169 | else | |
2170 | echo "configure: failed program was:" >&5 | |
2171 | cat conftest.$ac_ext >&5 | |
2172 | rm -rf conftest* | |
2173 | eval "ac_cv_lib_$ac_lib_var=no" | |
2174 | fi | |
2175 | rm -f conftest* | |
2176 | LIBS="$ac_save_LIBS" | |
2177 | ||
2178 | fi | |
2179 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2180 | echo "$ac_t""yes" 1>&6 | |
2181 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
2182 | else | |
2183 | echo "$ac_t""no" 1>&6 | |
2184 | fi | |
2185 | ||
2186 | fi | |
2187 | fi | |
2188 | ||
2189 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
2190 | ac_save_LDFLAGS="$LDFLAGS" | |
2191 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
2192 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
2193 | # check for ICE first), but we must link in the order -lSM -lICE or | |
2194 | # we get undefined symbols. So assume we have SM if we have ICE. | |
2195 | # These have to be linked with before -lX11, unlike the other | |
2196 | # libraries we check for below, so use a different variable. | |
2197 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
2198 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
abe1d62e | 2199 | echo "configure:2200: checking for IceConnectionNumber in -lICE" >&5 |
c801d85f KB |
2200 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
2201 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2202 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2203 | else | |
2204 | ac_save_LIBS="$LIBS" | |
2205 | LIBS="-lICE $LIBS" | |
2206 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2207 | #line 2208 "configure" |
c801d85f KB |
2208 | #include "confdefs.h" |
2209 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2210 | /* We use char because int might match the return type of a gcc2 | |
2211 | builtin and then its argument prototype would still apply. */ | |
2212 | char IceConnectionNumber(); | |
2213 | ||
2214 | int main() { | |
2215 | IceConnectionNumber() | |
2216 | ; return 0; } | |
2217 | EOF | |
abe1d62e | 2218 | if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2219 | rm -rf conftest* |
2220 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2221 | else | |
2222 | echo "configure: failed program was:" >&5 | |
2223 | cat conftest.$ac_ext >&5 | |
2224 | rm -rf conftest* | |
2225 | eval "ac_cv_lib_$ac_lib_var=no" | |
2226 | fi | |
2227 | rm -f conftest* | |
2228 | LIBS="$ac_save_LIBS" | |
2229 | ||
2230 | fi | |
2231 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2232 | echo "$ac_t""yes" 1>&6 | |
2233 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
2234 | else | |
2235 | echo "$ac_t""no" 1>&6 | |
2236 | fi | |
2237 | ||
2238 | LDFLAGS="$ac_save_LDFLAGS" | |
2239 | ||
2240 | fi | |
2241 | ||
2242 | ||
2243 | ac_header_dirent=no | |
2244 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h | |
2245 | do | |
2246 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2247 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 | |
abe1d62e | 2248 | echo "configure:2249: checking for $ac_hdr that defines DIR" >&5 |
c801d85f KB |
2249 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
2250 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2251 | else | |
2252 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2253 | #line 2254 "configure" |
c801d85f KB |
2254 | #include "confdefs.h" |
2255 | #include <sys/types.h> | |
2256 | #include <$ac_hdr> | |
2257 | int main() { | |
2258 | DIR *dirp = 0; | |
2259 | ; return 0; } | |
2260 | EOF | |
abe1d62e | 2261 | if { (eval echo configure:2262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
2262 | rm -rf conftest* |
2263 | eval "ac_cv_header_dirent_$ac_safe=yes" | |
2264 | else | |
2265 | echo "configure: failed program was:" >&5 | |
2266 | cat conftest.$ac_ext >&5 | |
2267 | rm -rf conftest* | |
2268 | eval "ac_cv_header_dirent_$ac_safe=no" | |
2269 | fi | |
2270 | rm -f conftest* | |
2271 | fi | |
2272 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then | |
2273 | echo "$ac_t""yes" 1>&6 | |
2274 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2275 | cat >> confdefs.h <<EOF | |
2276 | #define $ac_tr_hdr 1 | |
2277 | EOF | |
2278 | ac_header_dirent=$ac_hdr; break | |
2279 | else | |
2280 | echo "$ac_t""no" 1>&6 | |
2281 | fi | |
2282 | done | |
2283 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
2284 | if test $ac_header_dirent = dirent.h; then | |
2285 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 | |
abe1d62e | 2286 | echo "configure:2287: checking for opendir in -ldir" >&5 |
c801d85f KB |
2287 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
2288 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2289 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2290 | else | |
2291 | ac_save_LIBS="$LIBS" | |
2292 | LIBS="-ldir $LIBS" | |
2293 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2294 | #line 2295 "configure" |
c801d85f KB |
2295 | #include "confdefs.h" |
2296 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2297 | /* We use char because int might match the return type of a gcc2 | |
2298 | builtin and then its argument prototype would still apply. */ | |
2299 | char opendir(); | |
2300 | ||
2301 | int main() { | |
2302 | opendir() | |
2303 | ; return 0; } | |
2304 | EOF | |
abe1d62e | 2305 | if { (eval echo configure:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2306 | rm -rf conftest* |
2307 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2308 | else | |
2309 | echo "configure: failed program was:" >&5 | |
2310 | cat conftest.$ac_ext >&5 | |
2311 | rm -rf conftest* | |
2312 | eval "ac_cv_lib_$ac_lib_var=no" | |
2313 | fi | |
2314 | rm -f conftest* | |
2315 | LIBS="$ac_save_LIBS" | |
2316 | ||
2317 | fi | |
2318 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2319 | echo "$ac_t""yes" 1>&6 | |
2320 | LIBS="$LIBS -ldir" | |
2321 | else | |
2322 | echo "$ac_t""no" 1>&6 | |
2323 | fi | |
2324 | ||
2325 | else | |
2326 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 | |
abe1d62e | 2327 | echo "configure:2328: checking for opendir in -lx" >&5 |
c801d85f KB |
2328 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
2329 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2331 | else | |
2332 | ac_save_LIBS="$LIBS" | |
2333 | LIBS="-lx $LIBS" | |
2334 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2335 | #line 2336 "configure" |
c801d85f KB |
2336 | #include "confdefs.h" |
2337 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2338 | /* We use char because int might match the return type of a gcc2 | |
2339 | builtin and then its argument prototype would still apply. */ | |
2340 | char opendir(); | |
2341 | ||
2342 | int main() { | |
2343 | opendir() | |
2344 | ; return 0; } | |
2345 | EOF | |
abe1d62e | 2346 | if { (eval echo configure:2347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2347 | rm -rf conftest* |
2348 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2349 | else | |
2350 | echo "configure: failed program was:" >&5 | |
2351 | cat conftest.$ac_ext >&5 | |
2352 | rm -rf conftest* | |
2353 | eval "ac_cv_lib_$ac_lib_var=no" | |
2354 | fi | |
2355 | rm -f conftest* | |
2356 | LIBS="$ac_save_LIBS" | |
2357 | ||
2358 | fi | |
2359 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2360 | echo "$ac_t""yes" 1>&6 | |
2361 | LIBS="$LIBS -lx" | |
2362 | else | |
2363 | echo "$ac_t""no" 1>&6 | |
2364 | fi | |
2365 | ||
2366 | fi | |
2367 | ||
2368 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
abe1d62e | 2369 | echo "configure:2370: checking for ANSI C header files" >&5 |
c801d85f KB |
2370 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2371 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2372 | else | |
2373 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2374 | #line 2375 "configure" |
c801d85f KB |
2375 | #include "confdefs.h" |
2376 | #include <stdlib.h> | |
2377 | #include <stdarg.h> | |
2378 | #include <string.h> | |
2379 | #include <float.h> | |
2380 | EOF | |
2381 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
abe1d62e | 2382 | { (eval echo configure:2383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
2383 | ac_err=`grep -v '^ *+' conftest.out` |
2384 | if test -z "$ac_err"; then | |
2385 | rm -rf conftest* | |
2386 | ac_cv_header_stdc=yes | |
2387 | else | |
2388 | echo "$ac_err" >&5 | |
2389 | echo "configure: failed program was:" >&5 | |
2390 | cat conftest.$ac_ext >&5 | |
2391 | rm -rf conftest* | |
2392 | ac_cv_header_stdc=no | |
2393 | fi | |
2394 | rm -f conftest* | |
2395 | ||
2396 | if test $ac_cv_header_stdc = yes; then | |
2397 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2398 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2399 | #line 2400 "configure" |
c801d85f KB |
2400 | #include "confdefs.h" |
2401 | #include <string.h> | |
2402 | EOF | |
2403 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2404 | egrep "memchr" >/dev/null 2>&1; then | |
2405 | : | |
2406 | else | |
2407 | rm -rf conftest* | |
2408 | ac_cv_header_stdc=no | |
2409 | fi | |
2410 | rm -f conftest* | |
2411 | ||
2412 | fi | |
2413 | ||
2414 | if test $ac_cv_header_stdc = yes; then | |
2415 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2416 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2417 | #line 2418 "configure" |
c801d85f KB |
2418 | #include "confdefs.h" |
2419 | #include <stdlib.h> | |
2420 | EOF | |
2421 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2422 | egrep "free" >/dev/null 2>&1; then | |
2423 | : | |
2424 | else | |
2425 | rm -rf conftest* | |
2426 | ac_cv_header_stdc=no | |
2427 | fi | |
2428 | rm -f conftest* | |
2429 | ||
2430 | fi | |
2431 | ||
2432 | if test $ac_cv_header_stdc = yes; then | |
2433 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2434 | if test "$cross_compiling" = yes; then | |
2435 | : | |
2436 | else | |
2437 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2438 | #line 2439 "configure" |
c801d85f KB |
2439 | #include "confdefs.h" |
2440 | #include <ctype.h> | |
2441 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2442 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2443 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2444 | int main () { int i; for (i = 0; i < 256; i++) | |
2445 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
2446 | exit (0); } | |
2447 | ||
2448 | EOF | |
abe1d62e | 2449 | if { (eval echo configure:2450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
2450 | then |
2451 | : | |
2452 | else | |
2453 | echo "configure: failed program was:" >&5 | |
2454 | cat conftest.$ac_ext >&5 | |
2455 | rm -fr conftest* | |
2456 | ac_cv_header_stdc=no | |
2457 | fi | |
2458 | rm -fr conftest* | |
2459 | fi | |
2460 | ||
2461 | fi | |
2462 | fi | |
2463 | ||
2464 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
2465 | if test $ac_cv_header_stdc = yes; then | |
2466 | cat >> confdefs.h <<\EOF | |
2467 | #define STDC_HEADERS 1 | |
2468 | EOF | |
2469 | ||
2470 | fi | |
2471 | ||
2472 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 | |
abe1d62e | 2473 | echo "configure:2474: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
c801d85f KB |
2474 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
2475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2476 | else | |
2477 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2478 | #line 2479 "configure" |
c801d85f KB |
2479 | #include "confdefs.h" |
2480 | #include <sys/types.h> | |
2481 | #include <sys/wait.h> | |
2482 | #ifndef WEXITSTATUS | |
2483 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
2484 | #endif | |
2485 | #ifndef WIFEXITED | |
2486 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
2487 | #endif | |
2488 | int main() { | |
2489 | int s; | |
2490 | wait (&s); | |
2491 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
2492 | ; return 0; } | |
2493 | EOF | |
abe1d62e | 2494 | if { (eval echo configure:2495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
2495 | rm -rf conftest* |
2496 | ac_cv_header_sys_wait_h=yes | |
2497 | else | |
2498 | echo "configure: failed program was:" >&5 | |
2499 | cat conftest.$ac_ext >&5 | |
2500 | rm -rf conftest* | |
2501 | ac_cv_header_sys_wait_h=no | |
2502 | fi | |
2503 | rm -f conftest* | |
2504 | fi | |
2505 | ||
2506 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 | |
2507 | if test $ac_cv_header_sys_wait_h = yes; then | |
2508 | cat >> confdefs.h <<\EOF | |
2509 | #define HAVE_SYS_WAIT_H 1 | |
2510 | EOF | |
2511 | ||
2512 | fi | |
2513 | ||
2514 | ac_safe=`echo "fcntl.h" | sed 'y%./+-%__p_%'` | |
2515 | echo $ac_n "checking for fcntl.h""... $ac_c" 1>&6 | |
abe1d62e | 2516 | echo "configure:2517: checking for fcntl.h" >&5 |
c801d85f KB |
2517 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2518 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2519 | else | |
2520 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2521 | #line 2522 "configure" |
c801d85f KB |
2522 | #include "confdefs.h" |
2523 | #include <fcntl.h> | |
2524 | EOF | |
2525 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
abe1d62e | 2526 | { (eval echo configure:2527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
2527 | ac_err=`grep -v '^ *+' conftest.out` |
2528 | if test -z "$ac_err"; then | |
2529 | rm -rf conftest* | |
2530 | eval "ac_cv_header_$ac_safe=yes" | |
2531 | else | |
2532 | echo "$ac_err" >&5 | |
2533 | echo "configure: failed program was:" >&5 | |
2534 | cat conftest.$ac_ext >&5 | |
2535 | rm -rf conftest* | |
2536 | eval "ac_cv_header_$ac_safe=no" | |
2537 | fi | |
2538 | rm -f conftest* | |
2539 | fi | |
2540 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2541 | echo "$ac_t""yes" 1>&6 | |
2542 | : | |
2543 | else | |
2544 | echo "$ac_t""no" 1>&6 | |
2545 | fi | |
2546 | ||
2547 | ac_safe=`echo "limits.h" | sed 'y%./+-%__p_%'` | |
2548 | echo $ac_n "checking for limits.h""... $ac_c" 1>&6 | |
abe1d62e | 2549 | echo "configure:2550: checking for limits.h" >&5 |
c801d85f KB |
2550 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2551 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2552 | else | |
2553 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2554 | #line 2555 "configure" |
c801d85f KB |
2555 | #include "confdefs.h" |
2556 | #include <limits.h> | |
2557 | EOF | |
2558 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
abe1d62e | 2559 | { (eval echo configure:2560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
2560 | ac_err=`grep -v '^ *+' conftest.out` |
2561 | if test -z "$ac_err"; then | |
2562 | rm -rf conftest* | |
2563 | eval "ac_cv_header_$ac_safe=yes" | |
2564 | else | |
2565 | echo "$ac_err" >&5 | |
2566 | echo "configure: failed program was:" >&5 | |
2567 | cat conftest.$ac_ext >&5 | |
2568 | rm -rf conftest* | |
2569 | eval "ac_cv_header_$ac_safe=no" | |
2570 | fi | |
2571 | rm -f conftest* | |
2572 | fi | |
2573 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2574 | echo "$ac_t""yes" 1>&6 | |
2575 | : | |
2576 | else | |
2577 | echo "$ac_t""no" 1>&6 | |
2578 | fi | |
2579 | ||
2580 | ac_safe=`echo "sys/file.h" | sed 'y%./+-%__p_%'` | |
2581 | echo $ac_n "checking for sys/file.h""... $ac_c" 1>&6 | |
abe1d62e | 2582 | echo "configure:2583: checking for sys/file.h" >&5 |
c801d85f KB |
2583 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2584 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2585 | else | |
2586 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2587 | #line 2588 "configure" |
c801d85f KB |
2588 | #include "confdefs.h" |
2589 | #include <sys/file.h> | |
2590 | EOF | |
2591 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
abe1d62e | 2592 | { (eval echo configure:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
2593 | ac_err=`grep -v '^ *+' conftest.out` |
2594 | if test -z "$ac_err"; then | |
2595 | rm -rf conftest* | |
2596 | eval "ac_cv_header_$ac_safe=yes" | |
2597 | else | |
2598 | echo "$ac_err" >&5 | |
2599 | echo "configure: failed program was:" >&5 | |
2600 | cat conftest.$ac_ext >&5 | |
2601 | rm -rf conftest* | |
2602 | eval "ac_cv_header_$ac_safe=no" | |
2603 | fi | |
2604 | rm -f conftest* | |
2605 | fi | |
2606 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2607 | echo "$ac_t""yes" 1>&6 | |
2608 | : | |
2609 | else | |
2610 | echo "$ac_t""no" 1>&6 | |
2611 | fi | |
2612 | ||
2613 | ac_safe=`echo "sys/time.h" | sed 'y%./+-%__p_%'` | |
2614 | echo $ac_n "checking for sys/time.h""... $ac_c" 1>&6 | |
abe1d62e | 2615 | echo "configure:2616: checking for sys/time.h" >&5 |
c801d85f KB |
2616 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2617 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2618 | else | |
2619 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2620 | #line 2621 "configure" |
c801d85f KB |
2621 | #include "confdefs.h" |
2622 | #include <sys/time.h> | |
2623 | EOF | |
2624 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
abe1d62e | 2625 | { (eval echo configure:2626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
2626 | ac_err=`grep -v '^ *+' conftest.out` |
2627 | if test -z "$ac_err"; then | |
2628 | rm -rf conftest* | |
2629 | eval "ac_cv_header_$ac_safe=yes" | |
2630 | else | |
2631 | echo "$ac_err" >&5 | |
2632 | echo "configure: failed program was:" >&5 | |
2633 | cat conftest.$ac_ext >&5 | |
2634 | rm -rf conftest* | |
2635 | eval "ac_cv_header_$ac_safe=no" | |
2636 | fi | |
2637 | rm -f conftest* | |
2638 | fi | |
2639 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2640 | echo "$ac_t""yes" 1>&6 | |
2641 | : | |
2642 | else | |
2643 | echo "$ac_t""no" 1>&6 | |
2644 | fi | |
2645 | ||
2646 | ac_safe=`echo "unistd.h" | sed 'y%./+-%__p_%'` | |
2647 | echo $ac_n "checking for unistd.h""... $ac_c" 1>&6 | |
abe1d62e | 2648 | echo "configure:2649: checking for unistd.h" >&5 |
c801d85f KB |
2649 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2650 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2651 | else | |
2652 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2653 | #line 2654 "configure" |
c801d85f KB |
2654 | #include "confdefs.h" |
2655 | #include <unistd.h> | |
2656 | EOF | |
2657 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
abe1d62e | 2658 | { (eval echo configure:2659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
2659 | ac_err=`grep -v '^ *+' conftest.out` |
2660 | if test -z "$ac_err"; then | |
2661 | rm -rf conftest* | |
2662 | eval "ac_cv_header_$ac_safe=yes" | |
2663 | else | |
2664 | echo "$ac_err" >&5 | |
2665 | echo "configure: failed program was:" >&5 | |
2666 | cat conftest.$ac_ext >&5 | |
2667 | rm -rf conftest* | |
2668 | eval "ac_cv_header_$ac_safe=no" | |
2669 | fi | |
2670 | rm -f conftest* | |
2671 | fi | |
2672 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2673 | echo "$ac_t""yes" 1>&6 | |
2674 | : | |
2675 | else | |
2676 | echo "$ac_t""no" 1>&6 | |
2677 | fi | |
2678 | ||
2679 | ||
2680 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
abe1d62e | 2681 | echo "configure:2682: checking for uid_t in sys/types.h" >&5 |
c801d85f KB |
2682 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
2683 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2684 | else | |
2685 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2686 | #line 2687 "configure" |
c801d85f KB |
2687 | #include "confdefs.h" |
2688 | #include <sys/types.h> | |
2689 | EOF | |
2690 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2691 | egrep "uid_t" >/dev/null 2>&1; then | |
2692 | rm -rf conftest* | |
2693 | ac_cv_type_uid_t=yes | |
2694 | else | |
2695 | rm -rf conftest* | |
2696 | ac_cv_type_uid_t=no | |
2697 | fi | |
2698 | rm -f conftest* | |
2699 | ||
2700 | fi | |
2701 | ||
2702 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
2703 | if test $ac_cv_type_uid_t = no; then | |
2704 | cat >> confdefs.h <<\EOF | |
2705 | #define uid_t int | |
2706 | EOF | |
2707 | ||
2708 | cat >> confdefs.h <<\EOF | |
2709 | #define gid_t int | |
2710 | EOF | |
2711 | ||
2712 | fi | |
2713 | ||
2714 | echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6 | |
abe1d62e | 2715 | echo "configure:2716: checking type of array argument to getgroups" >&5 |
c801d85f KB |
2716 | if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then |
2717 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2718 | else | |
2719 | if test "$cross_compiling" = yes; then | |
2720 | ac_cv_type_getgroups=cross | |
2721 | else | |
2722 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2723 | #line 2724 "configure" |
c801d85f KB |
2724 | #include "confdefs.h" |
2725 | ||
2726 | /* Thanks to Mike Rendell for this test. */ | |
2727 | #include <sys/types.h> | |
2728 | #define NGID 256 | |
2729 | #undef MAX | |
2730 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) | |
2731 | main() | |
2732 | { | |
2733 | gid_t gidset[NGID]; | |
2734 | int i, n; | |
2735 | union { gid_t gval; long lval; } val; | |
2736 | ||
2737 | val.lval = -1; | |
2738 | for (i = 0; i < NGID; i++) | |
2739 | gidset[i] = val.gval; | |
2740 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, | |
2741 | gidset); | |
2742 | /* Exit non-zero if getgroups seems to require an array of ints. This | |
2743 | happens when gid_t is short but getgroups modifies an array of ints. */ | |
2744 | exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0); | |
2745 | } | |
2746 | ||
2747 | EOF | |
abe1d62e | 2748 | if { (eval echo configure:2749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
2749 | then |
2750 | ac_cv_type_getgroups=gid_t | |
2751 | else | |
2752 | echo "configure: failed program was:" >&5 | |
2753 | cat conftest.$ac_ext >&5 | |
2754 | rm -fr conftest* | |
2755 | ac_cv_type_getgroups=int | |
2756 | fi | |
2757 | rm -fr conftest* | |
2758 | fi | |
2759 | ||
2760 | if test $ac_cv_type_getgroups = cross; then | |
2761 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2762 | #line 2763 "configure" |
c801d85f KB |
2763 | #include "confdefs.h" |
2764 | #include <unistd.h> | |
2765 | EOF | |
2766 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2767 | egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then | |
2768 | rm -rf conftest* | |
2769 | ac_cv_type_getgroups=gid_t | |
2770 | else | |
2771 | rm -rf conftest* | |
2772 | ac_cv_type_getgroups=int | |
2773 | fi | |
2774 | rm -f conftest* | |
2775 | ||
2776 | fi | |
2777 | fi | |
2778 | ||
2779 | echo "$ac_t""$ac_cv_type_getgroups" 1>&6 | |
2780 | cat >> confdefs.h <<EOF | |
2781 | #define GETGROUPS_T $ac_cv_type_getgroups | |
2782 | EOF | |
2783 | ||
2784 | ||
2785 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
abe1d62e | 2786 | echo "configure:2787: checking for mode_t" >&5 |
c801d85f KB |
2787 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
2788 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2789 | else | |
2790 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2791 | #line 2792 "configure" |
c801d85f KB |
2792 | #include "confdefs.h" |
2793 | #include <sys/types.h> | |
2794 | #if STDC_HEADERS | |
2795 | #include <stdlib.h> | |
2796 | #include <stddef.h> | |
2797 | #endif | |
2798 | EOF | |
2799 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2800 | egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2801 | rm -rf conftest* | |
2802 | ac_cv_type_mode_t=yes | |
2803 | else | |
2804 | rm -rf conftest* | |
2805 | ac_cv_type_mode_t=no | |
2806 | fi | |
2807 | rm -f conftest* | |
2808 | ||
2809 | fi | |
2810 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
2811 | if test $ac_cv_type_mode_t = no; then | |
2812 | cat >> confdefs.h <<\EOF | |
2813 | #define mode_t int | |
2814 | EOF | |
2815 | ||
2816 | fi | |
2817 | ||
2818 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
abe1d62e | 2819 | echo "configure:2820: checking for off_t" >&5 |
c801d85f KB |
2820 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
2821 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2822 | else | |
2823 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2824 | #line 2825 "configure" |
c801d85f KB |
2825 | #include "confdefs.h" |
2826 | #include <sys/types.h> | |
2827 | #if STDC_HEADERS | |
2828 | #include <stdlib.h> | |
2829 | #include <stddef.h> | |
2830 | #endif | |
2831 | EOF | |
2832 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2833 | egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2834 | rm -rf conftest* | |
2835 | ac_cv_type_off_t=yes | |
2836 | else | |
2837 | rm -rf conftest* | |
2838 | ac_cv_type_off_t=no | |
2839 | fi | |
2840 | rm -f conftest* | |
2841 | ||
2842 | fi | |
2843 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
2844 | if test $ac_cv_type_off_t = no; then | |
2845 | cat >> confdefs.h <<\EOF | |
2846 | #define off_t long | |
2847 | EOF | |
2848 | ||
2849 | fi | |
2850 | ||
2851 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
abe1d62e | 2852 | echo "configure:2853: checking for pid_t" >&5 |
c801d85f KB |
2853 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
2854 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2855 | else | |
2856 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2857 | #line 2858 "configure" |
c801d85f KB |
2858 | #include "confdefs.h" |
2859 | #include <sys/types.h> | |
2860 | #if STDC_HEADERS | |
2861 | #include <stdlib.h> | |
2862 | #include <stddef.h> | |
2863 | #endif | |
2864 | EOF | |
2865 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2866 | egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2867 | rm -rf conftest* | |
2868 | ac_cv_type_pid_t=yes | |
2869 | else | |
2870 | rm -rf conftest* | |
2871 | ac_cv_type_pid_t=no | |
2872 | fi | |
2873 | rm -f conftest* | |
2874 | ||
2875 | fi | |
2876 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
2877 | if test $ac_cv_type_pid_t = no; then | |
2878 | cat >> confdefs.h <<\EOF | |
2879 | #define pid_t int | |
2880 | EOF | |
2881 | ||
2882 | fi | |
2883 | ||
2884 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | |
abe1d62e | 2885 | echo "configure:2886: checking return type of signal handlers" >&5 |
c801d85f KB |
2886 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
2887 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2888 | else | |
2889 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2890 | #line 2891 "configure" |
c801d85f KB |
2891 | #include "confdefs.h" |
2892 | #include <sys/types.h> | |
2893 | #include <signal.h> | |
2894 | #ifdef signal | |
2895 | #undef signal | |
2896 | #endif | |
2897 | #ifdef __cplusplus | |
2898 | extern "C" void (*signal (int, void (*)(int)))(int); | |
2899 | #else | |
2900 | void (*signal ()) (); | |
2901 | #endif | |
2902 | ||
2903 | int main() { | |
2904 | int i; | |
2905 | ; return 0; } | |
2906 | EOF | |
abe1d62e | 2907 | if { (eval echo configure:2908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
2908 | rm -rf conftest* |
2909 | ac_cv_type_signal=void | |
2910 | else | |
2911 | echo "configure: failed program was:" >&5 | |
2912 | cat conftest.$ac_ext >&5 | |
2913 | rm -rf conftest* | |
2914 | ac_cv_type_signal=int | |
2915 | fi | |
2916 | rm -f conftest* | |
2917 | fi | |
2918 | ||
2919 | echo "$ac_t""$ac_cv_type_signal" 1>&6 | |
2920 | cat >> confdefs.h <<EOF | |
2921 | #define RETSIGTYPE $ac_cv_type_signal | |
2922 | EOF | |
2923 | ||
2924 | ||
2925 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
abe1d62e | 2926 | echo "configure:2927: checking for size_t" >&5 |
c801d85f KB |
2927 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
2928 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2929 | else | |
2930 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2931 | #line 2932 "configure" |
c801d85f KB |
2932 | #include "confdefs.h" |
2933 | #include <sys/types.h> | |
2934 | #if STDC_HEADERS | |
2935 | #include <stdlib.h> | |
2936 | #include <stddef.h> | |
2937 | #endif | |
2938 | EOF | |
2939 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2940 | egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2941 | rm -rf conftest* | |
2942 | ac_cv_type_size_t=yes | |
2943 | else | |
2944 | rm -rf conftest* | |
2945 | ac_cv_type_size_t=no | |
2946 | fi | |
2947 | rm -f conftest* | |
2948 | ||
2949 | fi | |
2950 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
2951 | if test $ac_cv_type_size_t = no; then | |
2952 | cat >> confdefs.h <<\EOF | |
2953 | #define size_t unsigned | |
2954 | EOF | |
2955 | ||
2956 | fi | |
2957 | ||
2958 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
abe1d62e | 2959 | echo "configure:2960: checking for uid_t in sys/types.h" >&5 |
c801d85f KB |
2960 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
2961 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2962 | else | |
2963 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 2964 | #line 2965 "configure" |
c801d85f KB |
2965 | #include "confdefs.h" |
2966 | #include <sys/types.h> | |
2967 | EOF | |
2968 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2969 | egrep "uid_t" >/dev/null 2>&1; then | |
2970 | rm -rf conftest* | |
2971 | ac_cv_type_uid_t=yes | |
2972 | else | |
2973 | rm -rf conftest* | |
2974 | ac_cv_type_uid_t=no | |
2975 | fi | |
2976 | rm -f conftest* | |
2977 | ||
2978 | fi | |
2979 | ||
2980 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
2981 | if test $ac_cv_type_uid_t = no; then | |
2982 | cat >> confdefs.h <<\EOF | |
2983 | #define uid_t int | |
2984 | EOF | |
2985 | ||
2986 | cat >> confdefs.h <<\EOF | |
2987 | #define gid_t int | |
2988 | EOF | |
2989 | ||
2990 | fi | |
2991 | ||
2992 | ||
2993 | ||
2994 | echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 | |
abe1d62e | 2995 | echo "configure:2996: checking whether stat file-mode macros are broken" >&5 |
c801d85f KB |
2996 | if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then |
2997 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2998 | else | |
2999 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3000 | #line 3001 "configure" |
c801d85f KB |
3001 | #include "confdefs.h" |
3002 | #include <sys/types.h> | |
3003 | #include <sys/stat.h> | |
3004 | ||
3005 | #if defined(S_ISBLK) && defined(S_IFDIR) | |
3006 | # if S_ISBLK (S_IFDIR) | |
3007 | You lose. | |
3008 | # endif | |
3009 | #endif | |
3010 | ||
3011 | #if defined(S_ISBLK) && defined(S_IFCHR) | |
3012 | # if S_ISBLK (S_IFCHR) | |
3013 | You lose. | |
3014 | # endif | |
3015 | #endif | |
3016 | ||
3017 | #if defined(S_ISLNK) && defined(S_IFREG) | |
3018 | # if S_ISLNK (S_IFREG) | |
3019 | You lose. | |
3020 | # endif | |
3021 | #endif | |
3022 | ||
3023 | #if defined(S_ISSOCK) && defined(S_IFREG) | |
3024 | # if S_ISSOCK (S_IFREG) | |
3025 | You lose. | |
3026 | # endif | |
3027 | #endif | |
3028 | ||
3029 | EOF | |
3030 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3031 | egrep "You lose" >/dev/null 2>&1; then | |
3032 | rm -rf conftest* | |
3033 | ac_cv_header_stat_broken=yes | |
3034 | else | |
3035 | rm -rf conftest* | |
3036 | ac_cv_header_stat_broken=no | |
3037 | fi | |
3038 | rm -f conftest* | |
3039 | ||
3040 | fi | |
3041 | ||
3042 | echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 | |
3043 | if test $ac_cv_header_stat_broken = yes; then | |
3044 | cat >> confdefs.h <<\EOF | |
3045 | #define STAT_MACROS_BROKEN 1 | |
3046 | EOF | |
3047 | ||
3048 | fi | |
3049 | ||
3050 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
abe1d62e | 3051 | echo "configure:3052: checking whether time.h and sys/time.h may both be included" >&5 |
c801d85f KB |
3052 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
3053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3054 | else | |
3055 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3056 | #line 3057 "configure" |
c801d85f KB |
3057 | #include "confdefs.h" |
3058 | #include <sys/types.h> | |
3059 | #include <sys/time.h> | |
3060 | #include <time.h> | |
3061 | int main() { | |
3062 | struct tm *tp; | |
3063 | ; return 0; } | |
3064 | EOF | |
abe1d62e | 3065 | if { (eval echo configure:3066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3066 | rm -rf conftest* |
3067 | ac_cv_header_time=yes | |
3068 | else | |
3069 | echo "configure: failed program was:" >&5 | |
3070 | cat conftest.$ac_ext >&5 | |
3071 | rm -rf conftest* | |
3072 | ac_cv_header_time=no | |
3073 | fi | |
3074 | rm -f conftest* | |
3075 | fi | |
3076 | ||
3077 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
3078 | if test $ac_cv_header_time = yes; then | |
3079 | cat >> confdefs.h <<\EOF | |
3080 | #define TIME_WITH_SYS_TIME 1 | |
3081 | EOF | |
3082 | ||
3083 | fi | |
3084 | ||
3085 | echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 | |
abe1d62e | 3086 | echo "configure:3087: checking for st_blksize in struct stat" >&5 |
c801d85f KB |
3087 | if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then |
3088 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3089 | else | |
3090 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3091 | #line 3092 "configure" |
c801d85f KB |
3092 | #include "confdefs.h" |
3093 | #include <sys/types.h> | |
3094 | #include <sys/stat.h> | |
3095 | int main() { | |
3096 | struct stat s; s.st_blksize; | |
3097 | ; return 0; } | |
3098 | EOF | |
abe1d62e | 3099 | if { (eval echo configure:3100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3100 | rm -rf conftest* |
3101 | ac_cv_struct_st_blksize=yes | |
3102 | else | |
3103 | echo "configure: failed program was:" >&5 | |
3104 | cat conftest.$ac_ext >&5 | |
3105 | rm -rf conftest* | |
3106 | ac_cv_struct_st_blksize=no | |
3107 | fi | |
3108 | rm -f conftest* | |
3109 | fi | |
3110 | ||
3111 | echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 | |
3112 | if test $ac_cv_struct_st_blksize = yes; then | |
3113 | cat >> confdefs.h <<\EOF | |
3114 | #define HAVE_ST_BLKSIZE 1 | |
3115 | EOF | |
3116 | ||
3117 | fi | |
3118 | ||
3119 | echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6 | |
abe1d62e | 3120 | echo "configure:3121: checking for st_blocks in struct stat" >&5 |
c801d85f KB |
3121 | if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then |
3122 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3123 | else | |
3124 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3125 | #line 3126 "configure" |
c801d85f KB |
3126 | #include "confdefs.h" |
3127 | #include <sys/types.h> | |
3128 | #include <sys/stat.h> | |
3129 | int main() { | |
3130 | struct stat s; s.st_blocks; | |
3131 | ; return 0; } | |
3132 | EOF | |
abe1d62e | 3133 | if { (eval echo configure:3134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3134 | rm -rf conftest* |
3135 | ac_cv_struct_st_blocks=yes | |
3136 | else | |
3137 | echo "configure: failed program was:" >&5 | |
3138 | cat conftest.$ac_ext >&5 | |
3139 | rm -rf conftest* | |
3140 | ac_cv_struct_st_blocks=no | |
3141 | fi | |
3142 | rm -f conftest* | |
3143 | fi | |
3144 | ||
3145 | echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6 | |
3146 | if test $ac_cv_struct_st_blocks = yes; then | |
3147 | cat >> confdefs.h <<\EOF | |
3148 | #define HAVE_ST_BLOCKS 1 | |
3149 | EOF | |
3150 | ||
3151 | else | |
3152 | LIBOBJS="$LIBOBJS fileblocks.o" | |
3153 | fi | |
3154 | ||
3155 | echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6 | |
abe1d62e | 3156 | echo "configure:3157: checking for st_rdev in struct stat" >&5 |
c801d85f KB |
3157 | if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then |
3158 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3159 | else | |
3160 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3161 | #line 3162 "configure" |
c801d85f KB |
3162 | #include "confdefs.h" |
3163 | #include <sys/types.h> | |
3164 | #include <sys/stat.h> | |
3165 | int main() { | |
3166 | struct stat s; s.st_rdev; | |
3167 | ; return 0; } | |
3168 | EOF | |
abe1d62e | 3169 | if { (eval echo configure:3170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3170 | rm -rf conftest* |
3171 | ac_cv_struct_st_rdev=yes | |
3172 | else | |
3173 | echo "configure: failed program was:" >&5 | |
3174 | cat conftest.$ac_ext >&5 | |
3175 | rm -rf conftest* | |
3176 | ac_cv_struct_st_rdev=no | |
3177 | fi | |
3178 | rm -f conftest* | |
3179 | fi | |
3180 | ||
3181 | echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6 | |
3182 | if test $ac_cv_struct_st_rdev = yes; then | |
3183 | cat >> confdefs.h <<\EOF | |
3184 | #define HAVE_ST_RDEV 1 | |
3185 | EOF | |
3186 | ||
3187 | fi | |
3188 | ||
3189 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | |
abe1d62e | 3190 | echo "configure:3191: checking whether struct tm is in sys/time.h or time.h" >&5 |
c801d85f KB |
3191 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
3192 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3193 | else | |
3194 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3195 | #line 3196 "configure" |
c801d85f KB |
3196 | #include "confdefs.h" |
3197 | #include <sys/types.h> | |
3198 | #include <time.h> | |
3199 | int main() { | |
3200 | struct tm *tp; tp->tm_sec; | |
3201 | ; return 0; } | |
3202 | EOF | |
abe1d62e | 3203 | if { (eval echo configure:3204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3204 | rm -rf conftest* |
3205 | ac_cv_struct_tm=time.h | |
3206 | else | |
3207 | echo "configure: failed program was:" >&5 | |
3208 | cat conftest.$ac_ext >&5 | |
3209 | rm -rf conftest* | |
3210 | ac_cv_struct_tm=sys/time.h | |
3211 | fi | |
3212 | rm -f conftest* | |
3213 | fi | |
3214 | ||
3215 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 | |
3216 | if test $ac_cv_struct_tm = sys/time.h; then | |
3217 | cat >> confdefs.h <<\EOF | |
3218 | #define TM_IN_SYS_TIME 1 | |
3219 | EOF | |
3220 | ||
3221 | fi | |
3222 | ||
3223 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | |
abe1d62e | 3224 | echo "configure:3225: checking for tm_zone in struct tm" >&5 |
c801d85f KB |
3225 | if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
3226 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3227 | else | |
3228 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3229 | #line 3230 "configure" |
c801d85f KB |
3230 | #include "confdefs.h" |
3231 | #include <sys/types.h> | |
3232 | #include <$ac_cv_struct_tm> | |
3233 | int main() { | |
3234 | struct tm tm; tm.tm_zone; | |
3235 | ; return 0; } | |
3236 | EOF | |
abe1d62e | 3237 | if { (eval echo configure:3238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3238 | rm -rf conftest* |
3239 | ac_cv_struct_tm_zone=yes | |
3240 | else | |
3241 | echo "configure: failed program was:" >&5 | |
3242 | cat conftest.$ac_ext >&5 | |
3243 | rm -rf conftest* | |
3244 | ac_cv_struct_tm_zone=no | |
3245 | fi | |
3246 | rm -f conftest* | |
3247 | fi | |
3248 | ||
3249 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 | |
3250 | if test "$ac_cv_struct_tm_zone" = yes; then | |
3251 | cat >> confdefs.h <<\EOF | |
3252 | #define HAVE_TM_ZONE 1 | |
3253 | EOF | |
3254 | ||
3255 | else | |
3256 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 | |
abe1d62e | 3257 | echo "configure:3258: checking for tzname" >&5 |
c801d85f KB |
3258 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
3259 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3260 | else | |
3261 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3262 | #line 3263 "configure" |
c801d85f KB |
3263 | #include "confdefs.h" |
3264 | #include <time.h> | |
3265 | #ifndef tzname /* For SGI. */ | |
3266 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
3267 | #endif | |
3268 | int main() { | |
3269 | atoi(*tzname); | |
3270 | ; return 0; } | |
3271 | EOF | |
abe1d62e | 3272 | if { (eval echo configure:3273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
3273 | rm -rf conftest* |
3274 | ac_cv_var_tzname=yes | |
3275 | else | |
3276 | echo "configure: failed program was:" >&5 | |
3277 | cat conftest.$ac_ext >&5 | |
3278 | rm -rf conftest* | |
3279 | ac_cv_var_tzname=no | |
3280 | fi | |
3281 | rm -f conftest* | |
3282 | fi | |
3283 | ||
3284 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 | |
3285 | if test $ac_cv_var_tzname = yes; then | |
3286 | cat >> confdefs.h <<\EOF | |
3287 | #define HAVE_TZNAME 1 | |
3288 | EOF | |
3289 | ||
3290 | fi | |
3291 | fi | |
3292 | ||
3293 | ||
3294 | ||
3295 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
abe1d62e | 3296 | echo "configure:3297: checking for working const" >&5 |
c801d85f KB |
3297 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
3298 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3299 | else | |
3300 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3301 | #line 3302 "configure" |
c801d85f KB |
3302 | #include "confdefs.h" |
3303 | ||
3304 | int main() { | |
3305 | ||
3306 | /* Ultrix mips cc rejects this. */ | |
3307 | typedef int charset[2]; const charset x; | |
3308 | /* SunOS 4.1.1 cc rejects this. */ | |
3309 | char const *const *ccp; | |
3310 | char **p; | |
3311 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3312 | struct point {int x, y;}; | |
3313 | static struct point const zero = {0,0}; | |
3314 | /* AIX XL C 1.02.0.0 rejects this. | |
3315 | It does not let you subtract one const X* pointer from another in an arm | |
3316 | of an if-expression whose if-part is not a constant expression */ | |
3317 | const char *g = "string"; | |
3318 | ccp = &g + (g ? g-g : 0); | |
3319 | /* HPUX 7.0 cc rejects these. */ | |
3320 | ++ccp; | |
3321 | p = (char**) ccp; | |
3322 | ccp = (char const *const *) p; | |
3323 | { /* SCO 3.2v4 cc rejects this. */ | |
3324 | char *t; | |
3325 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3326 | ||
3327 | *t++ = 0; | |
3328 | } | |
3329 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3330 | int x[] = {25, 17}; | |
3331 | const int *foo = &x[0]; | |
3332 | ++foo; | |
3333 | } | |
3334 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3335 | typedef const int *iptr; | |
3336 | iptr p = 0; | |
3337 | ++p; | |
3338 | } | |
3339 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3340 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3341 | struct s { int j; const int *ap[3]; }; | |
3342 | struct s *b; b->j = 5; | |
3343 | } | |
3344 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3345 | const int foo = 10; | |
3346 | } | |
3347 | ||
3348 | ; return 0; } | |
3349 | EOF | |
abe1d62e | 3350 | if { (eval echo configure:3351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3351 | rm -rf conftest* |
3352 | ac_cv_c_const=yes | |
3353 | else | |
3354 | echo "configure: failed program was:" >&5 | |
3355 | cat conftest.$ac_ext >&5 | |
3356 | rm -rf conftest* | |
3357 | ac_cv_c_const=no | |
3358 | fi | |
3359 | rm -f conftest* | |
3360 | fi | |
3361 | ||
3362 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
3363 | if test $ac_cv_c_const = no; then | |
3364 | cat >> confdefs.h <<\EOF | |
3365 | #define const | |
3366 | EOF | |
3367 | ||
3368 | fi | |
3369 | ||
3370 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
abe1d62e | 3371 | echo "configure:3372: checking for inline" >&5 |
c801d85f KB |
3372 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
3373 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3374 | else | |
3375 | ac_cv_c_inline=no | |
3376 | for ac_kw in inline __inline__ __inline; do | |
3377 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3378 | #line 3379 "configure" |
c801d85f KB |
3379 | #include "confdefs.h" |
3380 | ||
3381 | int main() { | |
3382 | } $ac_kw foo() { | |
3383 | ; return 0; } | |
3384 | EOF | |
abe1d62e | 3385 | if { (eval echo configure:3386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3386 | rm -rf conftest* |
3387 | ac_cv_c_inline=$ac_kw; break | |
3388 | else | |
3389 | echo "configure: failed program was:" >&5 | |
3390 | cat conftest.$ac_ext >&5 | |
3391 | fi | |
3392 | rm -f conftest* | |
3393 | done | |
3394 | ||
3395 | fi | |
3396 | ||
3397 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
3398 | case "$ac_cv_c_inline" in | |
3399 | inline | yes) ;; | |
3400 | no) cat >> confdefs.h <<\EOF | |
3401 | #define inline | |
3402 | EOF | |
3403 | ;; | |
3404 | *) cat >> confdefs.h <<EOF | |
3405 | #define inline $ac_cv_c_inline | |
3406 | EOF | |
3407 | ;; | |
3408 | esac | |
3409 | ||
3410 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 | |
abe1d62e | 3411 | echo "configure:3412: checking whether char is unsigned" >&5 |
c801d85f KB |
3412 | if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then |
3413 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3414 | else | |
3415 | if test "$GCC" = yes; then | |
3416 | # GCC predefines this symbol on systems where it applies. | |
3417 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3418 | #line 3419 "configure" |
c801d85f KB |
3419 | #include "confdefs.h" |
3420 | #ifdef __CHAR_UNSIGNED__ | |
3421 | yes | |
3422 | #endif | |
3423 | ||
3424 | EOF | |
3425 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3426 | egrep "yes" >/dev/null 2>&1; then | |
3427 | rm -rf conftest* | |
3428 | ac_cv_c_char_unsigned=yes | |
3429 | else | |
3430 | rm -rf conftest* | |
3431 | ac_cv_c_char_unsigned=no | |
3432 | fi | |
3433 | rm -f conftest* | |
3434 | ||
3435 | else | |
3436 | if test "$cross_compiling" = yes; then | |
3437 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
3438 | else | |
3439 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3440 | #line 3441 "configure" |
c801d85f KB |
3441 | #include "confdefs.h" |
3442 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ | |
3443 | #if !defined(__STDC__) || __STDC__ != 1 | |
3444 | #define volatile | |
3445 | #endif | |
3446 | main() { | |
3447 | volatile char c = 255; exit(c < 0); | |
3448 | } | |
3449 | EOF | |
abe1d62e | 3450 | if { (eval echo configure:3451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
3451 | then |
3452 | ac_cv_c_char_unsigned=yes | |
3453 | else | |
3454 | echo "configure: failed program was:" >&5 | |
3455 | cat conftest.$ac_ext >&5 | |
3456 | rm -fr conftest* | |
3457 | ac_cv_c_char_unsigned=no | |
3458 | fi | |
3459 | rm -fr conftest* | |
3460 | fi | |
3461 | ||
3462 | fi | |
3463 | fi | |
3464 | ||
3465 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 | |
3466 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | |
3467 | cat >> confdefs.h <<\EOF | |
3468 | #define __CHAR_UNSIGNED__ 1 | |
3469 | EOF | |
3470 | ||
3471 | fi | |
3472 | ||
3473 | echo $ac_n "checking for long double""... $ac_c" 1>&6 | |
abe1d62e | 3474 | echo "configure:3475: checking for long double" >&5 |
c801d85f KB |
3475 | if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then |
3476 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3477 | else | |
3478 | if test "$GCC" = yes; then | |
3479 | ac_cv_c_long_double=yes | |
3480 | else | |
3481 | if test "$cross_compiling" = yes; then | |
3482 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
3483 | else | |
3484 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3485 | #line 3486 "configure" |
c801d85f KB |
3486 | #include "confdefs.h" |
3487 | int main() { | |
3488 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ | |
3489 | long double foo = 0.0; | |
3490 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ | |
3491 | exit(sizeof(long double) < sizeof(double)); } | |
3492 | EOF | |
abe1d62e | 3493 | if { (eval echo configure:3494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
3494 | then |
3495 | ac_cv_c_long_double=yes | |
3496 | else | |
3497 | echo "configure: failed program was:" >&5 | |
3498 | cat conftest.$ac_ext >&5 | |
3499 | rm -fr conftest* | |
3500 | ac_cv_c_long_double=no | |
3501 | fi | |
3502 | rm -fr conftest* | |
3503 | fi | |
3504 | ||
3505 | fi | |
3506 | fi | |
3507 | ||
3508 | echo "$ac_t""$ac_cv_c_long_double" 1>&6 | |
3509 | if test $ac_cv_c_long_double = yes; then | |
3510 | cat >> confdefs.h <<\EOF | |
3511 | #define HAVE_LONG_DOUBLE 1 | |
3512 | EOF | |
3513 | ||
3514 | fi | |
3515 | ||
3516 | ||
3517 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
abe1d62e | 3518 | echo "configure:3519: checking whether byte ordering is bigendian" >&5 |
c801d85f KB |
3519 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
3520 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3521 | else | |
3522 | ac_cv_c_bigendian=unknown | |
3523 | # See if sys/param.h defines the BYTE_ORDER macro. | |
3524 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3525 | #line 3526 "configure" |
c801d85f KB |
3526 | #include "confdefs.h" |
3527 | #include <sys/types.h> | |
3528 | #include <sys/param.h> | |
3529 | int main() { | |
3530 | ||
3531 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
3532 | bogus endian macros | |
3533 | #endif | |
3534 | ; return 0; } | |
3535 | EOF | |
abe1d62e | 3536 | if { (eval echo configure:3537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3537 | rm -rf conftest* |
3538 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
3539 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3540 | #line 3541 "configure" |
c801d85f KB |
3541 | #include "confdefs.h" |
3542 | #include <sys/types.h> | |
3543 | #include <sys/param.h> | |
3544 | int main() { | |
3545 | ||
3546 | #if BYTE_ORDER != BIG_ENDIAN | |
3547 | not big endian | |
3548 | #endif | |
3549 | ; return 0; } | |
3550 | EOF | |
abe1d62e | 3551 | if { (eval echo configure:3552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3552 | rm -rf conftest* |
3553 | ac_cv_c_bigendian=yes | |
3554 | else | |
3555 | echo "configure: failed program was:" >&5 | |
3556 | cat conftest.$ac_ext >&5 | |
3557 | rm -rf conftest* | |
3558 | ac_cv_c_bigendian=no | |
3559 | fi | |
3560 | rm -f conftest* | |
3561 | else | |
3562 | echo "configure: failed program was:" >&5 | |
3563 | cat conftest.$ac_ext >&5 | |
3564 | fi | |
3565 | rm -f conftest* | |
3566 | if test $ac_cv_c_bigendian = unknown; then | |
3567 | if test "$cross_compiling" = yes; then | |
3568 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
3569 | else | |
3570 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3571 | #line 3572 "configure" |
c801d85f KB |
3572 | #include "confdefs.h" |
3573 | main () { | |
3574 | /* Are we little or big endian? From Harbison&Steele. */ | |
3575 | union | |
3576 | { | |
3577 | long l; | |
3578 | char c[sizeof (long)]; | |
3579 | } u; | |
3580 | u.l = 1; | |
3581 | exit (u.c[sizeof (long) - 1] == 1); | |
3582 | } | |
3583 | EOF | |
abe1d62e | 3584 | if { (eval echo configure:3585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
3585 | then |
3586 | ac_cv_c_bigendian=no | |
3587 | else | |
3588 | echo "configure: failed program was:" >&5 | |
3589 | cat conftest.$ac_ext >&5 | |
3590 | rm -fr conftest* | |
3591 | ac_cv_c_bigendian=yes | |
3592 | fi | |
3593 | rm -fr conftest* | |
3594 | fi | |
3595 | ||
3596 | fi | |
3597 | fi | |
3598 | ||
3599 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
3600 | if test $ac_cv_c_bigendian = yes; then | |
3601 | cat >> confdefs.h <<\EOF | |
3602 | #define WORDS_BIGENDIAN 1 | |
3603 | EOF | |
3604 | ||
3605 | fi | |
3606 | ||
3607 | ||
3608 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
abe1d62e | 3609 | echo "configure:3610: checking size of int *" >&5 |
c801d85f KB |
3610 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
3611 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3612 | else | |
3613 | if test "$cross_compiling" = yes; then | |
3614 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
3615 | else | |
3616 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3617 | #line 3618 "configure" |
c801d85f KB |
3618 | #include "confdefs.h" |
3619 | #include <stdio.h> | |
3620 | main() | |
3621 | { | |
3622 | FILE *f=fopen("conftestval", "w"); | |
3623 | if (!f) exit(1); | |
3624 | fprintf(f, "%d\n", sizeof(int *)); | |
3625 | exit(0); | |
3626 | } | |
3627 | EOF | |
abe1d62e | 3628 | if { (eval echo configure:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
3629 | then |
3630 | ac_cv_sizeof_int_p=`cat conftestval` | |
3631 | else | |
3632 | echo "configure: failed program was:" >&5 | |
3633 | cat conftest.$ac_ext >&5 | |
3634 | rm -fr conftest* | |
3635 | ac_cv_sizeof_int_p=0 | |
3636 | fi | |
3637 | rm -fr conftest* | |
3638 | fi | |
3639 | ||
3640 | fi | |
3641 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
3642 | cat >> confdefs.h <<EOF | |
3643 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
3644 | EOF | |
3645 | ||
3646 | ||
3647 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
abe1d62e | 3648 | echo "configure:3649: checking size of int" >&5 |
c801d85f KB |
3649 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
3650 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3651 | else | |
3652 | if test "$cross_compiling" = yes; then | |
3653 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
3654 | else | |
3655 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3656 | #line 3657 "configure" |
c801d85f KB |
3657 | #include "confdefs.h" |
3658 | #include <stdio.h> | |
3659 | main() | |
3660 | { | |
3661 | FILE *f=fopen("conftestval", "w"); | |
3662 | if (!f) exit(1); | |
3663 | fprintf(f, "%d\n", sizeof(int)); | |
3664 | exit(0); | |
3665 | } | |
3666 | EOF | |
abe1d62e | 3667 | if { (eval echo configure:3668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
3668 | then |
3669 | ac_cv_sizeof_int=`cat conftestval` | |
3670 | else | |
3671 | echo "configure: failed program was:" >&5 | |
3672 | cat conftest.$ac_ext >&5 | |
3673 | rm -fr conftest* | |
3674 | ac_cv_sizeof_int=0 | |
3675 | fi | |
3676 | rm -fr conftest* | |
3677 | fi | |
3678 | ||
3679 | fi | |
3680 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
3681 | cat >> confdefs.h <<EOF | |
3682 | #define SIZEOF_INT $ac_cv_sizeof_int | |
3683 | EOF | |
3684 | ||
3685 | ||
3686 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
abe1d62e | 3687 | echo "configure:3688: checking size of long" >&5 |
c801d85f KB |
3688 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
3689 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3690 | else | |
3691 | if test "$cross_compiling" = yes; then | |
3692 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
3693 | else | |
3694 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3695 | #line 3696 "configure" |
c801d85f KB |
3696 | #include "confdefs.h" |
3697 | #include <stdio.h> | |
3698 | main() | |
3699 | { | |
3700 | FILE *f=fopen("conftestval", "w"); | |
3701 | if (!f) exit(1); | |
3702 | fprintf(f, "%d\n", sizeof(long)); | |
3703 | exit(0); | |
3704 | } | |
3705 | EOF | |
abe1d62e | 3706 | if { (eval echo configure:3707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
3707 | then |
3708 | ac_cv_sizeof_long=`cat conftestval` | |
3709 | else | |
3710 | echo "configure: failed program was:" >&5 | |
3711 | cat conftest.$ac_ext >&5 | |
3712 | rm -fr conftest* | |
3713 | ac_cv_sizeof_long=0 | |
3714 | fi | |
3715 | rm -fr conftest* | |
3716 | fi | |
3717 | ||
3718 | fi | |
3719 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
3720 | cat >> confdefs.h <<EOF | |
3721 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
3722 | EOF | |
3723 | ||
3724 | ||
3725 | ||
3726 | ||
3727 | ||
3728 | echo $ac_n "checking for long file names""... $ac_c" 1>&6 | |
abe1d62e | 3729 | echo "configure:3730: checking for long file names" >&5 |
c801d85f KB |
3730 | if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then |
3731 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3732 | else | |
3733 | ac_cv_sys_long_file_names=yes | |
3734 | # Test for long file names in all the places we know might matter: | |
3735 | # . the current directory, where building will happen | |
3736 | # $prefix/lib where we will be installing things | |
3737 | # $exec_prefix/lib likewise | |
3738 | # eval it to expand exec_prefix. | |
3739 | # $TMPDIR if set, where it might want to write temporary files | |
3740 | # if $TMPDIR is not set: | |
3741 | # /tmp where it might want to write temporary files | |
3742 | # /var/tmp likewise | |
3743 | # /usr/tmp likewise | |
3744 | if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
3745 | ac_tmpdirs="$TMPDIR" | |
3746 | else | |
3747 | ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
3748 | fi | |
3749 | for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
3750 | test -d $ac_dir || continue | |
3751 | test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
3752 | (echo 1 > $ac_dir/conftest9012345) 2>/dev/null | |
3753 | (echo 2 > $ac_dir/conftest9012346) 2>/dev/null | |
3754 | val=`cat $ac_dir/conftest9012345 2>/dev/null` | |
3755 | if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then | |
3756 | ac_cv_sys_long_file_names=no | |
3757 | rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
3758 | break | |
3759 | fi | |
3760 | rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
3761 | done | |
3762 | fi | |
3763 | ||
3764 | echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6 | |
3765 | if test $ac_cv_sys_long_file_names = yes; then | |
3766 | cat >> confdefs.h <<\EOF | |
3767 | #define HAVE_LONG_FILE_NAMES 1 | |
3768 | EOF | |
3769 | ||
3770 | fi | |
3771 | ||
3772 | ||
3773 | ||
3774 | ||
3775 | for ac_prog in 'bison -y' byacc | |
3776 | do | |
3777 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3778 | set dummy $ac_prog; ac_word=$2 | |
3779 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
abe1d62e | 3780 | echo "configure:3781: checking for $ac_word" >&5 |
c801d85f KB |
3781 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
3782 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3783 | else | |
3784 | if test -n "$YACC"; then | |
3785 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
3786 | else | |
3787 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3788 | for ac_dir in $PATH; do | |
3789 | test -z "$ac_dir" && ac_dir=. | |
3790 | if test -f $ac_dir/$ac_word; then | |
3791 | ac_cv_prog_YACC="$ac_prog" | |
3792 | break | |
3793 | fi | |
3794 | done | |
3795 | IFS="$ac_save_ifs" | |
3796 | fi | |
3797 | fi | |
3798 | YACC="$ac_cv_prog_YACC" | |
3799 | if test -n "$YACC"; then | |
3800 | echo "$ac_t""$YACC" 1>&6 | |
3801 | else | |
3802 | echo "$ac_t""no" 1>&6 | |
3803 | fi | |
3804 | ||
3805 | test -n "$YACC" && break | |
3806 | done | |
3807 | test -n "$YACC" || YACC="yacc" | |
3808 | ||
3809 | ||
3810 | # Extract the first word of "flex", so it can be a program name with args. | |
3811 | set dummy flex; ac_word=$2 | |
3812 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
abe1d62e | 3813 | echo "configure:3814: checking for $ac_word" >&5 |
c801d85f KB |
3814 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
3815 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3816 | else | |
3817 | if test -n "$LEX"; then | |
3818 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
3819 | else | |
3820 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3821 | for ac_dir in $PATH; do | |
3822 | test -z "$ac_dir" && ac_dir=. | |
3823 | if test -f $ac_dir/$ac_word; then | |
3824 | ac_cv_prog_LEX="flex" | |
3825 | break | |
3826 | fi | |
3827 | done | |
3828 | IFS="$ac_save_ifs" | |
3829 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
3830 | fi | |
3831 | fi | |
3832 | LEX="$ac_cv_prog_LEX" | |
3833 | if test -n "$LEX"; then | |
3834 | echo "$ac_t""$LEX" 1>&6 | |
3835 | else | |
3836 | echo "$ac_t""no" 1>&6 | |
3837 | fi | |
3838 | ||
3839 | if test -z "$LEXLIB" | |
3840 | then | |
3841 | case "$LEX" in | |
3842 | flex*) ac_lib=fl ;; | |
3843 | *) ac_lib=l ;; | |
3844 | esac | |
3845 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
abe1d62e | 3846 | echo "configure:3847: checking for yywrap in -l$ac_lib" >&5 |
c801d85f KB |
3847 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
3848 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3849 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3850 | else | |
3851 | ac_save_LIBS="$LIBS" | |
3852 | LIBS="-l$ac_lib $LIBS" | |
3853 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3854 | #line 3855 "configure" |
c801d85f KB |
3855 | #include "confdefs.h" |
3856 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3857 | /* We use char because int might match the return type of a gcc2 | |
3858 | builtin and then its argument prototype would still apply. */ | |
3859 | char yywrap(); | |
3860 | ||
3861 | int main() { | |
3862 | yywrap() | |
3863 | ; return 0; } | |
3864 | EOF | |
abe1d62e | 3865 | if { (eval echo configure:3866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
3866 | rm -rf conftest* |
3867 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3868 | else | |
3869 | echo "configure: failed program was:" >&5 | |
3870 | cat conftest.$ac_ext >&5 | |
3871 | rm -rf conftest* | |
3872 | eval "ac_cv_lib_$ac_lib_var=no" | |
3873 | fi | |
3874 | rm -f conftest* | |
3875 | LIBS="$ac_save_LIBS" | |
3876 | ||
3877 | fi | |
3878 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3879 | echo "$ac_t""yes" 1>&6 | |
3880 | LEXLIB="-l$ac_lib" | |
3881 | else | |
3882 | echo "$ac_t""no" 1>&6 | |
3883 | fi | |
3884 | ||
3885 | fi | |
3886 | ||
3887 | echo $ac_n "checking lex output file root""... $ac_c" 1>&6 | |
abe1d62e | 3888 | echo "configure:3889: checking lex output file root" >&5 |
c801d85f KB |
3889 | if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then |
3890 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3891 | else | |
3892 | # The minimal lex program is just a single line: %%. But some broken lexes | |
3893 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
3894 | echo '%% | |
3895 | %%' | $LEX | |
3896 | if test -f lex.yy.c; then | |
3897 | ac_cv_prog_lex_root=lex.yy | |
3898 | elif test -f lexyy.c; then | |
3899 | ac_cv_prog_lex_root=lexyy | |
3900 | else | |
3901 | { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; } | |
3902 | fi | |
3903 | fi | |
3904 | ||
3905 | echo "$ac_t""$ac_cv_prog_lex_root" 1>&6 | |
3906 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
3907 | ||
3908 | echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 | |
abe1d62e | 3909 | echo "configure:3910: checking whether yytext is a pointer" >&5 |
c801d85f KB |
3910 | if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then |
3911 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3912 | else | |
3913 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
3914 | # default is implementation-dependent. Figure out which it is, since | |
3915 | # not all implementations provide the %pointer and %array declarations. | |
3916 | ac_cv_prog_lex_yytext_pointer=no | |
3917 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
3918 | ac_save_LIBS="$LIBS" | |
3919 | LIBS="$LIBS $LEXLIB" | |
3920 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 3921 | #line 3922 "configure" |
c801d85f KB |
3922 | #include "confdefs.h" |
3923 | `cat $LEX_OUTPUT_ROOT.c` | |
3924 | int main() { | |
3925 | ||
3926 | ; return 0; } | |
3927 | EOF | |
abe1d62e | 3928 | if { (eval echo configure:3929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
3929 | rm -rf conftest* |
3930 | ac_cv_prog_lex_yytext_pointer=yes | |
3931 | else | |
3932 | echo "configure: failed program was:" >&5 | |
3933 | cat conftest.$ac_ext >&5 | |
3934 | fi | |
3935 | rm -f conftest* | |
3936 | LIBS="$ac_save_LIBS" | |
3937 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
3938 | ||
3939 | fi | |
3940 | ||
3941 | echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6 | |
3942 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
3943 | cat >> confdefs.h <<\EOF | |
3944 | #define YYTEXT_POINTER 1 | |
3945 | EOF | |
3946 | ||
3947 | fi | |
3948 | ||
3949 | ||
3950 | ||
3951 | CHECK_INCLUDE="-I/usr/include $X_CFLAGS" | |
3952 | CHECK_LIB="-L/lib -L/usr/lib $X_LIBS" | |
3953 | ||
3954 | ||
3955 | ||
3956 | # Make sure we can run config.sub. | |
3957 | if $ac_config_sub sun4 >/dev/null 2>&1; then : | |
3958 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
3959 | fi | |
3960 | ||
3961 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
abe1d62e | 3962 | echo "configure:3963: checking host system type" >&5 |
c801d85f KB |
3963 | |
3964 | host_alias=$host | |
3965 | case "$host_alias" in | |
3966 | NONE) | |
3967 | case $nonopt in | |
3968 | NONE) | |
3969 | if host_alias=`$ac_config_guess`; then : | |
3970 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
3971 | fi ;; | |
3972 | *) host_alias=$nonopt ;; | |
3973 | esac ;; | |
3974 | esac | |
3975 | ||
3976 | host=`$ac_config_sub $host_alias` | |
3977 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3978 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3979 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3980 | echo "$ac_t""$host" 1>&6 | |
3981 | ||
3982 | canonical=$host | |
3983 | configuration=$host_alias | |
3984 | ||
3985 | ||
3986 | USE_GTK=1 | |
3987 | USE_UNIX=1 | |
3988 | ||
3989 | TOOLKIT=GTK | |
3990 | TOOLKIT_DEF=__GTK__ | |
3991 | ||
3992 | USE_LINUX= | |
3993 | USE_SGI= | |
3994 | USE_HPUX= | |
3995 | USE_SYSV= | |
3996 | USE_SVR4= | |
3997 | USE_AIX= | |
3998 | USE_SUN= | |
3999 | USE_SOLARIS= | |
4000 | USE_SUNOS= | |
4001 | USE_ALPHA= | |
4002 | USE_OSF= | |
4003 | USE_BSD= | |
4004 | USE_FREEBSD= | |
4005 | USE_VMS= | |
4006 | USE_ULTRIX= | |
4007 | USE_DATA_GENERAL= | |
4008 | ||
4009 | case "${canonical}" in | |
4010 | *-hp-hpux* ) | |
4011 | USE_HPUX=1 | |
4012 | cat >> confdefs.h <<\EOF | |
4013 | #define __HPUX__ 1 | |
4014 | EOF | |
4015 | ||
4016 | ;; | |
4017 | *-*-linux* ) | |
4018 | USE_LINUX=1 | |
4019 | cat >> confdefs.h <<\EOF | |
4020 | #define __LINUX__ 1 | |
4021 | EOF | |
4022 | ||
4023 | ;; | |
4024 | *-*-irix5* | *-*-irix6* ) | |
4025 | USE_SGI=1 | |
4026 | USE_SVR4=1 | |
4027 | cat >> confdefs.h <<\EOF | |
4028 | #define __SGI__ 1 | |
4029 | EOF | |
4030 | ||
4031 | cat >> confdefs.h <<\EOF | |
4032 | #define __SVR4__ 1 | |
4033 | EOF | |
4034 | ||
4035 | ;; | |
4036 | *-*-solaris2* ) | |
4037 | USE_SUN=1 | |
4038 | USE_SOLARIS=1 | |
4039 | USE_SVR4=1 | |
4040 | cat >> confdefs.h <<\EOF | |
4041 | #define __SUN__ 1 | |
4042 | EOF | |
4043 | ||
4044 | cat >> confdefs.h <<\EOF | |
4045 | #define __SOLARIS__ 1 | |
4046 | EOF | |
4047 | ||
4048 | cat >> confdefs.h <<\EOF | |
4049 | #define __SVR4__ 1 | |
4050 | EOF | |
4051 | ||
4052 | ;; | |
4053 | *-*-sunos4* ) | |
4054 | USE_SUN=1 | |
4055 | USE_SUNOS=1 | |
4056 | USE_BSD=1 | |
4057 | cat >> confdefs.h <<\EOF | |
4058 | #define __SUN__ 1 | |
4059 | EOF | |
4060 | ||
4061 | cat >> confdefs.h <<\EOF | |
4062 | #define __SUNOS__ 1 | |
4063 | EOF | |
4064 | ||
4065 | cat >> confdefs.h <<\EOF | |
4066 | #define __BSD__ 1 | |
4067 | EOF | |
4068 | ||
4069 | ;; | |
4070 | *-*-freebsd* | *-*-netbsd*) | |
4071 | USE_BSD=1 | |
4072 | USE_FREEBSD=1 | |
4073 | cat >> confdefs.h <<\EOF | |
4074 | #define __FREEBSD__ 1 | |
4075 | EOF | |
4076 | ||
4077 | cat >> confdefs.h <<\EOF | |
4078 | #define __BSD__ 1 | |
4079 | EOF | |
4080 | ||
4081 | ;; | |
4082 | *-*-osf* ) | |
4083 | USE_ALPHA=1 | |
4084 | USE_OSF=1 | |
4085 | cat >> confdefs.h <<\EOF | |
4086 | #define __ALPHA__ 1 | |
4087 | EOF | |
4088 | ||
4089 | cat >> confdefs.h <<\EOF | |
4090 | #define __OSF__ 1 | |
4091 | EOF | |
4092 | ||
4093 | ;; | |
4094 | *-*-dgux5* ) | |
4095 | USE_ALPHA=1 | |
4096 | USE_SVR4=1 | |
4097 | cat >> confdefs.h <<\EOF | |
4098 | #define __ALPHA__ 1 | |
4099 | EOF | |
4100 | ||
4101 | cat >> confdefs.h <<\EOF | |
4102 | #define __SVR4__ 1 | |
4103 | EOF | |
4104 | ||
4105 | ;; | |
4106 | *-*-sysv5* ) | |
4107 | USE_SYSV=1 | |
4108 | USE_SVR4=1 | |
4109 | cat >> confdefs.h <<\EOF | |
4110 | #define __SYSV__ 1 | |
4111 | EOF | |
4112 | ||
4113 | cat >> confdefs.h <<\EOF | |
4114 | #define __SVR4__ 1 | |
4115 | EOF | |
4116 | ||
4117 | ;; | |
4118 | *-*-aix* ) | |
4119 | USE_AIX=1 | |
4120 | USE_SYSV=1 | |
4121 | USE_SVR4=1 | |
4122 | cat >> confdefs.h <<\EOF | |
4123 | #define __AIX__ 1 | |
4124 | EOF | |
4125 | ||
4126 | cat >> confdefs.h <<\EOF | |
4127 | #define __SYSV__ 1 | |
4128 | EOF | |
4129 | ||
4130 | cat >> confdefs.h <<\EOF | |
4131 | #define __SVR4__ 1 | |
4132 | EOF | |
4133 | ||
4134 | ;; | |
4135 | *) | |
4136 | { echo "configure: error: I don't know your system type." 1>&2; exit 1; } | |
4137 | esac | |
4138 | ||
4139 | ||
4140 | ||
4141 | rm -f ${OSTYPE}.system.cache.tmp | |
4142 | touch ${OSTYPE}.system.cache.tmp | |
4143 | touch ${OSTYPE}.system.cache | |
4144 | ||
4145 | ||
4146 | DEFAULT_USE_SHARED=0 | |
4147 | DEFAULT_USE_OPTIMISE=1 | |
4148 | DEFAULT_USE_PROFILE=0 | |
4149 | DEFAULT_USE_DEBUG_FLAG=0 | |
4150 | DEFAULT_USE_DEBUG_INFO=0 | |
4151 | DEFAULT_USE_MEM_TRACING=0 | |
4152 | ||
4153 | DEFAULT_USE_ZLIB=1 | |
4154 | DEFAULT_USE_GDK_IMLIB=1 | |
4155 | DEFAULT_USE_LIBPNG=1 | |
4156 | ||
4157 | DEFAULT_USE_STORABLE_CLASSES=1 | |
4158 | DEFAULT_USE_AUTOTRANS=1 | |
4159 | DEFAULT_USE_AFM_FOR_POSTSCRIPT=1 | |
4160 | DEFAULT_WX_NORMALIZED_PS_FONTS=1 | |
4161 | ||
4162 | DEFAULT_USE_IOSTREAMH=1 | |
4163 | ||
4164 | DEFAULT_USE_THREADS=0 | |
4165 | DEFAULT_USE_THREADS_SGI=0 | |
4166 | DEFAULT_USE_THREADS_POSIX=0 | |
4167 | DEFAULT_USE_OPENGL=0 | |
4168 | ||
4169 | DEFAULT_USE_POSTSCRIPT=1 | |
4170 | DEFAULT_USE_IPC=1 | |
4171 | DEFAULT_USE_RESOURCES=1 | |
4172 | DEFAULT_USE_TIMEDATE=1 | |
4173 | DEFAULT_USE_FRACTION=1 | |
4174 | DEFAULT_USE_CONSTRAINTS=1 | |
4175 | DEFAULT_USE_TOOLBAR=1 | |
4176 | DEFAULT_USE_GAUGE=1 | |
4177 | DEFAULT_USE_SCROLLBAR=1 | |
4178 | DEFAULT_USE_DOC_VIEW_ARCHITECTURE=1 | |
4179 | DEFAULT_USE_PRINTING_ARCHITECTURE=1 | |
4180 | ||
4181 | DEFAULT_USE_METAFILE=0 | |
4182 | DEFAULT_USE_HELP=0 | |
4183 | DEFAULT_USE_CLIPBOARD=0 | |
4184 | DEFAULT_USE_VLBOX=0 | |
4185 | DEFAULT_USE_WXGRAPH=0 | |
4186 | DEFAULT_USE_WXTREE=0 | |
4187 | DEFAULT_USE_ENHANCED_DIALOG=0 | |
4188 | ||
4189 | DEFAULT_USE_FORM=0 | |
4190 | DEFAULT_USE_PROLOGIO=0 | |
4191 | DEFAULT_USE_RPC=0 | |
4192 | DEFAULT_USE_WX_RESOURCES=1 | |
4193 | ||
4194 | ||
4195 | ||
4196 | echo $ac_n "checking "for shared"""... $ac_c" 1>&6 | |
abe1d62e | 4197 | echo "configure:4198: checking "for shared"" >&5 |
c801d85f KB |
4198 | # Check whether --with-shared or --without-shared was given. |
4199 | if test "${with_shared+set}" = set; then | |
4200 | withval="$with_shared" | |
4201 | if test "x$with_shared" = xyes; then | |
4202 | ac_cv_use_shared='USE_SHARED="1"' | |
4203 | else | |
4204 | ac_cv_use_shared='USE_SHARED="0"' | |
4205 | fi | |
4206 | else | |
4207 | ||
4208 | LINE=`grep "USE_SHARED" ${OSTYPE}.system.cache` | |
4209 | if test "x$LINE" != x ; then | |
4210 | eval "DEFAULT_$LINE" | |
4211 | fi | |
4212 | ac_cv_use_shared='USE_SHARED='$DEFAULT_USE_SHARED | |
4213 | ||
4214 | fi | |
4215 | ||
4216 | eval "$ac_cv_use_shared" | |
4217 | echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp | |
4218 | if test "$USE_SHARED" = 1; then | |
4219 | echo "$ac_t""yes" 1>&6 | |
4220 | else | |
4221 | echo "$ac_t""no" 1>&6 | |
4222 | fi | |
4223 | ||
4224 | ||
4225 | ||
4226 | echo $ac_n "checking "for optimise"""... $ac_c" 1>&6 | |
abe1d62e | 4227 | echo "configure:4228: checking "for optimise"" >&5 |
c801d85f KB |
4228 | # Check whether --with-optimise or --without-optimise was given. |
4229 | if test "${with_optimise+set}" = set; then | |
4230 | withval="$with_optimise" | |
4231 | if test "x$with_optimise" = xyes; then | |
4232 | ac_cv_use_optimise='USE_OPTIMISE="1"' | |
4233 | else | |
4234 | ac_cv_use_optimise='USE_OPTIMISE="0"' | |
4235 | fi | |
4236 | else | |
4237 | ||
4238 | LINE=`grep "USE_OPTIMISE" ${OSTYPE}.system.cache` | |
4239 | if test "x$LINE" != x ; then | |
4240 | eval "DEFAULT_$LINE" | |
4241 | fi | |
4242 | ac_cv_use_optimise='USE_OPTIMISE='$DEFAULT_USE_OPTIMISE | |
4243 | ||
4244 | fi | |
4245 | ||
4246 | eval "$ac_cv_use_optimise" | |
4247 | echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp | |
4248 | if test "$USE_OPTIMISE" = 1; then | |
4249 | echo "$ac_t""yes" 1>&6 | |
4250 | else | |
4251 | echo "$ac_t""no" 1>&6 | |
4252 | fi | |
4253 | ||
4254 | ||
4255 | ||
4256 | echo $ac_n "checking "for debug_flag"""... $ac_c" 1>&6 | |
abe1d62e | 4257 | echo "configure:4258: checking "for debug_flag"" >&5 |
c801d85f KB |
4258 | # Check whether --with-debug_flag or --without-debug_flag was given. |
4259 | if test "${with_debug_flag+set}" = set; then | |
4260 | withval="$with_debug_flag" | |
4261 | if test "x$with_debug_flag" = xyes; then | |
4262 | ac_cv_use_debug_flag='USE_DEBUG_FLAG="1"' | |
4263 | else | |
4264 | ac_cv_use_debug_flag='USE_DEBUG_FLAG="0"' | |
4265 | fi | |
4266 | else | |
4267 | ||
4268 | LINE=`grep "USE_DEBUG_FLAG" ${OSTYPE}.system.cache` | |
4269 | if test "x$LINE" != x ; then | |
4270 | eval "DEFAULT_$LINE" | |
4271 | fi | |
4272 | ac_cv_use_debug_flag='USE_DEBUG_FLAG='$DEFAULT_USE_DEBUG_FLAG | |
4273 | ||
4274 | fi | |
4275 | ||
4276 | eval "$ac_cv_use_debug_flag" | |
4277 | echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp | |
4278 | if test "$USE_DEBUG_FLAG" = 1; then | |
4279 | echo "$ac_t""yes" 1>&6 | |
4280 | else | |
4281 | echo "$ac_t""no" 1>&6 | |
4282 | fi | |
4283 | ||
4284 | ||
4285 | ||
4286 | echo $ac_n "checking "for debug_info"""... $ac_c" 1>&6 | |
abe1d62e | 4287 | echo "configure:4288: checking "for debug_info"" >&5 |
c801d85f KB |
4288 | # Check whether --with-debug_info or --without-debug_info was given. |
4289 | if test "${with_debug_info+set}" = set; then | |
4290 | withval="$with_debug_info" | |
4291 | if test "x$with_debug_info" = xyes; then | |
4292 | ac_cv_use_debug_info='USE_DEBUG_INFO="1"' | |
4293 | else | |
4294 | ac_cv_use_debug_info='USE_DEBUG_INFO="0"' | |
4295 | fi | |
4296 | else | |
4297 | ||
4298 | LINE=`grep "USE_DEBUG_INFO" ${OSTYPE}.system.cache` | |
4299 | if test "x$LINE" != x ; then | |
4300 | eval "DEFAULT_$LINE" | |
4301 | fi | |
4302 | ac_cv_use_debug_info='USE_DEBUG_INFO='$DEFAULT_USE_DEBUG_INFO | |
4303 | ||
4304 | fi | |
4305 | ||
4306 | eval "$ac_cv_use_debug_info" | |
4307 | echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp | |
4308 | if test "$USE_DEBUG_INFO" = 1; then | |
4309 | echo "$ac_t""yes" 1>&6 | |
4310 | else | |
4311 | echo "$ac_t""no" 1>&6 | |
4312 | fi | |
4313 | ||
4314 | ||
4315 | ||
4316 | echo $ac_n "checking "for mem_tracing"""... $ac_c" 1>&6 | |
abe1d62e | 4317 | echo "configure:4318: checking "for mem_tracing"" >&5 |
c801d85f KB |
4318 | # Check whether --with-mem_tracing or --without-mem_tracing was given. |
4319 | if test "${with_mem_tracing+set}" = set; then | |
4320 | withval="$with_mem_tracing" | |
4321 | if test "x$with_mem_tracing" = xyes; then | |
4322 | ac_cv_use_mem_tracing='USE_MEM_TRACING="1"' | |
4323 | else | |
4324 | ac_cv_use_mem_tracing='USE_MEM_TRACING="0"' | |
4325 | fi | |
4326 | else | |
4327 | ||
4328 | LINE=`grep "USE_MEM_TRACING" ${OSTYPE}.system.cache` | |
4329 | if test "x$LINE" != x ; then | |
4330 | eval "DEFAULT_$LINE" | |
4331 | fi | |
4332 | ac_cv_use_mem_tracing='USE_MEM_TRACING='$DEFAULT_USE_MEM_TRACING | |
4333 | ||
4334 | fi | |
4335 | ||
4336 | eval "$ac_cv_use_mem_tracing" | |
4337 | echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp | |
4338 | if test "$USE_MEM_TRACING" = 1; then | |
4339 | echo "$ac_t""yes" 1>&6 | |
4340 | else | |
4341 | echo "$ac_t""no" 1>&6 | |
4342 | fi | |
4343 | ||
4344 | ||
4345 | ||
4346 | echo $ac_n "checking "for profile"""... $ac_c" 1>&6 | |
abe1d62e | 4347 | echo "configure:4348: checking "for profile"" >&5 |
c801d85f KB |
4348 | # Check whether --with-profile or --without-profile was given. |
4349 | if test "${with_profile+set}" = set; then | |
4350 | withval="$with_profile" | |
4351 | if test "x$with_profile" = xyes; then | |
4352 | ac_cv_use_profile='USE_PROFILE="1"' | |
4353 | else | |
4354 | ac_cv_use_profile='USE_PROFILE="0"' | |
4355 | fi | |
4356 | else | |
4357 | ||
4358 | LINE=`grep "USE_PROFILE" ${OSTYPE}.system.cache` | |
4359 | if test "x$LINE" != x ; then | |
4360 | eval "DEFAULT_$LINE" | |
4361 | fi | |
4362 | ac_cv_use_profile='USE_PROFILE='$DEFAULT_USE_PROFILE | |
4363 | ||
4364 | fi | |
4365 | ||
4366 | eval "$ac_cv_use_profile" | |
4367 | echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp | |
4368 | if test "$USE_PROFILE" = 1; then | |
4369 | echo "$ac_t""yes" 1>&6 | |
4370 | else | |
4371 | echo "$ac_t""no" 1>&6 | |
4372 | fi | |
4373 | ||
4374 | ||
4375 | ||
4376 | ||
4377 | echo $ac_n "checking "for zlib"""... $ac_c" 1>&6 | |
abe1d62e | 4378 | echo "configure:4379: checking "for zlib"" >&5 |
c801d85f KB |
4379 | # Check whether --with-zlib or --without-zlib was given. |
4380 | if test "${with_zlib+set}" = set; then | |
4381 | withval="$with_zlib" | |
4382 | if test "x$with_zlib" = xyes; then | |
4383 | ac_cv_use_zlib='USE_ZLIB="1"' | |
4384 | else | |
4385 | ac_cv_use_zlib='USE_ZLIB="0"' | |
4386 | fi | |
4387 | else | |
4388 | ||
4389 | LINE=`grep "USE_ZLIB" ${OSTYPE}.system.cache` | |
4390 | if test "x$LINE" != x ; then | |
4391 | eval "DEFAULT_$LINE" | |
4392 | fi | |
4393 | ac_cv_use_zlib='USE_ZLIB='$DEFAULT_USE_ZLIB | |
4394 | ||
4395 | fi | |
4396 | ||
4397 | eval "$ac_cv_use_zlib" | |
4398 | echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp | |
4399 | if test "$USE_ZLIB" = 1; then | |
4400 | echo "$ac_t""yes" 1>&6 | |
4401 | else | |
4402 | echo "$ac_t""no" 1>&6 | |
4403 | fi | |
4404 | ||
4405 | ||
4406 | ||
4407 | echo $ac_n "checking "for gdk_imlib"""... $ac_c" 1>&6 | |
abe1d62e | 4408 | echo "configure:4409: checking "for gdk_imlib"" >&5 |
c801d85f KB |
4409 | # Check whether --with-gdk_imlib or --without-gdk_imlib was given. |
4410 | if test "${with_gdk_imlib+set}" = set; then | |
4411 | withval="$with_gdk_imlib" | |
4412 | if test "x$with_gdk_imlib" = xyes; then | |
4413 | ac_cv_use_gdk_imlib='USE_GDK_IMLIB="1"' | |
4414 | else | |
4415 | ac_cv_use_gdk_imlib='USE_GDK_IMLIB="0"' | |
4416 | fi | |
4417 | else | |
4418 | ||
4419 | LINE=`grep "USE_GDK_IMLIB" ${OSTYPE}.system.cache` | |
4420 | if test "x$LINE" != x ; then | |
4421 | eval "DEFAULT_$LINE" | |
4422 | fi | |
4423 | ac_cv_use_gdk_imlib='USE_GDK_IMLIB='$DEFAULT_USE_GDK_IMLIB | |
4424 | ||
4425 | fi | |
4426 | ||
4427 | eval "$ac_cv_use_gdk_imlib" | |
4428 | echo $ac_cv_use_gdk_imlib >> ${OSTYPE}.system.cache.tmp | |
4429 | if test "$USE_GDK_IMLIB" = 1; then | |
4430 | echo "$ac_t""yes" 1>&6 | |
4431 | else | |
4432 | echo "$ac_t""no" 1>&6 | |
4433 | fi | |
4434 | ||
4435 | ||
4436 | ||
4437 | echo $ac_n "checking "for libpng"""... $ac_c" 1>&6 | |
abe1d62e | 4438 | echo "configure:4439: checking "for libpng"" >&5 |
c801d85f KB |
4439 | # Check whether --with-libpng or --without-libpng was given. |
4440 | if test "${with_libpng+set}" = set; then | |
4441 | withval="$with_libpng" | |
4442 | if test "x$with_libpng" = xyes; then | |
4443 | ac_cv_use_libpng='USE_LIBPNG="1"' | |
4444 | else | |
4445 | ac_cv_use_libpng='USE_LIBPNG="0"' | |
4446 | fi | |
4447 | else | |
4448 | ||
4449 | LINE=`grep "USE_LIBPNG" ${OSTYPE}.system.cache` | |
4450 | if test "x$LINE" != x ; then | |
4451 | eval "DEFAULT_$LINE" | |
4452 | fi | |
4453 | ac_cv_use_libpng='USE_LIBPNG='$DEFAULT_USE_LIBPNG | |
4454 | ||
4455 | fi | |
4456 | ||
4457 | eval "$ac_cv_use_libpng" | |
4458 | echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp | |
4459 | if test "$USE_LIBPNG" = 1; then | |
4460 | echo "$ac_t""yes" 1>&6 | |
4461 | else | |
4462 | echo "$ac_t""no" 1>&6 | |
4463 | fi | |
4464 | ||
4465 | ||
4466 | ||
4467 | echo $ac_n "checking "for threads"""... $ac_c" 1>&6 | |
abe1d62e | 4468 | echo "configure:4469: checking "for threads"" >&5 |
c801d85f KB |
4469 | # Check whether --with-threads or --without-threads was given. |
4470 | if test "${with_threads+set}" = set; then | |
4471 | withval="$with_threads" | |
4472 | if test "x$with_threads" = xyes; then | |
4473 | ac_cv_use_threads='USE_THREADS="1"' | |
4474 | else | |
4475 | ac_cv_use_threads='USE_THREADS="0"' | |
4476 | fi | |
4477 | else | |
4478 | ||
4479 | LINE=`grep "USE_THREADS" ${OSTYPE}.system.cache` | |
4480 | if test "x$LINE" != x ; then | |
4481 | eval "DEFAULT_$LINE" | |
4482 | fi | |
4483 | ac_cv_use_threads='USE_THREADS='$DEFAULT_USE_THREADS | |
4484 | ||
4485 | fi | |
4486 | ||
4487 | eval "$ac_cv_use_threads" | |
4488 | echo $ac_cv_use_threads >> ${OSTYPE}.system.cache.tmp | |
4489 | if test "$USE_THREADS" = 1; then | |
4490 | echo "$ac_t""yes" 1>&6 | |
4491 | else | |
4492 | echo "$ac_t""no" 1>&6 | |
4493 | fi | |
4494 | ||
4495 | ||
4496 | ||
4497 | echo $ac_n "checking "for opengl"""... $ac_c" 1>&6 | |
abe1d62e | 4498 | echo "configure:4499: checking "for opengl"" >&5 |
c801d85f KB |
4499 | # Check whether --with-opengl or --without-opengl was given. |
4500 | if test "${with_opengl+set}" = set; then | |
4501 | withval="$with_opengl" | |
4502 | if test "x$with_opengl" = xyes; then | |
4503 | ac_cv_use_opengl='USE_OPENGL="1"' | |
4504 | else | |
4505 | ac_cv_use_opengl='USE_OPENGL="0"' | |
4506 | fi | |
4507 | else | |
4508 | ||
4509 | LINE=`grep "USE_OPENGL" ${OSTYPE}.system.cache` | |
4510 | if test "x$LINE" != x ; then | |
4511 | eval "DEFAULT_$LINE" | |
4512 | fi | |
4513 | ac_cv_use_opengl='USE_OPENGL='$DEFAULT_USE_OPENGL | |
4514 | ||
4515 | fi | |
4516 | ||
4517 | eval "$ac_cv_use_opengl" | |
4518 | echo $ac_cv_use_opengl >> ${OSTYPE}.system.cache.tmp | |
4519 | if test "$USE_OPENGL" = 1; then | |
4520 | echo "$ac_t""yes" 1>&6 | |
4521 | else | |
4522 | echo "$ac_t""no" 1>&6 | |
4523 | fi | |
4524 | ||
4525 | ||
4526 | ||
4527 | ||
4528 | echo $ac_n "checking "for storable"""... $ac_c" 1>&6 | |
abe1d62e | 4529 | echo "configure:4530: checking "for storable"" >&5 |
c801d85f KB |
4530 | # Check whether --with-storable or --without-storable was given. |
4531 | if test "${with_storable+set}" = set; then | |
4532 | withval="$with_storable" | |
4533 | if test "x$with_storable" = xyes; then | |
4534 | ac_cv_use_storable='USE_STORABLE_CLASSES="1"' | |
4535 | else | |
4536 | ac_cv_use_storable='USE_STORABLE_CLASSES="0"' | |
4537 | fi | |
4538 | else | |
4539 | ||
4540 | LINE=`grep "USE_STORABLE_CLASSES" ${OSTYPE}.system.cache` | |
4541 | if test "x$LINE" != x ; then | |
4542 | eval "DEFAULT_$LINE" | |
4543 | fi | |
4544 | ac_cv_use_storable='USE_STORABLE_CLASSES='$DEFAULT_USE_STORABLE_CLASSES | |
4545 | ||
4546 | fi | |
4547 | ||
4548 | eval "$ac_cv_use_storable" | |
4549 | echo $ac_cv_use_storable >> ${OSTYPE}.system.cache.tmp | |
4550 | if test "$USE_STORABLE_CLASSES" = 1; then | |
4551 | echo "$ac_t""yes" 1>&6 | |
4552 | else | |
4553 | echo "$ac_t""no" 1>&6 | |
4554 | fi | |
4555 | ||
4556 | ||
4557 | ||
4558 | echo $ac_n "checking "for autotrans"""... $ac_c" 1>&6 | |
abe1d62e | 4559 | echo "configure:4560: checking "for autotrans"" >&5 |
c801d85f KB |
4560 | # Check whether --with-autotrans or --without-autotrans was given. |
4561 | if test "${with_autotrans+set}" = set; then | |
4562 | withval="$with_autotrans" | |
4563 | if test "x$with_autotrans" = xyes; then | |
4564 | ac_cv_use_autotrans='USE_AUTOTRANS="1"' | |
4565 | else | |
4566 | ac_cv_use_autotrans='USE_AUTOTRANS="0"' | |
4567 | fi | |
4568 | else | |
4569 | ||
4570 | LINE=`grep "USE_AUTOTRANS" ${OSTYPE}.system.cache` | |
4571 | if test "x$LINE" != x ; then | |
4572 | eval "DEFAULT_$LINE" | |
4573 | fi | |
4574 | ac_cv_use_autotrans='USE_AUTOTRANS='$DEFAULT_USE_AUTOTRANS | |
4575 | ||
4576 | fi | |
4577 | ||
4578 | eval "$ac_cv_use_autotrans" | |
4579 | echo $ac_cv_use_autotrans >> ${OSTYPE}.system.cache.tmp | |
4580 | if test "$USE_AUTOTRANS" = 1; then | |
4581 | echo "$ac_t""yes" 1>&6 | |
4582 | else | |
4583 | echo "$ac_t""no" 1>&6 | |
4584 | fi | |
4585 | ||
4586 | ||
4587 | ||
4588 | echo $ac_n "checking "for afmfonts"""... $ac_c" 1>&6 | |
abe1d62e | 4589 | echo "configure:4590: checking "for afmfonts"" >&5 |
c801d85f KB |
4590 | # Check whether --with-afmfonts or --without-afmfonts was given. |
4591 | if test "${with_afmfonts+set}" = set; then | |
4592 | withval="$with_afmfonts" | |
4593 | if test "x$with_afmfonts" = xyes; then | |
4594 | ac_cv_use_afmfonts='USE_AFM_FOR_POSTSCRIPT="1"' | |
4595 | else | |
4596 | ac_cv_use_afmfonts='USE_AFM_FOR_POSTSCRIPT="0"' | |
4597 | fi | |
4598 | else | |
4599 | ||
4600 | LINE=`grep "USE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache` | |
4601 | if test "x$LINE" != x ; then | |
4602 | eval "DEFAULT_$LINE" | |
4603 | fi | |
4604 | ac_cv_use_afmfonts='USE_AFM_FOR_POSTSCRIPT='$DEFAULT_USE_AFM_FOR_POSTSCRIPT | |
4605 | ||
4606 | fi | |
4607 | ||
4608 | eval "$ac_cv_use_afmfonts" | |
4609 | echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp | |
4610 | if test "$USE_AFM_FOR_POSTSCRIPT" = 1; then | |
4611 | echo "$ac_t""yes" 1>&6 | |
4612 | else | |
4613 | echo "$ac_t""no" 1>&6 | |
4614 | fi | |
4615 | ||
4616 | ||
4617 | ||
4618 | echo $ac_n "checking "for normalized"""... $ac_c" 1>&6 | |
abe1d62e | 4619 | echo "configure:4620: checking "for normalized"" >&5 |
c801d85f KB |
4620 | # Check whether --with-normalized or --without-normalized was given. |
4621 | if test "${with_normalized+set}" = set; then | |
4622 | withval="$with_normalized" | |
4623 | if test "x$with_normalized" = xyes; then | |
4624 | ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS="1"' | |
4625 | else | |
4626 | ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS="0"' | |
4627 | fi | |
4628 | else | |
4629 | ||
4630 | LINE=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache` | |
4631 | if test "x$LINE" != x ; then | |
4632 | eval "DEFAULT_$LINE" | |
4633 | fi | |
4634 | ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS | |
4635 | ||
4636 | fi | |
4637 | ||
4638 | eval "$ac_cv_use_normalized" | |
4639 | echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp | |
4640 | if test "$WX_NORMALIZED_PS_FONTS" = 1; then | |
4641 | echo "$ac_t""yes" 1>&6 | |
4642 | else | |
4643 | echo "$ac_t""no" 1>&6 | |
4644 | fi | |
4645 | ||
4646 | ||
4647 | ||
4648 | echo $ac_n "checking "for RPC"""... $ac_c" 1>&6 | |
abe1d62e | 4649 | echo "configure:4650: checking "for RPC"" >&5 |
c801d85f KB |
4650 | # Check whether --with-rpc or --without-rpc was given. |
4651 | if test "${with_rpc+set}" = set; then | |
4652 | withval="$with_rpc" | |
4653 | if test "x$with_rpc" = xyes; then | |
4654 | ac_cv_use_rpc='USE_RPC="1"' | |
4655 | else | |
4656 | ac_cv_use_rpc='USE_RPC="0"' | |
4657 | fi | |
4658 | else | |
4659 | ||
4660 | LINE=`grep "USE_RPC" ${OSTYPE}.system.cache` | |
4661 | if test "x$LINE" != x ; then | |
4662 | eval "DEFAULT_$LINE" | |
4663 | fi | |
4664 | ac_cv_use_rpc='USE_RPC='$DEFAULT_USE_RPC | |
4665 | ||
4666 | fi | |
4667 | ||
4668 | eval "$ac_cv_use_rpc" | |
4669 | echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp | |
4670 | if test "$USE_RPC" = 1; then | |
4671 | echo "$ac_t""yes" 1>&6 | |
4672 | else | |
4673 | echo "$ac_t""no" 1>&6 | |
4674 | fi | |
4675 | ||
4676 | ||
4677 | ||
4678 | echo $ac_n "checking "for wxresources"""... $ac_c" 1>&6 | |
abe1d62e | 4679 | echo "configure:4680: checking "for wxresources"" >&5 |
c801d85f KB |
4680 | # Check whether --with-wxresources or --without-wxresources was given. |
4681 | if test "${with_wxresources+set}" = set; then | |
4682 | withval="$with_wxresources" | |
4683 | if test "x$with_wxresources" = xyes; then | |
4684 | ac_cv_use_wxresources='USE_WX_RESOURCES="1"' | |
4685 | else | |
4686 | ac_cv_use_wxresources='USE_WX_RESOURCES="0"' | |
4687 | fi | |
4688 | else | |
4689 | ||
4690 | LINE=`grep "USE_WX_RESOURCES" ${OSTYPE}.system.cache` | |
4691 | if test "x$LINE" != x ; then | |
4692 | eval "DEFAULT_$LINE" | |
4693 | fi | |
4694 | ac_cv_use_wxresources='USE_WX_RESOURCES='$DEFAULT_USE_WX_RESOURCES | |
4695 | ||
4696 | fi | |
4697 | ||
4698 | eval "$ac_cv_use_wxresources" | |
4699 | echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp | |
4700 | if test "$USE_WX_RESOURCES" = 1; then | |
4701 | echo "$ac_t""yes" 1>&6 | |
4702 | else | |
4703 | echo "$ac_t""no" 1>&6 | |
4704 | fi | |
4705 | ||
4706 | ||
4707 | ||
4708 | echo $ac_n "checking "for prologio"""... $ac_c" 1>&6 | |
abe1d62e | 4709 | echo "configure:4710: checking "for prologio"" >&5 |
c801d85f KB |
4710 | # Check whether --with-prologio or --without-prologio was given. |
4711 | if test "${with_prologio+set}" = set; then | |
4712 | withval="$with_prologio" | |
4713 | if test "x$with_prologio" = xyes; then | |
4714 | ac_cv_use_prologio='USE_PROLOGIO="1"' | |
4715 | else | |
4716 | ac_cv_use_prologio='USE_PROLOGIO="0"' | |
4717 | fi | |
4718 | else | |
4719 | ||
4720 | LINE=`grep "USE_PROLOGIO" ${OSTYPE}.system.cache` | |
4721 | if test "x$LINE" != x ; then | |
4722 | eval "DEFAULT_$LINE" | |
4723 | fi | |
4724 | ac_cv_use_prologio='USE_PROLOGIO='$DEFAULT_USE_PROLOGIO | |
4725 | ||
4726 | fi | |
4727 | ||
4728 | eval "$ac_cv_use_prologio" | |
4729 | echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp | |
4730 | if test "$USE_PROLOGIO" = 1; then | |
4731 | echo "$ac_t""yes" 1>&6 | |
4732 | else | |
4733 | echo "$ac_t""no" 1>&6 | |
4734 | fi | |
4735 | ||
4736 | ||
4737 | ||
4738 | echo $ac_n "checking "for postscript"""... $ac_c" 1>&6 | |
abe1d62e | 4739 | echo "configure:4740: checking "for postscript"" >&5 |
c801d85f KB |
4740 | # Check whether --with-postscript or --without-postscript was given. |
4741 | if test "${with_postscript+set}" = set; then | |
4742 | withval="$with_postscript" | |
4743 | if test "x$with_postscript" = xyes; then | |
4744 | ac_cv_use_postscript='USE_POSTSCRIPT="1"' | |
4745 | else | |
4746 | ac_cv_use_postscript='USE_POSTSCRIPT="0"' | |
4747 | fi | |
4748 | else | |
4749 | ||
4750 | LINE=`grep "USE_POSTSCRIPT" ${OSTYPE}.system.cache` | |
4751 | if test "x$LINE" != x ; then | |
4752 | eval "DEFAULT_$LINE" | |
4753 | fi | |
4754 | ac_cv_use_postscript='USE_POSTSCRIPT='$DEFAULT_USE_POSTSCRIPT | |
4755 | ||
4756 | fi | |
4757 | ||
4758 | eval "$ac_cv_use_postscript" | |
4759 | echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp | |
4760 | if test "$USE_POSTSCRIPT" = 1; then | |
4761 | echo "$ac_t""yes" 1>&6 | |
4762 | else | |
4763 | echo "$ac_t""no" 1>&6 | |
4764 | fi | |
4765 | ||
4766 | ||
4767 | ||
4768 | echo $ac_n "checking "for metafile"""... $ac_c" 1>&6 | |
abe1d62e | 4769 | echo "configure:4770: checking "for metafile"" >&5 |
c801d85f KB |
4770 | # Check whether --with-metafile or --without-metafile was given. |
4771 | if test "${with_metafile+set}" = set; then | |
4772 | withval="$with_metafile" | |
4773 | if test "x$with_metafile" = xyes; then | |
4774 | ac_cv_use_metafile='USE_METAFILE="1"' | |
4775 | else | |
4776 | ac_cv_use_metafile='USE_METAFILE="0"' | |
4777 | fi | |
4778 | else | |
4779 | ||
4780 | LINE=`grep "USE_METAFILE" ${OSTYPE}.system.cache` | |
4781 | if test "x$LINE" != x ; then | |
4782 | eval "DEFAULT_$LINE" | |
4783 | fi | |
4784 | ac_cv_use_metafile='USE_METAFILE='$DEFAULT_USE_METAFILE | |
4785 | ||
4786 | fi | |
4787 | ||
4788 | eval "$ac_cv_use_metafile" | |
4789 | echo $ac_cv_use_metafile >> ${OSTYPE}.system.cache.tmp | |
4790 | if test "$USE_METAFILE" = 1; then | |
4791 | echo "$ac_t""yes" 1>&6 | |
4792 | else | |
4793 | echo "$ac_t""no" 1>&6 | |
4794 | fi | |
4795 | ||
4796 | ||
4797 | ||
4798 | echo $ac_n "checking "for form"""... $ac_c" 1>&6 | |
abe1d62e | 4799 | echo "configure:4800: checking "for form"" >&5 |
c801d85f KB |
4800 | # Check whether --with-form or --without-form was given. |
4801 | if test "${with_form+set}" = set; then | |
4802 | withval="$with_form" | |
4803 | if test "x$with_form" = xyes; then | |
4804 | ac_cv_use_form='USE_FORM="1"' | |
4805 | else | |
4806 | ac_cv_use_form='USE_FORM="0"' | |
4807 | fi | |
4808 | else | |
4809 | ||
4810 | LINE=`grep "USE_FORM" ${OSTYPE}.system.cache` | |
4811 | if test "x$LINE" != x ; then | |
4812 | eval "DEFAULT_$LINE" | |
4813 | fi | |
4814 | ac_cv_use_form='USE_FORM='$DEFAULT_USE_FORM | |
4815 | ||
4816 | fi | |
4817 | ||
4818 | eval "$ac_cv_use_form" | |
4819 | echo $ac_cv_use_form >> ${OSTYPE}.system.cache.tmp | |
4820 | if test "$USE_FORM" = 1; then | |
4821 | echo "$ac_t""yes" 1>&6 | |
4822 | else | |
4823 | echo "$ac_t""no" 1>&6 | |
4824 | fi | |
4825 | ||
4826 | ||
4827 | ||
4828 | echo $ac_n "checking "for help"""... $ac_c" 1>&6 | |
abe1d62e | 4829 | echo "configure:4830: checking "for help"" >&5 |
c801d85f KB |
4830 | # Check whether --with-help or --without-help was given. |
4831 | if test "${with_help+set}" = set; then | |
4832 | withval="$with_help" | |
4833 | if test "x$with_help" = xyes; then | |
4834 | ac_cv_use_help='USE_HELP="1"' | |
4835 | else | |
4836 | ac_cv_use_help='USE_HELP="0"' | |
4837 | fi | |
4838 | else | |
4839 | ||
4840 | LINE=`grep "USE_HELP" ${OSTYPE}.system.cache` | |
4841 | if test "x$LINE" != x ; then | |
4842 | eval "DEFAULT_$LINE" | |
4843 | fi | |
4844 | ac_cv_use_help='USE_HELP='$DEFAULT_USE_HELP | |
4845 | ||
4846 | fi | |
4847 | ||
4848 | eval "$ac_cv_use_help" | |
4849 | echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp | |
4850 | if test "$USE_HELP" = 1; then | |
4851 | echo "$ac_t""yes" 1>&6 | |
4852 | else | |
4853 | echo "$ac_t""no" 1>&6 | |
4854 | fi | |
4855 | ||
4856 | ||
4857 | ||
4858 | echo $ac_n "checking "for IPC"""... $ac_c" 1>&6 | |
abe1d62e | 4859 | echo "configure:4860: checking "for IPC"" >&5 |
c801d85f KB |
4860 | # Check whether --with-ipc or --without-ipc was given. |
4861 | if test "${with_ipc+set}" = set; then | |
4862 | withval="$with_ipc" | |
4863 | if test "x$with_ipc" = xyes; then | |
4864 | ac_cv_use_ipc='USE_IPC="1"' | |
4865 | else | |
4866 | ac_cv_use_ipc='USE_IPC="0"' | |
4867 | fi | |
4868 | else | |
4869 | ||
4870 | LINE=`grep "USE_IPC" ${OSTYPE}.system.cache` | |
4871 | if test "x$LINE" != x ; then | |
4872 | eval "DEFAULT_$LINE" | |
4873 | fi | |
4874 | ac_cv_use_ipc='USE_IPC='$DEFAULT_USE_IPC | |
4875 | ||
4876 | fi | |
4877 | ||
4878 | eval "$ac_cv_use_ipc" | |
4879 | echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp | |
4880 | if test "$USE_IPC" = 1; then | |
4881 | echo "$ac_t""yes" 1>&6 | |
4882 | else | |
4883 | echo "$ac_t""no" 1>&6 | |
4884 | fi | |
4885 | ||
4886 | ||
4887 | ||
4888 | echo $ac_n "checking "for enhanced dialog"""... $ac_c" 1>&6 | |
abe1d62e | 4889 | echo "configure:4890: checking "for enhanced dialog"" >&5 |
c801d85f KB |
4890 | # Check whether --with-enhanceddialog or --without-enhanceddialog was given. |
4891 | if test "${with_enhanceddialog+set}" = set; then | |
4892 | withval="$with_enhanceddialog" | |
4893 | if test "x$with_enhanceddialog" = xyes; then | |
4894 | ac_cv_use_enhanceddialog='USE_ENHANCED_DIALOG="1"' | |
4895 | else | |
4896 | ac_cv_use_enhanceddialog='USE_ENHANCED_DIALOG="0"' | |
4897 | fi | |
4898 | else | |
4899 | ||
4900 | LINE=`grep "USE_ENHANCED_DIALOG" ${OSTYPE}.system.cache` | |
4901 | if test "x$LINE" != x ; then | |
4902 | eval "DEFAULT_$LINE" | |
4903 | fi | |
4904 | ac_cv_use_enhanceddialog='USE_ENHANCED_DIALOG='$DEFAULT_USE_ENHANCED_DIALOG | |
4905 | ||
4906 | fi | |
4907 | ||
4908 | eval "$ac_cv_use_enhanceddialog" | |
4909 | echo $ac_cv_use_enhanceddialog >> ${OSTYPE}.system.cache.tmp | |
4910 | if test "$USE_ENHANCED_DIALOG" = 1; then | |
4911 | echo "$ac_t""yes" 1>&6 | |
4912 | else | |
4913 | echo "$ac_t""no" 1>&6 | |
4914 | fi | |
4915 | ||
4916 | ||
4917 | ||
4918 | echo $ac_n "checking "for resources"""... $ac_c" 1>&6 | |
abe1d62e | 4919 | echo "configure:4920: checking "for resources"" >&5 |
c801d85f KB |
4920 | # Check whether --with-resources or --without-resources was given. |
4921 | if test "${with_resources+set}" = set; then | |
4922 | withval="$with_resources" | |
4923 | if test "x$with_resources" = xyes; then | |
4924 | ac_cv_use_resources='USE_RESOURCES="1"' | |
4925 | else | |
4926 | ac_cv_use_resources='USE_RESOURCES="0"' | |
4927 | fi | |
4928 | else | |
4929 | ||
4930 | LINE=`grep "USE_RESOURCES" ${OSTYPE}.system.cache` | |
4931 | if test "x$LINE" != x ; then | |
4932 | eval "DEFAULT_$LINE" | |
4933 | fi | |
4934 | ac_cv_use_resources='USE_RESOURCES='$DEFAULT_USE_RESOURCES | |
4935 | ||
4936 | fi | |
4937 | ||
4938 | eval "$ac_cv_use_resources" | |
4939 | echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp | |
4940 | if test "$USE_RESOURCES" = 1; then | |
4941 | echo "$ac_t""yes" 1>&6 | |
4942 | else | |
4943 | echo "$ac_t""no" 1>&6 | |
4944 | fi | |
4945 | ||
4946 | ||
4947 | ||
4948 | echo $ac_n "checking "for clipboard"""... $ac_c" 1>&6 | |
abe1d62e | 4949 | echo "configure:4950: checking "for clipboard"" >&5 |
c801d85f KB |
4950 | # Check whether --with-clipboard or --without-clipboard was given. |
4951 | if test "${with_clipboard+set}" = set; then | |
4952 | withval="$with_clipboard" | |
4953 | if test "x$with_clipboard" = xyes; then | |
4954 | ac_cv_use_clipboard='USE_CLIPBOARD="1"' | |
4955 | else | |
4956 | ac_cv_use_clipboard='USE_CLIPBOARD="0"' | |
4957 | fi | |
4958 | else | |
4959 | ||
4960 | LINE=`grep "USE_CLIPBOARD" ${OSTYPE}.system.cache` | |
4961 | if test "x$LINE" != x ; then | |
4962 | eval "DEFAULT_$LINE" | |
4963 | fi | |
4964 | ac_cv_use_clipboard='USE_CLIPBOARD='$DEFAULT_USE_CLIPBOARD | |
4965 | ||
4966 | fi | |
4967 | ||
4968 | eval "$ac_cv_use_clipboard" | |
4969 | echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp | |
4970 | if test "$USE_CLIPBOARD" = 1; then | |
4971 | echo "$ac_t""yes" 1>&6 | |
4972 | else | |
4973 | echo "$ac_t""no" 1>&6 | |
4974 | fi | |
4975 | ||
4976 | ||
4977 | ||
4978 | echo $ac_n "checking "for timedate"""... $ac_c" 1>&6 | |
abe1d62e | 4979 | echo "configure:4980: checking "for timedate"" >&5 |
c801d85f KB |
4980 | # Check whether --with-timedate or --without-timedate was given. |
4981 | if test "${with_timedate+set}" = set; then | |
4982 | withval="$with_timedate" | |
4983 | if test "x$with_timedate" = xyes; then | |
4984 | ac_cv_use_timedate='USE_TIMEDATE="1"' | |
4985 | else | |
4986 | ac_cv_use_timedate='USE_TIMEDATE="0"' | |
4987 | fi | |
4988 | else | |
4989 | ||
4990 | LINE=`grep "USE_TIMEDATE" ${OSTYPE}.system.cache` | |
4991 | if test "x$LINE" != x ; then | |
4992 | eval "DEFAULT_$LINE" | |
4993 | fi | |
4994 | ac_cv_use_timedate='USE_TIMEDATE='$DEFAULT_USE_TIMEDATE | |
4995 | ||
4996 | fi | |
4997 | ||
4998 | eval "$ac_cv_use_timedate" | |
4999 | echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp | |
5000 | if test "$USE_TIMEDATE" = 1; then | |
5001 | echo "$ac_t""yes" 1>&6 | |
5002 | else | |
5003 | echo "$ac_t""no" 1>&6 | |
5004 | fi | |
5005 | ||
5006 | ||
5007 | ||
5008 | echo $ac_n "checking "for fraction"""... $ac_c" 1>&6 | |
abe1d62e | 5009 | echo "configure:5010: checking "for fraction"" >&5 |
c801d85f KB |
5010 | # Check whether --with-fraction or --without-fraction was given. |
5011 | if test "${with_fraction+set}" = set; then | |
5012 | withval="$with_fraction" | |
5013 | if test "x$with_fraction" = xyes; then | |
5014 | ac_cv_use_fraction='USE_FRACTION="1"' | |
5015 | else | |
5016 | ac_cv_use_fraction='USE_FRACTION="0"' | |
5017 | fi | |
5018 | else | |
5019 | ||
5020 | LINE=`grep "USE_FRACTION" ${OSTYPE}.system.cache` | |
5021 | if test "x$LINE" != x ; then | |
5022 | eval "DEFAULT_$LINE" | |
5023 | fi | |
5024 | ac_cv_use_fraction='USE_FRACTION='$DEFAULT_USE_FRACTION | |
5025 | ||
5026 | fi | |
5027 | ||
5028 | eval "$ac_cv_use_fraction" | |
5029 | echo $ac_cv_use_fraction >> ${OSTYPE}.system.cache.tmp | |
5030 | if test "$USE_FRACTION" = 1; then | |
5031 | echo "$ac_t""yes" 1>&6 | |
5032 | else | |
5033 | echo "$ac_t""no" 1>&6 | |
5034 | fi | |
5035 | ||
5036 | ||
5037 | ||
5038 | echo $ac_n "checking "for constrains"""... $ac_c" 1>&6 | |
abe1d62e | 5039 | echo "configure:5040: checking "for constrains"" >&5 |
c801d85f KB |
5040 | # Check whether --with-constraints or --without-constraints was given. |
5041 | if test "${with_constraints+set}" = set; then | |
5042 | withval="$with_constraints" | |
5043 | if test "x$with_constraints" = xyes; then | |
5044 | ac_cv_use_constraints='USE_CONSTRAINTS="1"' | |
5045 | else | |
5046 | ac_cv_use_constraints='USE_CONSTRAINTS="0"' | |
5047 | fi | |
5048 | else | |
5049 | ||
5050 | LINE=`grep "USE_CONSTRAINTS" ${OSTYPE}.system.cache` | |
5051 | if test "x$LINE" != x ; then | |
5052 | eval "DEFAULT_$LINE" | |
5053 | fi | |
5054 | ac_cv_use_constraints='USE_CONSTRAINTS='$DEFAULT_USE_CONSTRAINTS | |
5055 | ||
5056 | fi | |
5057 | ||
5058 | eval "$ac_cv_use_constraints" | |
5059 | echo $ac_cv_use_constraints >> ${OSTYPE}.system.cache.tmp | |
5060 | if test "$USE_CONSTRAINTS" = 1; then | |
5061 | echo "$ac_t""yes" 1>&6 | |
5062 | else | |
5063 | echo "$ac_t""no" 1>&6 | |
5064 | fi | |
5065 | ||
5066 | ||
5067 | ||
5068 | echo $ac_n "checking "for toolbar"""... $ac_c" 1>&6 | |
abe1d62e | 5069 | echo "configure:5070: checking "for toolbar"" >&5 |
c801d85f KB |
5070 | # Check whether --with-toolbar or --without-toolbar was given. |
5071 | if test "${with_toolbar+set}" = set; then | |
5072 | withval="$with_toolbar" | |
5073 | if test "x$with_toolbar" = xyes; then | |
5074 | ac_cv_use_toolbar='USE_TOOLBAR="1"' | |
5075 | else | |
5076 | ac_cv_use_toolbar='USE_TOOLBAR="0"' | |
5077 | fi | |
5078 | else | |
5079 | ||
5080 | LINE=`grep "USE_TOOLBAR" ${OSTYPE}.system.cache` | |
5081 | if test "x$LINE" != x ; then | |
5082 | eval "DEFAULT_$LINE" | |
5083 | fi | |
5084 | ac_cv_use_toolbar='USE_TOOLBAR='$DEFAULT_USE_TOOLBAR | |
5085 | ||
5086 | fi | |
5087 | ||
5088 | eval "$ac_cv_use_toolbar" | |
5089 | echo $ac_cv_use_toolbar >> ${OSTYPE}.system.cache.tmp | |
5090 | if test "$USE_TOOLBAR" = 1; then | |
5091 | echo "$ac_t""yes" 1>&6 | |
5092 | else | |
5093 | echo "$ac_t""no" 1>&6 | |
5094 | fi | |
5095 | ||
5096 | ||
5097 | ||
5098 | echo $ac_n "checking "for gauge"""... $ac_c" 1>&6 | |
abe1d62e | 5099 | echo "configure:5100: checking "for gauge"" >&5 |
c801d85f KB |
5100 | # Check whether --with-gauge or --without-gauge was given. |
5101 | if test "${with_gauge+set}" = set; then | |
5102 | withval="$with_gauge" | |
5103 | if test "x$with_gauge" = xyes; then | |
5104 | ac_cv_use_gauge='USE_GAUGE="1"' | |
5105 | else | |
5106 | ac_cv_use_gauge='USE_GAUGE="0"' | |
5107 | fi | |
5108 | else | |
5109 | ||
5110 | LINE=`grep "USE_GAUGE" ${OSTYPE}.system.cache` | |
5111 | if test "x$LINE" != x ; then | |
5112 | eval "DEFAULT_$LINE" | |
5113 | fi | |
5114 | ac_cv_use_gauge='USE_GAUGE='$DEFAULT_USE_GAUGE | |
5115 | ||
5116 | fi | |
5117 | ||
5118 | eval "$ac_cv_use_gauge" | |
5119 | echo $ac_cv_use_gauge >> ${OSTYPE}.system.cache.tmp | |
5120 | if test "$USE_GAUGE" = 1; then | |
5121 | echo "$ac_t""yes" 1>&6 | |
5122 | else | |
5123 | echo "$ac_t""no" 1>&6 | |
5124 | fi | |
5125 | ||
5126 | ||
5127 | ||
5128 | echo $ac_n "checking "for vllist"""... $ac_c" 1>&6 | |
abe1d62e | 5129 | echo "configure:5130: checking "for vllist"" >&5 |
c801d85f KB |
5130 | # Check whether --with-vllist or --without-vllist was given. |
5131 | if test "${with_vllist+set}" = set; then | |
5132 | withval="$with_vllist" | |
5133 | if test "x$with_vllist" = xyes; then | |
5134 | ac_cv_use_vllist='USE_VLBOX="1"' | |
5135 | else | |
5136 | ac_cv_use_vllist='USE_VLBOX="0"' | |
5137 | fi | |
5138 | else | |
5139 | ||
5140 | LINE=`grep "USE_VLBOX" ${OSTYPE}.system.cache` | |
5141 | if test "x$LINE" != x ; then | |
5142 | eval "DEFAULT_$LINE" | |
5143 | fi | |
5144 | ac_cv_use_vllist='USE_VLBOX='$DEFAULT_USE_VLBOX | |
5145 | ||
5146 | fi | |
5147 | ||
5148 | eval "$ac_cv_use_vllist" | |
5149 | echo $ac_cv_use_vllist >> ${OSTYPE}.system.cache.tmp | |
5150 | if test "$USE_VLBOX" = 1; then | |
5151 | echo "$ac_t""yes" 1>&6 | |
5152 | else | |
5153 | echo "$ac_t""no" 1>&6 | |
5154 | fi | |
5155 | ||
5156 | ||
5157 | ||
5158 | echo $ac_n "checking "for scrollbar"""... $ac_c" 1>&6 | |
abe1d62e | 5159 | echo "configure:5160: checking "for scrollbar"" >&5 |
c801d85f KB |
5160 | # Check whether --with-scrollbar or --without-scrollbar was given. |
5161 | if test "${with_scrollbar+set}" = set; then | |
5162 | withval="$with_scrollbar" | |
5163 | if test "x$with_scrollbar" = xyes; then | |
5164 | ac_cv_use_scrollbar='USE_SCROLLBAR="1"' | |
5165 | else | |
5166 | ac_cv_use_scrollbar='USE_SCROLLBAR="0"' | |
5167 | fi | |
5168 | else | |
5169 | ||
5170 | LINE=`grep "USE_SCROLLBAR" ${OSTYPE}.system.cache` | |
5171 | if test "x$LINE" != x ; then | |
5172 | eval "DEFAULT_$LINE" | |
5173 | fi | |
5174 | ac_cv_use_scrollbar='USE_SCROLLBAR='$DEFAULT_USE_SCROLLBAR | |
5175 | ||
5176 | fi | |
5177 | ||
5178 | eval "$ac_cv_use_scrollbar" | |
5179 | echo $ac_cv_use_scrollbar >> ${OSTYPE}.system.cache.tmp | |
5180 | if test "$USE_SCROLLBAR" = 1; then | |
5181 | echo "$ac_t""yes" 1>&6 | |
5182 | else | |
5183 | echo "$ac_t""no" 1>&6 | |
5184 | fi | |
5185 | ||
5186 | ||
5187 | ||
5188 | echo $ac_n "checking "for docview"""... $ac_c" 1>&6 | |
abe1d62e | 5189 | echo "configure:5190: checking "for docview"" >&5 |
c801d85f KB |
5190 | # Check whether --with-docview or --without-docview was given. |
5191 | if test "${with_docview+set}" = set; then | |
5192 | withval="$with_docview" | |
5193 | if test "x$with_docview" = xyes; then | |
5194 | ac_cv_use_docview='USE_DOC_VIEW_ARCHITECTURE="1"' | |
5195 | else | |
5196 | ac_cv_use_docview='USE_DOC_VIEW_ARCHITECTURE="0"' | |
5197 | fi | |
5198 | else | |
5199 | ||
5200 | LINE=`grep "USE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache` | |
5201 | if test "x$LINE" != x ; then | |
5202 | eval "DEFAULT_$LINE" | |
5203 | fi | |
5204 | ac_cv_use_docview='USE_DOC_VIEW_ARCHITECTURE='$DEFAULT_USE_DOC_VIEW_ARCHITECTURE | |
5205 | ||
5206 | fi | |
5207 | ||
5208 | eval "$ac_cv_use_docview" | |
5209 | echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp | |
5210 | if test "$USE_DOC_VIEW_ARCHITECTURE" = 1; then | |
5211 | echo "$ac_t""yes" 1>&6 | |
5212 | else | |
5213 | echo "$ac_t""no" 1>&6 | |
5214 | fi | |
5215 | ||
5216 | ||
5217 | ||
5218 | echo $ac_n "checking "for printarch"""... $ac_c" 1>&6 | |
abe1d62e | 5219 | echo "configure:5220: checking "for printarch"" >&5 |
c801d85f KB |
5220 | # Check whether --with-printarch or --without-printarch was given. |
5221 | if test "${with_printarch+set}" = set; then | |
5222 | withval="$with_printarch" | |
5223 | if test "x$with_printarch" = xyes; then | |
5224 | ac_cv_use_printarch='USE_PRINTING_ARCHITECTURE="1"' | |
5225 | else | |
5226 | ac_cv_use_printarch='USE_PRINTING_ARCHITECTURE="0"' | |
5227 | fi | |
5228 | else | |
5229 | ||
5230 | LINE=`grep "USE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache` | |
5231 | if test "x$LINE" != x ; then | |
5232 | eval "DEFAULT_$LINE" | |
5233 | fi | |
5234 | ac_cv_use_printarch='USE_PRINTING_ARCHITECTURE='$DEFAULT_USE_PRINTING_ARCHITECTURE | |
5235 | ||
5236 | fi | |
5237 | ||
5238 | eval "$ac_cv_use_printarch" | |
5239 | echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp | |
5240 | if test "$USE_PRINTING_ARCHITECTURE" = 1; then | |
5241 | echo "$ac_t""yes" 1>&6 | |
5242 | else | |
5243 | echo "$ac_t""no" 1>&6 | |
5244 | fi | |
5245 | ||
5246 | ||
5247 | ||
5248 | echo $ac_n "checking "for typetree"""... $ac_c" 1>&6 | |
abe1d62e | 5249 | echo "configure:5250: checking "for typetree"" >&5 |
c801d85f KB |
5250 | # Check whether --with-typetree or --without-typetree was given. |
5251 | if test "${with_typetree+set}" = set; then | |
5252 | withval="$with_typetree" | |
5253 | if test "x$with_typetree" = xyes; then | |
5254 | ac_cv_use_typetree='USE_TYPETREE="1"' | |
5255 | else | |
5256 | ac_cv_use_typetree='USE_TYPETREE="0"' | |
5257 | fi | |
5258 | else | |
5259 | ||
5260 | LINE=`grep "USE_TYPETREE" ${OSTYPE}.system.cache` | |
5261 | if test "x$LINE" != x ; then | |
5262 | eval "DEFAULT_$LINE" | |
5263 | fi | |
5264 | ac_cv_use_typetree='USE_TYPETREE='$DEFAULT_USE_TYPETREE | |
5265 | ||
5266 | fi | |
5267 | ||
5268 | eval "$ac_cv_use_typetree" | |
5269 | echo $ac_cv_use_typetree >> ${OSTYPE}.system.cache.tmp | |
5270 | if test "$USE_TYPETREE" = 1; then | |
5271 | echo "$ac_t""yes" 1>&6 | |
5272 | else | |
5273 | echo "$ac_t""no" 1>&6 | |
5274 | fi | |
5275 | ||
5276 | ||
5277 | ||
5278 | echo $ac_n "checking "for wxgraph"""... $ac_c" 1>&6 | |
abe1d62e | 5279 | echo "configure:5280: checking "for wxgraph"" >&5 |
c801d85f KB |
5280 | # Check whether --with-wxgraph or --without-wxgraph was given. |
5281 | if test "${with_wxgraph+set}" = set; then | |
5282 | withval="$with_wxgraph" | |
5283 | if test "x$with_wxgraph" = xyes; then | |
5284 | ac_cv_use_wxgraph='USE_WXGRAPH="1"' | |
5285 | else | |
5286 | ac_cv_use_wxgraph='USE_WXGRAPH="0"' | |
5287 | fi | |
5288 | else | |
5289 | ||
5290 | LINE=`grep "USE_WXGRAPH" ${OSTYPE}.system.cache` | |
5291 | if test "x$LINE" != x ; then | |
5292 | eval "DEFAULT_$LINE" | |
5293 | fi | |
5294 | ac_cv_use_wxgraph='USE_WXGRAPH='$DEFAULT_USE_WXGRAPH | |
5295 | ||
5296 | fi | |
5297 | ||
5298 | eval "$ac_cv_use_wxgraph" | |
5299 | echo $ac_cv_use_wxgraph >> ${OSTYPE}.system.cache.tmp | |
5300 | if test "$USE_WXGRAPH" = 1; then | |
5301 | echo "$ac_t""yes" 1>&6 | |
5302 | else | |
5303 | echo "$ac_t""no" 1>&6 | |
5304 | fi | |
5305 | ||
5306 | ||
5307 | ||
5308 | echo $ac_n "checking "for wxtree"""... $ac_c" 1>&6 | |
abe1d62e | 5309 | echo "configure:5310: checking "for wxtree"" >&5 |
c801d85f KB |
5310 | # Check whether --with-wxtree or --without-wxtree was given. |
5311 | if test "${with_wxtree+set}" = set; then | |
5312 | withval="$with_wxtree" | |
5313 | if test "x$with_wxtree" = xyes; then | |
5314 | ac_cv_use_wxtree='USE_WXTREE="1"' | |
5315 | else | |
5316 | ac_cv_use_wxtree='USE_WXTREE="0"' | |
5317 | fi | |
5318 | else | |
5319 | ||
5320 | LINE=`grep "USE_WXTREE" ${OSTYPE}.system.cache` | |
5321 | if test "x$LINE" != x ; then | |
5322 | eval "DEFAULT_$LINE" | |
5323 | fi | |
5324 | ac_cv_use_wxtree='USE_WXTREE='$DEFAULT_USE_WXTREE | |
5325 | ||
5326 | fi | |
5327 | ||
5328 | eval "$ac_cv_use_wxtree" | |
5329 | echo $ac_cv_use_wxtree >> ${OSTYPE}.system.cache.tmp | |
5330 | if test "$USE_WXTREE" = 1; then | |
5331 | echo "$ac_t""yes" 1>&6 | |
5332 | else | |
5333 | echo "$ac_t""no" 1>&6 | |
5334 | fi | |
5335 | ||
5336 | ||
5337 | ||
5338 | ||
5339 | ZLIB=NONE | |
5340 | if test "$USE_ZLIB" = 1 ; then | |
5341 | ZLIB="ZLIB" | |
5342 | fi | |
5343 | ||
5344 | GDK_IMLIB=NONE | |
5345 | if test "$USE_GDK_IMLIB" = 1 ; then | |
5346 | GDK_IMLIB="GDK_IMLIB" | |
5347 | fi | |
5348 | ||
5349 | LIBPNG=NONE | |
5350 | if test "$USE_LIBPNG" = 1 ; then | |
5351 | LIBPNG="LIBPNG" | |
5352 | fi | |
5353 | ||
5354 | THREADS=NONE | |
5355 | THREADS_LINK= | |
5356 | if test "$USE_THREADS" = 1 ; then | |
5357 | case "$OS" in iris | IRIX | Irix5 | Irix6) | |
5358 | USE_THREADS_POSIX=0 | |
5359 | USE_THREADS_SGI=1 | |
5360 | ;; | |
5361 | *) | |
5362 | USE_THREADS_POSIX=1 | |
5363 | USE_THREADS_SGI=0 | |
5364 | THREADS_LINK=-lpthread | |
5365 | ;; | |
5366 | esac | |
5367 | THREADS="THREADS" | |
5368 | cat >> confdefs.h <<EOF | |
5369 | #define USE_THREADS $USE_THREADS | |
5370 | EOF | |
5371 | ||
5372 | cat >> confdefs.h <<EOF | |
5373 | #define USE_THREADS_SGI $USE_THREADS_SGI | |
5374 | EOF | |
5375 | ||
5376 | cat >> confdefs.h <<EOF | |
5377 | #define USE_THREADS_POSIX $USE_THREADS_POSIX | |
5378 | EOF | |
5379 | ||
5380 | fi | |
5381 | ||
5382 | ||
5383 | ||
5384 | STORABLE=NONE | |
5385 | if test "$USE_STORABLE_CLASSES" = 1 ; then | |
5386 | STORABLE="STORABLE" | |
5387 | cat >> confdefs.h <<EOF | |
5388 | #define USE_STORABLE_CLASSES $USE_STORABLE_CLASSES | |
5389 | EOF | |
5390 | ||
5391 | fi | |
5392 | ||
5393 | AUTOTRANS=NONE | |
5394 | if test "$USE_AUTOTRANS" = 1 ; then | |
5395 | AUTOTRANS="AUTOTRANS" | |
5396 | cat >> confdefs.h <<EOF | |
5397 | #define USE_AUTOTRANS $USE_AUTOTRANS | |
5398 | EOF | |
5399 | ||
5400 | fi | |
5401 | ||
5402 | DEBUG= | |
5403 | if test "$USE_DEBUG_INFO" = 1 ; then | |
5404 | DEBUG="-g" | |
5405 | fi | |
5406 | ||
5407 | ||
5408 | if test "$USE_DEBUG_FLAG" = 1 ; then | |
5409 | cat >> confdefs.h <<EOF | |
5410 | #define DEBUG $USE_DEBUG_FLAG | |
5411 | EOF | |
5412 | ||
5413 | fi | |
5414 | ||
5415 | if test "$USE_MEM_TRACING" = 1 ; then | |
5416 | cat >> confdefs.h <<EOF | |
5417 | #define USE_MEMORY_TRACING $USE_MEM_TRACING | |
5418 | EOF | |
5419 | ||
5420 | cat >> confdefs.h <<EOF | |
5421 | #define USE_GLOBAL_MEMORY_OPERATORS $USE_MEM_TRACING | |
5422 | EOF | |
5423 | ||
5424 | fi | |
5425 | ||
5426 | PROFILE= | |
5427 | if test "$USE_PROFILE" = 1 ; then | |
5428 | PROFILE="-pg" | |
5429 | fi | |
5430 | ||
5431 | ||
5432 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
5433 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
5434 | if test "$USE_OPTIMISE" = 0 ; then | |
5435 | OPTIMISE= | |
5436 | else | |
5437 | if test "$GCC" = yes ; then | |
5438 | OPTIMISE="-O2" | |
5439 | case "${canonical}" in | |
5440 | i586-*-*|i686-*-* ) | |
5441 | OPTIMISE="${OPTIMISE} " | |
5442 | ;; | |
5443 | esac | |
5444 | else | |
5445 | OPTIMISE="-O" | |
5446 | fi | |
5447 | fi | |
5448 | ||
5449 | ||
5450 | USE_IOSTREAMH=$DEFAULT_USE_IOSTREAMH | |
5451 | cat >> confdefs.h <<EOF | |
5452 | #define USE_IOSTREAMH $USE_IOSTREAMH | |
5453 | EOF | |
5454 | ||
5455 | ||
5456 | RPC=NONE | |
5457 | if test "$USE_RPC" = 1 ; then | |
5458 | RPC="RPC" | |
5459 | cat >> confdefs.h <<EOF | |
5460 | #define USE_RPC $USE_RPC | |
5461 | EOF | |
5462 | ||
5463 | fi | |
5464 | ||
5465 | ||
5466 | WXRESOURCES=NONE | |
5467 | if test "$USE_WX_RESOURCES" = 1 ; then | |
5468 | WXRESOURCES="WXRESOURCES" | |
5469 | cat >> confdefs.h <<EOF | |
5470 | #define USE_WX_RESOURCES $USE_WX_RESOURCES | |
5471 | EOF | |
5472 | ||
5473 | fi | |
5474 | ||
5475 | ||
5476 | PROLOGIO=NONE | |
5477 | PROLOGIOSRC=NONE | |
5478 | if test "$USE_PROLOGIO" = 1 ; then | |
5479 | PROLOGIO="PROLOGIO" | |
5480 | PROLOGIOSRC="PROLOGIOSRC" | |
5481 | cat >> confdefs.h <<EOF | |
5482 | #define USE_PROLOGIO 1 | |
5483 | EOF | |
5484 | ||
5485 | fi | |
5486 | ||
5487 | ||
5488 | ||
5489 | POSTSCRIPTDC=NONE | |
5490 | if test "$USE_POSTSCRIPT" = 1 ; then | |
5491 | POSTSCRIPTDC="POSTSCRIPTDC" | |
5492 | cat >> confdefs.h <<EOF | |
5493 | #define USE_POSTSCRIPT 1 | |
5494 | EOF | |
5495 | ||
5496 | fi | |
5497 | ||
5498 | ||
5499 | METAFILE=NONE | |
5500 | if test "$USE_METAFILE" = 1 ; then | |
5501 | METAFILE="METAFILE" | |
5502 | cat >> confdefs.h <<EOF | |
5503 | #define USE_METAFILE $USE_METAFILE | |
5504 | EOF | |
5505 | ||
5506 | fi | |
5507 | ||
5508 | ||
5509 | FORM=NONE | |
5510 | if test "$USE_FORM" = 1 ; then | |
5511 | FORM="FORM" | |
5512 | cat >> confdefs.h <<EOF | |
5513 | #define USE_FORM $USE_FORM | |
5514 | EOF | |
5515 | ||
5516 | fi | |
5517 | ||
5518 | ||
5519 | HELP=NONE | |
5520 | if test "$USE_HELP" = 1 ; then | |
5521 | HELP="HELP" | |
5522 | cat >> confdefs.h <<EOF | |
5523 | #define USE_HELP $USE_HELP | |
5524 | EOF | |
5525 | ||
5526 | fi | |
5527 | ||
5528 | ||
5529 | IPC=NONE | |
5530 | if test "$USE_IPC" = 1 ; then | |
5531 | IPC="IPC" | |
5532 | cat >> confdefs.h <<EOF | |
5533 | #define USE_IPC 1 | |
5534 | EOF | |
5535 | ||
5536 | fi | |
5537 | ||
5538 | ||
5539 | ENHDIALOGBOX=NONE | |
5540 | if test "$USE_ENHANCED_DIALOG" = 1 ; then | |
5541 | ENHDIALOGBOX="ENHDIALOGBOX" | |
5542 | cat >> confdefs.h <<EOF | |
5543 | #define USE_ENHANCED_DIALOG $USE_ENHANCED_DIALOG | |
5544 | EOF | |
5545 | ||
5546 | fi | |
5547 | ||
5548 | ||
5549 | XRESOURCES=NONE | |
5550 | if test "$USE_RESOURCES" = 1 ; then | |
5551 | XRESOURCES="XRESOURCES" | |
5552 | cat >> confdefs.h <<EOF | |
5553 | #define USE_RESOURCES $USE_RESOURCES | |
5554 | EOF | |
5555 | ||
5556 | fi | |
5557 | ||
5558 | ||
5559 | CLIPBOARD=NONE | |
5560 | if test "$USE_CLIPBOARD" = 1 ; then | |
5561 | CLIPBOARD="CLIPBOARD" | |
5562 | cat >> confdefs.h <<EOF | |
5563 | #define USE_CLIPBOARD $USE_CLIPBOARD | |
5564 | EOF | |
5565 | ||
5566 | fi | |
5567 | ||
5568 | ||
5569 | CONSTRAINTS=NONE | |
5570 | if test "$USE_CONSTRAINTS" = 1 ; then | |
5571 | CONSTRAINTS="CONSTRAINTS" | |
5572 | cat >> confdefs.h <<EOF | |
5573 | #define USE_CONSTRAINTS $USE_CONSTRAINTS | |
5574 | EOF | |
5575 | ||
5576 | fi | |
5577 | ||
5578 | ||
5579 | TIMEDATE=NONE | |
5580 | if test "$USE_TIMEDATE" = 1 ; then | |
5581 | TIMEDATE="TIMEDATE" | |
5582 | cat >> confdefs.h <<EOF | |
5583 | #define USE_TIMEDATE $USE_TIMEDATE | |
5584 | EOF | |
5585 | ||
5586 | fi | |
5587 | ||
5588 | ||
5589 | FRACTION=NONE | |
5590 | if test "$USE_FRACTION" = 1 ; then | |
5591 | FRACTION="FRACTION" | |
5592 | cat >> confdefs.h <<EOF | |
5593 | #define USE_FRACTION $USE_FRACTION | |
5594 | EOF | |
5595 | ||
5596 | fi | |
5597 | ||
5598 | ||
5599 | TOOLBAR=NONE | |
5600 | if test "$USE_TOOLBAR" = 1 ; then | |
5601 | TOOLBAR="TOOLBAR" | |
5602 | cat >> confdefs.h <<EOF | |
5603 | #define USE_TOOLBAR $USE_TOOLBAR | |
5604 | EOF | |
5605 | ||
5606 | cat >> confdefs.h <<EOF | |
5607 | #define USE_XT_TOOLBAR $USE_XT_TOOLBAR | |
5608 | EOF | |
5609 | ||
5610 | fi | |
5611 | ||
5612 | ||
5613 | GAUGE=NONE | |
5614 | if test "$USE_GAUGE" = 1 ; then | |
5615 | GAUGE="GAUGE" | |
5616 | ||
5617 | cat >> confdefs.h <<EOF | |
5618 | #define USE_GAUGE $USE_GAUGE | |
5619 | EOF | |
5620 | ||
5621 | fi | |
5622 | ||
5623 | VIRLISTBOX=NONE | |
5624 | if test "$USE_VLBOX" = 1 ; then | |
5625 | VIRTLISTBOX="VIRLISTBOX" | |
5626 | cat >> confdefs.h <<EOF | |
5627 | #define USE_VIRLISTBOX $USE_VIRLISTBOX | |
5628 | EOF | |
5629 | ||
5630 | fi | |
5631 | ||
5632 | ||
5633 | SCROLLBAR=NONE | |
5634 | if test "$USE_SCROLLBAR" = 1 ; then | |
5635 | SCROLLBAR="SCROLLBAR" | |
5636 | cat >> confdefs.h <<EOF | |
5637 | #define USE_SCROLLBAR $USE_SCROLLBAR | |
5638 | EOF | |
5639 | ||
5640 | fi | |
5641 | ||
5642 | ||
5643 | DOCVIEW=NONE | |
5644 | if test "$USE_DOC_VIEW_ARCHITECTURE" = 1 ; then | |
5645 | DOCVIEW="DOCVIEW" | |
5646 | cat >> confdefs.h <<EOF | |
5647 | #define USE_DOC_VIEW_ARCHITECTURE $USE_DOC_VIEW_ARCHITECTURE | |
5648 | EOF | |
5649 | ||
5650 | fi | |
5651 | ||
5652 | ||
5653 | PRINTPREVIEW=NONE | |
5654 | if test "$USE_PRINTING_ARCHITECTURE" = 1 ; then | |
5655 | PRINTPREVIEW="PRINTPREVIEW" | |
5656 | cat >> confdefs.h <<EOF | |
5657 | #define USE_PRINTING_ARCHITECTURE $USE_PRINTING_ARCHITECTURE | |
5658 | EOF | |
5659 | ||
5660 | fi | |
5661 | ||
5662 | ||
5663 | TYPETREE=NONE | |
5664 | if test "$USE_TYPETREE" = 1 ; then | |
5665 | TYPETREE="TYPETREE" | |
5666 | cat >> confdefs.h <<EOF | |
5667 | #define USE_TYPETREE $USE_TYPETREE | |
5668 | EOF | |
5669 | ||
5670 | fi | |
5671 | ||
5672 | ||
5673 | WXGRAPH=NONE | |
5674 | if test "$USE_WXGRAPH" = 1 ; then | |
5675 | WXGRAPH="WXGRAPH" | |
5676 | cat >> confdefs.h <<EOF | |
5677 | #define USE_WXGRAPH $USE_WXGRAPH | |
5678 | EOF | |
5679 | ||
5680 | fi | |
5681 | ||
5682 | ||
5683 | WXTREE=NONE | |
5684 | if test "$USE_WXTREE" = 1 ; then | |
5685 | WXTREE="WXTREE" | |
5686 | cat >> confdefs.h <<EOF | |
5687 | #define USE_WXTREE $USE_WXTREE | |
5688 | EOF | |
5689 | ||
5690 | fi | |
5691 | ||
5692 | ||
5693 | GLCANVAS=NONE | |
5694 | if test "$USE_OPENGL" = 1 ; then | |
5695 | GLCANVAS="GLCANVAS" | |
5696 | fi | |
5697 | ||
5698 | cat >> confdefs.h <<EOF | |
5699 | #define USE_AFM_FOR_POSTSCRIPT $USE_AFM_FOR_POSTSCRIPT | |
5700 | EOF | |
5701 | ||
5702 | ||
5703 | cat >> confdefs.h <<EOF | |
5704 | #define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS | |
5705 | EOF | |
5706 | ||
5707 | ||
5708 | ||
5709 | if test "$USE_UNIX" = 1 ; then | |
5710 | cat >> confdefs.h <<\EOF | |
5711 | #define __UNIX__ 1 | |
5712 | EOF | |
5713 | ||
5714 | fi | |
5715 | ||
5716 | ||
5717 | GUI_TK_INCLUDE= | |
5718 | GUI_TK_LIBRARY= | |
5719 | GUI_TK_LINK= | |
5720 | ||
5721 | if test "$USE_GTK" = 1; then | |
5722 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
5723 | if test "${with_gtk_prefix+set}" = set; then | |
5724 | withval="$with_gtk_prefix" | |
5725 | gtk_config_prefix="$withval" | |
5726 | else | |
5727 | gtk_config_prefix="" | |
5728 | fi | |
5729 | ||
5730 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
5731 | if test "${with_gtk_exec_prefix+set}" = set; then | |
5732 | withval="$with_gtk_exec_prefix" | |
5733 | gtk_config_exec_prefix="$withval" | |
5734 | else | |
5735 | gtk_config_exec_prefix="" | |
5736 | fi | |
5737 | ||
5738 | ||
5739 | if test x$gtk_config_exec_prefix != x ; then | |
5740 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
5741 | if test x${GTK_CONFIG+set} != xset ; then | |
5742 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
5743 | fi | |
5744 | fi | |
5745 | if test x$gtk_config_prefix != x ; then | |
5746 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
5747 | if test x${GTK_CONFIG+set} != xset ; then | |
5748 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
5749 | fi | |
5750 | fi | |
5751 | ||
5752 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
5753 | set dummy gtk-config; ac_word=$2 | |
5754 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
abe1d62e | 5755 | echo "configure:5756: checking for $ac_word" >&5 |
c801d85f KB |
5756 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
5757 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5758 | else | |
5759 | case "$GTK_CONFIG" in | |
5760 | /*) | |
5761 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
5762 | ;; | |
5763 | *) | |
5764 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5765 | for ac_dir in $PATH; do | |
5766 | test -z "$ac_dir" && ac_dir=. | |
5767 | if test -f $ac_dir/$ac_word; then | |
5768 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
5769 | break | |
5770 | fi | |
5771 | done | |
5772 | IFS="$ac_save_ifs" | |
5773 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
5774 | ;; | |
5775 | esac | |
5776 | fi | |
5777 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
5778 | if test -n "$GTK_CONFIG"; then | |
5779 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
5780 | else | |
5781 | echo "$ac_t""no" 1>&6 | |
5782 | fi | |
5783 | ||
5784 | min_gtk_version=0.99.7 | |
5785 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
abe1d62e | 5786 | echo "configure:5787: checking for GTK - version >= $min_gtk_version" >&5 |
c801d85f KB |
5787 | no_gtk="" |
5788 | if test "$GTK_CONFIG" != "no" ; then | |
5789 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
5790 | GTK_LIBS=`$GTK_CONFIG --libs` | |
5791 | ac_save_CFLAGS="$CFLAGS" | |
5792 | ac_save_LIBS="$LIBS" | |
5793 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
5794 | LIBS="$LIBS $GTK_LIBS" | |
5795 | if test "$cross_compiling" = yes; then | |
5796 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
5797 | else | |
5798 | cat > conftest.$ac_ext <<EOF | |
abe1d62e | 5799 | #line 5800 "configure" |
c801d85f KB |
5800 | #include "confdefs.h" |
5801 | ||
5802 | #include <gtk/gtk.h> | |
5803 | #include <stdio.h> | |
5804 | ||
5805 | int | |
5806 | main () | |
5807 | { | |
5808 | int major, minor, micro; | |
5809 | ||
5810 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
5811 | printf("%s, bad version string\n", "$min_gtk_version"); | |
5812 | exit(1); | |
5813 | } | |
5814 | ||
5815 | return !((gtk_major_version > major) || | |
5816 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
5817 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
5818 | } | |
5819 | ||
5820 | EOF | |
abe1d62e | 5821 | if { (eval echo configure:5822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
5822 | then |
5823 | : | |
5824 | else | |
5825 | echo "configure: failed program was:" >&5 | |
5826 | cat conftest.$ac_ext >&5 | |
5827 | rm -fr conftest* | |
5828 | no_gtk=yes | |
5829 | fi | |
5830 | rm -fr conftest* | |
5831 | fi | |
5832 | ||
5833 | CFLAGS="$ac_save_CFLAGS" | |
5834 | LIBS="$ac_save_LIBS" | |
5835 | else | |
5836 | no_gtk=yes | |
5837 | fi | |
5838 | if test "x$no_gtk" = x ; then | |
5839 | echo "$ac_t""yes" 1>&6 | |
5840 | ||
5841 | GUI_TK_INCLUDE="$GTK_CFLAGS" | |
5842 | GUI_TK_LIBRARY="$GTK_LIBS" | |
5843 | ||
5844 | else | |
5845 | echo "$ac_t""no" 1>&6 | |
5846 | GTK_CFLAGS="" | |
5847 | GTK_LIBS="" | |
5848 | { echo "configure: error: Are gtk-config and the GTK in path and up-to-date?" 1>&2; exit 1; } | |
5849 | fi | |
5850 | ||
5851 | ||
5852 | ||
5853 | cat >> confdefs.h <<\EOF | |
5854 | #define __GTK__ 1 | |
5855 | EOF | |
5856 | ||
5857 | fi | |
5858 | ||
5859 | ||
5860 | ||
5861 | ||
5862 | ||
5863 | ||
5864 | ||
5865 | ||
5866 | OPENGL_INCLUDE= | |
5867 | OPENGL_LIBRARY= | |
5868 | OPENGL_LINK= | |
5869 | ||
5870 | if test "$USE_OPENGL" = 1; then | |
5871 | echo $ac_n "checking for OpenGL includes""... $ac_c" 1>&6 | |
abe1d62e | 5872 | echo "configure:5873: checking for OpenGL includes" >&5 |
c801d85f KB |
5873 | |
5874 | ac_find_includes= | |
5875 | for ac_dir in $SEARCH_INCLUDE; | |
5876 | do | |
5877 | if test -f "$ac_dir/GL/gl.h"; then | |
5878 | ac_find_includes=$ac_dir | |
5879 | break | |
5880 | fi | |
5881 | done | |
5882 | ||
5883 | if test "$ac_find_includes" != "" ; then | |
5884 | OPENGL_INCLUDE="-I$ac_find_includes" | |
5885 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
5886 | echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6 | |
abe1d62e | 5887 | echo "configure:5888: checking for OpenGL library" >&5 |
c801d85f KB |
5888 | |
5889 | ac_find_libraries= | |
5890 | for ac_dir in $SEARCH_LIB; | |
5891 | do | |
5892 | for ac_extension in a so sl; do | |
5893 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
5894 | ac_find_libraries=$ac_dir | |
5895 | break 2 | |
5896 | fi | |
5897 | done | |
5898 | done | |
5899 | ||
5900 | if test "$ac_find_libraries" != "" ; then | |
5901 | ||
5902 | ac_path_to_include=$ac_find_includes | |
5903 | echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
5904 | result=$? | |
5905 | if test $result = 0; then | |
5906 | ac_path_to_include="" | |
5907 | else | |
5908 | ac_path_to_include="-I$ac_find_includes" | |
5909 | fi | |
5910 | ||
5911 | ||
5912 | echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null | |
5913 | result=$? | |
5914 | if test $result = 0; then | |
5915 | ac_path_to_link="" | |
5916 | else | |
5917 | ac_path_to_link="-L$ac_find_libraries" | |
5918 | fi | |
5919 | ||
5920 | CHECK_LINK="$CHECK_INCLUDE $ac_path_to_link" | |
5921 | CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include" | |
5922 | OPENGL_LIBRARY="$ac_path_to_link" | |
5923 | OPENGL_INCLUDE="$ac_path_to_include" | |
5924 | OPENGL_LINK="-lGL" | |
5925 | echo "$ac_t""found OpenGL at $ac_find_libraries" 1>&6 | |
5926 | else | |
5927 | ||
5928 | ac_find_libraries= | |
5929 | for ac_dir in $SEARCH_LIB; | |
5930 | do | |
5931 | for ac_extension in a so sl; do | |
5932 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
5933 | ac_find_libraries=$ac_dir | |
5934 | break 2 | |
5935 | fi | |
5936 | done | |
5937 | done | |
5938 | ||
5939 | if test "$ac_find_libraries" != "" ; then | |
5940 | ||
5941 | ac_path_to_include=$ac_find_includes | |
5942 | echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
5943 | result=$? | |
5944 | if test $result = 0; then | |
5945 | ac_path_to_include="" | |
5946 | else | |
5947 | ac_path_to_include="-I$ac_find_includes" | |
5948 | fi | |
5949 | ||
5950 | ||
5951 | echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null | |
5952 | result=$? | |
5953 | if test $result = 0; then | |
5954 | ac_path_to_link="" | |
5955 | else | |
5956 | ac_path_to_link="-L$ac_find_libraries" | |
5957 | fi | |
5958 | ||
5959 | CHECK_LINK="$CHECK_INCLUDE $ac_path_to_link" | |
5960 | CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include" | |
5961 | OPENGL_LIBRARY="$ac_path_to_link" | |
5962 | OPENGL_INCLUDE="$ac_path_to_include" | |
5963 | OPENGL_LINK="-lMesaGL" | |
5964 | echo "$ac_t""found MESA at $ac_find_libraries" 1>&6 | |
5965 | else | |
5966 | { echo "configure: error: no" 1>&2; exit 1; } | |
5967 | fi | |
5968 | fi | |
5969 | else | |
5970 | { echo "configure: error: no" 1>&2; exit 1; } | |
5971 | fi | |
5972 | fi | |
5973 | ||
5974 | if test "$USE_GDK_IMLIB" = 1; then | |
5975 | cat >> confdefs.h <<EOF | |
5976 | #define USE_GDK_IMLIB $USE_GDK_IMLIB | |
5977 | EOF | |
5978 | ||
5979 | fi | |
5980 | ||
5981 | if test "$USE_ZLIB" = 1; then | |
5982 | cat >> confdefs.h <<EOF | |
5983 | #define USE_ZLIB $USE_ZLIB | |
5984 | EOF | |
5985 | ||
5986 | fi | |
5987 | ||
5988 | if test "$USE_LIBPNG" = 1; then | |
5989 | cat >> confdefs.h <<EOF | |
5990 | #define USE_LIBPNG $USE_LIBPNG | |
5991 | EOF | |
5992 | ||
5993 | fi | |
5994 | ||
5995 | ||
5996 | ||
5997 | ||
5998 | USE_GLX=$USE_OPENGL | |
5999 | if test "$USE_OPENGL" != 1; then | |
6000 | OPENGL_LIBRARIES= | |
6001 | OPENGL_INCLUDE= | |
6002 | OPENGL_LINK= | |
6003 | GLCANVAS=NONE | |
6004 | fi | |
6005 | ||
6006 | cat >> confdefs.h <<EOF | |
6007 | #define USE_GLX $USE_GLX | |
6008 | EOF | |
6009 | ||
6010 | ||
6011 | ||
6012 | ||
6013 | ||
6014 | ||
6015 | ||
6016 | PICFLAGS= | |
6017 | CREATE_SHARED= | |
6018 | case "${canonical}" in | |
6019 | ||
6020 | *-hp-hpux* ) | |
6021 | if test "${CC}" != "gcc" ; then | |
6022 | CXXFLAGS="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE" | |
6023 | CFLAGS="${CFLAGS} -z -D_HPUX_SOURCE" | |
6024 | PICFLAGS="+z" | |
6025 | else | |
6026 | PICFLAGS="-fPIC" | |
6027 | fi | |
6028 | LDFLAGS="-Wl,+s" | |
6029 | CREATE_SHARED=sharedHpux | |
6030 | ;; | |
6031 | ||
6032 | *-*-linux* ) | |
6033 | PICFLAGS=-fPIC | |
6034 | CREATE_SHARED=sharedLinux | |
6035 | ;; | |
6036 | ||
6037 | *-*-irix5* | *-*-irix6* ) | |
6038 | # PICFLAGS can remain empty, as pic is the default | |
6039 | LDFLAGS="-Wl,+s" | |
6040 | CREATE_SHARED=sharedIrix | |
6041 | cat >> confdefs.h <<\EOF | |
6042 | #define SVR4 1 | |
6043 | EOF | |
6044 | ||
6045 | ;; | |
6046 | ||
6047 | *-*-solaris2* ) | |
6048 | if test "${CC}" != "gcc" ; then | |
6049 | PICFLAGS="-KPIC" | |
6050 | else | |
6051 | PICFLAGS="-fPIC" | |
6052 | fi | |
6053 | CREATE_SHARED=sharedSolaris2 | |
6054 | cat >> confdefs.h <<\EOF | |
6055 | #define SVR4 1 | |
6056 | EOF | |
6057 | ||
6058 | ;; | |
6059 | ||
6060 | *-*-sunos4* ) | |
6061 | if test "${CC}" != "gcc" ; then | |
6062 | PICFLAGS="-PIC" | |
6063 | else | |
6064 | PICFLAGS="-fPIC" | |
6065 | fi | |
6066 | LDFLAGS="-Wl,+s" | |
6067 | CREATE_SHARED=sharedSunos4 | |
6068 | cat >> confdefs.h <<\EOF | |
6069 | #define BSD 1 | |
6070 | EOF | |
6071 | ||
6072 | ;; | |
6073 | ||
6074 | *-*-freebsd* | *-*-netbsd*) | |
6075 | PICFLAGS=-fPIC | |
6076 | CREATE_SHARED=sharedBsd | |
6077 | cat >> confdefs.h <<\EOF | |
6078 | #define BSD 1 | |
6079 | EOF | |
6080 | ||
6081 | ;; | |
6082 | ||
6083 | *-*-osf* ) | |
6084 | PICFLAGS="-fPIC" | |
6085 | CREATE_SHARED=sharedOSF | |
6086 | ;; | |
6087 | ||
6088 | *-*-dgux5* ) | |
6089 | if test "${CC}" != "gcc" ; then | |
6090 | PICFLAGS="-K PIC" | |
6091 | else | |
6092 | PICFLAGS="-fPIC" | |
6093 | fi | |
6094 | CREATE_SHARED=sharedDgux | |
6095 | cat >> confdefs.h <<\EOF | |
6096 | #define SVR4 1 | |
6097 | EOF | |
6098 | ||
6099 | ;; | |
6100 | ||
6101 | *-*-sysv5* ) | |
6102 | if test "${CC}" != "gcc" ; then | |
6103 | PICFLAGS="-K PIC" | |
6104 | else | |
6105 | PICFLAGS="-fPIC" | |
6106 | fi | |
6107 | CREATE_SHARED=sharedSysV | |
6108 | cat >> confdefs.h <<\EOF | |
6109 | #define SVR4 1 | |
6110 | EOF | |
6111 | ||
6112 | ;; | |
6113 | ||
6114 | *-*-aix* ) | |
6115 | if test "${CC}" != "gcc" ; then | |
6116 | PICFLAGS="-bM\:SRE" | |
6117 | else | |
6118 | PICFLAGS="-fPIC" | |
6119 | fi | |
6120 | CREATE_SHARED=sharedAIX | |
6121 | cat >> confdefs.h <<\EOF | |
6122 | #define SYSV 1 | |
6123 | EOF | |
6124 | ||
6125 | ;; | |
6126 | ||
6127 | *) | |
6128 | CREATE_SHARED= | |
6129 | PICFLAGS= | |
6130 | esac | |
6131 | ||
6132 | if test "x$GCC" = xyes; then | |
6133 | CFLAGS="${CFLAGS} -Wall" | |
6134 | fi | |
6135 | ||
6136 | if test "x$GXX" = xyes; then | |
6137 | CXXFLAGS="${CXXFLAGS} -Wall" | |
6138 | fi | |
6139 | ||
6140 | if test "$USE_SHARED" != 1; then | |
6141 | CREATE_SHARED= | |
6142 | PICFLAGS= | |
6143 | fi | |
6144 | ||
6145 | ||
6146 | ||
6147 | ||
6148 | ||
6149 | ||
6150 | echo $OS >> system.list | |
abe1d62e | 6151 | echo $OS >> ../../system.list |
c801d85f KB |
6152 | |
6153 | ||
6154 | trap '' 1 2 15 | |
6155 | cat > confcache <<\EOF | |
6156 | # This file is a shell script that caches the results of configure | |
6157 | # tests run on this system so they can be shared between configure | |
6158 | # scripts and configure runs. It is not useful on other systems. | |
6159 | # If it contains results you don't want to keep, you may remove or edit it. | |
6160 | # | |
6161 | # By default, configure uses ./config.cache as the cache file, | |
6162 | # creating it if it does not exist already. You can give configure | |
6163 | # the --cache-file=FILE option to use a different cache file; that is | |
6164 | # what configure does when it calls configure scripts in | |
6165 | # subdirectories, so they share the cache. | |
6166 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6167 | # config.status only pays attention to the cache file if you give it the | |
6168 | # --recheck option to rerun configure. | |
6169 | # | |
6170 | EOF | |
6171 | # The following way of writing the cache mishandles newlines in values, | |
6172 | # but we know of no workaround that is simple, portable, and efficient. | |
6173 | # So, don't put newlines in cache variables' values. | |
6174 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6175 | # and sets the high bit in the cache file unless we assign to the vars. | |
6176 | (set) 2>&1 | | |
6177 | case `(ac_space=' '; set) 2>&1` in | |
6178 | *ac_space=\ *) | |
6179 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6180 | # turns \\\\ into \\, and sed turns \\ into \). | |
6181 | sed -n \ | |
6182 | -e "s/'/'\\\\''/g" \ | |
6183 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6184 | ;; | |
6185 | *) | |
6186 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6187 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6188 | ;; | |
6189 | esac >> confcache | |
6190 | if cmp -s $cache_file confcache; then | |
6191 | : | |
6192 | else | |
6193 | if test -w $cache_file; then | |
6194 | echo "updating cache $cache_file" | |
6195 | cat confcache > $cache_file | |
6196 | else | |
6197 | echo "not updating unwritable cache $cache_file" | |
6198 | fi | |
6199 | fi | |
6200 | rm -f confcache | |
6201 | ||
6202 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
6203 | ||
6204 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6205 | # Let make expand exec_prefix. | |
6206 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6207 | ||
6208 | # Any assignment to VPATH causes Sun make to only execute | |
6209 | # the first set of double-colon rules, so remove it if not needed. | |
6210 | # If there is a colon in the path, we need to keep it. | |
6211 | if test "x$srcdir" = x.; then | |
6212 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
6213 | fi | |
6214 | ||
6215 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
6216 | ||
6217 | DEFS=-DHAVE_CONFIG_H | |
6218 | ||
6219 | # Without the "./", some shells look in PATH for config.status. | |
6220 | : ${CONFIG_STATUS=./config.status} | |
6221 | ||
6222 | echo creating $CONFIG_STATUS | |
6223 | rm -f $CONFIG_STATUS | |
6224 | cat > $CONFIG_STATUS <<EOF | |
6225 | #! /bin/sh | |
6226 | # Generated automatically by configure. | |
6227 | # Run this file to recreate the current configuration. | |
6228 | # This directory was configured as follows, | |
6229 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
6230 | # | |
6231 | # $0 $ac_configure_args | |
6232 | # | |
6233 | # Compiler output produced by configure, useful for debugging | |
6234 | # configure, is in ./config.log if it exists. | |
6235 | ||
6236 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
6237 | for ac_option | |
6238 | do | |
6239 | case "\$ac_option" in | |
6240 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
6241 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
6242 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
6243 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
6244 | echo "$CONFIG_STATUS generated by autoconf version 2.12" | |
6245 | exit 0 ;; | |
6246 | -help | --help | --hel | --he | --h) | |
6247 | echo "\$ac_cs_usage"; exit 0 ;; | |
6248 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
6249 | esac | |
6250 | done | |
6251 | ||
6252 | ac_given_srcdir=$srcdir | |
6253 | ac_given_INSTALL="$INSTALL" | |
6254 | ||
abe1d62e | 6255 | trap 'rm -fr `echo "../../src/gtk/setup/substit ../../include/wx/gtk/setup.h:../../src/gtk/setup/setup.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
c801d85f KB |
6256 | EOF |
6257 | cat >> $CONFIG_STATUS <<EOF | |
6258 | ||
6259 | # Protect against being on the right side of a sed subst in config.status. | |
6260 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
6261 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
6262 | $ac_vpsub | |
6263 | $extrasub | |
6264 | s%@CFLAGS@%$CFLAGS%g | |
6265 | s%@CPPFLAGS@%$CPPFLAGS%g | |
6266 | s%@CXXFLAGS@%$CXXFLAGS%g | |
6267 | s%@DEFS@%$DEFS%g | |
6268 | s%@LDFLAGS@%$LDFLAGS%g | |
6269 | s%@LIBS@%$LIBS%g | |
6270 | s%@exec_prefix@%$exec_prefix%g | |
6271 | s%@prefix@%$prefix%g | |
6272 | s%@program_transform_name@%$program_transform_name%g | |
6273 | s%@bindir@%$bindir%g | |
6274 | s%@sbindir@%$sbindir%g | |
6275 | s%@libexecdir@%$libexecdir%g | |
6276 | s%@datadir@%$datadir%g | |
6277 | s%@sysconfdir@%$sysconfdir%g | |
6278 | s%@sharedstatedir@%$sharedstatedir%g | |
6279 | s%@localstatedir@%$localstatedir%g | |
6280 | s%@libdir@%$libdir%g | |
6281 | s%@includedir@%$includedir%g | |
6282 | s%@oldincludedir@%$oldincludedir%g | |
6283 | s%@infodir@%$infodir%g | |
6284 | s%@mandir@%$mandir%g | |
6285 | s%@WXBASEDIR@%$WXBASEDIR%g | |
6286 | s%@CC@%$CC%g | |
6287 | s%@CPP@%$CPP%g | |
6288 | s%@CXX@%$CXX%g | |
6289 | s%@CXXCPP@%$CXXCPP%g | |
6290 | s%@RANLIB@%$RANLIB%g | |
6291 | s%@AR@%$AR%g | |
6292 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
6293 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
6294 | s%@LN_S@%$LN_S%g | |
6295 | s%@AWK@%$AWK%g | |
6296 | s%@X_CFLAGS@%$X_CFLAGS%g | |
6297 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
6298 | s%@X_LIBS@%$X_LIBS%g | |
6299 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
6300 | s%@LIBOBJS@%$LIBOBJS%g | |
6301 | s%@YACC@%$YACC%g | |
6302 | s%@LEX@%$LEX%g | |
6303 | s%@LEXLIB@%$LEXLIB%g | |
6304 | s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g | |
6305 | s%@host@%$host%g | |
6306 | s%@host_alias@%$host_alias%g | |
6307 | s%@host_cpu@%$host_cpu%g | |
6308 | s%@host_vendor@%$host_vendor%g | |
6309 | s%@host_os@%$host_os%g | |
6310 | s%@THREADS@%$THREADS%g | |
6311 | s%@THREADS_LINK@%$THREADS_LINK%g | |
6312 | s%@DEBUG@%$DEBUG%g | |
6313 | s%@PROFILE@%$PROFILE%g | |
6314 | s%@OPTIMISE@%$OPTIMISE%g | |
6315 | s%@RPC@%$RPC%g | |
6316 | s%@WXRESOURCES@%$WXRESOURCES%g | |
6317 | s%@PROLOGIO@%$PROLOGIO%g | |
6318 | s%@PROLOGIOSRC@%$PROLOGIOSRC%g | |
6319 | s%@POSTSCRIPTDC@%$POSTSCRIPTDC%g | |
6320 | s%@METAFILE@%$METAFILE%g | |
6321 | s%@FORM@%$FORM%g | |
6322 | s%@HELP@%$HELP%g | |
6323 | s%@IPC@%$IPC%g | |
6324 | s%@ENHDIALOGBOX@%$ENHDIALOGBOX%g | |
6325 | s%@XRESOURCES@%$XRESOURCES%g | |
6326 | s%@CLIPBOARD@%$CLIPBOARD%g | |
6327 | s%@CONSTRAINTS@%$CONSTRAINTS%g | |
6328 | s%@TIMEDATE@%$TIMEDATE%g | |
6329 | s%@FRACTION@%$FRACTION%g | |
6330 | s%@TOOLBAR@%$TOOLBAR%g | |
6331 | s%@GAUGE@%$GAUGE%g | |
6332 | s%@VIRLISTBOX@%$VIRLISTBOX%g | |
6333 | s%@SCROLLBAR@%$SCROLLBAR%g | |
6334 | s%@DOCVIEW@%$DOCVIEW%g | |
6335 | s%@PRINTPREVIEW@%$PRINTPREVIEW%g | |
6336 | s%@TYPETREE@%$TYPETREE%g | |
6337 | s%@WXGRAPH@%$WXGRAPH%g | |
6338 | s%@WXTREE@%$WXTREE%g | |
6339 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
6340 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
6341 | s%@GTK_LIBS@%$GTK_LIBS%g | |
6342 | s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g | |
6343 | s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g | |
6344 | s%@GUI_TK_LINK@%$GUI_TK_LINK%g | |
6345 | s%@TOOLKIT@%$TOOLKIT%g | |
6346 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
6347 | s%@OPENGL_INCLUDE@%$OPENGL_INCLUDE%g | |
6348 | s%@OPENGL_LIBRARY@%$OPENGL_LIBRARY%g | |
6349 | s%@OPENGL_LINK@%$OPENGL_LINK%g | |
6350 | s%@GLCANVAS@%$GLCANVAS%g | |
6351 | s%@OS@%$OS%g | |
6352 | s%@PICFLAGS@%$PICFLAGS%g | |
6353 | s%@CREATE_SHARED@%$CREATE_SHARED%g | |
6354 | ||
6355 | CEOF | |
6356 | EOF | |
6357 | ||
6358 | cat >> $CONFIG_STATUS <<\EOF | |
6359 | ||
6360 | # Split the substitutions into bite-sized pieces for seds with | |
6361 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
6362 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
6363 | ac_file=1 # Number of current file. | |
6364 | ac_beg=1 # First line for current file. | |
6365 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
6366 | ac_more_lines=: | |
6367 | ac_sed_cmds="" | |
6368 | while $ac_more_lines; do | |
6369 | if test $ac_beg -gt 1; then | |
6370 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
6371 | else | |
6372 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
6373 | fi | |
6374 | if test ! -s conftest.s$ac_file; then | |
6375 | ac_more_lines=false | |
6376 | rm -f conftest.s$ac_file | |
6377 | else | |
6378 | if test -z "$ac_sed_cmds"; then | |
6379 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
6380 | else | |
6381 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
6382 | fi | |
6383 | ac_file=`expr $ac_file + 1` | |
6384 | ac_beg=$ac_end | |
6385 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
6386 | fi | |
6387 | done | |
6388 | if test -z "$ac_sed_cmds"; then | |
6389 | ac_sed_cmds=cat | |
6390 | fi | |
6391 | EOF | |
6392 | ||
6393 | cat >> $CONFIG_STATUS <<EOF | |
6394 | ||
abe1d62e | 6395 | CONFIG_FILES=\${CONFIG_FILES-"../../src/gtk/setup/substit"} |
c801d85f KB |
6396 | EOF |
6397 | cat >> $CONFIG_STATUS <<\EOF | |
6398 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
6399 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
6400 | case "$ac_file" in | |
6401 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
6402 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
6403 | *) ac_file_in="${ac_file}.in" ;; | |
6404 | esac | |
6405 | ||
6406 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
6407 | ||
6408 | # Remove last slash and all that follows it. Not all systems have dirname. | |
6409 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
6410 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
6411 | # The file is in a subdirectory. | |
6412 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
6413 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
6414 | # A "../" for each directory in $ac_dir_suffix. | |
6415 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
6416 | else | |
6417 | ac_dir_suffix= ac_dots= | |
6418 | fi | |
6419 | ||
6420 | case "$ac_given_srcdir" in | |
6421 | .) srcdir=. | |
6422 | if test -z "$ac_dots"; then top_srcdir=. | |
6423 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
6424 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
6425 | *) # Relative path. | |
6426 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
6427 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
6428 | esac | |
6429 | ||
6430 | case "$ac_given_INSTALL" in | |
6431 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
6432 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
6433 | esac | |
6434 | ||
6435 | echo creating "$ac_file" | |
6436 | rm -f "$ac_file" | |
6437 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
6438 | case "$ac_file" in | |
6439 | *Makefile*) ac_comsub="1i\\ | |
6440 | # $configure_input" ;; | |
6441 | *) ac_comsub= ;; | |
6442 | esac | |
6443 | ||
6444 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
6445 | sed -e "$ac_comsub | |
6446 | s%@configure_input@%$configure_input%g | |
6447 | s%@srcdir@%$srcdir%g | |
6448 | s%@top_srcdir@%$top_srcdir%g | |
6449 | s%@INSTALL@%$INSTALL%g | |
6450 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
6451 | fi; done | |
6452 | rm -f conftest.s* | |
6453 | ||
6454 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
6455 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
6456 | # | |
6457 | # ac_d sets the value in "#define NAME VALUE" lines. | |
6458 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
6459 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
6460 | ac_dC='\3' | |
6461 | ac_dD='%g' | |
6462 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
6463 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
6464 | ac_uB='\([ ]\)%\1#\2define\3' | |
6465 | ac_uC=' ' | |
6466 | ac_uD='\4%g' | |
6467 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
6468 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
6469 | ac_eB='$%\1#\2define\3' | |
6470 | ac_eC=' ' | |
6471 | ac_eD='%g' | |
6472 | ||
6473 | if test "${CONFIG_HEADERS+set}" != set; then | |
6474 | EOF | |
6475 | cat >> $CONFIG_STATUS <<EOF | |
abe1d62e | 6476 | CONFIG_HEADERS="../../include/wx/gtk/setup.h:../../src/gtk/setup/setup.hin" |
c801d85f KB |
6477 | EOF |
6478 | cat >> $CONFIG_STATUS <<\EOF | |
6479 | fi | |
6480 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
6481 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
6482 | case "$ac_file" in | |
6483 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
6484 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
6485 | *) ac_file_in="${ac_file}.in" ;; | |
6486 | esac | |
6487 | ||
6488 | echo creating $ac_file | |
6489 | ||
6490 | rm -f conftest.frag conftest.in conftest.out | |
6491 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
6492 | cat $ac_file_inputs > conftest.in | |
6493 | ||
6494 | EOF | |
6495 | ||
6496 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
6497 | # the proper values into config.h.in to produce config.h. And first: | |
6498 | # Protect against being on the right side of a sed subst in config.status. | |
6499 | # Protect against being in an unquoted here document in config.status. | |
6500 | rm -f conftest.vals | |
6501 | cat > conftest.hdr <<\EOF | |
6502 | s/[\\&%]/\\&/g | |
6503 | s%[\\$`]%\\&%g | |
6504 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
6505 | s%ac_d%ac_u%gp | |
6506 | s%ac_u%ac_e%gp | |
6507 | EOF | |
6508 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
6509 | rm -f conftest.hdr | |
6510 | ||
6511 | # This sed command replaces #undef with comments. This is necessary, for | |
6512 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
6513 | # on some systems where configure will not decide to define it. | |
6514 | cat >> conftest.vals <<\EOF | |
6515 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
6516 | EOF | |
6517 | ||
6518 | # Break up conftest.vals because some shells have a limit on | |
6519 | # the size of here documents, and old seds have small limits too. | |
6520 | ||
6521 | rm -f conftest.tail | |
6522 | while : | |
6523 | do | |
6524 | ac_lines=`grep -c . conftest.vals` | |
6525 | # grep -c gives empty output for an empty file on some AIX systems. | |
6526 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
6527 | # Write a limited-size here document to conftest.frag. | |
6528 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
6529 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
6530 | echo 'CEOF | |
6531 | sed -f conftest.frag conftest.in > conftest.out | |
6532 | rm -f conftest.in | |
6533 | mv conftest.out conftest.in | |
6534 | ' >> $CONFIG_STATUS | |
6535 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
6536 | rm -f conftest.vals | |
6537 | mv conftest.tail conftest.vals | |
6538 | done | |
6539 | rm -f conftest.vals | |
6540 | ||
6541 | cat >> $CONFIG_STATUS <<\EOF | |
6542 | rm -f conftest.frag conftest.h | |
6543 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
6544 | cat conftest.in >> conftest.h | |
6545 | rm -f conftest.in | |
6546 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
6547 | echo "$ac_file is unchanged" | |
6548 | rm -f conftest.h | |
6549 | else | |
6550 | # Remove last slash and all that follows it. Not all systems have dirname. | |
6551 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
6552 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
6553 | # The file is in a subdirectory. | |
6554 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
6555 | fi | |
6556 | rm -f $ac_file | |
6557 | mv conftest.h $ac_file | |
6558 | fi | |
6559 | fi; done | |
6560 | ||
6561 | EOF | |
6562 | cat >> $CONFIG_STATUS <<EOF | |
6563 | ||
6564 | EOF | |
6565 | cat >> $CONFIG_STATUS <<\EOF | |
abe1d62e | 6566 | |
c801d85f KB |
6567 | exit 0 |
6568 | EOF | |
6569 | chmod +x $CONFIG_STATUS | |
6570 | rm -fr confdefs* $ac_clean_files | |
6571 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
6572 | ||
6573 | ||
6574 | mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache | |
6575 |