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