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