]>
Commit | Line | Data |
---|---|---|
bcf1fa6b RR |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
d28e1977 | 4 | # Generated automatically using autoconf version 2.12 |
bcf1fa6b RR |
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 | |
ac57418f RR |
41 | **--with-threads for enabling threads" |
42 | ac_help="$ac_help | |
eb9bbf52 VZ |
43 | **--with-dynlib to compile wxLibrary class" |
44 | ac_help="$ac_help | |
bcf1fa6b RR |
45 | **--with-zlib use zlib for LZW comression" |
46 | ac_help="$ac_help | |
bcf1fa6b RR |
47 | **--with-libpng use libpng (PNG image format)" |
48 | ac_help="$ac_help | |
2fff5f08 VS |
49 | **--with-libjpeg use libjpeg (JPEG image format)" |
50 | ac_help="$ac_help | |
bcf1fa6b RR |
51 | **--with-odbc use iODBC and wxODBC classes" |
52 | ac_help="$ac_help | |
bcf1fa6b RR |
53 | **--with-timedate use wxTime and wxDate classes" |
54 | ac_help="$ac_help | |
bcf1fa6b RR |
55 | **--with-intl use internationalization system" |
56 | ac_help="$ac_help | |
57 | **--with-config use wxConfig class" | |
58 | ac_help="$ac_help | |
59 | **--with-streams use wxStream etc classes" | |
60 | ac_help="$ac_help | |
61 | **--with-serial use class serialization" | |
62 | ac_help="$ac_help | |
5f0f31fe | 63 | **--with-sockets use wxSocket etc classes" |
35a4dab7 | 64 | ac_help="$ac_help |
bcf1fa6b RR |
65 | **--with-afmfonts use Adobe Font Metric Font table" |
66 | ac_help="$ac_help | |
67 | **--with-PS-normalized use normalized PS fonts" | |
68 | ac_help="$ac_help | |
69 | **--with-postscript use wxPostscriptDC device context" | |
70 | ac_help="$ac_help | |
fb4e5803 VZ |
71 | **--with-unicode compile wxString with Unicode support" |
72 | ac_help="$ac_help | |
73 | **--with-wcsrtombs use wcsrtombs instead of (buggy in GNU libc5) wcstombs" | |
74 | ac_help="$ac_help | |
bcf1fa6b RR |
75 | **--with-wxresources use wxWindows's resources" |
76 | ac_help="$ac_help | |
77 | **--with-prologio use Prolog IO library" | |
78 | ac_help="$ac_help | |
79 | **--with-rpc use Prolog's remote procedure calls" | |
80 | ac_help="$ac_help | |
81 | **--with-ipc use interprocess communication (wxSocket etc.)" | |
82 | ac_help="$ac_help | |
83 | **--with-resources use X resources for saving information" | |
84 | ac_help="$ac_help | |
85 | **--with-clipboard use wxClipboard classes" | |
86 | ac_help="$ac_help | |
ff8bfdbb VZ |
87 | **--with-tooltips use tooltips" |
88 | ac_help="$ac_help | |
bcf1fa6b RR |
89 | **--with-dnd use Drag'n'Drop classes" |
90 | ac_help="$ac_help | |
bcf1fa6b RR |
91 | **--with-mdi use multiple document interface architecture" |
92 | ac_help="$ac_help | |
93 | **--with-docview use document view architecture" | |
94 | ac_help="$ac_help | |
95 | **--with-printarch use printing architecture" | |
96 | ac_help="$ac_help | |
e9aad10a KB |
97 | **--with-help use help (using external browser at present)" |
98 | ac_help="$ac_help | |
f3cb6592 | 99 | **--with-gtk-prefix=PFX Prefix where GTK is installed" |
bcf1fa6b | 100 | ac_help="$ac_help |
f3cb6592 | 101 | **--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed" |
bcf1fa6b RR |
102 | |
103 | # Initialize some variables set by options. | |
104 | # The variables have the same names as the options, with | |
105 | # dashes changed to underlines. | |
106 | build=NONE | |
107 | cache_file=./config.cache | |
108 | exec_prefix=NONE | |
109 | host=NONE | |
110 | no_create= | |
111 | nonopt=NONE | |
112 | no_recursion= | |
113 | prefix=NONE | |
114 | program_prefix=NONE | |
115 | program_suffix=NONE | |
116 | program_transform_name=s,x,x, | |
117 | silent= | |
118 | site= | |
119 | srcdir= | |
120 | target=NONE | |
121 | verbose= | |
122 | x_includes=NONE | |
123 | x_libraries=NONE | |
124 | bindir='${exec_prefix}/bin' | |
125 | sbindir='${exec_prefix}/sbin' | |
126 | libexecdir='${exec_prefix}/libexec' | |
127 | datadir='${prefix}/share' | |
128 | sysconfdir='${prefix}/etc' | |
129 | sharedstatedir='${prefix}/com' | |
130 | localstatedir='${prefix}/var' | |
131 | libdir='${exec_prefix}/lib' | |
132 | includedir='${prefix}/include' | |
133 | oldincludedir='/usr/include' | |
134 | infodir='${prefix}/info' | |
135 | mandir='${prefix}/man' | |
136 | ||
137 | # Initialize some other variables. | |
138 | subdirs= | |
139 | MFLAGS= MAKEFLAGS= | |
140 | # Maximum number of lines to put in a shell here document. | |
141 | ac_max_here_lines=12 | |
142 | ||
143 | ac_prev= | |
144 | for ac_option | |
145 | do | |
146 | ||
147 | # If the previous option needs an argument, assign it. | |
148 | if test -n "$ac_prev"; then | |
149 | eval "$ac_prev=\$ac_option" | |
150 | ac_prev= | |
151 | continue | |
152 | fi | |
153 | ||
154 | case "$ac_option" in | |
155 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
156 | *) ac_optarg= ;; | |
157 | esac | |
158 | ||
159 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
160 | ||
161 | case "$ac_option" in | |
162 | ||
163 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
164 | ac_prev=bindir ;; | |
165 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
166 | bindir="$ac_optarg" ;; | |
167 | ||
168 | -build | --build | --buil | --bui | --bu) | |
169 | ac_prev=build ;; | |
170 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
171 | build="$ac_optarg" ;; | |
172 | ||
173 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
174 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
175 | ac_prev=cache_file ;; | |
176 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
177 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
178 | cache_file="$ac_optarg" ;; | |
179 | ||
180 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
181 | ac_prev=datadir ;; | |
182 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
183 | | --da=*) | |
184 | datadir="$ac_optarg" ;; | |
185 | ||
186 | -disable-* | --disable-*) | |
187 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
188 | # Reject names that are not valid shell variable names. | |
189 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
190 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
191 | fi | |
192 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
193 | eval "enable_${ac_feature}=no" ;; | |
194 | ||
195 | -enable-* | --enable-*) | |
196 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
197 | # Reject names that are not valid shell variable names. | |
198 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
199 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
200 | fi | |
201 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
202 | case "$ac_option" in | |
203 | *=*) ;; | |
204 | *) ac_optarg=yes ;; | |
205 | esac | |
206 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
207 | ||
208 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
209 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
210 | | --exec | --exe | --ex) | |
211 | ac_prev=exec_prefix ;; | |
212 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
213 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
214 | | --exec=* | --exe=* | --ex=*) | |
215 | exec_prefix="$ac_optarg" ;; | |
216 | ||
217 | -gas | --gas | --ga | --g) | |
218 | # Obsolete; use --with-gas. | |
219 | with_gas=yes ;; | |
220 | ||
221 | -help | --help | --hel | --he) | |
222 | # Omit some internal or obsolete options to make the list less imposing. | |
223 | # This message is too long to be a string in the A/UX 3.1 sh. | |
224 | cat << EOF | |
225 | Usage: configure [options] [host] | |
226 | Options: [defaults in brackets after descriptions] | |
227 | Configuration: | |
228 | --cache-file=FILE cache test results in FILE | |
229 | --help print this message | |
230 | --no-create do not create output files | |
231 | --quiet, --silent do not print \`checking...' messages | |
232 | --version print the version of autoconf that created configure | |
233 | Directory and file names: | |
234 | --prefix=PREFIX install architecture-independent files in PREFIX | |
235 | [$ac_default_prefix] | |
236 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
237 | [same as prefix] | |
238 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
239 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
240 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
241 | --datadir=DIR read-only architecture-independent data in DIR | |
242 | [PREFIX/share] | |
243 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
244 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
245 | [PREFIX/com] | |
246 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
247 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
248 | --includedir=DIR C header files in DIR [PREFIX/include] | |
249 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
250 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
251 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
252 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
253 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
254 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
255 | --program-transform-name=PROGRAM | |
256 | run sed PROGRAM on installed program names | |
257 | EOF | |
258 | cat << EOF | |
259 | Host type: | |
260 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
261 | --host=HOST configure for HOST [guessed] | |
262 | --target=TARGET configure for TARGET [TARGET=HOST] | |
263 | Features and packages: | |
264 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
265 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
266 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
267 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
268 | --x-includes=DIR X include files are in DIR | |
269 | --x-libraries=DIR X library files are in DIR | |
270 | EOF | |
271 | if test -n "$ac_help"; then | |
272 | echo "--enable and --with options recognized:$ac_help" | |
273 | fi | |
274 | exit 0 ;; | |
275 | ||
276 | -host | --host | --hos | --ho) | |
277 | ac_prev=host ;; | |
278 | -host=* | --host=* | --hos=* | --ho=*) | |
279 | host="$ac_optarg" ;; | |
280 | ||
281 | -includedir | --includedir | --includedi | --included | --include \ | |
282 | | --includ | --inclu | --incl | --inc) | |
283 | ac_prev=includedir ;; | |
284 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
285 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
286 | includedir="$ac_optarg" ;; | |
287 | ||
288 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
289 | ac_prev=infodir ;; | |
290 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
291 | infodir="$ac_optarg" ;; | |
292 | ||
293 | -libdir | --libdir | --libdi | --libd) | |
294 | ac_prev=libdir ;; | |
295 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
296 | libdir="$ac_optarg" ;; | |
297 | ||
298 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
299 | | --libexe | --libex | --libe) | |
300 | ac_prev=libexecdir ;; | |
301 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
302 | | --libexe=* | --libex=* | --libe=*) | |
303 | libexecdir="$ac_optarg" ;; | |
304 | ||
305 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
306 | | --localstate | --localstat | --localsta | --localst \ | |
307 | | --locals | --local | --loca | --loc | --lo) | |
308 | ac_prev=localstatedir ;; | |
309 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
310 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
311 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
312 | localstatedir="$ac_optarg" ;; | |
313 | ||
314 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
315 | ac_prev=mandir ;; | |
316 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
317 | mandir="$ac_optarg" ;; | |
318 | ||
319 | -nfp | --nfp | --nf) | |
320 | # Obsolete; use --without-fp. | |
321 | with_fp=no ;; | |
322 | ||
323 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
324 | | --no-cr | --no-c) | |
325 | no_create=yes ;; | |
326 | ||
327 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
328 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
329 | no_recursion=yes ;; | |
330 | ||
331 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
332 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
333 | | --oldin | --oldi | --old | --ol | --o) | |
334 | ac_prev=oldincludedir ;; | |
335 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
336 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
337 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
338 | oldincludedir="$ac_optarg" ;; | |
339 | ||
340 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
341 | ac_prev=prefix ;; | |
342 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
343 | prefix="$ac_optarg" ;; | |
344 | ||
345 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
346 | | --program-pre | --program-pr | --program-p) | |
347 | ac_prev=program_prefix ;; | |
348 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
349 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
350 | program_prefix="$ac_optarg" ;; | |
351 | ||
352 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
353 | | --program-suf | --program-su | --program-s) | |
354 | ac_prev=program_suffix ;; | |
355 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
356 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
357 | program_suffix="$ac_optarg" ;; | |
358 | ||
359 | -program-transform-name | --program-transform-name \ | |
360 | | --program-transform-nam | --program-transform-na \ | |
361 | | --program-transform-n | --program-transform- \ | |
362 | | --program-transform | --program-transfor \ | |
363 | | --program-transfo | --program-transf \ | |
364 | | --program-trans | --program-tran \ | |
365 | | --progr-tra | --program-tr | --program-t) | |
366 | ac_prev=program_transform_name ;; | |
367 | -program-transform-name=* | --program-transform-name=* \ | |
368 | | --program-transform-nam=* | --program-transform-na=* \ | |
369 | | --program-transform-n=* | --program-transform-=* \ | |
370 | | --program-transform=* | --program-transfor=* \ | |
371 | | --program-transfo=* | --program-transf=* \ | |
372 | | --program-trans=* | --program-tran=* \ | |
373 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
374 | program_transform_name="$ac_optarg" ;; | |
375 | ||
376 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
377 | | -silent | --silent | --silen | --sile | --sil) | |
378 | silent=yes ;; | |
379 | ||
380 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
381 | ac_prev=sbindir ;; | |
382 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
383 | | --sbi=* | --sb=*) | |
384 | sbindir="$ac_optarg" ;; | |
385 | ||
386 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
387 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
388 | | --sharedst | --shareds | --shared | --share | --shar \ | |
389 | | --sha | --sh) | |
390 | ac_prev=sharedstatedir ;; | |
391 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
392 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
393 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
394 | | --sha=* | --sh=*) | |
395 | sharedstatedir="$ac_optarg" ;; | |
396 | ||
397 | -site | --site | --sit) | |
398 | ac_prev=site ;; | |
399 | -site=* | --site=* | --sit=*) | |
400 | site="$ac_optarg" ;; | |
401 | ||
402 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
403 | ac_prev=srcdir ;; | |
404 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
405 | srcdir="$ac_optarg" ;; | |
406 | ||
407 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
408 | | --syscon | --sysco | --sysc | --sys | --sy) | |
409 | ac_prev=sysconfdir ;; | |
410 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
411 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
412 | sysconfdir="$ac_optarg" ;; | |
413 | ||
414 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
415 | ac_prev=target ;; | |
416 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
417 | target="$ac_optarg" ;; | |
418 | ||
419 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
420 | verbose=yes ;; | |
421 | ||
422 | -version | --version | --versio | --versi | --vers) | |
d28e1977 | 423 | echo "configure generated by autoconf version 2.12" |
bcf1fa6b RR |
424 | exit 0 ;; |
425 | ||
426 | -with-* | --with-*) | |
427 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
428 | # Reject names that are not valid shell variable names. | |
429 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
430 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
431 | fi | |
432 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
433 | case "$ac_option" in | |
434 | *=*) ;; | |
435 | *) ac_optarg=yes ;; | |
436 | esac | |
437 | eval "with_${ac_package}='$ac_optarg'" ;; | |
438 | ||
439 | -without-* | --without-*) | |
440 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
441 | # Reject names that are not valid shell variable names. | |
442 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
443 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
444 | fi | |
445 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
446 | eval "with_${ac_package}=no" ;; | |
447 | ||
448 | --x) | |
449 | # Obsolete; use --with-x. | |
450 | with_x=yes ;; | |
451 | ||
452 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
453 | | --x-incl | --x-inc | --x-in | --x-i) | |
454 | ac_prev=x_includes ;; | |
455 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
456 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
457 | x_includes="$ac_optarg" ;; | |
458 | ||
459 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
460 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
461 | ac_prev=x_libraries ;; | |
462 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
463 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
464 | x_libraries="$ac_optarg" ;; | |
465 | ||
466 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
467 | ;; | |
468 | ||
469 | *) | |
470 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
471 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
472 | fi | |
473 | if test "x$nonopt" != xNONE; then | |
474 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
475 | fi | |
476 | nonopt="$ac_option" | |
477 | ;; | |
478 | ||
479 | esac | |
480 | done | |
481 | ||
482 | if test -n "$ac_prev"; then | |
483 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
484 | fi | |
485 | ||
486 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
487 | ||
488 | # File descriptor usage: | |
489 | # 0 standard input | |
490 | # 1 file creation | |
491 | # 2 errors and warnings | |
492 | # 3 some systems may open it to /dev/tty | |
493 | # 4 used on the Kubota Titan | |
494 | # 6 checking for... messages and results | |
495 | # 5 compiler messages saved in config.log | |
496 | if test "$silent" = yes; then | |
497 | exec 6>/dev/null | |
498 | else | |
499 | exec 6>&1 | |
500 | fi | |
501 | exec 5>./config.log | |
502 | ||
503 | echo "\ | |
504 | This file contains any messages produced by compilers while | |
505 | running configure, to aid debugging if configure makes a mistake. | |
506 | " 1>&5 | |
507 | ||
508 | # Strip out --no-create and --no-recursion so they do not pile up. | |
509 | # Also quote any args containing shell metacharacters. | |
510 | ac_configure_args= | |
511 | for ac_arg | |
512 | do | |
513 | case "$ac_arg" in | |
514 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
515 | | --no-cr | --no-c) ;; | |
516 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
517 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
518 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
519 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
520 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
521 | esac | |
522 | done | |
523 | ||
524 | # NLS nuisances. | |
525 | # Only set these to C if already set. These must not be set unconditionally | |
526 | # because not all systems understand e.g. LANG=C (notably SCO). | |
527 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
528 | # Non-C LC_CTYPE values break the ctype check. | |
529 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
530 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
531 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
532 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
533 | ||
534 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
535 | rm -rf conftest* confdefs.h | |
536 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
537 | echo > confdefs.h | |
538 | ||
539 | # A filename unique to this package, relative to the directory that | |
540 | # configure is in, which we can look for to find out if srcdir is correct. | |
541 | ac_unique_file=configure.in | |
542 | ||
543 | # Find the source files, if location was not specified. | |
544 | if test -z "$srcdir"; then | |
545 | ac_srcdir_defaulted=yes | |
546 | # Try the directory containing this script, then its parent. | |
547 | ac_prog=$0 | |
548 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
549 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
550 | srcdir=$ac_confdir | |
551 | if test ! -r $srcdir/$ac_unique_file; then | |
552 | srcdir=.. | |
553 | fi | |
554 | else | |
555 | ac_srcdir_defaulted=no | |
556 | fi | |
557 | if test ! -r $srcdir/$ac_unique_file; then | |
558 | if test "$ac_srcdir_defaulted" = yes; then | |
559 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
560 | else | |
561 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
562 | fi | |
563 | fi | |
564 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
565 | ||
566 | # Prefer explicitly selected file to automatically selected ones. | |
567 | if test -z "$CONFIG_SITE"; then | |
568 | if test "x$prefix" != xNONE; then | |
569 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
570 | else | |
571 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
572 | fi | |
573 | fi | |
574 | for ac_site_file in $CONFIG_SITE; do | |
575 | if test -r "$ac_site_file"; then | |
576 | echo "loading site script $ac_site_file" | |
577 | . "$ac_site_file" | |
578 | fi | |
579 | done | |
580 | ||
581 | if test -r "$cache_file"; then | |
582 | echo "loading cache $cache_file" | |
583 | . $cache_file | |
584 | else | |
585 | echo "creating cache $cache_file" | |
586 | > $cache_file | |
587 | fi | |
588 | ||
589 | ac_ext=c | |
590 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
591 | ac_cpp='$CPP $CPPFLAGS' | |
592 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
d28e1977 | 593 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
bcf1fa6b RR |
594 | cross_compiling=$ac_cv_prog_cc_cross |
595 | ||
596 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
597 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
598 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
599 | ac_n= ac_c=' | |
600 | ' ac_t=' ' | |
601 | else | |
602 | ac_n=-n ac_c= ac_t= | |
603 | fi | |
604 | else | |
605 | ac_n= ac_c='\c' ac_t= | |
606 | fi | |
607 | ||
608 | ||
609 | ||
610 | ||
611 | OS="${OSTYPE}" | |
612 | ||
613 | if test "x$OS" = "x"; then | |
614 | UNAME=`uname` | |
615 | { echo "configure: error: "The system variable OS has not been set" | |
616 | "please set is everytime befor compiling on this system" | |
617 | "A good example for this system would be:" | |
618 | "setenv OSTYPE $UNAME for csh as a SHELL" | |
619 | "EXPORT OSTYPE=$UNAME for sh as SHELL" | |
620 | "please set this and restart again." | |
621 | " 1>&2; exit 1; } | |
622 | fi | |
623 | ||
624 | ||
625 | WXBASEDIR=`pwd` | |
626 | ||
627 | ||
628 | ||
629 | SEARCH_INCLUDE="\ | |
ebefb2f3 VZ |
630 | /usr/Motif-1.2/include \ |
631 | /usr/Motif-2.1/include \ | |
632 | \ | |
633 | /usr/include/Motif1.2 \ | |
634 | /opt/xpm/include/X11 \ | |
635 | \ | |
bcf1fa6b | 636 | /usr/Motif1.2/include \ |
ebefb2f3 | 637 | /usr/dt/include \ |
db2150a1 | 638 | /usr/include/Xm \ |
c2933500 | 639 | \ |
bcf1fa6b RR |
640 | /usr/X11R6/include \ |
641 | /usr/X11R5/include \ | |
642 | /usr/X11R4/include \ | |
643 | \ | |
76153302 RR |
644 | /usr/X11R6/lib \ |
645 | /usr/X11R5/lib \ | |
646 | /usr/X11R4/lib \ | |
647 | \ | |
bcf1fa6b RR |
648 | /usr/include/X11R6 \ |
649 | /usr/include/X11R5 \ | |
650 | /usr/include/X11R4 \ | |
651 | \ | |
652 | /usr/local/X11R6/include \ | |
653 | /usr/local/X11R5/include \ | |
654 | /usr/local/X11R4/include \ | |
655 | \ | |
656 | /usr/local/include/X11R6 \ | |
657 | /usr/local/include/X11R5 \ | |
658 | /usr/local/include/X11R4 \ | |
659 | \ | |
660 | /usr/X11/include \ | |
661 | /usr/include/X11 \ | |
662 | /usr/local/X11/include \ | |
663 | /usr/local/include/X11 \ | |
664 | \ | |
665 | /usr/X386/include \ | |
666 | /usr/x386/include \ | |
667 | /usr/XFree86/include/X11 \ | |
668 | \ | |
669 | /usr/include \ | |
f3855ef0 RR |
670 | /usr/include/gtk \ |
671 | /usr/include/gdk \ | |
672 | /usr/include/glib \ | |
bcf1fa6b RR |
673 | /usr/local/include \ |
674 | /usr/unsupported/include \ | |
675 | /usr/athena/include \ | |
676 | /usr/local/x11r5/include \ | |
677 | /usr/lpp/Xamples/include \ | |
678 | \ | |
679 | /usr/local/include/gtk \ | |
d18ed59a | 680 | /usr/local/include/qt \ |
bcf1fa6b RR |
681 | /usr/include/qt \ |
682 | \ | |
683 | /usr/openwin/include \ | |
684 | /usr/openwin/share/include \ | |
685 | " | |
686 | ||
ebefb2f3 | 687 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " |
bcf1fa6b RR |
688 | |
689 | ||
690 | ||
691 | # Extract the first word of "gcc", so it can be a program name with args. | |
692 | set dummy gcc; ac_word=$2 | |
693 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d28e1977 | 694 | echo "configure:695: checking for $ac_word" >&5 |
bcf1fa6b RR |
695 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
696 | echo $ac_n "(cached) $ac_c" 1>&6 | |
697 | else | |
698 | if test -n "$CC"; then | |
699 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
700 | else | |
d28e1977 RR |
701 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
702 | for ac_dir in $PATH; do | |
bcf1fa6b RR |
703 | test -z "$ac_dir" && ac_dir=. |
704 | if test -f $ac_dir/$ac_word; then | |
705 | ac_cv_prog_CC="gcc" | |
706 | break | |
707 | fi | |
708 | done | |
709 | IFS="$ac_save_ifs" | |
710 | fi | |
711 | fi | |
712 | CC="$ac_cv_prog_CC" | |
713 | if test -n "$CC"; then | |
714 | echo "$ac_t""$CC" 1>&6 | |
715 | else | |
716 | echo "$ac_t""no" 1>&6 | |
717 | fi | |
718 | ||
719 | if test -z "$CC"; then | |
720 | # Extract the first word of "cc", so it can be a program name with args. | |
721 | set dummy cc; ac_word=$2 | |
722 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d28e1977 | 723 | echo "configure:724: checking for $ac_word" >&5 |
bcf1fa6b RR |
724 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
725 | echo $ac_n "(cached) $ac_c" 1>&6 | |
726 | else | |
727 | if test -n "$CC"; then | |
728 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
729 | else | |
d28e1977 | 730 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
bcf1fa6b | 731 | ac_prog_rejected=no |
d28e1977 | 732 | for ac_dir in $PATH; do |
bcf1fa6b RR |
733 | test -z "$ac_dir" && ac_dir=. |
734 | if test -f $ac_dir/$ac_word; then | |
735 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
736 | ac_prog_rejected=yes | |
737 | continue | |
738 | fi | |
739 | ac_cv_prog_CC="cc" | |
740 | break | |
741 | fi | |
742 | done | |
743 | IFS="$ac_save_ifs" | |
744 | if test $ac_prog_rejected = yes; then | |
745 | # We found a bogon in the path, so make sure we never use it. | |
746 | set dummy $ac_cv_prog_CC | |
747 | shift | |
748 | if test $# -gt 0; then | |
749 | # We chose a different compiler from the bogus one. | |
750 | # However, it has the same basename, so the bogon will be chosen | |
751 | # first if we set CC to just the basename; use the full file name. | |
752 | shift | |
753 | set dummy "$ac_dir/$ac_word" "$@" | |
754 | shift | |
755 | ac_cv_prog_CC="$@" | |
756 | fi | |
757 | fi | |
758 | fi | |
759 | fi | |
760 | CC="$ac_cv_prog_CC" | |
761 | if test -n "$CC"; then | |
762 | echo "$ac_t""$CC" 1>&6 | |
763 | else | |
764 | echo "$ac_t""no" 1>&6 | |
765 | fi | |
766 | ||
767 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
768 | fi | |
769 | ||
770 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
d28e1977 | 771 | echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
bcf1fa6b RR |
772 | |
773 | ac_ext=c | |
774 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
775 | ac_cpp='$CPP $CPPFLAGS' | |
776 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
d28e1977 | 777 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
bcf1fa6b RR |
778 | cross_compiling=$ac_cv_prog_cc_cross |
779 | ||
d28e1977 RR |
780 | cat > conftest.$ac_ext <<EOF |
781 | #line 782 "configure" | |
bcf1fa6b RR |
782 | #include "confdefs.h" |
783 | main(){return(0);} | |
784 | EOF | |
d28e1977 | 785 | if { (eval echo configure:786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
786 | ac_cv_prog_cc_works=yes |
787 | # If we can't run a trivial program, we are probably using a cross compiler. | |
788 | if (./conftest; exit) 2>/dev/null; then | |
789 | ac_cv_prog_cc_cross=no | |
790 | else | |
791 | ac_cv_prog_cc_cross=yes | |
792 | fi | |
793 | else | |
794 | echo "configure: failed program was:" >&5 | |
795 | cat conftest.$ac_ext >&5 | |
796 | ac_cv_prog_cc_works=no | |
797 | fi | |
798 | rm -fr conftest* | |
799 | ||
800 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
801 | if test $ac_cv_prog_cc_works = no; then | |
802 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
803 | fi | |
804 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
d28e1977 | 805 | echo "configure:806: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
bcf1fa6b RR |
806 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
807 | cross_compiling=$ac_cv_prog_cc_cross | |
808 | ||
809 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
d28e1977 | 810 | echo "configure:811: checking whether we are using GNU C" >&5 |
bcf1fa6b RR |
811 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
812 | echo $ac_n "(cached) $ac_c" 1>&6 | |
813 | else | |
814 | cat > conftest.c <<EOF | |
815 | #ifdef __GNUC__ | |
816 | yes; | |
817 | #endif | |
818 | EOF | |
d28e1977 | 819 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
bcf1fa6b RR |
820 | ac_cv_prog_gcc=yes |
821 | else | |
822 | ac_cv_prog_gcc=no | |
823 | fi | |
824 | fi | |
825 | ||
826 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
827 | ||
828 | if test $ac_cv_prog_gcc = yes; then | |
829 | GCC=yes | |
d28e1977 RR |
830 | ac_test_CFLAGS="${CFLAGS+set}" |
831 | ac_save_CFLAGS="$CFLAGS" | |
832 | CFLAGS= | |
833 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
834 | echo "configure:835: checking whether ${CC-cc} accepts -g" >&5 | |
bcf1fa6b RR |
835 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
836 | echo $ac_n "(cached) $ac_c" 1>&6 | |
837 | else | |
838 | echo 'void f(){}' > conftest.c | |
839 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
840 | ac_cv_prog_cc_g=yes | |
841 | else | |
842 | ac_cv_prog_cc_g=no | |
843 | fi | |
844 | rm -f conftest* | |
845 | ||
846 | fi | |
847 | ||
848 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
d28e1977 RR |
849 | if test "$ac_test_CFLAGS" = set; then |
850 | CFLAGS="$ac_save_CFLAGS" | |
851 | elif test $ac_cv_prog_cc_g = yes; then | |
bcf1fa6b RR |
852 | CFLAGS="-g -O2" |
853 | else | |
35a4dab7 | 854 | CFLAGS="-O2" |
35a4dab7 | 855 | fi |
d28e1977 RR |
856 | else |
857 | GCC= | |
858 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
bcf1fa6b RR |
859 | fi |
860 | ||
861 | ||
862 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
863 | ||
864 | if test "x$CC" != xcc; then | |
865 | echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6 | |
d28e1977 | 866 | echo "configure:867: checking whether $CC and cc understand -c and -o together" >&5 |
bcf1fa6b RR |
867 | else |
868 | echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6 | |
d28e1977 | 869 | echo "configure:870: checking whether cc understands -c and -o together" >&5 |
bcf1fa6b RR |
870 | fi |
871 | set dummy $CC; ac_cc="`echo $2 | | |
872 | sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" | |
873 | if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then | |
874 | echo $ac_n "(cached) $ac_c" 1>&6 | |
875 | else | |
876 | echo 'foo(){}' > conftest.c | |
877 | # Make sure it works both with $CC and with simple cc. | |
878 | # We do the test twice because some compilers refuse to overwrite an | |
879 | # existing .o file with -o, though they will create one. | |
880 | ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5' | |
d28e1977 RR |
881 | if { (eval echo configure:882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && |
882 | test -f conftest.o && { (eval echo configure:883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; | |
bcf1fa6b RR |
883 | then |
884 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
885 | if test "x$CC" != xcc; then | |
886 | # Test first that cc exists at all. | |
d28e1977 | 887 | if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
bcf1fa6b | 888 | ac_try='cc -c conftest.c -o conftest.o 1>&5' |
d28e1977 RR |
889 | if { (eval echo configure:890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && |
890 | test -f conftest.o && { (eval echo configure:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; | |
bcf1fa6b RR |
891 | then |
892 | # cc works too. | |
893 | : | |
894 | else | |
895 | # cc exists but doesn't like -o. | |
896 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
897 | fi | |
898 | fi | |
899 | fi | |
900 | else | |
901 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
902 | fi | |
903 | rm -f conftest* | |
904 | ||
905 | fi | |
906 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then | |
907 | echo "$ac_t""yes" 1>&6 | |
908 | else | |
909 | echo "$ac_t""no" 1>&6 | |
910 | cat >> confdefs.h <<\EOF | |
911 | #define NO_MINUS_C_MINUS_O 1 | |
912 | EOF | |
913 | ||
914 | fi | |
915 | ||
916 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
d28e1977 | 917 | echo "configure:918: checking how to run the C preprocessor" >&5 |
bcf1fa6b RR |
918 | # On Suns, sometimes $CPP names a directory. |
919 | if test -n "$CPP" && test -d "$CPP"; then | |
920 | CPP= | |
921 | fi | |
922 | if test -z "$CPP"; then | |
923 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
924 | echo $ac_n "(cached) $ac_c" 1>&6 | |
925 | else | |
926 | # This must be in double quotes, not single quotes, because CPP may get | |
927 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
928 | CPP="${CC-cc} -E" | |
929 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
930 | # not just through cpp. | |
931 | cat > conftest.$ac_ext <<EOF | |
d28e1977 | 932 | #line 933 "configure" |
bcf1fa6b RR |
933 | #include "confdefs.h" |
934 | #include <assert.h> | |
935 | Syntax Error | |
936 | EOF | |
937 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d28e1977 RR |
938 | { (eval echo configure:939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
939 | ac_err=`grep -v '^ *+' conftest.out` | |
bcf1fa6b RR |
940 | if test -z "$ac_err"; then |
941 | : | |
942 | else | |
943 | echo "$ac_err" >&5 | |
944 | echo "configure: failed program was:" >&5 | |
945 | cat conftest.$ac_ext >&5 | |
946 | rm -rf conftest* | |
947 | CPP="${CC-cc} -E -traditional-cpp" | |
948 | cat > conftest.$ac_ext <<EOF | |
d28e1977 | 949 | #line 950 "configure" |
bcf1fa6b RR |
950 | #include "confdefs.h" |
951 | #include <assert.h> | |
952 | Syntax Error | |
953 | EOF | |
954 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d28e1977 RR |
955 | { (eval echo configure:956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
956 | ac_err=`grep -v '^ *+' conftest.out` | |
bcf1fa6b RR |
957 | if test -z "$ac_err"; then |
958 | : | |
959 | else | |
960 | echo "$ac_err" >&5 | |
961 | echo "configure: failed program was:" >&5 | |
962 | cat conftest.$ac_ext >&5 | |
963 | rm -rf conftest* | |
964 | CPP=/lib/cpp | |
965 | fi | |
966 | rm -f conftest* | |
967 | fi | |
968 | rm -f conftest* | |
969 | ac_cv_prog_CPP="$CPP" | |
970 | fi | |
971 | CPP="$ac_cv_prog_CPP" | |
972 | else | |
973 | ac_cv_prog_CPP="$CPP" | |
974 | fi | |
975 | echo "$ac_t""$CPP" 1>&6 | |
976 | ||
977 | if test $ac_cv_prog_gcc = yes; then | |
978 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
d28e1977 | 979 | echo "configure:980: checking whether ${CC-cc} needs -traditional" >&5 |
bcf1fa6b RR |
980 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
981 | echo $ac_n "(cached) $ac_c" 1>&6 | |
982 | else | |
983 | ac_pattern="Autoconf.*'x'" | |
984 | cat > conftest.$ac_ext <<EOF | |
d28e1977 | 985 | #line 986 "configure" |
bcf1fa6b RR |
986 | #include "confdefs.h" |
987 | #include <sgtty.h> | |
988 | Autoconf TIOCGETP | |
989 | EOF | |
990 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
991 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
992 | rm -rf conftest* | |
993 | ac_cv_prog_gcc_traditional=yes | |
994 | else | |
995 | rm -rf conftest* | |
996 | ac_cv_prog_gcc_traditional=no | |
997 | fi | |
998 | rm -f conftest* | |
999 | ||
1000 | ||
1001 | if test $ac_cv_prog_gcc_traditional = no; then | |
1002 | cat > conftest.$ac_ext <<EOF | |
d28e1977 | 1003 | #line 1004 "configure" |
bcf1fa6b RR |
1004 | #include "confdefs.h" |
1005 | #include <termio.h> | |
1006 | Autoconf TCGETA | |
1007 | EOF | |
1008 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1009 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
1010 | rm -rf conftest* | |
1011 | ac_cv_prog_gcc_traditional=yes | |
1012 | fi | |
1013 | rm -f conftest* | |
1014 | ||
1015 | fi | |
1016 | fi | |
1017 | ||
1018 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
1019 | if test $ac_cv_prog_gcc_traditional = yes; then | |
1020 | CC="$CC -traditional" | |
1021 | fi | |
1022 | fi | |
1023 | ||
1024 | ||
1025 | ||
1026 | ||
d28e1977 | 1027 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ |
bcf1fa6b RR |
1028 | do |
1029 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1030 | set dummy $ac_prog; ac_word=$2 | |
1031 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d28e1977 | 1032 | echo "configure:1033: checking for $ac_word" >&5 |
bcf1fa6b RR |
1033 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
1034 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1035 | else | |
1036 | if test -n "$CXX"; then | |
1037 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
1038 | else | |
d28e1977 RR |
1039 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
1040 | for ac_dir in $PATH; do | |
bcf1fa6b RR |
1041 | test -z "$ac_dir" && ac_dir=. |
1042 | if test -f $ac_dir/$ac_word; then | |
1043 | ac_cv_prog_CXX="$ac_prog" | |
1044 | break | |
1045 | fi | |
1046 | done | |
1047 | IFS="$ac_save_ifs" | |
1048 | fi | |
1049 | fi | |
1050 | CXX="$ac_cv_prog_CXX" | |
1051 | if test -n "$CXX"; then | |
1052 | echo "$ac_t""$CXX" 1>&6 | |
1053 | else | |
1054 | echo "$ac_t""no" 1>&6 | |
1055 | fi | |
1056 | ||
1057 | test -n "$CXX" && break | |
1058 | done | |
1059 | test -n "$CXX" || CXX="gcc" | |
1060 | ||
1061 | ||
1062 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
d28e1977 | 1063 | echo "configure:1064: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
bcf1fa6b RR |
1064 | |
1065 | ac_ext=C | |
1066 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1067 | ac_cpp='$CXXCPP $CPPFLAGS' | |
1068 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
d28e1977 | 1069 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
bcf1fa6b RR |
1070 | cross_compiling=$ac_cv_prog_cxx_cross |
1071 | ||
d28e1977 RR |
1072 | cat > conftest.$ac_ext <<EOF |
1073 | #line 1074 "configure" | |
bcf1fa6b | 1074 | #include "confdefs.h" |
d28e1977 | 1075 | main(){return(0);} |
bcf1fa6b | 1076 | EOF |
d28e1977 | 1077 | if { (eval echo configure:1078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
1078 | ac_cv_prog_cxx_works=yes |
1079 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1080 | if (./conftest; exit) 2>/dev/null; then | |
1081 | ac_cv_prog_cxx_cross=no | |
1082 | else | |
1083 | ac_cv_prog_cxx_cross=yes | |
1084 | fi | |
1085 | else | |
1086 | echo "configure: failed program was:" >&5 | |
1087 | cat conftest.$ac_ext >&5 | |
1088 | ac_cv_prog_cxx_works=no | |
1089 | fi | |
1090 | rm -fr conftest* | |
1091 | ac_ext=c | |
1092 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1093 | ac_cpp='$CPP $CPPFLAGS' | |
1094 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
d28e1977 | 1095 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
bcf1fa6b RR |
1096 | cross_compiling=$ac_cv_prog_cc_cross |
1097 | ||
1098 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
1099 | if test $ac_cv_prog_cxx_works = no; then | |
1100 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
1101 | fi | |
1102 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
d28e1977 | 1103 | echo "configure:1104: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
bcf1fa6b RR |
1104 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
1105 | cross_compiling=$ac_cv_prog_cxx_cross | |
1106 | ||
1107 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
d28e1977 | 1108 | echo "configure:1109: checking whether we are using GNU C++" >&5 |
bcf1fa6b RR |
1109 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
1110 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1111 | else | |
1112 | cat > conftest.C <<EOF | |
1113 | #ifdef __GNUC__ | |
1114 | yes; | |
1115 | #endif | |
1116 | EOF | |
d28e1977 | 1117 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
bcf1fa6b RR |
1118 | ac_cv_prog_gxx=yes |
1119 | else | |
1120 | ac_cv_prog_gxx=no | |
1121 | fi | |
1122 | fi | |
1123 | ||
1124 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
1125 | ||
1126 | if test $ac_cv_prog_gxx = yes; then | |
1127 | GXX=yes | |
d28e1977 RR |
1128 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
1129 | ac_save_CXXFLAGS="$CXXFLAGS" | |
1130 | CXXFLAGS= | |
1131 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
1132 | echo "configure:1133: checking whether ${CXX-g++} accepts -g" >&5 | |
bcf1fa6b RR |
1133 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
1134 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1135 | else | |
1136 | echo 'void f(){}' > conftest.cc | |
1137 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
1138 | ac_cv_prog_cxx_g=yes | |
1139 | else | |
1140 | ac_cv_prog_cxx_g=no | |
1141 | fi | |
1142 | rm -f conftest* | |
1143 | ||
1144 | fi | |
1145 | ||
1146 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
d28e1977 RR |
1147 | if test "$ac_test_CXXFLAGS" = set; then |
1148 | CXXFLAGS="$ac_save_CXXFLAGS" | |
1149 | elif test $ac_cv_prog_cxx_g = yes; then | |
bcf1fa6b RR |
1150 | CXXFLAGS="-g -O2" |
1151 | else | |
35a4dab7 | 1152 | CXXFLAGS="-O2" |
35a4dab7 | 1153 | fi |
d28e1977 RR |
1154 | else |
1155 | GXX= | |
1156 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" | |
bcf1fa6b RR |
1157 | fi |
1158 | ||
1159 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
d28e1977 | 1160 | echo "configure:1161: checking how to run the C++ preprocessor" >&5 |
bcf1fa6b RR |
1161 | if test -z "$CXXCPP"; then |
1162 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
1163 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1164 | else | |
1165 | ac_ext=C | |
1166 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1167 | ac_cpp='$CXXCPP $CPPFLAGS' | |
1168 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
d28e1977 | 1169 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
bcf1fa6b RR |
1170 | cross_compiling=$ac_cv_prog_cxx_cross |
1171 | CXXCPP="${CXX-g++} -E" | |
1172 | cat > conftest.$ac_ext <<EOF | |
d28e1977 | 1173 | #line 1174 "configure" |
bcf1fa6b RR |
1174 | #include "confdefs.h" |
1175 | #include <stdlib.h> | |
1176 | EOF | |
1177 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d28e1977 RR |
1178 | { (eval echo configure:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1179 | ac_err=`grep -v '^ *+' conftest.out` | |
bcf1fa6b RR |
1180 | if test -z "$ac_err"; then |
1181 | : | |
1182 | else | |
1183 | echo "$ac_err" >&5 | |
1184 | echo "configure: failed program was:" >&5 | |
1185 | cat conftest.$ac_ext >&5 | |
1186 | rm -rf conftest* | |
1187 | CXXCPP=/lib/cpp | |
1188 | fi | |
1189 | rm -f conftest* | |
1190 | ac_cv_prog_CXXCPP="$CXXCPP" | |
1191 | ac_ext=c | |
1192 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1193 | ac_cpp='$CPP $CPPFLAGS' | |
1194 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
d28e1977 | 1195 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
bcf1fa6b RR |
1196 | cross_compiling=$ac_cv_prog_cc_cross |
1197 | fi | |
1198 | fi | |
1199 | CXXCPP="$ac_cv_prog_CXXCPP" | |
1200 | echo "$ac_t""$CXXCPP" 1>&6 | |
1201 | ||
1202 | ||
1203 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
1204 | ||
1205 | ||
1206 | ||
1207 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1208 | set dummy ranlib; ac_word=$2 | |
1209 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d28e1977 | 1210 | echo "configure:1211: checking for $ac_word" >&5 |
bcf1fa6b RR |
1211 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1212 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1213 | else | |
1214 | if test -n "$RANLIB"; then | |
1215 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1216 | else | |
d28e1977 RR |
1217 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
1218 | for ac_dir in $PATH; do | |
bcf1fa6b RR |
1219 | test -z "$ac_dir" && ac_dir=. |
1220 | if test -f $ac_dir/$ac_word; then | |
1221 | ac_cv_prog_RANLIB="ranlib" | |
1222 | break | |
1223 | fi | |
1224 | done | |
1225 | IFS="$ac_save_ifs" | |
1226 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1227 | fi | |
1228 | fi | |
1229 | RANLIB="$ac_cv_prog_RANLIB" | |
1230 | if test -n "$RANLIB"; then | |
1231 | echo "$ac_t""$RANLIB" 1>&6 | |
1232 | else | |
1233 | echo "$ac_t""no" 1>&6 | |
1234 | fi | |
1235 | ||
1236 | ||
1237 | # Extract the first word of "ar", so it can be a program name with args. | |
1238 | set dummy ar; ac_word=$2 | |
1239 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d28e1977 | 1240 | echo "configure:1241: checking for $ac_word" >&5 |
bcf1fa6b RR |
1241 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
1242 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1243 | else | |
1244 | if test -n "$AR"; then | |
1245 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
1246 | else | |
d28e1977 RR |
1247 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
1248 | for ac_dir in $PATH; do | |
bcf1fa6b RR |
1249 | test -z "$ac_dir" && ac_dir=. |
1250 | if test -f $ac_dir/$ac_word; then | |
1251 | ac_cv_prog_AR="ar" | |
1252 | break | |
1253 | fi | |
1254 | done | |
1255 | IFS="$ac_save_ifs" | |
1256 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
1257 | fi | |
1258 | fi | |
1259 | AR="$ac_cv_prog_AR" | |
1260 | if test -n "$AR"; then | |
1261 | echo "$ac_t""$AR" 1>&6 | |
1262 | else | |
1263 | echo "$ac_t""no" 1>&6 | |
1264 | fi | |
1265 | ||
1266 | ||
1267 | ac_aux_dir= | |
1268 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1269 | if test -f $ac_dir/install-sh; then | |
1270 | ac_aux_dir=$ac_dir | |
1271 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1272 | break | |
1273 | elif test -f $ac_dir/install.sh; then | |
1274 | ac_aux_dir=$ac_dir | |
1275 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1276 | break | |
1277 | fi | |
1278 | done | |
1279 | if test -z "$ac_aux_dir"; then | |
1280 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
1281 | fi | |
1282 | ac_config_guess=$ac_aux_dir/config.guess | |
1283 | ac_config_sub=$ac_aux_dir/config.sub | |
1284 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
1285 | ||
1286 | # Find a good install program. We prefer a C program (faster), | |
1287 | # so one script is as good as another. But avoid the broken or | |
1288 | # incompatible versions: | |
1289 | # SysV /etc/install, /usr/sbin/install | |
1290 | # SunOS /usr/etc/install | |
1291 | # IRIX /sbin/install | |
1292 | # AIX /bin/install | |
1293 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1294 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1295 | # ./install, which can be erroneously created by make from ./install.sh. | |
1296 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
d28e1977 | 1297 | echo "configure:1298: checking for a BSD compatible install" >&5 |
bcf1fa6b RR |
1298 | if test -z "$INSTALL"; then |
1299 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1300 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1301 | else | |
d28e1977 | 1302 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" |
bcf1fa6b RR |
1303 | for ac_dir in $PATH; do |
1304 | # Account for people who put trailing slashes in PATH elements. | |
1305 | case "$ac_dir/" in | |
1306 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1307 | *) | |
1308 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
d28e1977 | 1309 | for ac_prog in ginstall installbsd scoinst install; do |
bcf1fa6b RR |
1310 | if test -f $ac_dir/$ac_prog; then |
1311 | if test $ac_prog = install && | |
1312 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1313 | # AIX install. It has an incompatible calling convention. | |
d28e1977 | 1314 | # OSF/1 installbsd also uses dspmsg, but is usable. |
bcf1fa6b RR |
1315 | : |
1316 | else | |
1317 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1318 | break 2 | |
1319 | fi | |
1320 | fi | |
1321 | done | |
1322 | ;; | |
1323 | esac | |
1324 | done | |
1325 | IFS="$ac_save_IFS" | |
1326 | ||
1327 | fi | |
1328 | if test "${ac_cv_path_install+set}" = set; then | |
1329 | INSTALL="$ac_cv_path_install" | |
1330 | else | |
1331 | # As a last resort, use the slow shell script. We don't cache a | |
1332 | # path for INSTALL within a source directory, because that will | |
1333 | # break other packages using the cache if that directory is | |
1334 | # removed, or if the path is relative. | |
1335 | INSTALL="$ac_install_sh" | |
1336 | fi | |
1337 | fi | |
1338 | echo "$ac_t""$INSTALL" 1>&6 | |
1339 | ||
1340 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1341 | # It thinks the first close brace ends the variable substitution. | |
1342 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1343 | ||
1344 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1345 | ||
1346 | ||
1347 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
d28e1977 | 1348 | echo "configure:1349: checking whether ln -s works" >&5 |
bcf1fa6b RR |
1349 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1350 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1351 | else | |
1352 | rm -f conftestdata | |
1353 | if ln -s X conftestdata 2>/dev/null | |
1354 | then | |
1355 | rm -f conftestdata | |
1356 | ac_cv_prog_LN_S="ln -s" | |
1357 | else | |
1358 | ac_cv_prog_LN_S=ln | |
1359 | fi | |
1360 | fi | |
1361 | LN_S="$ac_cv_prog_LN_S" | |
1362 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1363 | echo "$ac_t""yes" 1>&6 | |
1364 | else | |
1365 | echo "$ac_t""no" 1>&6 | |
1366 | fi | |
1367 | ||
1368 | ||
1369 | for ac_prog in mawk gawk nawk awk | |
1370 | do | |
1371 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1372 | set dummy $ac_prog; ac_word=$2 | |
1373 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d28e1977 | 1374 | echo "configure:1375: checking for $ac_word" >&5 |
bcf1fa6b RR |
1375 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
1376 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1377 | else | |
1378 | if test -n "$AWK"; then | |
1379 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1380 | else | |
d28e1977 RR |
1381 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
1382 | for ac_dir in $PATH; do | |
bcf1fa6b RR |
1383 | test -z "$ac_dir" && ac_dir=. |
1384 | if test -f $ac_dir/$ac_word; then | |
1385 | ac_cv_prog_AWK="$ac_prog" | |
1386 | break | |
1387 | fi | |
1388 | done | |
1389 | IFS="$ac_save_ifs" | |
1390 | fi | |
1391 | fi | |
1392 | AWK="$ac_cv_prog_AWK" | |
1393 | if test -n "$AWK"; then | |
1394 | echo "$ac_t""$AWK" 1>&6 | |
1395 | else | |
1396 | echo "$ac_t""no" 1>&6 | |
1397 | fi | |
1398 | ||
1399 | test -n "$AWK" && break | |
1400 | done | |
1401 | ||
1402 | ||
5f0f31fe VZ |
1403 | # Extract the first word of "strip", so it can be a program name with args. |
1404 | set dummy strip; ac_word=$2 | |
1405 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1406 | echo "configure:1407: checking for $ac_word" >&5 | |
1407 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | |
1408 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1409 | else | |
1410 | if test -n "$STRIP"; then | |
1411 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1412 | else | |
1413 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1414 | for ac_dir in $PATH; do | |
1415 | test -z "$ac_dir" && ac_dir=. | |
1416 | if test -f $ac_dir/$ac_word; then | |
1417 | ac_cv_prog_STRIP="strip" | |
1418 | break | |
1419 | fi | |
1420 | done | |
1421 | IFS="$ac_save_ifs" | |
1422 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
1423 | fi | |
1424 | fi | |
1425 | STRIP="$ac_cv_prog_STRIP" | |
1426 | if test -n "$STRIP"; then | |
1427 | echo "$ac_t""$STRIP" 1>&6 | |
1428 | else | |
1429 | echo "$ac_t""no" 1>&6 | |
1430 | fi | |
1431 | ||
1432 | ||
bcf1fa6b | 1433 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 |
5f0f31fe | 1434 | echo "configure:1435: checking "make for VPATH support"" >&5 |
bcf1fa6b RR |
1435 | cat - << EOF > confMake |
1436 | check : file | |
1437 | cp \$? \$@ | |
1438 | cp \$? final_file | |
1439 | EOF | |
1440 | ||
1441 | if test ! -d sub ; then | |
1442 | mkdir sub | |
1443 | fi | |
1444 | echo dummy > sub/file | |
1445 | ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null | |
1446 | RESULT=$? | |
851b9459 | 1447 | rm -f sub/file check final_file confMake |
c2933500 | 1448 | rmdir sub |
bcf1fa6b RR |
1449 | if test "$RESULT" = 0; then |
1450 | echo "$ac_t""yes" 1>&6 | |
1451 | else | |
1452 | echo "$ac_t""no" 1>&6 | |
1453 | { echo "configure: error: You need a make-utility that is able to use the variable | |
1454 | VPATH correctly. | |
c2933500 | 1455 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } |
bcf1fa6b RR |
1456 | fi |
1457 | ||
1458 | ||
1459 | # If we find X, set shell vars x_includes and x_libraries to the | |
1460 | # paths, otherwise set no_x=yes. | |
1461 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
1462 | # --without-x overrides everything else, but does not touch the cache. | |
1463 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
5f0f31fe | 1464 | echo "configure:1465: checking for X" >&5 |
bcf1fa6b RR |
1465 | |
1466 | # Check whether --with-x or --without-x was given. | |
1467 | if test "${with_x+set}" = set; then | |
1468 | withval="$with_x" | |
1469 | : | |
1470 | fi | |
1471 | ||
1472 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
1473 | if test "x$with_x" = xno; then | |
1474 | # The user explicitly disabled X. | |
1475 | have_x=disabled | |
1476 | else | |
1477 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
1478 | # Both variables are already set. | |
1479 | have_x=yes | |
1480 | else | |
1481 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
1482 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1483 | else | |
1484 | # One or both of the vars are not set, and there is no cached value. | |
1485 | ac_x_includes=NO ac_x_libraries=NO | |
1486 | rm -fr conftestdir | |
1487 | if mkdir conftestdir; then | |
1488 | cd conftestdir | |
1489 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
1490 | cat > Imakefile <<'EOF' | |
1491 | acfindx: | |
1492 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
1493 | EOF | |
1494 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
1495 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1496 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
1497 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
1498 | for ac_extension in a so sl; do | |
1499 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
1500 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
1501 | ac_im_usrlibdir=$ac_im_libdir; break | |
1502 | fi | |
1503 | done | |
1504 | # Screen out bogus values from the imake configuration. They are | |
1505 | # bogus both because they are the default anyway, and because | |
1506 | # using them would break gcc on systems where it needs fixed includes. | |
1507 | case "$ac_im_incroot" in | |
1508 | /usr/include) ;; | |
1509 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
1510 | esac | |
1511 | case "$ac_im_usrlibdir" in | |
1512 | /usr/lib | /lib) ;; | |
1513 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
1514 | esac | |
1515 | fi | |
1516 | cd .. | |
1517 | rm -fr conftestdir | |
1518 | fi | |
1519 | ||
1520 | if test "$ac_x_includes" = NO; then | |
1521 | # Guess where to find include files, by looking for this one X11 .h file. | |
1522 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
1523 | ||
1524 | # First, try using that file with no special directory specified. | |
1525 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 1526 | #line 1527 "configure" |
bcf1fa6b RR |
1527 | #include "confdefs.h" |
1528 | #include <$x_direct_test_include> | |
1529 | EOF | |
1530 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5f0f31fe | 1531 | { (eval echo configure:1532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d28e1977 | 1532 | ac_err=`grep -v '^ *+' conftest.out` |
bcf1fa6b RR |
1533 | if test -z "$ac_err"; then |
1534 | rm -rf conftest* | |
1535 | # We can compile using X headers with no special include directory. | |
1536 | ac_x_includes= | |
1537 | else | |
1538 | echo "$ac_err" >&5 | |
1539 | echo "configure: failed program was:" >&5 | |
1540 | cat conftest.$ac_ext >&5 | |
1541 | rm -rf conftest* | |
1542 | # Look for the header file in a standard set of common directories. | |
1543 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
1544 | for ac_dir in \ | |
1545 | /usr/X11/include \ | |
1546 | /usr/X11R6/include \ | |
1547 | /usr/X11R5/include \ | |
1548 | /usr/X11R4/include \ | |
1549 | \ | |
1550 | /usr/include/X11 \ | |
1551 | /usr/include/X11R6 \ | |
1552 | /usr/include/X11R5 \ | |
1553 | /usr/include/X11R4 \ | |
1554 | \ | |
1555 | /usr/local/X11/include \ | |
1556 | /usr/local/X11R6/include \ | |
1557 | /usr/local/X11R5/include \ | |
1558 | /usr/local/X11R4/include \ | |
1559 | \ | |
1560 | /usr/local/include/X11 \ | |
1561 | /usr/local/include/X11R6 \ | |
1562 | /usr/local/include/X11R5 \ | |
1563 | /usr/local/include/X11R4 \ | |
1564 | \ | |
1565 | /usr/X386/include \ | |
1566 | /usr/x386/include \ | |
1567 | /usr/XFree86/include/X11 \ | |
1568 | \ | |
1569 | /usr/include \ | |
1570 | /usr/local/include \ | |
1571 | /usr/unsupported/include \ | |
1572 | /usr/athena/include \ | |
1573 | /usr/local/x11r5/include \ | |
1574 | /usr/lpp/Xamples/include \ | |
1575 | \ | |
1576 | /usr/openwin/include \ | |
1577 | /usr/openwin/share/include \ | |
1578 | ; \ | |
1579 | do | |
1580 | if test -r "$ac_dir/$x_direct_test_include"; then | |
1581 | ac_x_includes=$ac_dir | |
1582 | break | |
1583 | fi | |
1584 | done | |
1585 | fi | |
1586 | rm -f conftest* | |
1587 | fi # $ac_x_includes = NO | |
1588 | ||
1589 | if test "$ac_x_libraries" = NO; then | |
1590 | # Check for the libraries. | |
1591 | ||
1592 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
1593 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
1594 | ||
1595 | # See if we find them without any special options. | |
1596 | # Don't add to $LIBS permanently. | |
1597 | ac_save_LIBS="$LIBS" | |
1598 | LIBS="-l$x_direct_test_library $LIBS" | |
1599 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 1600 | #line 1601 "configure" |
bcf1fa6b RR |
1601 | #include "confdefs.h" |
1602 | ||
1603 | int main() { | |
1604 | ${x_direct_test_function}() | |
1605 | ; return 0; } | |
1606 | EOF | |
5f0f31fe | 1607 | if { (eval echo configure:1608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
1608 | rm -rf conftest* |
1609 | LIBS="$ac_save_LIBS" | |
1610 | # We can link X programs with no special library path. | |
1611 | ac_x_libraries= | |
1612 | else | |
1613 | echo "configure: failed program was:" >&5 | |
1614 | cat conftest.$ac_ext >&5 | |
1615 | rm -rf conftest* | |
1616 | LIBS="$ac_save_LIBS" | |
1617 | # First see if replacing the include by lib works. | |
1618 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
1619 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
1620 | /usr/X11/lib \ | |
1621 | /usr/X11R6/lib \ | |
1622 | /usr/X11R5/lib \ | |
1623 | /usr/X11R4/lib \ | |
1624 | \ | |
1625 | /usr/lib/X11 \ | |
1626 | /usr/lib/X11R6 \ | |
1627 | /usr/lib/X11R5 \ | |
1628 | /usr/lib/X11R4 \ | |
1629 | \ | |
1630 | /usr/local/X11/lib \ | |
1631 | /usr/local/X11R6/lib \ | |
1632 | /usr/local/X11R5/lib \ | |
1633 | /usr/local/X11R4/lib \ | |
1634 | \ | |
1635 | /usr/local/lib/X11 \ | |
1636 | /usr/local/lib/X11R6 \ | |
1637 | /usr/local/lib/X11R5 \ | |
1638 | /usr/local/lib/X11R4 \ | |
1639 | \ | |
1640 | /usr/X386/lib \ | |
1641 | /usr/x386/lib \ | |
1642 | /usr/XFree86/lib/X11 \ | |
1643 | \ | |
1644 | /usr/lib \ | |
1645 | /usr/local/lib \ | |
1646 | /usr/unsupported/lib \ | |
1647 | /usr/athena/lib \ | |
1648 | /usr/local/x11r5/lib \ | |
1649 | /usr/lpp/Xamples/lib \ | |
1650 | /lib/usr/lib/X11 \ | |
1651 | \ | |
1652 | /usr/openwin/lib \ | |
1653 | /usr/openwin/share/lib \ | |
1654 | ; \ | |
1655 | do | |
1656 | for ac_extension in a so sl; do | |
1657 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
1658 | ac_x_libraries=$ac_dir | |
1659 | break 2 | |
1660 | fi | |
1661 | done | |
1662 | done | |
1663 | fi | |
1664 | rm -f conftest* | |
1665 | fi # $ac_x_libraries = NO | |
1666 | ||
1667 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
1668 | # Didn't find X anywhere. Cache the known absence of X. | |
1669 | ac_cv_have_x="have_x=no" | |
1670 | else | |
1671 | # Record where we found X for the cache. | |
1672 | ac_cv_have_x="have_x=yes \ | |
1673 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
1674 | fi | |
1675 | fi | |
1676 | fi | |
1677 | eval "$ac_cv_have_x" | |
1678 | fi # $with_x != no | |
1679 | ||
1680 | if test "$have_x" != yes; then | |
1681 | echo "$ac_t""$have_x" 1>&6 | |
1682 | no_x=yes | |
1683 | else | |
1684 | # If each of the values was on the command line, it overrides each guess. | |
1685 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
1686 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
1687 | # Update the cache value to reflect the command line values. | |
1688 | ac_cv_have_x="have_x=yes \ | |
1689 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
1690 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
1691 | fi | |
1692 | ||
1693 | if test "$no_x" = yes; then | |
1694 | # Not all programs may use this symbol, but it does not hurt to define it. | |
1695 | cat >> confdefs.h <<\EOF | |
1696 | #define X_DISPLAY_MISSING 1 | |
1697 | EOF | |
1698 | ||
1699 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
1700 | else | |
1701 | if test -n "$x_includes"; then | |
1702 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
1703 | fi | |
1704 | ||
1705 | # It would also be nice to do this for all -L options, not just this one. | |
1706 | if test -n "$x_libraries"; then | |
1707 | X_LIBS="$X_LIBS -L$x_libraries" | |
1708 | # For Solaris; some versions of Sun CC require a space after -R and | |
1709 | # others require no space. Words are not sufficient . . . . | |
1710 | case "`(uname -sr) 2>/dev/null`" in | |
1711 | "SunOS 5"*) | |
1712 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
5f0f31fe | 1713 | echo "configure:1714: checking whether -R must be followed by a space" >&5 |
bcf1fa6b RR |
1714 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
1715 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 1716 | #line 1717 "configure" |
bcf1fa6b RR |
1717 | #include "confdefs.h" |
1718 | ||
1719 | int main() { | |
1720 | ||
1721 | ; return 0; } | |
1722 | EOF | |
5f0f31fe | 1723 | if { (eval echo configure:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
1724 | rm -rf conftest* |
1725 | ac_R_nospace=yes | |
1726 | else | |
1727 | echo "configure: failed program was:" >&5 | |
1728 | cat conftest.$ac_ext >&5 | |
1729 | rm -rf conftest* | |
1730 | ac_R_nospace=no | |
1731 | fi | |
1732 | rm -f conftest* | |
1733 | if test $ac_R_nospace = yes; then | |
1734 | echo "$ac_t""no" 1>&6 | |
1735 | X_LIBS="$X_LIBS -R$x_libraries" | |
1736 | else | |
1737 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
1738 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 1739 | #line 1740 "configure" |
bcf1fa6b RR |
1740 | #include "confdefs.h" |
1741 | ||
1742 | int main() { | |
1743 | ||
1744 | ; return 0; } | |
1745 | EOF | |
5f0f31fe | 1746 | if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
1747 | rm -rf conftest* |
1748 | ac_R_space=yes | |
1749 | else | |
1750 | echo "configure: failed program was:" >&5 | |
1751 | cat conftest.$ac_ext >&5 | |
1752 | rm -rf conftest* | |
1753 | ac_R_space=no | |
1754 | fi | |
1755 | rm -f conftest* | |
1756 | if test $ac_R_space = yes; then | |
1757 | echo "$ac_t""yes" 1>&6 | |
1758 | X_LIBS="$X_LIBS -R $x_libraries" | |
1759 | else | |
1760 | echo "$ac_t""neither works" 1>&6 | |
1761 | fi | |
1762 | fi | |
1763 | LIBS="$ac_xsave_LIBS" | |
1764 | esac | |
1765 | fi | |
1766 | ||
1767 | # Check for system-dependent libraries X programs must link with. | |
1768 | # Do this before checking for the system-independent R6 libraries | |
1769 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
1770 | ||
1771 | if test "$ISC" = yes; then | |
1772 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
1773 | else | |
1774 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
1775 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
1776 | # the Alpha needs dnet_stub (dnet does not exist). | |
1777 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
5f0f31fe | 1778 | echo "configure:1779: checking for dnet_ntoa in -ldnet" >&5 |
bcf1fa6b RR |
1779 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
1780 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1781 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1782 | else | |
1783 | ac_save_LIBS="$LIBS" | |
1784 | LIBS="-ldnet $LIBS" | |
1785 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 1786 | #line 1787 "configure" |
bcf1fa6b RR |
1787 | #include "confdefs.h" |
1788 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1789 | /* We use char because int might match the return type of a gcc2 | |
1790 | builtin and then its argument prototype would still apply. */ | |
1791 | char dnet_ntoa(); | |
1792 | ||
1793 | int main() { | |
1794 | dnet_ntoa() | |
1795 | ; return 0; } | |
1796 | EOF | |
5f0f31fe | 1797 | if { (eval echo configure:1798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
1798 | rm -rf conftest* |
1799 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1800 | else | |
1801 | echo "configure: failed program was:" >&5 | |
1802 | cat conftest.$ac_ext >&5 | |
1803 | rm -rf conftest* | |
1804 | eval "ac_cv_lib_$ac_lib_var=no" | |
1805 | fi | |
1806 | rm -f conftest* | |
1807 | LIBS="$ac_save_LIBS" | |
1808 | ||
1809 | fi | |
1810 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1811 | echo "$ac_t""yes" 1>&6 | |
1812 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
1813 | else | |
1814 | echo "$ac_t""no" 1>&6 | |
1815 | fi | |
1816 | ||
1817 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
1818 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
5f0f31fe | 1819 | echo "configure:1820: checking for dnet_ntoa in -ldnet_stub" >&5 |
bcf1fa6b RR |
1820 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
1821 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1822 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1823 | else | |
1824 | ac_save_LIBS="$LIBS" | |
1825 | LIBS="-ldnet_stub $LIBS" | |
1826 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 1827 | #line 1828 "configure" |
bcf1fa6b RR |
1828 | #include "confdefs.h" |
1829 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1830 | /* We use char because int might match the return type of a gcc2 | |
1831 | builtin and then its argument prototype would still apply. */ | |
1832 | char dnet_ntoa(); | |
1833 | ||
1834 | int main() { | |
1835 | dnet_ntoa() | |
1836 | ; return 0; } | |
1837 | EOF | |
5f0f31fe | 1838 | if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
1839 | rm -rf conftest* |
1840 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1841 | else | |
1842 | echo "configure: failed program was:" >&5 | |
1843 | cat conftest.$ac_ext >&5 | |
1844 | rm -rf conftest* | |
1845 | eval "ac_cv_lib_$ac_lib_var=no" | |
1846 | fi | |
1847 | rm -f conftest* | |
1848 | LIBS="$ac_save_LIBS" | |
1849 | ||
1850 | fi | |
1851 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1852 | echo "$ac_t""yes" 1>&6 | |
1853 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
1854 | else | |
1855 | echo "$ac_t""no" 1>&6 | |
1856 | fi | |
1857 | ||
1858 | fi | |
1859 | ||
1860 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
1861 | # to get the SysV transport functions. | |
1862 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
1863 | # needs -lnsl. | |
1864 | # The nsl library prevents programs from opening the X display | |
1865 | # on Irix 5.2, according to dickey@clark.net. | |
1866 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
5f0f31fe | 1867 | echo "configure:1868: checking for gethostbyname" >&5 |
bcf1fa6b RR |
1868 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
1869 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1870 | else | |
1871 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 1872 | #line 1873 "configure" |
bcf1fa6b RR |
1873 | #include "confdefs.h" |
1874 | /* System header to define __stub macros and hopefully few prototypes, | |
1875 | which can conflict with char gethostbyname(); below. */ | |
1876 | #include <assert.h> | |
1877 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1878 | /* We use char because int might match the return type of a gcc2 | |
1879 | builtin and then its argument prototype would still apply. */ | |
1880 | char gethostbyname(); | |
1881 | ||
1882 | int main() { | |
1883 | ||
1884 | /* The GNU C library defines this for functions which it implements | |
1885 | to always fail with ENOSYS. Some functions are actually named | |
1886 | something starting with __ and the normal name is an alias. */ | |
1887 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
1888 | choke me | |
1889 | #else | |
1890 | gethostbyname(); | |
1891 | #endif | |
1892 | ||
1893 | ; return 0; } | |
1894 | EOF | |
5f0f31fe | 1895 | if { (eval echo configure:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
1896 | rm -rf conftest* |
1897 | eval "ac_cv_func_gethostbyname=yes" | |
1898 | else | |
1899 | echo "configure: failed program was:" >&5 | |
1900 | cat conftest.$ac_ext >&5 | |
1901 | rm -rf conftest* | |
1902 | eval "ac_cv_func_gethostbyname=no" | |
1903 | fi | |
1904 | rm -f conftest* | |
1905 | fi | |
1906 | ||
1907 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
1908 | echo "$ac_t""yes" 1>&6 | |
1909 | : | |
1910 | else | |
1911 | echo "$ac_t""no" 1>&6 | |
1912 | fi | |
1913 | ||
1914 | if test $ac_cv_func_gethostbyname = no; then | |
1915 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
5f0f31fe | 1916 | echo "configure:1917: checking for gethostbyname in -lnsl" >&5 |
bcf1fa6b RR |
1917 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
1918 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1919 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1920 | else | |
1921 | ac_save_LIBS="$LIBS" | |
1922 | LIBS="-lnsl $LIBS" | |
1923 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 1924 | #line 1925 "configure" |
bcf1fa6b RR |
1925 | #include "confdefs.h" |
1926 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1927 | /* We use char because int might match the return type of a gcc2 | |
1928 | builtin and then its argument prototype would still apply. */ | |
1929 | char gethostbyname(); | |
1930 | ||
1931 | int main() { | |
1932 | gethostbyname() | |
1933 | ; return 0; } | |
1934 | EOF | |
5f0f31fe | 1935 | if { (eval echo configure:1936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
1936 | rm -rf conftest* |
1937 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1938 | else | |
1939 | echo "configure: failed program was:" >&5 | |
1940 | cat conftest.$ac_ext >&5 | |
1941 | rm -rf conftest* | |
1942 | eval "ac_cv_lib_$ac_lib_var=no" | |
1943 | fi | |
1944 | rm -f conftest* | |
1945 | LIBS="$ac_save_LIBS" | |
1946 | ||
1947 | fi | |
1948 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1949 | echo "$ac_t""yes" 1>&6 | |
1950 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
1951 | else | |
1952 | echo "$ac_t""no" 1>&6 | |
1953 | fi | |
1954 | ||
1955 | fi | |
1956 | ||
1957 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
1958 | # socket/setsockopt and other routines are undefined under SCO ODT | |
1959 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
1960 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
1961 | # gethostby* variants that don't use the nameserver (or something). | |
1962 | # -lsocket must be given before -lnsl if both are needed. | |
1963 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
1964 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
5f0f31fe | 1965 | echo "configure:1966: checking for connect" >&5 |
bcf1fa6b RR |
1966 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
1967 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1968 | else | |
1969 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 1970 | #line 1971 "configure" |
bcf1fa6b RR |
1971 | #include "confdefs.h" |
1972 | /* System header to define __stub macros and hopefully few prototypes, | |
1973 | which can conflict with char connect(); below. */ | |
1974 | #include <assert.h> | |
1975 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1976 | /* We use char because int might match the return type of a gcc2 | |
1977 | builtin and then its argument prototype would still apply. */ | |
1978 | char connect(); | |
1979 | ||
1980 | int main() { | |
1981 | ||
1982 | /* The GNU C library defines this for functions which it implements | |
1983 | to always fail with ENOSYS. Some functions are actually named | |
1984 | something starting with __ and the normal name is an alias. */ | |
1985 | #if defined (__stub_connect) || defined (__stub___connect) | |
1986 | choke me | |
1987 | #else | |
1988 | connect(); | |
1989 | #endif | |
1990 | ||
1991 | ; return 0; } | |
1992 | EOF | |
5f0f31fe | 1993 | if { (eval echo configure:1994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
1994 | rm -rf conftest* |
1995 | eval "ac_cv_func_connect=yes" | |
1996 | else | |
1997 | echo "configure: failed program was:" >&5 | |
1998 | cat conftest.$ac_ext >&5 | |
1999 | rm -rf conftest* | |
2000 | eval "ac_cv_func_connect=no" | |
2001 | fi | |
2002 | rm -f conftest* | |
2003 | fi | |
2004 | ||
2005 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
2006 | echo "$ac_t""yes" 1>&6 | |
2007 | : | |
2008 | else | |
2009 | echo "$ac_t""no" 1>&6 | |
2010 | fi | |
2011 | ||
2012 | if test $ac_cv_func_connect = no; then | |
2013 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
5f0f31fe | 2014 | echo "configure:2015: checking for connect in -lsocket" >&5 |
bcf1fa6b RR |
2015 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
2016 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2017 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2018 | else | |
2019 | ac_save_LIBS="$LIBS" | |
2020 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
2021 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2022 | #line 2023 "configure" |
bcf1fa6b RR |
2023 | #include "confdefs.h" |
2024 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2025 | /* We use char because int might match the return type of a gcc2 | |
2026 | builtin and then its argument prototype would still apply. */ | |
2027 | char connect(); | |
2028 | ||
2029 | int main() { | |
2030 | connect() | |
2031 | ; return 0; } | |
2032 | EOF | |
5f0f31fe | 2033 | if { (eval echo configure:2034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
2034 | rm -rf conftest* |
2035 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2036 | else | |
2037 | echo "configure: failed program was:" >&5 | |
2038 | cat conftest.$ac_ext >&5 | |
2039 | rm -rf conftest* | |
2040 | eval "ac_cv_lib_$ac_lib_var=no" | |
2041 | fi | |
2042 | rm -f conftest* | |
2043 | LIBS="$ac_save_LIBS" | |
2044 | ||
2045 | fi | |
2046 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2047 | echo "$ac_t""yes" 1>&6 | |
2048 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
2049 | else | |
2050 | echo "$ac_t""no" 1>&6 | |
2051 | fi | |
2052 | ||
2053 | fi | |
2054 | ||
2055 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
2056 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
5f0f31fe | 2057 | echo "configure:2058: checking for remove" >&5 |
bcf1fa6b RR |
2058 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
2059 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2060 | else | |
2061 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2062 | #line 2063 "configure" |
bcf1fa6b RR |
2063 | #include "confdefs.h" |
2064 | /* System header to define __stub macros and hopefully few prototypes, | |
2065 | which can conflict with char remove(); below. */ | |
2066 | #include <assert.h> | |
2067 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2068 | /* We use char because int might match the return type of a gcc2 | |
2069 | builtin and then its argument prototype would still apply. */ | |
2070 | char remove(); | |
2071 | ||
2072 | int main() { | |
2073 | ||
2074 | /* The GNU C library defines this for functions which it implements | |
2075 | to always fail with ENOSYS. Some functions are actually named | |
2076 | something starting with __ and the normal name is an alias. */ | |
2077 | #if defined (__stub_remove) || defined (__stub___remove) | |
2078 | choke me | |
2079 | #else | |
2080 | remove(); | |
2081 | #endif | |
2082 | ||
2083 | ; return 0; } | |
2084 | EOF | |
5f0f31fe | 2085 | if { (eval echo configure:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
2086 | rm -rf conftest* |
2087 | eval "ac_cv_func_remove=yes" | |
2088 | else | |
2089 | echo "configure: failed program was:" >&5 | |
2090 | cat conftest.$ac_ext >&5 | |
2091 | rm -rf conftest* | |
2092 | eval "ac_cv_func_remove=no" | |
2093 | fi | |
2094 | rm -f conftest* | |
2095 | fi | |
2096 | ||
2097 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
2098 | echo "$ac_t""yes" 1>&6 | |
2099 | : | |
2100 | else | |
2101 | echo "$ac_t""no" 1>&6 | |
2102 | fi | |
2103 | ||
2104 | if test $ac_cv_func_remove = no; then | |
2105 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
5f0f31fe | 2106 | echo "configure:2107: checking for remove in -lposix" >&5 |
bcf1fa6b RR |
2107 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
2108 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2109 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2110 | else | |
2111 | ac_save_LIBS="$LIBS" | |
2112 | LIBS="-lposix $LIBS" | |
2113 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2114 | #line 2115 "configure" |
bcf1fa6b RR |
2115 | #include "confdefs.h" |
2116 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2117 | /* We use char because int might match the return type of a gcc2 | |
2118 | builtin and then its argument prototype would still apply. */ | |
2119 | char remove(); | |
2120 | ||
2121 | int main() { | |
2122 | remove() | |
2123 | ; return 0; } | |
2124 | EOF | |
5f0f31fe | 2125 | if { (eval echo configure:2126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
2126 | rm -rf conftest* |
2127 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2128 | else | |
2129 | echo "configure: failed program was:" >&5 | |
2130 | cat conftest.$ac_ext >&5 | |
2131 | rm -rf conftest* | |
2132 | eval "ac_cv_lib_$ac_lib_var=no" | |
2133 | fi | |
2134 | rm -f conftest* | |
2135 | LIBS="$ac_save_LIBS" | |
2136 | ||
2137 | fi | |
2138 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2139 | echo "$ac_t""yes" 1>&6 | |
2140 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
2141 | else | |
2142 | echo "$ac_t""no" 1>&6 | |
2143 | fi | |
2144 | ||
2145 | fi | |
2146 | ||
2147 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
2148 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
5f0f31fe | 2149 | echo "configure:2150: checking for shmat" >&5 |
bcf1fa6b RR |
2150 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
2151 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2152 | else | |
2153 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2154 | #line 2155 "configure" |
bcf1fa6b RR |
2155 | #include "confdefs.h" |
2156 | /* System header to define __stub macros and hopefully few prototypes, | |
2157 | which can conflict with char shmat(); below. */ | |
2158 | #include <assert.h> | |
2159 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2160 | /* We use char because int might match the return type of a gcc2 | |
2161 | builtin and then its argument prototype would still apply. */ | |
2162 | char shmat(); | |
2163 | ||
2164 | int main() { | |
2165 | ||
2166 | /* The GNU C library defines this for functions which it implements | |
2167 | to always fail with ENOSYS. Some functions are actually named | |
2168 | something starting with __ and the normal name is an alias. */ | |
2169 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
2170 | choke me | |
2171 | #else | |
2172 | shmat(); | |
2173 | #endif | |
2174 | ||
2175 | ; return 0; } | |
2176 | EOF | |
5f0f31fe | 2177 | if { (eval echo configure:2178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
2178 | rm -rf conftest* |
2179 | eval "ac_cv_func_shmat=yes" | |
2180 | else | |
2181 | echo "configure: failed program was:" >&5 | |
2182 | cat conftest.$ac_ext >&5 | |
2183 | rm -rf conftest* | |
2184 | eval "ac_cv_func_shmat=no" | |
2185 | fi | |
2186 | rm -f conftest* | |
2187 | fi | |
2188 | ||
2189 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
2190 | echo "$ac_t""yes" 1>&6 | |
2191 | : | |
2192 | else | |
2193 | echo "$ac_t""no" 1>&6 | |
2194 | fi | |
2195 | ||
2196 | if test $ac_cv_func_shmat = no; then | |
2197 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
5f0f31fe | 2198 | echo "configure:2199: checking for shmat in -lipc" >&5 |
bcf1fa6b RR |
2199 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
2200 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2201 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2202 | else | |
2203 | ac_save_LIBS="$LIBS" | |
2204 | LIBS="-lipc $LIBS" | |
2205 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2206 | #line 2207 "configure" |
bcf1fa6b RR |
2207 | #include "confdefs.h" |
2208 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2209 | /* We use char because int might match the return type of a gcc2 | |
2210 | builtin and then its argument prototype would still apply. */ | |
2211 | char shmat(); | |
2212 | ||
2213 | int main() { | |
2214 | shmat() | |
2215 | ; return 0; } | |
2216 | EOF | |
5f0f31fe | 2217 | if { (eval echo configure:2218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
2218 | rm -rf conftest* |
2219 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2220 | else | |
2221 | echo "configure: failed program was:" >&5 | |
2222 | cat conftest.$ac_ext >&5 | |
2223 | rm -rf conftest* | |
2224 | eval "ac_cv_lib_$ac_lib_var=no" | |
2225 | fi | |
2226 | rm -f conftest* | |
2227 | LIBS="$ac_save_LIBS" | |
2228 | ||
2229 | fi | |
2230 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2231 | echo "$ac_t""yes" 1>&6 | |
2232 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
2233 | else | |
2234 | echo "$ac_t""no" 1>&6 | |
2235 | fi | |
2236 | ||
2237 | fi | |
2238 | fi | |
2239 | ||
2240 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
2241 | ac_save_LDFLAGS="$LDFLAGS" | |
2242 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
2243 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
2244 | # check for ICE first), but we must link in the order -lSM -lICE or | |
2245 | # we get undefined symbols. So assume we have SM if we have ICE. | |
2246 | # These have to be linked with before -lX11, unlike the other | |
2247 | # libraries we check for below, so use a different variable. | |
2248 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
2249 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
5f0f31fe | 2250 | echo "configure:2251: checking for IceConnectionNumber in -lICE" >&5 |
bcf1fa6b RR |
2251 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
2252 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2253 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2254 | else | |
2255 | ac_save_LIBS="$LIBS" | |
d28e1977 | 2256 | LIBS="-lICE $LIBS" |
bcf1fa6b | 2257 | cat > conftest.$ac_ext <<EOF |
5f0f31fe | 2258 | #line 2259 "configure" |
bcf1fa6b RR |
2259 | #include "confdefs.h" |
2260 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2261 | /* We use char because int might match the return type of a gcc2 | |
2262 | builtin and then its argument prototype would still apply. */ | |
2263 | char IceConnectionNumber(); | |
2264 | ||
2265 | int main() { | |
2266 | IceConnectionNumber() | |
2267 | ; return 0; } | |
2268 | EOF | |
5f0f31fe | 2269 | if { (eval echo configure:2270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
2270 | rm -rf conftest* |
2271 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2272 | else | |
2273 | echo "configure: failed program was:" >&5 | |
2274 | cat conftest.$ac_ext >&5 | |
2275 | rm -rf conftest* | |
2276 | eval "ac_cv_lib_$ac_lib_var=no" | |
2277 | fi | |
2278 | rm -f conftest* | |
2279 | LIBS="$ac_save_LIBS" | |
2280 | ||
2281 | fi | |
2282 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2283 | echo "$ac_t""yes" 1>&6 | |
2284 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
2285 | else | |
2286 | echo "$ac_t""no" 1>&6 | |
2287 | fi | |
2288 | ||
2289 | LDFLAGS="$ac_save_LDFLAGS" | |
2290 | ||
2291 | fi | |
2292 | ||
2293 | ||
2294 | ac_header_dirent=no | |
2295 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h | |
2296 | do | |
2297 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2298 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 | |
5f0f31fe | 2299 | echo "configure:2300: checking for $ac_hdr that defines DIR" >&5 |
bcf1fa6b RR |
2300 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
2301 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2302 | else | |
2303 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2304 | #line 2305 "configure" |
bcf1fa6b RR |
2305 | #include "confdefs.h" |
2306 | #include <sys/types.h> | |
2307 | #include <$ac_hdr> | |
2308 | int main() { | |
2309 | DIR *dirp = 0; | |
2310 | ; return 0; } | |
2311 | EOF | |
5f0f31fe | 2312 | if { (eval echo configure:2313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
bcf1fa6b RR |
2313 | rm -rf conftest* |
2314 | eval "ac_cv_header_dirent_$ac_safe=yes" | |
2315 | else | |
2316 | echo "configure: failed program was:" >&5 | |
2317 | cat conftest.$ac_ext >&5 | |
2318 | rm -rf conftest* | |
2319 | eval "ac_cv_header_dirent_$ac_safe=no" | |
2320 | fi | |
2321 | rm -f conftest* | |
2322 | fi | |
2323 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then | |
2324 | echo "$ac_t""yes" 1>&6 | |
2325 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2326 | cat >> confdefs.h <<EOF | |
2327 | #define $ac_tr_hdr 1 | |
2328 | EOF | |
2329 | ac_header_dirent=$ac_hdr; break | |
2330 | else | |
2331 | echo "$ac_t""no" 1>&6 | |
2332 | fi | |
2333 | done | |
2334 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
2335 | if test $ac_header_dirent = dirent.h; then | |
2336 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 | |
5f0f31fe | 2337 | echo "configure:2338: checking for opendir in -ldir" >&5 |
bcf1fa6b RR |
2338 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
2339 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2340 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2341 | else | |
2342 | ac_save_LIBS="$LIBS" | |
2343 | LIBS="-ldir $LIBS" | |
2344 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2345 | #line 2346 "configure" |
bcf1fa6b RR |
2346 | #include "confdefs.h" |
2347 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2348 | /* We use char because int might match the return type of a gcc2 | |
2349 | builtin and then its argument prototype would still apply. */ | |
2350 | char opendir(); | |
2351 | ||
2352 | int main() { | |
2353 | opendir() | |
2354 | ; return 0; } | |
2355 | EOF | |
5f0f31fe | 2356 | if { (eval echo configure:2357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
2357 | rm -rf conftest* |
2358 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2359 | else | |
2360 | echo "configure: failed program was:" >&5 | |
2361 | cat conftest.$ac_ext >&5 | |
2362 | rm -rf conftest* | |
2363 | eval "ac_cv_lib_$ac_lib_var=no" | |
2364 | fi | |
2365 | rm -f conftest* | |
2366 | LIBS="$ac_save_LIBS" | |
2367 | ||
2368 | fi | |
2369 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2370 | echo "$ac_t""yes" 1>&6 | |
2371 | LIBS="$LIBS -ldir" | |
2372 | else | |
2373 | echo "$ac_t""no" 1>&6 | |
2374 | fi | |
2375 | ||
2376 | else | |
2377 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 | |
5f0f31fe | 2378 | echo "configure:2379: checking for opendir in -lx" >&5 |
bcf1fa6b RR |
2379 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
2380 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2381 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2382 | else | |
2383 | ac_save_LIBS="$LIBS" | |
2384 | LIBS="-lx $LIBS" | |
2385 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2386 | #line 2387 "configure" |
bcf1fa6b RR |
2387 | #include "confdefs.h" |
2388 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2389 | /* We use char because int might match the return type of a gcc2 | |
2390 | builtin and then its argument prototype would still apply. */ | |
2391 | char opendir(); | |
2392 | ||
2393 | int main() { | |
2394 | opendir() | |
2395 | ; return 0; } | |
2396 | EOF | |
5f0f31fe | 2397 | if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
2398 | rm -rf conftest* |
2399 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2400 | else | |
2401 | echo "configure: failed program was:" >&5 | |
2402 | cat conftest.$ac_ext >&5 | |
2403 | rm -rf conftest* | |
2404 | eval "ac_cv_lib_$ac_lib_var=no" | |
2405 | fi | |
2406 | rm -f conftest* | |
2407 | LIBS="$ac_save_LIBS" | |
2408 | ||
2409 | fi | |
2410 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2411 | echo "$ac_t""yes" 1>&6 | |
2412 | LIBS="$LIBS -lx" | |
2413 | else | |
2414 | echo "$ac_t""no" 1>&6 | |
2415 | fi | |
2416 | ||
2417 | fi | |
2418 | ||
2419 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
5f0f31fe | 2420 | echo "configure:2421: checking for ANSI C header files" >&5 |
bcf1fa6b RR |
2421 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2422 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2423 | else | |
2424 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2425 | #line 2426 "configure" |
bcf1fa6b RR |
2426 | #include "confdefs.h" |
2427 | #include <stdlib.h> | |
2428 | #include <stdarg.h> | |
2429 | #include <string.h> | |
2430 | #include <float.h> | |
2431 | EOF | |
2432 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5f0f31fe | 2433 | { (eval echo configure:2434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d28e1977 | 2434 | ac_err=`grep -v '^ *+' conftest.out` |
bcf1fa6b RR |
2435 | if test -z "$ac_err"; then |
2436 | rm -rf conftest* | |
2437 | ac_cv_header_stdc=yes | |
2438 | else | |
2439 | echo "$ac_err" >&5 | |
2440 | echo "configure: failed program was:" >&5 | |
2441 | cat conftest.$ac_ext >&5 | |
2442 | rm -rf conftest* | |
2443 | ac_cv_header_stdc=no | |
2444 | fi | |
2445 | rm -f conftest* | |
2446 | ||
2447 | if test $ac_cv_header_stdc = yes; then | |
2448 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2449 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2450 | #line 2451 "configure" |
bcf1fa6b RR |
2451 | #include "confdefs.h" |
2452 | #include <string.h> | |
2453 | EOF | |
2454 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2455 | egrep "memchr" >/dev/null 2>&1; then | |
2456 | : | |
2457 | else | |
2458 | rm -rf conftest* | |
2459 | ac_cv_header_stdc=no | |
2460 | fi | |
2461 | rm -f conftest* | |
2462 | ||
2463 | fi | |
2464 | ||
2465 | if test $ac_cv_header_stdc = yes; then | |
2466 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2467 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2468 | #line 2469 "configure" |
bcf1fa6b RR |
2469 | #include "confdefs.h" |
2470 | #include <stdlib.h> | |
2471 | EOF | |
2472 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2473 | egrep "free" >/dev/null 2>&1; then | |
2474 | : | |
2475 | else | |
2476 | rm -rf conftest* | |
2477 | ac_cv_header_stdc=no | |
2478 | fi | |
2479 | rm -f conftest* | |
2480 | ||
2481 | fi | |
2482 | ||
2483 | if test $ac_cv_header_stdc = yes; then | |
2484 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2485 | if test "$cross_compiling" = yes; then | |
2486 | : | |
2487 | else | |
2488 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2489 | #line 2490 "configure" |
bcf1fa6b RR |
2490 | #include "confdefs.h" |
2491 | #include <ctype.h> | |
2492 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2493 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2494 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2495 | int main () { int i; for (i = 0; i < 256; i++) | |
2496 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
2497 | exit (0); } | |
2498 | ||
2499 | EOF | |
5f0f31fe | 2500 | if { (eval echo configure:2501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
bcf1fa6b RR |
2501 | then |
2502 | : | |
2503 | else | |
2504 | echo "configure: failed program was:" >&5 | |
2505 | cat conftest.$ac_ext >&5 | |
2506 | rm -fr conftest* | |
2507 | ac_cv_header_stdc=no | |
2508 | fi | |
2509 | rm -fr conftest* | |
2510 | fi | |
2511 | ||
2512 | fi | |
2513 | fi | |
2514 | ||
2515 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
2516 | if test $ac_cv_header_stdc = yes; then | |
2517 | cat >> confdefs.h <<\EOF | |
2518 | #define STDC_HEADERS 1 | |
2519 | EOF | |
2520 | ||
2521 | fi | |
2522 | ||
2523 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 | |
5f0f31fe | 2524 | echo "configure:2525: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
bcf1fa6b RR |
2525 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
2526 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2527 | else | |
2528 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2529 | #line 2530 "configure" |
bcf1fa6b RR |
2530 | #include "confdefs.h" |
2531 | #include <sys/types.h> | |
2532 | #include <sys/wait.h> | |
2533 | #ifndef WEXITSTATUS | |
2534 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
2535 | #endif | |
2536 | #ifndef WIFEXITED | |
2537 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
2538 | #endif | |
2539 | int main() { | |
2540 | int s; | |
2541 | wait (&s); | |
2542 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
2543 | ; return 0; } | |
2544 | EOF | |
5f0f31fe | 2545 | if { (eval echo configure:2546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
bcf1fa6b RR |
2546 | rm -rf conftest* |
2547 | ac_cv_header_sys_wait_h=yes | |
2548 | else | |
2549 | echo "configure: failed program was:" >&5 | |
2550 | cat conftest.$ac_ext >&5 | |
2551 | rm -rf conftest* | |
2552 | ac_cv_header_sys_wait_h=no | |
2553 | fi | |
2554 | rm -f conftest* | |
2555 | fi | |
2556 | ||
2557 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 | |
2558 | if test $ac_cv_header_sys_wait_h = yes; then | |
2559 | cat >> confdefs.h <<\EOF | |
2560 | #define HAVE_SYS_WAIT_H 1 | |
2561 | EOF | |
2562 | ||
2563 | fi | |
2564 | ||
a4876ea4 KB |
2565 | for ac_hdr in fcntl.h |
2566 | do | |
2567 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2568 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5f0f31fe | 2569 | echo "configure:2570: checking for $ac_hdr" >&5 |
bcf1fa6b RR |
2570 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2571 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2572 | else | |
2573 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2574 | #line 2575 "configure" |
bcf1fa6b | 2575 | #include "confdefs.h" |
a4876ea4 | 2576 | #include <$ac_hdr> |
bcf1fa6b RR |
2577 | EOF |
2578 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5f0f31fe | 2579 | { (eval echo configure:2580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d28e1977 | 2580 | ac_err=`grep -v '^ *+' conftest.out` |
bcf1fa6b RR |
2581 | if test -z "$ac_err"; then |
2582 | rm -rf conftest* | |
2583 | eval "ac_cv_header_$ac_safe=yes" | |
2584 | else | |
2585 | echo "$ac_err" >&5 | |
2586 | echo "configure: failed program was:" >&5 | |
2587 | cat conftest.$ac_ext >&5 | |
2588 | rm -rf conftest* | |
2589 | eval "ac_cv_header_$ac_safe=no" | |
2590 | fi | |
2591 | rm -f conftest* | |
2592 | fi | |
2593 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2594 | echo "$ac_t""yes" 1>&6 | |
a4876ea4 KB |
2595 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
2596 | cat >> confdefs.h <<EOF | |
2597 | #define $ac_tr_hdr 1 | |
2598 | EOF | |
2599 | ||
bcf1fa6b RR |
2600 | else |
2601 | echo "$ac_t""no" 1>&6 | |
2602 | fi | |
a4876ea4 | 2603 | done |
bcf1fa6b | 2604 | |
a4876ea4 KB |
2605 | for ac_hdr in limits.h |
2606 | do | |
2607 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2608 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5f0f31fe | 2609 | echo "configure:2610: checking for $ac_hdr" >&5 |
bcf1fa6b RR |
2610 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2611 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2612 | else | |
2613 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2614 | #line 2615 "configure" |
bcf1fa6b | 2615 | #include "confdefs.h" |
a4876ea4 | 2616 | #include <$ac_hdr> |
bcf1fa6b RR |
2617 | EOF |
2618 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5f0f31fe | 2619 | { (eval echo configure:2620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d28e1977 | 2620 | ac_err=`grep -v '^ *+' conftest.out` |
bcf1fa6b RR |
2621 | if test -z "$ac_err"; then |
2622 | rm -rf conftest* | |
2623 | eval "ac_cv_header_$ac_safe=yes" | |
2624 | else | |
2625 | echo "$ac_err" >&5 | |
2626 | echo "configure: failed program was:" >&5 | |
2627 | cat conftest.$ac_ext >&5 | |
2628 | rm -rf conftest* | |
2629 | eval "ac_cv_header_$ac_safe=no" | |
2630 | fi | |
2631 | rm -f conftest* | |
2632 | fi | |
2633 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2634 | echo "$ac_t""yes" 1>&6 | |
a4876ea4 KB |
2635 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
2636 | cat >> confdefs.h <<EOF | |
2637 | #define $ac_tr_hdr 1 | |
2638 | EOF | |
2639 | ||
bcf1fa6b RR |
2640 | else |
2641 | echo "$ac_t""no" 1>&6 | |
2642 | fi | |
a4876ea4 | 2643 | done |
bcf1fa6b | 2644 | |
a4876ea4 KB |
2645 | for ac_hdr in sys/file.h |
2646 | do | |
2647 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2648 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5f0f31fe | 2649 | echo "configure:2650: checking for $ac_hdr" >&5 |
bcf1fa6b RR |
2650 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2651 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2652 | else | |
2653 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2654 | #line 2655 "configure" |
bcf1fa6b | 2655 | #include "confdefs.h" |
a4876ea4 | 2656 | #include <$ac_hdr> |
bcf1fa6b RR |
2657 | EOF |
2658 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5f0f31fe | 2659 | { (eval echo configure:2660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d28e1977 | 2660 | ac_err=`grep -v '^ *+' conftest.out` |
bcf1fa6b RR |
2661 | if test -z "$ac_err"; then |
2662 | rm -rf conftest* | |
2663 | eval "ac_cv_header_$ac_safe=yes" | |
2664 | else | |
2665 | echo "$ac_err" >&5 | |
2666 | echo "configure: failed program was:" >&5 | |
2667 | cat conftest.$ac_ext >&5 | |
2668 | rm -rf conftest* | |
2669 | eval "ac_cv_header_$ac_safe=no" | |
2670 | fi | |
2671 | rm -f conftest* | |
2672 | fi | |
2673 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2674 | echo "$ac_t""yes" 1>&6 | |
a4876ea4 KB |
2675 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
2676 | cat >> confdefs.h <<EOF | |
2677 | #define $ac_tr_hdr 1 | |
2678 | EOF | |
2679 | ||
bcf1fa6b RR |
2680 | else |
2681 | echo "$ac_t""no" 1>&6 | |
2682 | fi | |
a4876ea4 | 2683 | done |
bcf1fa6b | 2684 | |
a4876ea4 KB |
2685 | for ac_hdr in sys/time.h |
2686 | do | |
2687 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2688 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5f0f31fe | 2689 | echo "configure:2690: checking for $ac_hdr" >&5 |
bcf1fa6b RR |
2690 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2691 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2692 | else | |
2693 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2694 | #line 2695 "configure" |
bcf1fa6b | 2695 | #include "confdefs.h" |
a4876ea4 | 2696 | #include <$ac_hdr> |
bcf1fa6b RR |
2697 | EOF |
2698 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5f0f31fe | 2699 | { (eval echo configure:2700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d28e1977 | 2700 | ac_err=`grep -v '^ *+' conftest.out` |
bcf1fa6b RR |
2701 | if test -z "$ac_err"; then |
2702 | rm -rf conftest* | |
2703 | eval "ac_cv_header_$ac_safe=yes" | |
2704 | else | |
2705 | echo "$ac_err" >&5 | |
2706 | echo "configure: failed program was:" >&5 | |
2707 | cat conftest.$ac_ext >&5 | |
2708 | rm -rf conftest* | |
2709 | eval "ac_cv_header_$ac_safe=no" | |
2710 | fi | |
2711 | rm -f conftest* | |
2712 | fi | |
2713 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2714 | echo "$ac_t""yes" 1>&6 | |
a4876ea4 KB |
2715 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
2716 | cat >> confdefs.h <<EOF | |
2717 | #define $ac_tr_hdr 1 | |
2718 | EOF | |
2719 | ||
bcf1fa6b RR |
2720 | else |
2721 | echo "$ac_t""no" 1>&6 | |
2722 | fi | |
a4876ea4 | 2723 | done |
bcf1fa6b | 2724 | |
a4876ea4 KB |
2725 | for ac_hdr in unistd.h |
2726 | do | |
2727 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2728 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5f0f31fe | 2729 | echo "configure:2730: checking for $ac_hdr" >&5 |
bcf1fa6b RR |
2730 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2731 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2732 | else | |
2733 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2734 | #line 2735 "configure" |
bcf1fa6b | 2735 | #include "confdefs.h" |
a4876ea4 | 2736 | #include <$ac_hdr> |
bcf1fa6b RR |
2737 | EOF |
2738 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5f0f31fe | 2739 | { (eval echo configure:2740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d28e1977 | 2740 | ac_err=`grep -v '^ *+' conftest.out` |
bcf1fa6b RR |
2741 | if test -z "$ac_err"; then |
2742 | rm -rf conftest* | |
2743 | eval "ac_cv_header_$ac_safe=yes" | |
2744 | else | |
2745 | echo "$ac_err" >&5 | |
2746 | echo "configure: failed program was:" >&5 | |
2747 | cat conftest.$ac_ext >&5 | |
2748 | rm -rf conftest* | |
2749 | eval "ac_cv_header_$ac_safe=no" | |
2750 | fi | |
2751 | rm -f conftest* | |
2752 | fi | |
2753 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2754 | echo "$ac_t""yes" 1>&6 | |
a4876ea4 KB |
2755 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
2756 | cat >> confdefs.h <<EOF | |
2757 | #define $ac_tr_hdr 1 | |
2758 | EOF | |
2759 | ||
bcf1fa6b RR |
2760 | else |
2761 | echo "$ac_t""no" 1>&6 | |
2762 | fi | |
a4876ea4 | 2763 | done |
bcf1fa6b | 2764 | |
a4876ea4 KB |
2765 | for ac_hdr in fnmatch.h |
2766 | do | |
2767 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2768 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5f0f31fe | 2769 | echo "configure:2770: checking for $ac_hdr" >&5 |
bcf1fa6b RR |
2770 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2772 | else | |
2773 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2774 | #line 2775 "configure" |
bcf1fa6b | 2775 | #include "confdefs.h" |
a4876ea4 | 2776 | #include <$ac_hdr> |
bcf1fa6b RR |
2777 | EOF |
2778 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5f0f31fe | 2779 | { (eval echo configure:2780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d28e1977 | 2780 | ac_err=`grep -v '^ *+' conftest.out` |
bcf1fa6b RR |
2781 | if test -z "$ac_err"; then |
2782 | rm -rf conftest* | |
2783 | eval "ac_cv_header_$ac_safe=yes" | |
2784 | else | |
2785 | echo "$ac_err" >&5 | |
2786 | echo "configure: failed program was:" >&5 | |
2787 | cat conftest.$ac_ext >&5 | |
2788 | rm -rf conftest* | |
2789 | eval "ac_cv_header_$ac_safe=no" | |
2790 | fi | |
2791 | rm -f conftest* | |
2792 | fi | |
2793 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2794 | echo "$ac_t""yes" 1>&6 | |
a4876ea4 KB |
2795 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
2796 | cat >> confdefs.h <<EOF | |
2797 | #define $ac_tr_hdr 1 | |
2798 | EOF | |
2799 | ||
2800 | else | |
2801 | echo "$ac_t""no" 1>&6 | |
2802 | fi | |
2803 | done | |
2804 | ||
2805 | for ac_hdr in linux/joystick.h | |
2806 | do | |
2807 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2808 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5f0f31fe | 2809 | echo "configure:2810: checking for $ac_hdr" >&5 |
a4876ea4 KB |
2810 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2811 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2812 | else | |
2813 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2814 | #line 2815 "configure" |
a4876ea4 KB |
2815 | #include "confdefs.h" |
2816 | #include <$ac_hdr> | |
2817 | EOF | |
2818 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5f0f31fe | 2819 | { (eval echo configure:2820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d28e1977 | 2820 | ac_err=`grep -v '^ *+' conftest.out` |
a4876ea4 KB |
2821 | if test -z "$ac_err"; then |
2822 | rm -rf conftest* | |
2823 | eval "ac_cv_header_$ac_safe=yes" | |
2824 | else | |
2825 | echo "$ac_err" >&5 | |
2826 | echo "configure: failed program was:" >&5 | |
2827 | cat conftest.$ac_ext >&5 | |
2828 | rm -rf conftest* | |
2829 | eval "ac_cv_header_$ac_safe=no" | |
2830 | fi | |
2831 | rm -f conftest* | |
2832 | fi | |
2833 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2834 | echo "$ac_t""yes" 1>&6 | |
2835 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2836 | cat >> confdefs.h <<EOF | |
2837 | #define $ac_tr_hdr 1 | |
2838 | EOF | |
2839 | ||
bcf1fa6b RR |
2840 | else |
2841 | echo "$ac_t""no" 1>&6 | |
2842 | fi | |
a4876ea4 | 2843 | done |
bcf1fa6b RR |
2844 | |
2845 | GTK_JOYSTICK="" | |
2846 | if test "$ac_cv_header_linux_joystick_h" = "yes"; then | |
2847 | GTK_JOYSTICK="gtk/joystick.cpp" | |
2848 | fi | |
2849 | ||
2850 | ||
35c9d958 | 2851 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
5f0f31fe | 2852 | echo "configure:2853: checking for vprintf" >&5 |
35c9d958 KB |
2853 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2854 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2855 | else | |
2856 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2857 | #line 2858 "configure" |
35c9d958 KB |
2858 | #include "confdefs.h" |
2859 | /* System header to define __stub macros and hopefully few prototypes, | |
2860 | which can conflict with char vprintf(); below. */ | |
2861 | #include <assert.h> | |
2862 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2863 | /* We use char because int might match the return type of a gcc2 | |
2864 | builtin and then its argument prototype would still apply. */ | |
2865 | char vprintf(); | |
2866 | ||
2867 | int main() { | |
2868 | ||
2869 | /* The GNU C library defines this for functions which it implements | |
2870 | to always fail with ENOSYS. Some functions are actually named | |
2871 | something starting with __ and the normal name is an alias. */ | |
2872 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
2873 | choke me | |
2874 | #else | |
2875 | vprintf(); | |
2876 | #endif | |
2877 | ||
2878 | ; return 0; } | |
2879 | EOF | |
5f0f31fe | 2880 | if { (eval echo configure:2881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
35c9d958 KB |
2881 | rm -rf conftest* |
2882 | eval "ac_cv_func_vprintf=yes" | |
2883 | else | |
2884 | echo "configure: failed program was:" >&5 | |
2885 | cat conftest.$ac_ext >&5 | |
2886 | rm -rf conftest* | |
2887 | eval "ac_cv_func_vprintf=no" | |
2888 | fi | |
2889 | rm -f conftest* | |
2890 | fi | |
2891 | ||
2892 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
2893 | echo "$ac_t""yes" 1>&6 | |
2894 | cat >> confdefs.h <<\EOF | |
2895 | #define HAVE_VPRINTF 1 | |
2896 | EOF | |
2897 | ||
2898 | else | |
2899 | echo "$ac_t""no" 1>&6 | |
2900 | fi | |
2901 | ||
2902 | if test "$ac_cv_func_vprintf" != yes; then | |
2903 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
5f0f31fe | 2904 | echo "configure:2905: checking for _doprnt" >&5 |
35c9d958 KB |
2905 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2906 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2907 | else | |
2908 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2909 | #line 2910 "configure" |
35c9d958 KB |
2910 | #include "confdefs.h" |
2911 | /* System header to define __stub macros and hopefully few prototypes, | |
2912 | which can conflict with char _doprnt(); below. */ | |
2913 | #include <assert.h> | |
2914 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2915 | /* We use char because int might match the return type of a gcc2 | |
2916 | builtin and then its argument prototype would still apply. */ | |
2917 | char _doprnt(); | |
2918 | ||
2919 | int main() { | |
2920 | ||
2921 | /* The GNU C library defines this for functions which it implements | |
2922 | to always fail with ENOSYS. Some functions are actually named | |
2923 | something starting with __ and the normal name is an alias. */ | |
2924 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
2925 | choke me | |
2926 | #else | |
2927 | _doprnt(); | |
2928 | #endif | |
2929 | ||
2930 | ; return 0; } | |
2931 | EOF | |
5f0f31fe | 2932 | if { (eval echo configure:2933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
35c9d958 KB |
2933 | rm -rf conftest* |
2934 | eval "ac_cv_func__doprnt=yes" | |
2935 | else | |
2936 | echo "configure: failed program was:" >&5 | |
2937 | cat conftest.$ac_ext >&5 | |
2938 | rm -rf conftest* | |
2939 | eval "ac_cv_func__doprnt=no" | |
2940 | fi | |
2941 | rm -f conftest* | |
2942 | fi | |
2943 | ||
2944 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
2945 | echo "$ac_t""yes" 1>&6 | |
2946 | cat >> confdefs.h <<\EOF | |
2947 | #define HAVE_DOPRNT 1 | |
2948 | EOF | |
2949 | ||
2950 | else | |
2951 | echo "$ac_t""no" 1>&6 | |
2952 | fi | |
2953 | ||
2954 | fi | |
2955 | ||
518b5d2f VZ |
2956 | |
2957 | for ac_func in vsnprintf vfork | |
afb74891 VZ |
2958 | do |
2959 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5f0f31fe | 2960 | echo "configure:2961: checking for $ac_func" >&5 |
afb74891 | 2961 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
35c9d958 KB |
2962 | echo $ac_n "(cached) $ac_c" 1>&6 |
2963 | else | |
2964 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 2965 | #line 2966 "configure" |
35c9d958 KB |
2966 | #include "confdefs.h" |
2967 | /* System header to define __stub macros and hopefully few prototypes, | |
afb74891 | 2968 | which can conflict with char $ac_func(); below. */ |
35c9d958 KB |
2969 | #include <assert.h> |
2970 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2971 | /* We use char because int might match the return type of a gcc2 | |
2972 | builtin and then its argument prototype would still apply. */ | |
afb74891 | 2973 | char $ac_func(); |
35c9d958 KB |
2974 | |
2975 | int main() { | |
2976 | ||
2977 | /* The GNU C library defines this for functions which it implements | |
2978 | to always fail with ENOSYS. Some functions are actually named | |
2979 | something starting with __ and the normal name is an alias. */ | |
afb74891 | 2980 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
35c9d958 KB |
2981 | choke me |
2982 | #else | |
afb74891 | 2983 | $ac_func(); |
35c9d958 KB |
2984 | #endif |
2985 | ||
2986 | ; return 0; } | |
2987 | EOF | |
5f0f31fe | 2988 | if { (eval echo configure:2989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
35c9d958 | 2989 | rm -rf conftest* |
afb74891 | 2990 | eval "ac_cv_func_$ac_func=yes" |
35c9d958 KB |
2991 | else |
2992 | echo "configure: failed program was:" >&5 | |
2993 | cat conftest.$ac_ext >&5 | |
2994 | rm -rf conftest* | |
afb74891 | 2995 | eval "ac_cv_func_$ac_func=no" |
35c9d958 KB |
2996 | fi |
2997 | rm -f conftest* | |
2998 | fi | |
2999 | ||
afb74891 | 3000 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
35c9d958 | 3001 | echo "$ac_t""yes" 1>&6 |
afb74891 VZ |
3002 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3003 | cat >> confdefs.h <<EOF | |
3004 | #define $ac_tr_func 1 | |
d1d3ccbe | 3005 | EOF |
afb74891 VZ |
3006 | |
3007 | else | |
3008 | echo "$ac_t""no" 1>&6 | |
3009 | fi | |
3010 | done | |
3011 | ||
d1d3ccbe | 3012 | |
c9b6828b | 3013 | for ac_func in nanosleep |
afb74891 VZ |
3014 | do |
3015 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5f0f31fe | 3016 | echo "configure:3017: checking for $ac_func" >&5 |
afb74891 VZ |
3017 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3018 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3019 | else | |
3020 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3021 | #line 3022 "configure" |
afb74891 VZ |
3022 | #include "confdefs.h" |
3023 | /* System header to define __stub macros and hopefully few prototypes, | |
3024 | which can conflict with char $ac_func(); below. */ | |
3025 | #include <assert.h> | |
3026 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3027 | /* We use char because int might match the return type of a gcc2 | |
3028 | builtin and then its argument prototype would still apply. */ | |
3029 | char $ac_func(); | |
3030 | ||
3031 | int main() { | |
3032 | ||
3033 | /* The GNU C library defines this for functions which it implements | |
3034 | to always fail with ENOSYS. Some functions are actually named | |
3035 | something starting with __ and the normal name is an alias. */ | |
3036 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3037 | choke me | |
3038 | #else | |
3039 | $ac_func(); | |
3040 | #endif | |
3041 | ||
3042 | ; return 0; } | |
3043 | EOF | |
5f0f31fe | 3044 | if { (eval echo configure:3045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
afb74891 VZ |
3045 | rm -rf conftest* |
3046 | eval "ac_cv_func_$ac_func=yes" | |
3047 | else | |
3048 | echo "configure: failed program was:" >&5 | |
3049 | cat conftest.$ac_ext >&5 | |
3050 | rm -rf conftest* | |
3051 | eval "ac_cv_func_$ac_func=no" | |
3052 | fi | |
3053 | rm -f conftest* | |
3054 | fi | |
3055 | ||
c9b6828b VZ |
3056 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
3057 | echo "$ac_t""yes" 1>&6 | |
3058 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3059 | cat >> confdefs.h <<EOF | |
3060 | #define $ac_tr_func 1 | |
3061 | EOF | |
3062 | cat >> confdefs.h <<\EOF | |
3063 | #define HAVE_NANOSLEEP 1 | |
3064 | EOF | |
3065 | ||
3066 | else | |
3067 | echo "$ac_t""no" 1>&6 | |
3068 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
5f0f31fe | 3069 | echo "configure:3070: checking for nanosleep in -lposix4" >&5 |
c9b6828b VZ |
3070 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
3071 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3072 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3073 | else | |
3074 | ac_save_LIBS="$LIBS" | |
3075 | LIBS="-lposix4 $LIBS" | |
3076 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3077 | #line 3078 "configure" |
c9b6828b VZ |
3078 | #include "confdefs.h" |
3079 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3080 | /* We use char because int might match the return type of a gcc2 | |
3081 | builtin and then its argument prototype would still apply. */ | |
3082 | char nanosleep(); | |
3083 | ||
3084 | int main() { | |
3085 | nanosleep() | |
3086 | ; return 0; } | |
3087 | EOF | |
5f0f31fe | 3088 | if { (eval echo configure:3089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c9b6828b VZ |
3089 | rm -rf conftest* |
3090 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3091 | else | |
3092 | echo "configure: failed program was:" >&5 | |
3093 | cat conftest.$ac_ext >&5 | |
3094 | rm -rf conftest* | |
3095 | eval "ac_cv_lib_$ac_lib_var=no" | |
3096 | fi | |
3097 | rm -f conftest* | |
3098 | LIBS="$ac_save_LIBS" | |
3099 | ||
3100 | fi | |
3101 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3102 | echo "$ac_t""yes" 1>&6 | |
3103 | cat >> confdefs.h <<\EOF | |
3104 | #define HAVE_NANOSLEEP 1 | |
3105 | EOF | |
3106 | ||
3107 | else | |
3108 | echo "$ac_t""no" 1>&6 | |
518b5d2f VZ |
3109 | for ac_func in usleep |
3110 | do | |
3111 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5f0f31fe | 3112 | echo "configure:3113: checking for $ac_func" >&5 |
518b5d2f VZ |
3113 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3114 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3115 | else | |
3116 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3117 | #line 3118 "configure" |
518b5d2f VZ |
3118 | #include "confdefs.h" |
3119 | /* System header to define __stub macros and hopefully few prototypes, | |
3120 | which can conflict with char $ac_func(); below. */ | |
3121 | #include <assert.h> | |
3122 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3123 | /* We use char because int might match the return type of a gcc2 | |
3124 | builtin and then its argument prototype would still apply. */ | |
3125 | char $ac_func(); | |
3126 | ||
3127 | int main() { | |
3128 | ||
3129 | /* The GNU C library defines this for functions which it implements | |
3130 | to always fail with ENOSYS. Some functions are actually named | |
3131 | something starting with __ and the normal name is an alias. */ | |
3132 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3133 | choke me | |
3134 | #else | |
3135 | $ac_func(); | |
3136 | #endif | |
3137 | ||
3138 | ; return 0; } | |
3139 | EOF | |
5f0f31fe | 3140 | if { (eval echo configure:3141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
518b5d2f VZ |
3141 | rm -rf conftest* |
3142 | eval "ac_cv_func_$ac_func=yes" | |
3143 | else | |
3144 | echo "configure: failed program was:" >&5 | |
3145 | cat conftest.$ac_ext >&5 | |
3146 | rm -rf conftest* | |
3147 | eval "ac_cv_func_$ac_func=no" | |
3148 | fi | |
3149 | rm -f conftest* | |
3150 | fi | |
3151 | ||
3152 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3153 | echo "$ac_t""yes" 1>&6 | |
3154 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3155 | cat >> confdefs.h <<EOF | |
3156 | #define $ac_tr_func 1 | |
3157 | EOF | |
3158 | cat >> confdefs.h <<\EOF | |
3159 | #define HAVE_USLEEP 1 | |
3160 | EOF | |
3161 | ||
3162 | else | |
3163 | echo "$ac_t""no" 1>&6 | |
3164 | echo "configure: warning: Sleep() function will not work" 1>&2 | |
3165 | ||
3166 | fi | |
3167 | done | |
3168 | ||
3169 | ||
c9b6828b VZ |
3170 | fi |
3171 | ||
518b5d2f | 3172 | |
c9b6828b VZ |
3173 | fi |
3174 | done | |
3175 | ||
518b5d2f VZ |
3176 | |
3177 | for ac_func in uname gethostname | |
c9b6828b VZ |
3178 | do |
3179 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5f0f31fe | 3180 | echo "configure:3181: checking for $ac_func" >&5 |
c9b6828b VZ |
3181 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3182 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3183 | else | |
3184 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3185 | #line 3186 "configure" |
c9b6828b VZ |
3186 | #include "confdefs.h" |
3187 | /* System header to define __stub macros and hopefully few prototypes, | |
3188 | which can conflict with char $ac_func(); below. */ | |
3189 | #include <assert.h> | |
3190 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3191 | /* We use char because int might match the return type of a gcc2 | |
3192 | builtin and then its argument prototype would still apply. */ | |
3193 | char $ac_func(); | |
3194 | ||
3195 | int main() { | |
3196 | ||
3197 | /* The GNU C library defines this for functions which it implements | |
3198 | to always fail with ENOSYS. Some functions are actually named | |
3199 | something starting with __ and the normal name is an alias. */ | |
3200 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3201 | choke me | |
3202 | #else | |
3203 | $ac_func(); | |
3204 | #endif | |
3205 | ||
3206 | ; return 0; } | |
3207 | EOF | |
5f0f31fe | 3208 | if { (eval echo configure:3209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c9b6828b VZ |
3209 | rm -rf conftest* |
3210 | eval "ac_cv_func_$ac_func=yes" | |
3211 | else | |
3212 | echo "configure: failed program was:" >&5 | |
3213 | cat conftest.$ac_ext >&5 | |
3214 | rm -rf conftest* | |
3215 | eval "ac_cv_func_$ac_func=no" | |
3216 | fi | |
3217 | rm -f conftest* | |
3218 | fi | |
3219 | ||
afb74891 VZ |
3220 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
3221 | echo "$ac_t""yes" 1>&6 | |
3222 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3223 | cat >> confdefs.h <<EOF | |
3224 | #define $ac_tr_func 1 | |
3225 | EOF | |
518b5d2f | 3226 | break |
35c9d958 KB |
3227 | else |
3228 | echo "$ac_t""no" 1>&6 | |
3229 | fi | |
afb74891 | 3230 | done |
35c9d958 KB |
3231 | |
3232 | ||
32cbeff4 KB |
3233 | |
3234 | ac_ext=C | |
3235 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
3236 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3237 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
d28e1977 | 3238 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
32cbeff4 KB |
3239 | cross_compiling=$ac_cv_prog_cxx_cross |
3240 | ||
3241 | for ac_hdr in iostream | |
3242 | do | |
3243 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3244 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5f0f31fe | 3245 | echo "configure:3246: checking for $ac_hdr" >&5 |
32cbeff4 KB |
3246 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3247 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3248 | else | |
3249 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3250 | #line 3251 "configure" |
32cbeff4 KB |
3251 | #include "confdefs.h" |
3252 | #include <$ac_hdr> | |
3253 | EOF | |
3254 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5f0f31fe | 3255 | { (eval echo configure:3256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d28e1977 | 3256 | ac_err=`grep -v '^ *+' conftest.out` |
32cbeff4 KB |
3257 | if test -z "$ac_err"; then |
3258 | rm -rf conftest* | |
3259 | eval "ac_cv_header_$ac_safe=yes" | |
3260 | else | |
3261 | echo "$ac_err" >&5 | |
3262 | echo "configure: failed program was:" >&5 | |
3263 | cat conftest.$ac_ext >&5 | |
3264 | rm -rf conftest* | |
3265 | eval "ac_cv_header_$ac_safe=no" | |
3266 | fi | |
3267 | rm -f conftest* | |
3268 | fi | |
3269 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3270 | echo "$ac_t""yes" 1>&6 | |
3271 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3272 | cat >> confdefs.h <<EOF | |
3273 | #define $ac_tr_hdr 1 | |
3274 | EOF | |
3275 | ||
3276 | else | |
3277 | echo "$ac_t""no" 1>&6 | |
3278 | fi | |
3279 | done | |
3280 | ||
3281 | if test "x$HAVE_IOSTREAM" = "x" ; then | |
3282 | cat >> confdefs.h <<\EOF | |
3283 | #define wxUSE_IOSTREAMH 1 | |
3284 | EOF | |
3285 | ||
3286 | fi | |
3287 | ac_ext=c | |
3288 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
3289 | ac_cpp='$CPP $CPPFLAGS' | |
3290 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
d28e1977 | 3291 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
32cbeff4 KB |
3292 | cross_compiling=$ac_cv_prog_cc_cross |
3293 | ||
3294 | ||
bcf1fa6b | 3295 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
5f0f31fe | 3296 | echo "configure:3297: checking for uid_t in sys/types.h" >&5 |
bcf1fa6b RR |
3297 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
3298 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3299 | else | |
3300 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3301 | #line 3302 "configure" |
bcf1fa6b RR |
3302 | #include "confdefs.h" |
3303 | #include <sys/types.h> | |
3304 | EOF | |
3305 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3306 | egrep "uid_t" >/dev/null 2>&1; then | |
3307 | rm -rf conftest* | |
3308 | ac_cv_type_uid_t=yes | |
3309 | else | |
3310 | rm -rf conftest* | |
3311 | ac_cv_type_uid_t=no | |
3312 | fi | |
3313 | rm -f conftest* | |
3314 | ||
3315 | fi | |
3316 | ||
3317 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
3318 | if test $ac_cv_type_uid_t = no; then | |
3319 | cat >> confdefs.h <<\EOF | |
3320 | #define uid_t int | |
3321 | EOF | |
3322 | ||
3323 | cat >> confdefs.h <<\EOF | |
3324 | #define gid_t int | |
3325 | EOF | |
3326 | ||
3327 | fi | |
3328 | ||
3329 | echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6 | |
5f0f31fe | 3330 | echo "configure:3331: checking type of array argument to getgroups" >&5 |
bcf1fa6b RR |
3331 | if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then |
3332 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3333 | else | |
3334 | if test "$cross_compiling" = yes; then | |
3335 | ac_cv_type_getgroups=cross | |
3336 | else | |
3337 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3338 | #line 3339 "configure" |
bcf1fa6b RR |
3339 | #include "confdefs.h" |
3340 | ||
3341 | /* Thanks to Mike Rendell for this test. */ | |
3342 | #include <sys/types.h> | |
3343 | #define NGID 256 | |
3344 | #undef MAX | |
3345 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) | |
3346 | main() | |
3347 | { | |
3348 | gid_t gidset[NGID]; | |
3349 | int i, n; | |
3350 | union { gid_t gval; long lval; } val; | |
3351 | ||
3352 | val.lval = -1; | |
3353 | for (i = 0; i < NGID; i++) | |
3354 | gidset[i] = val.gval; | |
3355 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, | |
3356 | gidset); | |
3357 | /* Exit non-zero if getgroups seems to require an array of ints. This | |
3358 | happens when gid_t is short but getgroups modifies an array of ints. */ | |
3359 | exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0); | |
3360 | } | |
3361 | ||
3362 | EOF | |
5f0f31fe | 3363 | if { (eval echo configure:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
bcf1fa6b RR |
3364 | then |
3365 | ac_cv_type_getgroups=gid_t | |
3366 | else | |
3367 | echo "configure: failed program was:" >&5 | |
3368 | cat conftest.$ac_ext >&5 | |
3369 | rm -fr conftest* | |
3370 | ac_cv_type_getgroups=int | |
3371 | fi | |
3372 | rm -fr conftest* | |
3373 | fi | |
3374 | ||
3375 | if test $ac_cv_type_getgroups = cross; then | |
3376 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3377 | #line 3378 "configure" |
bcf1fa6b RR |
3378 | #include "confdefs.h" |
3379 | #include <unistd.h> | |
3380 | EOF | |
3381 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3382 | egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then | |
3383 | rm -rf conftest* | |
3384 | ac_cv_type_getgroups=gid_t | |
3385 | else | |
3386 | rm -rf conftest* | |
3387 | ac_cv_type_getgroups=int | |
3388 | fi | |
3389 | rm -f conftest* | |
3390 | ||
3391 | fi | |
3392 | fi | |
3393 | ||
3394 | echo "$ac_t""$ac_cv_type_getgroups" 1>&6 | |
3395 | cat >> confdefs.h <<EOF | |
3396 | #define GETGROUPS_T $ac_cv_type_getgroups | |
3397 | EOF | |
3398 | ||
3399 | ||
3400 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
5f0f31fe | 3401 | echo "configure:3402: checking for mode_t" >&5 |
bcf1fa6b RR |
3402 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
3403 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3404 | else | |
3405 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3406 | #line 3407 "configure" |
bcf1fa6b RR |
3407 | #include "confdefs.h" |
3408 | #include <sys/types.h> | |
3409 | #if STDC_HEADERS | |
3410 | #include <stdlib.h> | |
3411 | #include <stddef.h> | |
3412 | #endif | |
3413 | EOF | |
3414 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
d28e1977 | 3415 | egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
bcf1fa6b RR |
3416 | rm -rf conftest* |
3417 | ac_cv_type_mode_t=yes | |
3418 | else | |
3419 | rm -rf conftest* | |
3420 | ac_cv_type_mode_t=no | |
3421 | fi | |
3422 | rm -f conftest* | |
3423 | ||
3424 | fi | |
3425 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
3426 | if test $ac_cv_type_mode_t = no; then | |
3427 | cat >> confdefs.h <<\EOF | |
3428 | #define mode_t int | |
3429 | EOF | |
3430 | ||
3431 | fi | |
3432 | ||
3433 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
5f0f31fe | 3434 | echo "configure:3435: checking for off_t" >&5 |
bcf1fa6b RR |
3435 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
3436 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3437 | else | |
3438 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3439 | #line 3440 "configure" |
bcf1fa6b RR |
3440 | #include "confdefs.h" |
3441 | #include <sys/types.h> | |
3442 | #if STDC_HEADERS | |
3443 | #include <stdlib.h> | |
3444 | #include <stddef.h> | |
3445 | #endif | |
3446 | EOF | |
3447 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
d28e1977 | 3448 | egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
bcf1fa6b RR |
3449 | rm -rf conftest* |
3450 | ac_cv_type_off_t=yes | |
3451 | else | |
3452 | rm -rf conftest* | |
3453 | ac_cv_type_off_t=no | |
3454 | fi | |
3455 | rm -f conftest* | |
3456 | ||
3457 | fi | |
3458 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
3459 | if test $ac_cv_type_off_t = no; then | |
3460 | cat >> confdefs.h <<\EOF | |
3461 | #define off_t long | |
3462 | EOF | |
3463 | ||
3464 | fi | |
3465 | ||
3466 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
5f0f31fe | 3467 | echo "configure:3468: checking for pid_t" >&5 |
bcf1fa6b RR |
3468 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
3469 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3470 | else | |
3471 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3472 | #line 3473 "configure" |
bcf1fa6b RR |
3473 | #include "confdefs.h" |
3474 | #include <sys/types.h> | |
3475 | #if STDC_HEADERS | |
3476 | #include <stdlib.h> | |
3477 | #include <stddef.h> | |
3478 | #endif | |
3479 | EOF | |
3480 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
d28e1977 | 3481 | egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
bcf1fa6b RR |
3482 | rm -rf conftest* |
3483 | ac_cv_type_pid_t=yes | |
3484 | else | |
3485 | rm -rf conftest* | |
3486 | ac_cv_type_pid_t=no | |
3487 | fi | |
3488 | rm -f conftest* | |
3489 | ||
3490 | fi | |
3491 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
3492 | if test $ac_cv_type_pid_t = no; then | |
3493 | cat >> confdefs.h <<\EOF | |
3494 | #define pid_t int | |
3495 | EOF | |
3496 | ||
3497 | fi | |
3498 | ||
3499 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | |
5f0f31fe | 3500 | echo "configure:3501: checking return type of signal handlers" >&5 |
bcf1fa6b RR |
3501 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
3502 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3503 | else | |
3504 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3505 | #line 3506 "configure" |
bcf1fa6b RR |
3506 | #include "confdefs.h" |
3507 | #include <sys/types.h> | |
3508 | #include <signal.h> | |
3509 | #ifdef signal | |
3510 | #undef signal | |
3511 | #endif | |
3512 | #ifdef __cplusplus | |
3513 | extern "C" void (*signal (int, void (*)(int)))(int); | |
3514 | #else | |
3515 | void (*signal ()) (); | |
3516 | #endif | |
3517 | ||
3518 | int main() { | |
3519 | int i; | |
3520 | ; return 0; } | |
3521 | EOF | |
5f0f31fe | 3522 | if { (eval echo configure:3523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
bcf1fa6b RR |
3523 | rm -rf conftest* |
3524 | ac_cv_type_signal=void | |
3525 | else | |
3526 | echo "configure: failed program was:" >&5 | |
3527 | cat conftest.$ac_ext >&5 | |
3528 | rm -rf conftest* | |
3529 | ac_cv_type_signal=int | |
3530 | fi | |
3531 | rm -f conftest* | |
3532 | fi | |
3533 | ||
3534 | echo "$ac_t""$ac_cv_type_signal" 1>&6 | |
3535 | cat >> confdefs.h <<EOF | |
3536 | #define RETSIGTYPE $ac_cv_type_signal | |
3537 | EOF | |
3538 | ||
3539 | ||
3540 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
5f0f31fe | 3541 | echo "configure:3542: checking for size_t" >&5 |
bcf1fa6b RR |
3542 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
3543 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3544 | else | |
3545 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3546 | #line 3547 "configure" |
bcf1fa6b RR |
3547 | #include "confdefs.h" |
3548 | #include <sys/types.h> | |
3549 | #if STDC_HEADERS | |
3550 | #include <stdlib.h> | |
3551 | #include <stddef.h> | |
3552 | #endif | |
3553 | EOF | |
3554 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
d28e1977 | 3555 | egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
bcf1fa6b RR |
3556 | rm -rf conftest* |
3557 | ac_cv_type_size_t=yes | |
3558 | else | |
3559 | rm -rf conftest* | |
3560 | ac_cv_type_size_t=no | |
3561 | fi | |
3562 | rm -f conftest* | |
3563 | ||
3564 | fi | |
3565 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
3566 | if test $ac_cv_type_size_t = no; then | |
3567 | cat >> confdefs.h <<\EOF | |
3568 | #define size_t unsigned | |
3569 | EOF | |
3570 | ||
3571 | fi | |
3572 | ||
3573 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
5f0f31fe | 3574 | echo "configure:3575: checking for uid_t in sys/types.h" >&5 |
bcf1fa6b RR |
3575 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
3576 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3577 | else | |
3578 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3579 | #line 3580 "configure" |
bcf1fa6b RR |
3580 | #include "confdefs.h" |
3581 | #include <sys/types.h> | |
3582 | EOF | |
3583 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3584 | egrep "uid_t" >/dev/null 2>&1; then | |
3585 | rm -rf conftest* | |
3586 | ac_cv_type_uid_t=yes | |
3587 | else | |
3588 | rm -rf conftest* | |
3589 | ac_cv_type_uid_t=no | |
3590 | fi | |
3591 | rm -f conftest* | |
3592 | ||
3593 | fi | |
3594 | ||
3595 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
3596 | if test $ac_cv_type_uid_t = no; then | |
3597 | cat >> confdefs.h <<\EOF | |
3598 | #define uid_t int | |
3599 | EOF | |
3600 | ||
3601 | cat >> confdefs.h <<\EOF | |
3602 | #define gid_t int | |
3603 | EOF | |
3604 | ||
3605 | fi | |
3606 | ||
3607 | ||
3608 | ||
3609 | echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 | |
5f0f31fe | 3610 | echo "configure:3611: checking whether stat file-mode macros are broken" >&5 |
bcf1fa6b RR |
3611 | if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then |
3612 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3613 | else | |
3614 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3615 | #line 3616 "configure" |
bcf1fa6b RR |
3616 | #include "confdefs.h" |
3617 | #include <sys/types.h> | |
3618 | #include <sys/stat.h> | |
3619 | ||
3620 | #if defined(S_ISBLK) && defined(S_IFDIR) | |
3621 | # if S_ISBLK (S_IFDIR) | |
3622 | You lose. | |
3623 | # endif | |
3624 | #endif | |
3625 | ||
3626 | #if defined(S_ISBLK) && defined(S_IFCHR) | |
3627 | # if S_ISBLK (S_IFCHR) | |
3628 | You lose. | |
3629 | # endif | |
3630 | #endif | |
3631 | ||
3632 | #if defined(S_ISLNK) && defined(S_IFREG) | |
3633 | # if S_ISLNK (S_IFREG) | |
3634 | You lose. | |
3635 | # endif | |
3636 | #endif | |
3637 | ||
3638 | #if defined(S_ISSOCK) && defined(S_IFREG) | |
3639 | # if S_ISSOCK (S_IFREG) | |
3640 | You lose. | |
3641 | # endif | |
3642 | #endif | |
3643 | ||
3644 | EOF | |
3645 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3646 | egrep "You lose" >/dev/null 2>&1; then | |
3647 | rm -rf conftest* | |
3648 | ac_cv_header_stat_broken=yes | |
3649 | else | |
3650 | rm -rf conftest* | |
3651 | ac_cv_header_stat_broken=no | |
3652 | fi | |
3653 | rm -f conftest* | |
3654 | ||
3655 | fi | |
3656 | ||
3657 | echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 | |
3658 | if test $ac_cv_header_stat_broken = yes; then | |
3659 | cat >> confdefs.h <<\EOF | |
3660 | #define STAT_MACROS_BROKEN 1 | |
3661 | EOF | |
3662 | ||
3663 | fi | |
3664 | ||
3665 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
5f0f31fe | 3666 | echo "configure:3667: checking whether time.h and sys/time.h may both be included" >&5 |
bcf1fa6b RR |
3667 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
3668 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3669 | else | |
3670 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3671 | #line 3672 "configure" |
bcf1fa6b RR |
3672 | #include "confdefs.h" |
3673 | #include <sys/types.h> | |
3674 | #include <sys/time.h> | |
3675 | #include <time.h> | |
3676 | int main() { | |
3677 | struct tm *tp; | |
3678 | ; return 0; } | |
3679 | EOF | |
5f0f31fe | 3680 | if { (eval echo configure:3681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
bcf1fa6b RR |
3681 | rm -rf conftest* |
3682 | ac_cv_header_time=yes | |
3683 | else | |
3684 | echo "configure: failed program was:" >&5 | |
3685 | cat conftest.$ac_ext >&5 | |
3686 | rm -rf conftest* | |
3687 | ac_cv_header_time=no | |
3688 | fi | |
3689 | rm -f conftest* | |
3690 | fi | |
3691 | ||
3692 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
3693 | if test $ac_cv_header_time = yes; then | |
3694 | cat >> confdefs.h <<\EOF | |
3695 | #define TIME_WITH_SYS_TIME 1 | |
3696 | EOF | |
3697 | ||
3698 | fi | |
3699 | ||
3700 | echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 | |
5f0f31fe | 3701 | echo "configure:3702: checking for st_blksize in struct stat" >&5 |
bcf1fa6b RR |
3702 | if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then |
3703 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3704 | else | |
3705 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3706 | #line 3707 "configure" |
bcf1fa6b RR |
3707 | #include "confdefs.h" |
3708 | #include <sys/types.h> | |
3709 | #include <sys/stat.h> | |
3710 | int main() { | |
3711 | struct stat s; s.st_blksize; | |
3712 | ; return 0; } | |
3713 | EOF | |
5f0f31fe | 3714 | if { (eval echo configure:3715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
bcf1fa6b RR |
3715 | rm -rf conftest* |
3716 | ac_cv_struct_st_blksize=yes | |
3717 | else | |
3718 | echo "configure: failed program was:" >&5 | |
3719 | cat conftest.$ac_ext >&5 | |
3720 | rm -rf conftest* | |
3721 | ac_cv_struct_st_blksize=no | |
3722 | fi | |
3723 | rm -f conftest* | |
3724 | fi | |
3725 | ||
3726 | echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 | |
3727 | if test $ac_cv_struct_st_blksize = yes; then | |
3728 | cat >> confdefs.h <<\EOF | |
3729 | #define HAVE_ST_BLKSIZE 1 | |
3730 | EOF | |
3731 | ||
3732 | fi | |
c2933500 | 3733 | |
bcf1fa6b | 3734 | echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6 |
5f0f31fe | 3735 | echo "configure:3736: checking for st_blocks in struct stat" >&5 |
bcf1fa6b RR |
3736 | if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then |
3737 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3738 | else | |
3739 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3740 | #line 3741 "configure" |
bcf1fa6b RR |
3741 | #include "confdefs.h" |
3742 | #include <sys/types.h> | |
3743 | #include <sys/stat.h> | |
3744 | int main() { | |
3745 | struct stat s; s.st_blocks; | |
3746 | ; return 0; } | |
3747 | EOF | |
5f0f31fe | 3748 | if { (eval echo configure:3749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
bcf1fa6b RR |
3749 | rm -rf conftest* |
3750 | ac_cv_struct_st_blocks=yes | |
3751 | else | |
3752 | echo "configure: failed program was:" >&5 | |
3753 | cat conftest.$ac_ext >&5 | |
3754 | rm -rf conftest* | |
3755 | ac_cv_struct_st_blocks=no | |
3756 | fi | |
3757 | rm -f conftest* | |
3758 | fi | |
3759 | ||
3760 | echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6 | |
3761 | if test $ac_cv_struct_st_blocks = yes; then | |
3762 | cat >> confdefs.h <<\EOF | |
3763 | #define HAVE_ST_BLOCKS 1 | |
3764 | EOF | |
3765 | ||
3766 | else | |
d28e1977 | 3767 | LIBOBJS="$LIBOBJS fileblocks.o" |
bcf1fa6b | 3768 | fi |
c2933500 | 3769 | |
bcf1fa6b | 3770 | echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6 |
5f0f31fe | 3771 | echo "configure:3772: checking for st_rdev in struct stat" >&5 |
bcf1fa6b RR |
3772 | if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then |
3773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3774 | else | |
3775 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3776 | #line 3777 "configure" |
bcf1fa6b RR |
3777 | #include "confdefs.h" |
3778 | #include <sys/types.h> | |
3779 | #include <sys/stat.h> | |
3780 | int main() { | |
3781 | struct stat s; s.st_rdev; | |
3782 | ; return 0; } | |
3783 | EOF | |
5f0f31fe | 3784 | if { (eval echo configure:3785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
bcf1fa6b RR |
3785 | rm -rf conftest* |
3786 | ac_cv_struct_st_rdev=yes | |
3787 | else | |
3788 | echo "configure: failed program was:" >&5 | |
3789 | cat conftest.$ac_ext >&5 | |
3790 | rm -rf conftest* | |
3791 | ac_cv_struct_st_rdev=no | |
3792 | fi | |
3793 | rm -f conftest* | |
3794 | fi | |
3795 | ||
3796 | echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6 | |
3797 | if test $ac_cv_struct_st_rdev = yes; then | |
3798 | cat >> confdefs.h <<\EOF | |
3799 | #define HAVE_ST_RDEV 1 | |
3800 | EOF | |
3801 | ||
3802 | fi | |
c2933500 | 3803 | |
bcf1fa6b | 3804 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
5f0f31fe | 3805 | echo "configure:3806: checking whether struct tm is in sys/time.h or time.h" >&5 |
bcf1fa6b RR |
3806 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
3807 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3808 | else | |
3809 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3810 | #line 3811 "configure" |
bcf1fa6b RR |
3811 | #include "confdefs.h" |
3812 | #include <sys/types.h> | |
3813 | #include <time.h> | |
3814 | int main() { | |
3815 | struct tm *tp; tp->tm_sec; | |
3816 | ; return 0; } | |
3817 | EOF | |
5f0f31fe | 3818 | if { (eval echo configure:3819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
bcf1fa6b RR |
3819 | rm -rf conftest* |
3820 | ac_cv_struct_tm=time.h | |
3821 | else | |
3822 | echo "configure: failed program was:" >&5 | |
3823 | cat conftest.$ac_ext >&5 | |
3824 | rm -rf conftest* | |
3825 | ac_cv_struct_tm=sys/time.h | |
3826 | fi | |
3827 | rm -f conftest* | |
3828 | fi | |
3829 | ||
3830 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 | |
3831 | if test $ac_cv_struct_tm = sys/time.h; then | |
3832 | cat >> confdefs.h <<\EOF | |
3833 | #define TM_IN_SYS_TIME 1 | |
3834 | EOF | |
3835 | ||
3836 | fi | |
3837 | ||
3838 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | |
5f0f31fe | 3839 | echo "configure:3840: checking for tm_zone in struct tm" >&5 |
bcf1fa6b RR |
3840 | if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
3841 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3842 | else | |
3843 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3844 | #line 3845 "configure" |
bcf1fa6b RR |
3845 | #include "confdefs.h" |
3846 | #include <sys/types.h> | |
3847 | #include <$ac_cv_struct_tm> | |
3848 | int main() { | |
3849 | struct tm tm; tm.tm_zone; | |
3850 | ; return 0; } | |
3851 | EOF | |
5f0f31fe | 3852 | if { (eval echo configure:3853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
bcf1fa6b RR |
3853 | rm -rf conftest* |
3854 | ac_cv_struct_tm_zone=yes | |
3855 | else | |
3856 | echo "configure: failed program was:" >&5 | |
3857 | cat conftest.$ac_ext >&5 | |
3858 | rm -rf conftest* | |
3859 | ac_cv_struct_tm_zone=no | |
3860 | fi | |
3861 | rm -f conftest* | |
3862 | fi | |
3863 | ||
3864 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 | |
3865 | if test "$ac_cv_struct_tm_zone" = yes; then | |
3866 | cat >> confdefs.h <<\EOF | |
3867 | #define HAVE_TM_ZONE 1 | |
3868 | EOF | |
3869 | ||
3870 | else | |
3871 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 | |
5f0f31fe | 3872 | echo "configure:3873: checking for tzname" >&5 |
bcf1fa6b RR |
3873 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
3874 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3875 | else | |
3876 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3877 | #line 3878 "configure" |
bcf1fa6b RR |
3878 | #include "confdefs.h" |
3879 | #include <time.h> | |
3880 | #ifndef tzname /* For SGI. */ | |
3881 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
3882 | #endif | |
3883 | int main() { | |
3884 | atoi(*tzname); | |
3885 | ; return 0; } | |
3886 | EOF | |
5f0f31fe | 3887 | if { (eval echo configure:3888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
3888 | rm -rf conftest* |
3889 | ac_cv_var_tzname=yes | |
3890 | else | |
3891 | echo "configure: failed program was:" >&5 | |
3892 | cat conftest.$ac_ext >&5 | |
3893 | rm -rf conftest* | |
3894 | ac_cv_var_tzname=no | |
3895 | fi | |
3896 | rm -f conftest* | |
3897 | fi | |
3898 | ||
3899 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 | |
3900 | if test $ac_cv_var_tzname = yes; then | |
3901 | cat >> confdefs.h <<\EOF | |
3902 | #define HAVE_TZNAME 1 | |
3903 | EOF | |
3904 | ||
3905 | fi | |
3906 | fi | |
3907 | ||
3908 | ||
3909 | ||
3910 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
5f0f31fe | 3911 | echo "configure:3912: checking for working const" >&5 |
bcf1fa6b RR |
3912 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
3913 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3914 | else | |
3915 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3916 | #line 3917 "configure" |
bcf1fa6b RR |
3917 | #include "confdefs.h" |
3918 | ||
3919 | int main() { | |
3920 | ||
3921 | /* Ultrix mips cc rejects this. */ | |
3922 | typedef int charset[2]; const charset x; | |
3923 | /* SunOS 4.1.1 cc rejects this. */ | |
3924 | char const *const *ccp; | |
3925 | char **p; | |
3926 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3927 | struct point {int x, y;}; | |
3928 | static struct point const zero = {0,0}; | |
3929 | /* AIX XL C 1.02.0.0 rejects this. | |
3930 | It does not let you subtract one const X* pointer from another in an arm | |
3931 | of an if-expression whose if-part is not a constant expression */ | |
3932 | const char *g = "string"; | |
3933 | ccp = &g + (g ? g-g : 0); | |
3934 | /* HPUX 7.0 cc rejects these. */ | |
3935 | ++ccp; | |
3936 | p = (char**) ccp; | |
3937 | ccp = (char const *const *) p; | |
3938 | { /* SCO 3.2v4 cc rejects this. */ | |
3939 | char *t; | |
3940 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3941 | ||
3942 | *t++ = 0; | |
3943 | } | |
3944 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3945 | int x[] = {25, 17}; | |
3946 | const int *foo = &x[0]; | |
3947 | ++foo; | |
3948 | } | |
3949 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3950 | typedef const int *iptr; | |
3951 | iptr p = 0; | |
3952 | ++p; | |
3953 | } | |
3954 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3955 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3956 | struct s { int j; const int *ap[3]; }; | |
3957 | struct s *b; b->j = 5; | |
3958 | } | |
3959 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3960 | const int foo = 10; | |
3961 | } | |
3962 | ||
3963 | ; return 0; } | |
3964 | EOF | |
5f0f31fe | 3965 | if { (eval echo configure:3966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
bcf1fa6b RR |
3966 | rm -rf conftest* |
3967 | ac_cv_c_const=yes | |
3968 | else | |
3969 | echo "configure: failed program was:" >&5 | |
3970 | cat conftest.$ac_ext >&5 | |
3971 | rm -rf conftest* | |
3972 | ac_cv_c_const=no | |
3973 | fi | |
3974 | rm -f conftest* | |
3975 | fi | |
3976 | ||
3977 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
3978 | if test $ac_cv_c_const = no; then | |
3979 | cat >> confdefs.h <<\EOF | |
3980 | #define const | |
3981 | EOF | |
3982 | ||
3983 | fi | |
3984 | ||
3985 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
5f0f31fe | 3986 | echo "configure:3987: checking for inline" >&5 |
bcf1fa6b RR |
3987 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
3988 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3989 | else | |
3990 | ac_cv_c_inline=no | |
3991 | for ac_kw in inline __inline__ __inline; do | |
3992 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 3993 | #line 3994 "configure" |
bcf1fa6b RR |
3994 | #include "confdefs.h" |
3995 | ||
3996 | int main() { | |
3997 | } $ac_kw foo() { | |
3998 | ; return 0; } | |
3999 | EOF | |
5f0f31fe | 4000 | if { (eval echo configure:4001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
bcf1fa6b RR |
4001 | rm -rf conftest* |
4002 | ac_cv_c_inline=$ac_kw; break | |
4003 | else | |
4004 | echo "configure: failed program was:" >&5 | |
4005 | cat conftest.$ac_ext >&5 | |
4006 | fi | |
4007 | rm -f conftest* | |
4008 | done | |
4009 | ||
4010 | fi | |
4011 | ||
4012 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
4013 | case "$ac_cv_c_inline" in | |
4014 | inline | yes) ;; | |
4015 | no) cat >> confdefs.h <<\EOF | |
4016 | #define inline | |
4017 | EOF | |
4018 | ;; | |
4019 | *) cat >> confdefs.h <<EOF | |
4020 | #define inline $ac_cv_c_inline | |
4021 | EOF | |
4022 | ;; | |
4023 | esac | |
4024 | ||
4025 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 | |
5f0f31fe | 4026 | echo "configure:4027: checking whether char is unsigned" >&5 |
bcf1fa6b RR |
4027 | if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then |
4028 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4029 | else | |
4030 | if test "$GCC" = yes; then | |
4031 | # GCC predefines this symbol on systems where it applies. | |
4032 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 4033 | #line 4034 "configure" |
bcf1fa6b RR |
4034 | #include "confdefs.h" |
4035 | #ifdef __CHAR_UNSIGNED__ | |
4036 | yes | |
4037 | #endif | |
4038 | ||
4039 | EOF | |
4040 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4041 | egrep "yes" >/dev/null 2>&1; then | |
4042 | rm -rf conftest* | |
4043 | ac_cv_c_char_unsigned=yes | |
4044 | else | |
4045 | rm -rf conftest* | |
4046 | ac_cv_c_char_unsigned=no | |
4047 | fi | |
4048 | rm -f conftest* | |
4049 | ||
4050 | else | |
4051 | if test "$cross_compiling" = yes; then | |
4052 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
4053 | else | |
4054 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 4055 | #line 4056 "configure" |
bcf1fa6b RR |
4056 | #include "confdefs.h" |
4057 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ | |
4058 | #if !defined(__STDC__) || __STDC__ != 1 | |
4059 | #define volatile | |
4060 | #endif | |
4061 | main() { | |
4062 | volatile char c = 255; exit(c < 0); | |
4063 | } | |
4064 | EOF | |
5f0f31fe | 4065 | if { (eval echo configure:4066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
bcf1fa6b RR |
4066 | then |
4067 | ac_cv_c_char_unsigned=yes | |
4068 | else | |
4069 | echo "configure: failed program was:" >&5 | |
4070 | cat conftest.$ac_ext >&5 | |
4071 | rm -fr conftest* | |
4072 | ac_cv_c_char_unsigned=no | |
4073 | fi | |
4074 | rm -fr conftest* | |
4075 | fi | |
4076 | ||
4077 | fi | |
4078 | fi | |
4079 | ||
4080 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 | |
4081 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | |
4082 | cat >> confdefs.h <<\EOF | |
4083 | #define __CHAR_UNSIGNED__ 1 | |
4084 | EOF | |
4085 | ||
4086 | fi | |
4087 | ||
4088 | echo $ac_n "checking for long double""... $ac_c" 1>&6 | |
5f0f31fe | 4089 | echo "configure:4090: checking for long double" >&5 |
bcf1fa6b RR |
4090 | if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then |
4091 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4092 | else | |
4093 | if test "$GCC" = yes; then | |
4094 | ac_cv_c_long_double=yes | |
4095 | else | |
4096 | if test "$cross_compiling" = yes; then | |
4097 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
4098 | else | |
4099 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 4100 | #line 4101 "configure" |
bcf1fa6b RR |
4101 | #include "confdefs.h" |
4102 | int main() { | |
4103 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ | |
4104 | long double foo = 0.0; | |
4105 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ | |
4106 | exit(sizeof(long double) < sizeof(double)); } | |
4107 | EOF | |
5f0f31fe | 4108 | if { (eval echo configure:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
bcf1fa6b RR |
4109 | then |
4110 | ac_cv_c_long_double=yes | |
4111 | else | |
4112 | echo "configure: failed program was:" >&5 | |
4113 | cat conftest.$ac_ext >&5 | |
4114 | rm -fr conftest* | |
4115 | ac_cv_c_long_double=no | |
4116 | fi | |
4117 | rm -fr conftest* | |
4118 | fi | |
4119 | ||
4120 | fi | |
4121 | fi | |
4122 | ||
4123 | echo "$ac_t""$ac_cv_c_long_double" 1>&6 | |
4124 | if test $ac_cv_c_long_double = yes; then | |
4125 | cat >> confdefs.h <<\EOF | |
4126 | #define HAVE_LONG_DOUBLE 1 | |
4127 | EOF | |
4128 | ||
4129 | fi | |
4130 | ||
4131 | ||
4132 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
5f0f31fe | 4133 | echo "configure:4134: checking whether byte ordering is bigendian" >&5 |
bcf1fa6b RR |
4134 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
4135 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4136 | else | |
4137 | ac_cv_c_bigendian=unknown | |
4138 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4139 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 4140 | #line 4141 "configure" |
bcf1fa6b RR |
4141 | #include "confdefs.h" |
4142 | #include <sys/types.h> | |
4143 | #include <sys/param.h> | |
4144 | int main() { | |
4145 | ||
4146 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
4147 | bogus endian macros | |
4148 | #endif | |
4149 | ; return 0; } | |
4150 | EOF | |
5f0f31fe | 4151 | if { (eval echo configure:4152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
bcf1fa6b RR |
4152 | rm -rf conftest* |
4153 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
4154 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 4155 | #line 4156 "configure" |
bcf1fa6b RR |
4156 | #include "confdefs.h" |
4157 | #include <sys/types.h> | |
4158 | #include <sys/param.h> | |
4159 | int main() { | |
4160 | ||
4161 | #if BYTE_ORDER != BIG_ENDIAN | |
4162 | not big endian | |
4163 | #endif | |
4164 | ; return 0; } | |
4165 | EOF | |
5f0f31fe | 4166 | if { (eval echo configure:4167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
bcf1fa6b RR |
4167 | rm -rf conftest* |
4168 | ac_cv_c_bigendian=yes | |
4169 | else | |
4170 | echo "configure: failed program was:" >&5 | |
4171 | cat conftest.$ac_ext >&5 | |
4172 | rm -rf conftest* | |
4173 | ac_cv_c_bigendian=no | |
4174 | fi | |
4175 | rm -f conftest* | |
4176 | else | |
4177 | echo "configure: failed program was:" >&5 | |
4178 | cat conftest.$ac_ext >&5 | |
4179 | fi | |
4180 | rm -f conftest* | |
4181 | if test $ac_cv_c_bigendian = unknown; then | |
4182 | if test "$cross_compiling" = yes; then | |
4183 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
4184 | else | |
4185 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 4186 | #line 4187 "configure" |
bcf1fa6b RR |
4187 | #include "confdefs.h" |
4188 | main () { | |
4189 | /* Are we little or big endian? From Harbison&Steele. */ | |
4190 | union | |
4191 | { | |
4192 | long l; | |
4193 | char c[sizeof (long)]; | |
4194 | } u; | |
4195 | u.l = 1; | |
4196 | exit (u.c[sizeof (long) - 1] == 1); | |
4197 | } | |
4198 | EOF | |
5f0f31fe | 4199 | if { (eval echo configure:4200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
bcf1fa6b RR |
4200 | then |
4201 | ac_cv_c_bigendian=no | |
4202 | else | |
4203 | echo "configure: failed program was:" >&5 | |
4204 | cat conftest.$ac_ext >&5 | |
4205 | rm -fr conftest* | |
4206 | ac_cv_c_bigendian=yes | |
4207 | fi | |
4208 | rm -fr conftest* | |
4209 | fi | |
4210 | ||
4211 | fi | |
4212 | fi | |
4213 | ||
4214 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
4215 | if test $ac_cv_c_bigendian = yes; then | |
4216 | cat >> confdefs.h <<\EOF | |
4217 | #define WORDS_BIGENDIAN 1 | |
4218 | EOF | |
4219 | ||
4220 | fi | |
4221 | ||
4222 | ||
4223 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
5f0f31fe | 4224 | echo "configure:4225: checking size of int *" >&5 |
bcf1fa6b RR |
4225 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
4226 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4227 | else | |
4228 | if test "$cross_compiling" = yes; then | |
4229 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
4230 | else | |
4231 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 4232 | #line 4233 "configure" |
bcf1fa6b RR |
4233 | #include "confdefs.h" |
4234 | #include <stdio.h> | |
4235 | main() | |
4236 | { | |
4237 | FILE *f=fopen("conftestval", "w"); | |
4238 | if (!f) exit(1); | |
4239 | fprintf(f, "%d\n", sizeof(int *)); | |
4240 | exit(0); | |
4241 | } | |
4242 | EOF | |
5f0f31fe | 4243 | if { (eval echo configure:4244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
bcf1fa6b RR |
4244 | then |
4245 | ac_cv_sizeof_int_p=`cat conftestval` | |
4246 | else | |
4247 | echo "configure: failed program was:" >&5 | |
4248 | cat conftest.$ac_ext >&5 | |
4249 | rm -fr conftest* | |
4250 | ac_cv_sizeof_int_p=0 | |
4251 | fi | |
4252 | rm -fr conftest* | |
4253 | fi | |
4254 | ||
4255 | fi | |
4256 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
4257 | cat >> confdefs.h <<EOF | |
4258 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
4259 | EOF | |
4260 | ||
4261 | ||
4262 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
5f0f31fe | 4263 | echo "configure:4264: checking size of int" >&5 |
bcf1fa6b RR |
4264 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
4265 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4266 | else | |
4267 | if test "$cross_compiling" = yes; then | |
4268 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
4269 | else | |
4270 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 4271 | #line 4272 "configure" |
bcf1fa6b RR |
4272 | #include "confdefs.h" |
4273 | #include <stdio.h> | |
4274 | main() | |
4275 | { | |
4276 | FILE *f=fopen("conftestval", "w"); | |
4277 | if (!f) exit(1); | |
4278 | fprintf(f, "%d\n", sizeof(int)); | |
4279 | exit(0); | |
4280 | } | |
4281 | EOF | |
5f0f31fe | 4282 | if { (eval echo configure:4283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
bcf1fa6b RR |
4283 | then |
4284 | ac_cv_sizeof_int=`cat conftestval` | |
4285 | else | |
4286 | echo "configure: failed program was:" >&5 | |
4287 | cat conftest.$ac_ext >&5 | |
4288 | rm -fr conftest* | |
4289 | ac_cv_sizeof_int=0 | |
4290 | fi | |
4291 | rm -fr conftest* | |
4292 | fi | |
4293 | ||
4294 | fi | |
4295 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
4296 | cat >> confdefs.h <<EOF | |
4297 | #define SIZEOF_INT $ac_cv_sizeof_int | |
4298 | EOF | |
4299 | ||
4300 | ||
4301 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
5f0f31fe | 4302 | echo "configure:4303: checking size of long" >&5 |
bcf1fa6b RR |
4303 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
4304 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4305 | else | |
4306 | if test "$cross_compiling" = yes; then | |
4307 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
4308 | else | |
4309 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 4310 | #line 4311 "configure" |
bcf1fa6b RR |
4311 | #include "confdefs.h" |
4312 | #include <stdio.h> | |
4313 | main() | |
4314 | { | |
4315 | FILE *f=fopen("conftestval", "w"); | |
4316 | if (!f) exit(1); | |
4317 | fprintf(f, "%d\n", sizeof(long)); | |
4318 | exit(0); | |
4319 | } | |
4320 | EOF | |
5f0f31fe | 4321 | if { (eval echo configure:4322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
bcf1fa6b RR |
4322 | then |
4323 | ac_cv_sizeof_long=`cat conftestval` | |
4324 | else | |
4325 | echo "configure: failed program was:" >&5 | |
4326 | cat conftest.$ac_ext >&5 | |
4327 | rm -fr conftest* | |
4328 | ac_cv_sizeof_long=0 | |
4329 | fi | |
4330 | rm -fr conftest* | |
4331 | fi | |
4332 | ||
4333 | fi | |
4334 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
4335 | cat >> confdefs.h <<EOF | |
4336 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
4337 | EOF | |
4338 | ||
4339 | ||
6c56b261 | 4340 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
5f0f31fe | 4341 | echo "configure:4342: checking size of long long" >&5 |
6c56b261 KB |
4342 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
4343 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4344 | else | |
4345 | if test "$cross_compiling" = yes; then | |
4346 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
4347 | else | |
4348 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 4349 | #line 4350 "configure" |
6c56b261 KB |
4350 | #include "confdefs.h" |
4351 | #include <stdio.h> | |
4352 | main() | |
4353 | { | |
4354 | FILE *f=fopen("conftestval", "w"); | |
4355 | if (!f) exit(1); | |
4356 | fprintf(f, "%d\n", sizeof(long long)); | |
4357 | exit(0); | |
4358 | } | |
4359 | EOF | |
5f0f31fe | 4360 | if { (eval echo configure:4361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
6c56b261 KB |
4361 | then |
4362 | ac_cv_sizeof_long_long=`cat conftestval` | |
4363 | else | |
4364 | echo "configure: failed program was:" >&5 | |
4365 | cat conftest.$ac_ext >&5 | |
4366 | rm -fr conftest* | |
4367 | ac_cv_sizeof_long_long=0 | |
4368 | fi | |
4369 | rm -fr conftest* | |
4370 | fi | |
4371 | ||
4372 | fi | |
4373 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
4374 | cat >> confdefs.h <<EOF | |
4375 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
4376 | EOF | |
4377 | ||
4378 | ||
bcf1fa6b RR |
4379 | |
4380 | ||
4381 | ||
4382 | ||
4383 | echo $ac_n "checking for long file names""... $ac_c" 1>&6 | |
5f0f31fe | 4384 | echo "configure:4385: checking for long file names" >&5 |
bcf1fa6b RR |
4385 | if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then |
4386 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4387 | else | |
4388 | ac_cv_sys_long_file_names=yes | |
4389 | # Test for long file names in all the places we know might matter: | |
4390 | # . the current directory, where building will happen | |
4391 | # $prefix/lib where we will be installing things | |
4392 | # $exec_prefix/lib likewise | |
4393 | # eval it to expand exec_prefix. | |
4394 | # $TMPDIR if set, where it might want to write temporary files | |
4395 | # if $TMPDIR is not set: | |
4396 | # /tmp where it might want to write temporary files | |
4397 | # /var/tmp likewise | |
4398 | # /usr/tmp likewise | |
4399 | if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
4400 | ac_tmpdirs="$TMPDIR" | |
4401 | else | |
4402 | ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
4403 | fi | |
4404 | for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
4405 | test -d $ac_dir || continue | |
4406 | test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
4407 | (echo 1 > $ac_dir/conftest9012345) 2>/dev/null | |
4408 | (echo 2 > $ac_dir/conftest9012346) 2>/dev/null | |
4409 | val=`cat $ac_dir/conftest9012345 2>/dev/null` | |
4410 | if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then | |
4411 | ac_cv_sys_long_file_names=no | |
4412 | rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
4413 | break | |
4414 | fi | |
4415 | rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
4416 | done | |
4417 | fi | |
4418 | ||
4419 | echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6 | |
4420 | if test $ac_cv_sys_long_file_names = yes; then | |
4421 | cat >> confdefs.h <<\EOF | |
4422 | #define HAVE_LONG_FILE_NAMES 1 | |
4423 | EOF | |
4424 | ||
4425 | fi | |
4426 | ||
4427 | ||
c2933500 | 4428 | |
bcf1fa6b RR |
4429 | |
4430 | for ac_prog in 'bison -y' byacc | |
4431 | do | |
4432 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4433 | set dummy $ac_prog; ac_word=$2 | |
4434 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5f0f31fe | 4435 | echo "configure:4436: checking for $ac_word" >&5 |
bcf1fa6b RR |
4436 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
4437 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4438 | else | |
4439 | if test -n "$YACC"; then | |
4440 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4441 | else | |
d28e1977 RR |
4442 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
4443 | for ac_dir in $PATH; do | |
bcf1fa6b RR |
4444 | test -z "$ac_dir" && ac_dir=. |
4445 | if test -f $ac_dir/$ac_word; then | |
4446 | ac_cv_prog_YACC="$ac_prog" | |
4447 | break | |
4448 | fi | |
4449 | done | |
4450 | IFS="$ac_save_ifs" | |
4451 | fi | |
4452 | fi | |
4453 | YACC="$ac_cv_prog_YACC" | |
4454 | if test -n "$YACC"; then | |
4455 | echo "$ac_t""$YACC" 1>&6 | |
4456 | else | |
4457 | echo "$ac_t""no" 1>&6 | |
4458 | fi | |
4459 | ||
4460 | test -n "$YACC" && break | |
4461 | done | |
4462 | test -n "$YACC" || YACC="yacc" | |
4463 | ||
4464 | ||
4465 | # Extract the first word of "flex", so it can be a program name with args. | |
4466 | set dummy flex; ac_word=$2 | |
4467 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5f0f31fe | 4468 | echo "configure:4469: checking for $ac_word" >&5 |
bcf1fa6b RR |
4469 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
4470 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4471 | else | |
4472 | if test -n "$LEX"; then | |
4473 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
4474 | else | |
d28e1977 RR |
4475 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
4476 | for ac_dir in $PATH; do | |
bcf1fa6b RR |
4477 | test -z "$ac_dir" && ac_dir=. |
4478 | if test -f $ac_dir/$ac_word; then | |
4479 | ac_cv_prog_LEX="flex" | |
4480 | break | |
4481 | fi | |
4482 | done | |
4483 | IFS="$ac_save_ifs" | |
4484 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
4485 | fi | |
4486 | fi | |
4487 | LEX="$ac_cv_prog_LEX" | |
4488 | if test -n "$LEX"; then | |
4489 | echo "$ac_t""$LEX" 1>&6 | |
4490 | else | |
4491 | echo "$ac_t""no" 1>&6 | |
4492 | fi | |
4493 | ||
4494 | if test -z "$LEXLIB" | |
4495 | then | |
4496 | case "$LEX" in | |
4497 | flex*) ac_lib=fl ;; | |
4498 | *) ac_lib=l ;; | |
4499 | esac | |
4500 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
5f0f31fe | 4501 | echo "configure:4502: checking for yywrap in -l$ac_lib" >&5 |
bcf1fa6b RR |
4502 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
4503 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4504 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4505 | else | |
4506 | ac_save_LIBS="$LIBS" | |
4507 | LIBS="-l$ac_lib $LIBS" | |
4508 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 4509 | #line 4510 "configure" |
bcf1fa6b RR |
4510 | #include "confdefs.h" |
4511 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4512 | /* We use char because int might match the return type of a gcc2 | |
4513 | builtin and then its argument prototype would still apply. */ | |
4514 | char yywrap(); | |
4515 | ||
4516 | int main() { | |
4517 | yywrap() | |
4518 | ; return 0; } | |
4519 | EOF | |
5f0f31fe | 4520 | if { (eval echo configure:4521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
4521 | rm -rf conftest* |
4522 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4523 | else | |
4524 | echo "configure: failed program was:" >&5 | |
4525 | cat conftest.$ac_ext >&5 | |
4526 | rm -rf conftest* | |
4527 | eval "ac_cv_lib_$ac_lib_var=no" | |
4528 | fi | |
4529 | rm -f conftest* | |
4530 | LIBS="$ac_save_LIBS" | |
4531 | ||
4532 | fi | |
4533 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4534 | echo "$ac_t""yes" 1>&6 | |
4535 | LEXLIB="-l$ac_lib" | |
4536 | else | |
4537 | echo "$ac_t""no" 1>&6 | |
4538 | fi | |
4539 | ||
4540 | fi | |
4541 | ||
4542 | echo $ac_n "checking lex output file root""... $ac_c" 1>&6 | |
5f0f31fe | 4543 | echo "configure:4544: checking lex output file root" >&5 |
bcf1fa6b RR |
4544 | if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then |
4545 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4546 | else | |
4547 | # The minimal lex program is just a single line: %%. But some broken lexes | |
4548 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
4549 | echo '%% | |
4550 | %%' | $LEX | |
4551 | if test -f lex.yy.c; then | |
4552 | ac_cv_prog_lex_root=lex.yy | |
4553 | elif test -f lexyy.c; then | |
4554 | ac_cv_prog_lex_root=lexyy | |
4555 | else | |
4556 | { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; } | |
4557 | fi | |
4558 | fi | |
4559 | ||
4560 | echo "$ac_t""$ac_cv_prog_lex_root" 1>&6 | |
4561 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
4562 | ||
4563 | echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 | |
5f0f31fe | 4564 | echo "configure:4565: checking whether yytext is a pointer" >&5 |
bcf1fa6b RR |
4565 | if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then |
4566 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4567 | else | |
4568 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
4569 | # default is implementation-dependent. Figure out which it is, since | |
4570 | # not all implementations provide the %pointer and %array declarations. | |
4571 | ac_cv_prog_lex_yytext_pointer=no | |
4572 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
4573 | ac_save_LIBS="$LIBS" | |
4574 | LIBS="$LIBS $LEXLIB" | |
4575 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 4576 | #line 4577 "configure" |
bcf1fa6b RR |
4577 | #include "confdefs.h" |
4578 | `cat $LEX_OUTPUT_ROOT.c` | |
4579 | int main() { | |
4580 | ||
4581 | ; return 0; } | |
4582 | EOF | |
5f0f31fe | 4583 | if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
4584 | rm -rf conftest* |
4585 | ac_cv_prog_lex_yytext_pointer=yes | |
4586 | else | |
4587 | echo "configure: failed program was:" >&5 | |
4588 | cat conftest.$ac_ext >&5 | |
4589 | fi | |
4590 | rm -f conftest* | |
4591 | LIBS="$ac_save_LIBS" | |
4592 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
4593 | ||
4594 | fi | |
4595 | ||
4596 | echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6 | |
4597 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
4598 | cat >> confdefs.h <<\EOF | |
4599 | #define YYTEXT_POINTER 1 | |
4600 | EOF | |
4601 | ||
4602 | fi | |
4603 | ||
4604 | ||
4605 | ||
cd5bf2a6 RR |
4606 | DL_LIBRARY= |
4607 | for ac_func in dlopen | |
4608 | do | |
4609 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5f0f31fe | 4610 | echo "configure:4611: checking for $ac_func" >&5 |
cd5bf2a6 RR |
4611 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4612 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4613 | else | |
4614 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 4615 | #line 4616 "configure" |
cd5bf2a6 RR |
4616 | #include "confdefs.h" |
4617 | /* System header to define __stub macros and hopefully few prototypes, | |
4618 | which can conflict with char $ac_func(); below. */ | |
4619 | #include <assert.h> | |
4620 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4621 | /* We use char because int might match the return type of a gcc2 | |
4622 | builtin and then its argument prototype would still apply. */ | |
4623 | char $ac_func(); | |
4624 | ||
4625 | int main() { | |
4626 | ||
4627 | /* The GNU C library defines this for functions which it implements | |
4628 | to always fail with ENOSYS. Some functions are actually named | |
4629 | something starting with __ and the normal name is an alias. */ | |
4630 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4631 | choke me | |
4632 | #else | |
4633 | $ac_func(); | |
4634 | #endif | |
4635 | ||
4636 | ; return 0; } | |
4637 | EOF | |
5f0f31fe | 4638 | if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
cd5bf2a6 RR |
4639 | rm -rf conftest* |
4640 | eval "ac_cv_func_$ac_func=yes" | |
4641 | else | |
4642 | echo "configure: failed program was:" >&5 | |
4643 | cat conftest.$ac_ext >&5 | |
4644 | rm -rf conftest* | |
4645 | eval "ac_cv_func_$ac_func=no" | |
4646 | fi | |
4647 | rm -f conftest* | |
4648 | fi | |
4649 | ||
4650 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4651 | echo "$ac_t""yes" 1>&6 | |
4652 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4653 | cat >> confdefs.h <<EOF | |
4654 | #define $ac_tr_func 1 | |
4655 | EOF | |
4656 | cat >> confdefs.h <<\EOF | |
4657 | #define HAVE_LIBDL 1 | |
4658 | EOF | |
4659 | ||
4660 | else | |
4661 | echo "$ac_t""no" 1>&6 | |
4662 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
5f0f31fe | 4663 | echo "configure:4664: checking for dlopen in -ldl" >&5 |
cd5bf2a6 RR |
4664 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
4665 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4666 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4667 | else | |
4668 | ac_save_LIBS="$LIBS" | |
4669 | LIBS="-ldl $LIBS" | |
4670 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 4671 | #line 4672 "configure" |
cd5bf2a6 RR |
4672 | #include "confdefs.h" |
4673 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4674 | /* We use char because int might match the return type of a gcc2 | |
4675 | builtin and then its argument prototype would still apply. */ | |
4676 | char dlopen(); | |
4677 | ||
4678 | int main() { | |
4679 | dlopen() | |
4680 | ; return 0; } | |
4681 | EOF | |
5f0f31fe | 4682 | if { (eval echo configure:4683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
cd5bf2a6 RR |
4683 | rm -rf conftest* |
4684 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4685 | else | |
4686 | echo "configure: failed program was:" >&5 | |
4687 | cat conftest.$ac_ext >&5 | |
4688 | rm -rf conftest* | |
4689 | eval "ac_cv_lib_$ac_lib_var=no" | |
4690 | fi | |
4691 | rm -f conftest* | |
4692 | LIBS="$ac_save_LIBS" | |
4693 | ||
4694 | fi | |
4695 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4696 | echo "$ac_t""yes" 1>&6 | |
4697 | cat >> confdefs.h <<\EOF | |
4698 | #define HAVE_LIBDL 1 | |
4699 | EOF | |
4700 | DL_LIBRARY="-ldl" | |
4701 | else | |
4702 | echo "$ac_t""no" 1>&6 | |
4703 | echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6 | |
5f0f31fe | 4704 | echo "configure:4705: checking for dld_link in -ldld" >&5 |
cd5bf2a6 RR |
4705 | ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'` |
4706 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4707 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4708 | else | |
4709 | ac_save_LIBS="$LIBS" | |
4710 | LIBS="-ldld $LIBS" | |
4711 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 4712 | #line 4713 "configure" |
cd5bf2a6 RR |
4713 | #include "confdefs.h" |
4714 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4715 | /* We use char because int might match the return type of a gcc2 | |
4716 | builtin and then its argument prototype would still apply. */ | |
4717 | char dld_link(); | |
4718 | ||
4719 | int main() { | |
4720 | dld_link() | |
4721 | ; return 0; } | |
4722 | EOF | |
5f0f31fe | 4723 | if { (eval echo configure:4724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
cd5bf2a6 RR |
4724 | rm -rf conftest* |
4725 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4726 | else | |
4727 | echo "configure: failed program was:" >&5 | |
4728 | cat conftest.$ac_ext >&5 | |
4729 | rm -rf conftest* | |
4730 | eval "ac_cv_lib_$ac_lib_var=no" | |
4731 | fi | |
4732 | rm -f conftest* | |
4733 | LIBS="$ac_save_LIBS" | |
4734 | ||
4735 | fi | |
4736 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4737 | echo "$ac_t""yes" 1>&6 | |
4738 | cat >> confdefs.h <<\EOF | |
4739 | #define HAVE_DLD 1 | |
4740 | EOF | |
4741 | DL_LIBRARY="-ldld" | |
4742 | else | |
4743 | echo "$ac_t""no" 1>&6 | |
4744 | for ac_func in shl_load | |
4745 | do | |
4746 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5f0f31fe | 4747 | echo "configure:4748: checking for $ac_func" >&5 |
cd5bf2a6 RR |
4748 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4749 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4750 | else | |
4751 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 4752 | #line 4753 "configure" |
cd5bf2a6 RR |
4753 | #include "confdefs.h" |
4754 | /* System header to define __stub macros and hopefully few prototypes, | |
4755 | which can conflict with char $ac_func(); below. */ | |
4756 | #include <assert.h> | |
4757 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4758 | /* We use char because int might match the return type of a gcc2 | |
4759 | builtin and then its argument prototype would still apply. */ | |
4760 | char $ac_func(); | |
4761 | ||
4762 | int main() { | |
4763 | ||
4764 | /* The GNU C library defines this for functions which it implements | |
4765 | to always fail with ENOSYS. Some functions are actually named | |
4766 | something starting with __ and the normal name is an alias. */ | |
4767 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4768 | choke me | |
4769 | #else | |
4770 | $ac_func(); | |
4771 | #endif | |
4772 | ||
4773 | ; return 0; } | |
4774 | EOF | |
5f0f31fe | 4775 | if { (eval echo configure:4776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
cd5bf2a6 RR |
4776 | rm -rf conftest* |
4777 | eval "ac_cv_func_$ac_func=yes" | |
4778 | else | |
4779 | echo "configure: failed program was:" >&5 | |
4780 | cat conftest.$ac_ext >&5 | |
4781 | rm -rf conftest* | |
4782 | eval "ac_cv_func_$ac_func=no" | |
4783 | fi | |
4784 | rm -f conftest* | |
4785 | fi | |
4786 | ||
4787 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4788 | echo "$ac_t""yes" 1>&6 | |
4789 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4790 | cat >> confdefs.h <<EOF | |
4791 | #define $ac_tr_func 1 | |
4792 | EOF | |
4793 | cat >> confdefs.h <<\EOF | |
4794 | #define HAVE_SHL_LOAD 1 | |
4795 | EOF | |
4796 | ||
4797 | else | |
4798 | echo "$ac_t""no" 1>&6 | |
4799 | fi | |
4800 | done | |
4801 | ||
4802 | ||
4803 | fi | |
4804 | ||
4805 | ||
4806 | fi | |
4807 | ||
4808 | ||
4809 | fi | |
4810 | done | |
4811 | ||
4812 | ||
4813 | ||
4814 | echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6 | |
5f0f31fe | 4815 | echo "configure:4816: checking for underscore before symbols" >&5 |
cd5bf2a6 RR |
4816 | if eval "test \"`echo '$''{'libltdl_cv_uscore'+set}'`\" = set"; then |
4817 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4818 | else | |
4819 | ||
4820 | echo "main(){int i=1;} fnord(){int i=23; int ltuae=42;}" > conftest.c | |
4821 | ${CC} -c conftest.c > /dev/null | |
4822 | if (nm conftest.o | grep _fnord) > /dev/null; then | |
4823 | libltdl_cv_uscore=yes | |
4824 | else | |
4825 | libltdl_cv_uscore=no | |
4826 | fi | |
4827 | rm -f conftest* | |
4828 | ||
4829 | fi | |
4830 | ||
4831 | echo "$ac_t""$libltdl_cv_uscore" 1>&6 | |
4832 | ||
4833 | if test x"$libltdl_cv_uscore" = xyes; then | |
4834 | if test x"$ac_cv_func_dlopen" = xyes || | |
4835 | test x"$ac_cv_lib_dl_dlopen" = xyes ; then | |
4836 | echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6 | |
5f0f31fe | 4837 | echo "configure:4838: checking whether we have to add an underscore for dlsym" >&5 |
cd5bf2a6 RR |
4838 | if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then |
4839 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4840 | else | |
4841 | if test "$cross_compiling" = yes; then | |
4842 | libltdl_cv_need_uscore=no | |
4843 | ||
4844 | else | |
4845 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 4846 | #line 4847 "configure" |
cd5bf2a6 RR |
4847 | #include "confdefs.h" |
4848 | ||
4849 | #include <dlfcn.h> | |
4850 | #include <stdio.h> | |
4851 | fnord() { int i=42;} | |
4852 | main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY); | |
4853 | if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord"); | |
c2933500 | 4854 | if(ptr1 && !ptr2) exit(0); } exit(1); } |
cd5bf2a6 RR |
4855 | |
4856 | EOF | |
5f0f31fe | 4857 | if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
cd5bf2a6 RR |
4858 | then |
4859 | libltdl_cv_need_uscore=no | |
4860 | else | |
4861 | echo "configure: failed program was:" >&5 | |
4862 | cat conftest.$ac_ext >&5 | |
4863 | rm -fr conftest* | |
4864 | libltdl_cv_need_uscore=yes | |
4865 | fi | |
4866 | rm -fr conftest* | |
4867 | fi | |
4868 | ||
4869 | fi | |
4870 | ||
4871 | echo "$ac_t""$libltdl_cv_need_uscore" 1>&6 | |
4872 | fi | |
4873 | fi | |
4874 | ||
4875 | if test x"$libltdl_cv_need_uscore" = xyes; then | |
4876 | cat >> confdefs.h <<\EOF | |
4877 | #define NEED_USCORE 1 | |
4878 | EOF | |
4879 | ||
4880 | fi | |
4881 | ||
4882 | ||
4883 | for ac_func in strerror | |
4884 | do | |
4885 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5f0f31fe | 4886 | echo "configure:4887: checking for $ac_func" >&5 |
cd5bf2a6 RR |
4887 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4889 | else | |
4890 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 4891 | #line 4892 "configure" |
cd5bf2a6 RR |
4892 | #include "confdefs.h" |
4893 | /* System header to define __stub macros and hopefully few prototypes, | |
4894 | which can conflict with char $ac_func(); below. */ | |
4895 | #include <assert.h> | |
4896 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4897 | /* We use char because int might match the return type of a gcc2 | |
4898 | builtin and then its argument prototype would still apply. */ | |
4899 | char $ac_func(); | |
4900 | ||
4901 | int main() { | |
4902 | ||
4903 | /* The GNU C library defines this for functions which it implements | |
4904 | to always fail with ENOSYS. Some functions are actually named | |
4905 | something starting with __ and the normal name is an alias. */ | |
4906 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4907 | choke me | |
4908 | #else | |
4909 | $ac_func(); | |
4910 | #endif | |
4911 | ||
4912 | ; return 0; } | |
4913 | EOF | |
5f0f31fe | 4914 | if { (eval echo configure:4915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
cd5bf2a6 RR |
4915 | rm -rf conftest* |
4916 | eval "ac_cv_func_$ac_func=yes" | |
4917 | else | |
4918 | echo "configure: failed program was:" >&5 | |
4919 | cat conftest.$ac_ext >&5 | |
4920 | rm -rf conftest* | |
4921 | eval "ac_cv_func_$ac_func=no" | |
4922 | fi | |
4923 | rm -f conftest* | |
4924 | fi | |
4925 | ||
4926 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4927 | echo "$ac_t""yes" 1>&6 | |
4928 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4929 | cat >> confdefs.h <<EOF | |
4930 | #define $ac_tr_func 1 | |
4931 | EOF | |
4932 | ||
4933 | else | |
4934 | echo "$ac_t""no" 1>&6 | |
4935 | fi | |
4936 | done | |
4937 | ||
4938 | ||
4939 | ||
bcf1fa6b RR |
4940 | CHECK_INCLUDE="-I/usr/include $X_CFLAGS" |
4941 | CHECK_LIB="-L/lib -L/usr/lib $X_LIBS" | |
4942 | ||
4943 | ||
4944 | ||
4945 | # Make sure we can run config.sub. | |
d28e1977 | 4946 | if $ac_config_sub sun4 >/dev/null 2>&1; then : |
bcf1fa6b RR |
4947 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
4948 | fi | |
4949 | ||
4950 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
5f0f31fe | 4951 | echo "configure:4952: checking host system type" >&5 |
bcf1fa6b RR |
4952 | |
4953 | host_alias=$host | |
4954 | case "$host_alias" in | |
4955 | NONE) | |
4956 | case $nonopt in | |
4957 | NONE) | |
d28e1977 | 4958 | if host_alias=`$ac_config_guess`; then : |
bcf1fa6b RR |
4959 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
4960 | fi ;; | |
4961 | *) host_alias=$nonopt ;; | |
4962 | esac ;; | |
4963 | esac | |
4964 | ||
d28e1977 | 4965 | host=`$ac_config_sub $host_alias` |
bcf1fa6b RR |
4966 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
4967 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
4968 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
4969 | echo "$ac_t""$host" 1>&6 | |
4970 | ||
4971 | canonical=$host | |
4972 | configuration=$host_alias | |
4973 | ||
4974 | ||
4975 | USE_UNIX=1 | |
4976 | ||
bcf1fa6b RR |
4977 | USE_LINUX= |
4978 | USE_SGI= | |
4979 | USE_HPUX= | |
4980 | USE_SYSV= | |
4981 | USE_SVR4= | |
4982 | USE_AIX= | |
4983 | USE_SUN= | |
4984 | USE_SOLARIS= | |
4985 | USE_SUNOS= | |
4986 | USE_ALPHA= | |
4987 | USE_OSF= | |
4988 | USE_BSD= | |
4989 | USE_FREEBSD= | |
4990 | USE_VMS= | |
4991 | USE_ULTRIX= | |
4992 | USE_DATA_GENERAL= | |
4993 | ||
f780dc86 KB |
4994 | cat >> confdefs.h <<\EOF |
4995 | #define __UNIX__ 1 | |
4996 | EOF | |
4997 | ||
bcf1fa6b RR |
4998 | case "${canonical}" in |
4999 | *-hp-hpux* ) | |
5000 | USE_HPUX=1 | |
5001 | cat >> confdefs.h <<\EOF | |
5002 | #define __HPUX__ 1 | |
5003 | EOF | |
5004 | ||
5005 | ;; | |
5006 | *-*-linux* ) | |
5007 | USE_LINUX=1 | |
5008 | cat >> confdefs.h <<\EOF | |
5009 | #define __LINUX__ 1 | |
5010 | EOF | |
5011 | ||
e0e680d2 KB |
5012 | TMP=`uname -m` |
5013 | if test "x$TMP" = "xalpha" | |
5014 | then | |
5015 | USE_ALPHA=1 | |
5016 | cat >> confdefs.h <<\EOF | |
5017 | #define __ALPHA__ 1 | |
5018 | EOF | |
5019 | ||
5020 | fi | |
bcf1fa6b | 5021 | ;; |
c2933500 | 5022 | *-*-irix5* | *-*-irix6* ) |
bcf1fa6b RR |
5023 | USE_SGI=1 |
5024 | USE_SVR4=1 | |
5025 | cat >> confdefs.h <<\EOF | |
5026 | #define __SGI__ 1 | |
5027 | EOF | |
5028 | ||
5029 | cat >> confdefs.h <<\EOF | |
5030 | #define __SVR4__ 1 | |
5031 | EOF | |
5032 | ||
5033 | ;; | |
c2933500 | 5034 | *-*-solaris2* ) |
bcf1fa6b RR |
5035 | USE_SUN=1 |
5036 | USE_SOLARIS=1 | |
5037 | USE_SVR4=1 | |
5038 | cat >> confdefs.h <<\EOF | |
5039 | #define __SUN__ 1 | |
5040 | EOF | |
5041 | ||
5042 | cat >> confdefs.h <<\EOF | |
5043 | #define __SOLARIS__ 1 | |
5044 | EOF | |
5045 | ||
5046 | cat >> confdefs.h <<\EOF | |
5047 | #define __SVR4__ 1 | |
5048 | EOF | |
5049 | ||
5050 | ;; | |
c2933500 | 5051 | *-*-sunos4* ) |
bcf1fa6b RR |
5052 | USE_SUN=1 |
5053 | USE_SUNOS=1 | |
5054 | USE_BSD=1 | |
5055 | cat >> confdefs.h <<\EOF | |
5056 | #define __SUN__ 1 | |
5057 | EOF | |
5058 | ||
5059 | cat >> confdefs.h <<\EOF | |
5060 | #define __SUNOS__ 1 | |
5061 | EOF | |
5062 | ||
5063 | cat >> confdefs.h <<\EOF | |
5064 | #define __BSD__ 1 | |
5065 | EOF | |
5066 | ||
5067 | ;; | |
5068 | *-*-freebsd* | *-*-netbsd*) | |
5069 | USE_BSD=1 | |
5070 | USE_FREEBSD=1 | |
5071 | cat >> confdefs.h <<\EOF | |
5072 | #define __FREEBSD__ 1 | |
5073 | EOF | |
5074 | ||
5075 | cat >> confdefs.h <<\EOF | |
5076 | #define __BSD__ 1 | |
5077 | EOF | |
5078 | ||
5079 | ;; | |
c2933500 | 5080 | *-*-osf* ) |
bcf1fa6b RR |
5081 | USE_ALPHA=1 |
5082 | USE_OSF=1 | |
5083 | cat >> confdefs.h <<\EOF | |
5084 | #define __ALPHA__ 1 | |
5085 | EOF | |
5086 | ||
5087 | cat >> confdefs.h <<\EOF | |
5088 | #define __OSF__ 1 | |
5089 | EOF | |
5090 | ||
5091 | ;; | |
c2933500 | 5092 | *-*-dgux5* ) |
bcf1fa6b RR |
5093 | USE_ALPHA=1 |
5094 | USE_SVR4=1 | |
5095 | cat >> confdefs.h <<\EOF | |
5096 | #define __ALPHA__ 1 | |
5097 | EOF | |
5098 | ||
5099 | cat >> confdefs.h <<\EOF | |
5100 | #define __SVR4__ 1 | |
5101 | EOF | |
5102 | ||
5103 | ;; | |
c2933500 | 5104 | *-*-sysv5* ) |
bcf1fa6b RR |
5105 | USE_SYSV=1 |
5106 | USE_SVR4=1 | |
5107 | cat >> confdefs.h <<\EOF | |
5108 | #define __SYSV__ 1 | |
5109 | EOF | |
5110 | ||
5111 | cat >> confdefs.h <<\EOF | |
5112 | #define __SVR4__ 1 | |
5113 | EOF | |
5114 | ||
5115 | ;; | |
c2933500 | 5116 | *-*-aix* ) |
bcf1fa6b RR |
5117 | USE_AIX=1 |
5118 | USE_SYSV=1 | |
5119 | USE_SVR4=1 | |
5120 | cat >> confdefs.h <<\EOF | |
5121 | #define __AIX__ 1 | |
5122 | EOF | |
5123 | ||
5124 | cat >> confdefs.h <<\EOF | |
5125 | #define __SYSV__ 1 | |
5126 | EOF | |
5127 | ||
5128 | cat >> confdefs.h <<\EOF | |
5129 | #define __SVR4__ 1 | |
5130 | EOF | |
5131 | ||
5132 | ;; | |
5133 | *) | |
5134 | { echo "configure: error: I don't know your system type." 1>&2; exit 1; } | |
5135 | esac | |
5136 | ||
5137 | ||
5138 | ||
5139 | rm -f ${OSTYPE}.system.cache.tmp | |
5140 | touch ${OSTYPE}.system.cache.tmp | |
5141 | touch ${OSTYPE}.system.cache | |
5142 | ||
5143 | ||
6fbf0513 | 5144 | DEFAULT_wxUSE_GTK=1 |
8248314d VZ |
5145 | DEFAULT_wxUSE_QT=0 |
5146 | DEFAULT_wxUSE_MOTIF=0 | |
bcf1fa6b | 5147 | |
8710cf5c | 5148 | DEFAULT_wxUSE_THREADS=0 |
cb43b372 | 5149 | |
8248314d VZ |
5150 | DEFAULT_wxUSE_SHARED=1 |
5151 | DEFAULT_wxUSE_OPTIMISE=1 | |
5152 | DEFAULT_wxUSE_PROFILE=0 | |
5153 | DEFAULT_wxUSE_DEBUG_FLAG=0 | |
5154 | DEFAULT_wxUSE_DEBUG_INFO=0 | |
5155 | DEFAULT_wxUSE_MEM_TRACING=0 | |
5156 | DEFAULT_wxUSE_DMALLOC=0 | |
5157 | DEFAULT_wxUSE_APPLE_IEEE=1 | |
5158 | DEFAULT_wxUSE_IOSTREAMH=1 | |
5159 | ||
5160 | DEFAULT_wxUSE_ZLIB=1 | |
8248314d | 5161 | DEFAULT_wxUSE_LIBPNG=1 |
cd743a6f | 5162 | DEFAULT_wxUSE_LIBJPEG=0 |
8710cf5c | 5163 | DEFAULT_wxUSE_ODBC=1 |
8248314d | 5164 | |
8248314d | 5165 | DEFAULT_wxUSE_TIMEDATE=1 |
8248314d VZ |
5166 | DEFAULT_wxUSE_INTL=1 |
5167 | DEFAULT_wxUSE_CONFIG=1 | |
5168 | DEFAULT_wxUSE_STREAMS=1 | |
d28e1977 | 5169 | DEFAULT_wxUSE_SOCKETS=1 |
8248314d | 5170 | DEFAULT_wxUSE_SERIAL=1 |
eb9bbf52 | 5171 | DEFAULT_wxUSE_DYNLIB_CLASS=1 |
8248314d VZ |
5172 | |
5173 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=1 | |
bcf1fa6b | 5174 | DEFAULT_WX_NORMALIZED_PS_FONTS=1 |
8248314d | 5175 | DEFAULT_wxUSE_POSTSCRIPT=1 |
bcf1fa6b | 5176 | |
8248314d VZ |
5177 | DEFAULT_wxUSE_IPC=1 |
5178 | DEFAULT_wxUSE_RESOURCES=1 | |
8b53e5a2 | 5179 | DEFAULT_wxUSE_CLIPBOARD=1 |
ff8bfdbb | 5180 | DEFAULT_wxUSE_TOOLTIPS=1 |
ac57418f | 5181 | DEFAULT_wxUSE_DRAG_AND_DROP=1 |
bcf1fa6b | 5182 | |
8248314d VZ |
5183 | DEFAULT_wxUSE_MDI_ARCHITECTURE=1 |
5184 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=1 | |
5185 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=1 | |
bcf1fa6b | 5186 | |
8248314d VZ |
5187 | DEFAULT_wxUSE_PROLOGIO=1 |
5188 | DEFAULT_wxUSE_WX_RESOURCES=1 | |
5189 | DEFAULT_wxUSE_RPC=0 | |
e9aad10a | 5190 | DEFAULT_wxUSE_HELP=1 |
bcf1fa6b | 5191 | |
fb4e5803 VZ |
5192 | DEFAULT_wxUSE_UNICODE=1 |
5193 | DEFAULT_wxUSE_WCSRTOMBS=0 | |
5194 | ||
bcf1fa6b RR |
5195 | |
5196 | ||
5197 | echo $ac_n "checking "for gtk"""... $ac_c" 1>&6 | |
5f0f31fe | 5198 | echo "configure:5199: checking "for gtk"" >&5 |
bcf1fa6b RR |
5199 | # Check whether --with-gtk or --without-gtk was given. |
5200 | if test "${with_gtk+set}" = set; then | |
5201 | withval="$with_gtk" | |
5202 | if test "x$with_gtk" = xyes; then | |
8248314d | 5203 | ac_cv_use_gtk='wxUSE_GTK="1"' |
bcf1fa6b | 5204 | else |
8248314d | 5205 | ac_cv_use_gtk='wxUSE_GTK="0"' |
bcf1fa6b RR |
5206 | fi |
5207 | else | |
5208 | ||
8248314d | 5209 | LINE=`grep "wxUSE_GTK" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5210 | if test "x$LINE" != x ; then |
5211 | eval "DEFAULT_$LINE" | |
5212 | fi | |
8248314d | 5213 | ac_cv_use_gtk='wxUSE_GTK='$DEFAULT_wxUSE_GTK |
bcf1fa6b RR |
5214 | |
5215 | fi | |
5216 | ||
5217 | eval "$ac_cv_use_gtk" | |
5218 | echo $ac_cv_use_gtk >> ${OSTYPE}.system.cache.tmp | |
8248314d | 5219 | if test "$wxUSE_GTK" = 1; then |
bcf1fa6b RR |
5220 | echo "$ac_t""yes" 1>&6 |
5221 | else | |
5222 | echo "$ac_t""no" 1>&6 | |
5223 | fi | |
5224 | ||
5225 | ||
5226 | ||
5227 | echo $ac_n "checking "for qt"""... $ac_c" 1>&6 | |
5f0f31fe | 5228 | echo "configure:5229: checking "for qt"" >&5 |
bcf1fa6b RR |
5229 | # Check whether --with-qt or --without-qt was given. |
5230 | if test "${with_qt+set}" = set; then | |
5231 | withval="$with_qt" | |
5232 | if test "x$with_qt" = xyes; then | |
8248314d | 5233 | ac_cv_use_qt='wxUSE_QT="1"' |
bcf1fa6b | 5234 | else |
8248314d | 5235 | ac_cv_use_qt='wxUSE_QT="0"' |
bcf1fa6b RR |
5236 | fi |
5237 | else | |
5238 | ||
8248314d | 5239 | LINE=`grep "wxUSE_QT" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5240 | if test "x$LINE" != x ; then |
5241 | eval "DEFAULT_$LINE" | |
5242 | fi | |
8248314d | 5243 | ac_cv_use_qt='wxUSE_QT='$DEFAULT_wxUSE_QT |
bcf1fa6b RR |
5244 | |
5245 | fi | |
5246 | ||
5247 | eval "$ac_cv_use_qt" | |
5248 | echo $ac_cv_use_qt >> ${OSTYPE}.system.cache.tmp | |
8248314d | 5249 | if test "$wxUSE_QT" = 1; then |
bcf1fa6b RR |
5250 | echo "$ac_t""yes" 1>&6 |
5251 | else | |
5252 | echo "$ac_t""no" 1>&6 | |
5253 | fi | |
5254 | ||
5255 | ||
5256 | ||
5257 | echo $ac_n "checking "for motif"""... $ac_c" 1>&6 | |
5f0f31fe | 5258 | echo "configure:5259: checking "for motif"" >&5 |
bcf1fa6b RR |
5259 | # Check whether --with-motif or --without-motif was given. |
5260 | if test "${with_motif+set}" = set; then | |
5261 | withval="$with_motif" | |
5262 | if test "x$with_motif" = xyes; then | |
8248314d | 5263 | ac_cv_use_motif='wxUSE_MOTIF="1"' |
bcf1fa6b | 5264 | else |
8248314d | 5265 | ac_cv_use_motif='wxUSE_MOTIF="0"' |
bcf1fa6b RR |
5266 | fi |
5267 | else | |
5268 | ||
8248314d | 5269 | LINE=`grep "wxUSE_MOTIF" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5270 | if test "x$LINE" != x ; then |
5271 | eval "DEFAULT_$LINE" | |
5272 | fi | |
8248314d | 5273 | ac_cv_use_motif='wxUSE_MOTIF='$DEFAULT_wxUSE_MOTIF |
bcf1fa6b RR |
5274 | |
5275 | fi | |
5276 | ||
5277 | eval "$ac_cv_use_motif" | |
5278 | echo $ac_cv_use_motif >> ${OSTYPE}.system.cache.tmp | |
8248314d | 5279 | if test "$wxUSE_MOTIF" = 1; then |
bcf1fa6b RR |
5280 | echo "$ac_t""yes" 1>&6 |
5281 | else | |
5282 | echo "$ac_t""no" 1>&6 | |
5283 | fi | |
5284 | ||
5285 | ||
5286 | ||
5287 | ||
5288 | echo $ac_n "checking "for shared"""... $ac_c" 1>&6 | |
5f0f31fe | 5289 | echo "configure:5290: checking "for shared"" >&5 |
bcf1fa6b RR |
5290 | # Check whether --with-shared or --without-shared was given. |
5291 | if test "${with_shared+set}" = set; then | |
5292 | withval="$with_shared" | |
5293 | if test "x$with_shared" = xyes; then | |
8248314d | 5294 | ac_cv_use_shared='wxUSE_SHARED="1"' |
bcf1fa6b | 5295 | else |
8248314d | 5296 | ac_cv_use_shared='wxUSE_SHARED="0"' |
bcf1fa6b RR |
5297 | fi |
5298 | else | |
5299 | ||
8248314d | 5300 | LINE=`grep "wxUSE_SHARED" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5301 | if test "x$LINE" != x ; then |
5302 | eval "DEFAULT_$LINE" | |
5303 | fi | |
8248314d | 5304 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED |
bcf1fa6b RR |
5305 | |
5306 | fi | |
5307 | ||
5308 | eval "$ac_cv_use_shared" | |
5309 | echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp | |
8248314d | 5310 | if test "$wxUSE_SHARED" = 1; then |
bcf1fa6b RR |
5311 | echo "$ac_t""yes" 1>&6 |
5312 | else | |
5313 | echo "$ac_t""no" 1>&6 | |
5314 | fi | |
5315 | ||
5316 | ||
5317 | ||
5318 | echo $ac_n "checking "for optimise"""... $ac_c" 1>&6 | |
5f0f31fe | 5319 | echo "configure:5320: checking "for optimise"" >&5 |
bcf1fa6b RR |
5320 | # Check whether --with-optimise or --without-optimise was given. |
5321 | if test "${with_optimise+set}" = set; then | |
5322 | withval="$with_optimise" | |
5323 | if test "x$with_optimise" = xyes; then | |
8248314d | 5324 | ac_cv_use_optimise='wxUSE_OPTIMISE="1"' |
bcf1fa6b | 5325 | else |
8248314d | 5326 | ac_cv_use_optimise='wxUSE_OPTIMISE="0"' |
bcf1fa6b RR |
5327 | fi |
5328 | else | |
5329 | ||
8248314d | 5330 | LINE=`grep "wxUSE_OPTIMISE" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5331 | if test "x$LINE" != x ; then |
5332 | eval "DEFAULT_$LINE" | |
5333 | fi | |
8248314d | 5334 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE |
bcf1fa6b RR |
5335 | |
5336 | fi | |
5337 | ||
5338 | eval "$ac_cv_use_optimise" | |
5339 | echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp | |
8248314d | 5340 | if test "$wxUSE_OPTIMISE" = 1; then |
bcf1fa6b RR |
5341 | echo "$ac_t""yes" 1>&6 |
5342 | else | |
5343 | echo "$ac_t""no" 1>&6 | |
5344 | fi | |
5345 | ||
5346 | ||
5347 | ||
5348 | echo $ac_n "checking "for debug_flag"""... $ac_c" 1>&6 | |
5f0f31fe | 5349 | echo "configure:5350: checking "for debug_flag"" >&5 |
bcf1fa6b RR |
5350 | # Check whether --with-debug_flag or --without-debug_flag was given. |
5351 | if test "${with_debug_flag+set}" = set; then | |
5352 | withval="$with_debug_flag" | |
5353 | if test "x$with_debug_flag" = xyes; then | |
8248314d | 5354 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG="1"' |
bcf1fa6b | 5355 | else |
8248314d | 5356 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG="0"' |
bcf1fa6b RR |
5357 | fi |
5358 | else | |
5359 | ||
8248314d | 5360 | LINE=`grep "wxUSE_DEBUG_FLAG" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5361 | if test "x$LINE" != x ; then |
5362 | eval "DEFAULT_$LINE" | |
5363 | fi | |
8248314d | 5364 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG |
bcf1fa6b RR |
5365 | |
5366 | fi | |
5367 | ||
5368 | eval "$ac_cv_use_debug_flag" | |
5369 | echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp | |
8248314d | 5370 | if test "$wxUSE_DEBUG_FLAG" = 1; then |
bcf1fa6b RR |
5371 | echo "$ac_t""yes" 1>&6 |
5372 | else | |
5373 | echo "$ac_t""no" 1>&6 | |
5374 | fi | |
5375 | ||
5376 | ||
5377 | ||
5378 | echo $ac_n "checking "for debug_info"""... $ac_c" 1>&6 | |
5f0f31fe | 5379 | echo "configure:5380: checking "for debug_info"" >&5 |
bcf1fa6b RR |
5380 | # Check whether --with-debug_info or --without-debug_info was given. |
5381 | if test "${with_debug_info+set}" = set; then | |
5382 | withval="$with_debug_info" | |
5383 | if test "x$with_debug_info" = xyes; then | |
8248314d | 5384 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO="1"' |
bcf1fa6b | 5385 | else |
8248314d | 5386 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO="0"' |
bcf1fa6b RR |
5387 | fi |
5388 | else | |
5389 | ||
8248314d | 5390 | LINE=`grep "wxUSE_DEBUG_INFO" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5391 | if test "x$LINE" != x ; then |
5392 | eval "DEFAULT_$LINE" | |
5393 | fi | |
8248314d | 5394 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO |
bcf1fa6b RR |
5395 | |
5396 | fi | |
5397 | ||
5398 | eval "$ac_cv_use_debug_info" | |
5399 | echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp | |
8248314d | 5400 | if test "$wxUSE_DEBUG_INFO" = 1; then |
bcf1fa6b RR |
5401 | echo "$ac_t""yes" 1>&6 |
5402 | else | |
5403 | echo "$ac_t""no" 1>&6 | |
5404 | fi | |
5405 | ||
5406 | ||
5407 | ||
2904eefd | 5408 | echo $ac_n "checking "for debug_gdb"""... $ac_c" 1>&6 |
5f0f31fe | 5409 | echo "configure:5410: checking "for debug_gdb"" >&5 |
2904eefd KB |
5410 | # Check whether --with-debug_gdb or --without-debug_gdb was given. |
5411 | if test "${with_debug_gdb+set}" = set; then | |
5412 | withval="$with_debug_gdb" | |
5413 | if test "x$with_debug_gdb" = xyes; then | |
5414 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB="1"' | |
5415 | else | |
5416 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB="0"' | |
5417 | fi | |
5418 | else | |
5419 | ||
5420 | LINE=`grep "wxUSE_DEBUG_GDB" ${OSTYPE}.system.cache` | |
5421 | if test "x$LINE" != x ; then | |
5422 | eval "DEFAULT_$LINE" | |
5423 | fi | |
5424 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
5425 | ||
5426 | fi | |
5427 | ||
5428 | eval "$ac_cv_use_debug_gdb" | |
5429 | echo $ac_cv_use_debug_gdb >> ${OSTYPE}.system.cache.tmp | |
5430 | if test "$wxUSE_DEBUG_GDB" = 1; then | |
5431 | echo "$ac_t""yes" 1>&6 | |
5432 | else | |
5433 | echo "$ac_t""no" 1>&6 | |
5434 | fi | |
5435 | ||
5436 | ||
5437 | ||
bcf1fa6b | 5438 | echo $ac_n "checking "for mem_tracing"""... $ac_c" 1>&6 |
5f0f31fe | 5439 | echo "configure:5440: checking "for mem_tracing"" >&5 |
bcf1fa6b RR |
5440 | # Check whether --with-mem_tracing or --without-mem_tracing was given. |
5441 | if test "${with_mem_tracing+set}" = set; then | |
5442 | withval="$with_mem_tracing" | |
5443 | if test "x$with_mem_tracing" = xyes; then | |
8248314d | 5444 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING="1"' |
bcf1fa6b | 5445 | else |
8248314d | 5446 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING="0"' |
bcf1fa6b RR |
5447 | fi |
5448 | else | |
5449 | ||
8248314d | 5450 | LINE=`grep "wxUSE_MEM_TRACING" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5451 | if test "x$LINE" != x ; then |
5452 | eval "DEFAULT_$LINE" | |
5453 | fi | |
8248314d | 5454 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING |
bcf1fa6b RR |
5455 | |
5456 | fi | |
5457 | ||
5458 | eval "$ac_cv_use_mem_tracing" | |
5459 | echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp | |
8248314d | 5460 | if test "$wxUSE_MEM_TRACING" = 1; then |
bcf1fa6b RR |
5461 | echo "$ac_t""yes" 1>&6 |
5462 | else | |
5463 | echo "$ac_t""no" 1>&6 | |
5464 | fi | |
5465 | ||
5466 | ||
5467 | ||
5468 | echo $ac_n "checking "for dmalloc"""... $ac_c" 1>&6 | |
5f0f31fe | 5469 | echo "configure:5470: checking "for dmalloc"" >&5 |
bcf1fa6b RR |
5470 | # Check whether --with-dmalloc or --without-dmalloc was given. |
5471 | if test "${with_dmalloc+set}" = set; then | |
5472 | withval="$with_dmalloc" | |
5473 | if test "x$with_dmalloc" = xyes; then | |
8248314d | 5474 | ac_cv_use_dmalloc='wxUSE_DMALLOC="1"' |
bcf1fa6b | 5475 | else |
8248314d | 5476 | ac_cv_use_dmalloc='wxUSE_DMALLOC="0"' |
bcf1fa6b RR |
5477 | fi |
5478 | else | |
5479 | ||
8248314d | 5480 | LINE=`grep "wxUSE_DMALLOC" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5481 | if test "x$LINE" != x ; then |
5482 | eval "DEFAULT_$LINE" | |
5483 | fi | |
8248314d | 5484 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
bcf1fa6b RR |
5485 | |
5486 | fi | |
5487 | ||
5488 | eval "$ac_cv_use_dmalloc" | |
5489 | echo $ac_cv_use_dmalloc >> ${OSTYPE}.system.cache.tmp | |
8248314d | 5490 | if test "$wxUSE_DMALLOC" = 1; then |
bcf1fa6b RR |
5491 | echo "$ac_t""yes" 1>&6 |
5492 | else | |
5493 | echo "$ac_t""no" 1>&6 | |
5494 | fi | |
5495 | ||
5496 | ||
5497 | ||
5498 | echo $ac_n "checking "for profile"""... $ac_c" 1>&6 | |
5f0f31fe | 5499 | echo "configure:5500: checking "for profile"" >&5 |
bcf1fa6b RR |
5500 | # Check whether --with-profile or --without-profile was given. |
5501 | if test "${with_profile+set}" = set; then | |
5502 | withval="$with_profile" | |
5503 | if test "x$with_profile" = xyes; then | |
8248314d | 5504 | ac_cv_use_profile='wxUSE_PROFILE="1"' |
bcf1fa6b | 5505 | else |
8248314d | 5506 | ac_cv_use_profile='wxUSE_PROFILE="0"' |
bcf1fa6b RR |
5507 | fi |
5508 | else | |
5509 | ||
8248314d | 5510 | LINE=`grep "wxUSE_PROFILE" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5511 | if test "x$LINE" != x ; then |
5512 | eval "DEFAULT_$LINE" | |
5513 | fi | |
8248314d | 5514 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE |
bcf1fa6b RR |
5515 | |
5516 | fi | |
5517 | ||
5518 | eval "$ac_cv_use_profile" | |
5519 | echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp | |
8248314d | 5520 | if test "$wxUSE_PROFILE" = 1; then |
bcf1fa6b RR |
5521 | echo "$ac_t""yes" 1>&6 |
5522 | else | |
5523 | echo "$ac_t""no" 1>&6 | |
5524 | fi | |
5525 | ||
5526 | ||
5527 | ||
5528 | echo $ac_n "checking "for apple_ieee"""... $ac_c" 1>&6 | |
5f0f31fe | 5529 | echo "configure:5530: checking "for apple_ieee"" >&5 |
bcf1fa6b RR |
5530 | # Check whether --with-apple_ieee or --without-apple_ieee was given. |
5531 | if test "${with_apple_ieee+set}" = set; then | |
5532 | withval="$with_apple_ieee" | |
5533 | if test "x$with_apple_ieee" = xyes; then | |
8248314d | 5534 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE="1"' |
bcf1fa6b | 5535 | else |
8248314d | 5536 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE="0"' |
bcf1fa6b RR |
5537 | fi |
5538 | else | |
5539 | ||
8248314d | 5540 | LINE=`grep "wxUSE_APPLE_IEEE" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5541 | if test "x$LINE" != x ; then |
5542 | eval "DEFAULT_$LINE" | |
5543 | fi | |
8248314d | 5544 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE |
bcf1fa6b RR |
5545 | |
5546 | fi | |
5547 | ||
5548 | eval "$ac_cv_use_apple_ieee" | |
5549 | echo $ac_cv_use_apple_ieee >> ${OSTYPE}.system.cache.tmp | |
8248314d | 5550 | if test "$wxUSE_APPLE_IEEE" = 1; then |
bcf1fa6b RR |
5551 | echo "$ac_t""yes" 1>&6 |
5552 | else | |
5553 | echo "$ac_t""no" 1>&6 | |
5554 | fi | |
5555 | ||
5556 | ||
5557 | ||
ac57418f | 5558 | echo $ac_n "checking "for threads"""... $ac_c" 1>&6 |
5f0f31fe | 5559 | echo "configure:5560: checking "for threads"" >&5 |
ac57418f RR |
5560 | # Check whether --with-threads or --without-threads was given. |
5561 | if test "${with_threads+set}" = set; then | |
5562 | withval="$with_threads" | |
5563 | if test "x$with_threads" = xyes; then | |
5564 | ac_cv_use_threads='wxUSE_THREADS="1"' | |
5565 | else | |
5566 | ac_cv_use_threads='wxUSE_THREADS="0"' | |
5567 | fi | |
5568 | else | |
5569 | ||
5570 | LINE=`grep "wxUSE_THREADS" ${OSTYPE}.system.cache` | |
5571 | if test "x$LINE" != x ; then | |
5572 | eval "DEFAULT_$LINE" | |
5573 | fi | |
5574 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
5575 | ||
5576 | fi | |
5577 | ||
5578 | eval "$ac_cv_use_threads" | |
5579 | echo $ac_cv_use_threads >> ${OSTYPE}.system.cache.tmp | |
5580 | if test "$wxUSE_THREADS" = 1; then | |
5581 | echo "$ac_t""yes" 1>&6 | |
5582 | else | |
5583 | echo "$ac_t""no" 1>&6 | |
5584 | fi | |
5585 | ||
5586 | ||
5587 | ||
eb9bbf52 | 5588 | echo $ac_n "checking "for dynlib"""... $ac_c" 1>&6 |
5f0f31fe | 5589 | echo "configure:5590: checking "for dynlib"" >&5 |
eb9bbf52 VZ |
5590 | # Check whether --with-dynlib or --without-dynlib was given. |
5591 | if test "${with_dynlib+set}" = set; then | |
5592 | withval="$with_dynlib" | |
5593 | if test "x$with_dynlib" = xyes; then | |
5594 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS="1"' | |
5595 | else | |
5596 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS="0"' | |
5597 | fi | |
5598 | else | |
5599 | ||
5600 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${OSTYPE}.system.cache` | |
5601 | if test "x$LINE" != x ; then | |
5602 | eval "DEFAULT_$LINE" | |
5603 | fi | |
5604 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
5605 | ||
5606 | fi | |
5607 | ||
5608 | eval "$ac_cv_use_dynlib" | |
5609 | echo $ac_cv_use_dynlib >> ${OSTYPE}.system.cache.tmp | |
5610 | if test "$wxUSE_DYNLIB_CLASS" = 1; then | |
5611 | echo "$ac_t""yes" 1>&6 | |
5612 | else | |
5613 | echo "$ac_t""no" 1>&6 | |
5614 | fi | |
5615 | ||
5616 | ||
5617 | ||
bcf1fa6b RR |
5618 | |
5619 | echo $ac_n "checking "for zlib"""... $ac_c" 1>&6 | |
5f0f31fe | 5620 | echo "configure:5621: checking "for zlib"" >&5 |
bcf1fa6b RR |
5621 | # Check whether --with-zlib or --without-zlib was given. |
5622 | if test "${with_zlib+set}" = set; then | |
5623 | withval="$with_zlib" | |
5624 | if test "x$with_zlib" = xyes; then | |
8248314d | 5625 | ac_cv_use_zlib='wxUSE_ZLIB="1"' |
bcf1fa6b | 5626 | else |
8248314d | 5627 | ac_cv_use_zlib='wxUSE_ZLIB="0"' |
bcf1fa6b RR |
5628 | fi |
5629 | else | |
5630 | ||
8248314d | 5631 | LINE=`grep "wxUSE_ZLIB" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5632 | if test "x$LINE" != x ; then |
5633 | eval "DEFAULT_$LINE" | |
5634 | fi | |
8248314d | 5635 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
bcf1fa6b RR |
5636 | |
5637 | fi | |
5638 | ||
5639 | eval "$ac_cv_use_zlib" | |
5640 | echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp | |
8248314d | 5641 | if test "$wxUSE_ZLIB" = 1; then |
bcf1fa6b RR |
5642 | echo "$ac_t""yes" 1>&6 |
5643 | else | |
5644 | echo "$ac_t""no" 1>&6 | |
5645 | fi | |
5646 | ||
5647 | ||
5648 | ||
bcf1fa6b | 5649 | echo $ac_n "checking "for libpng"""... $ac_c" 1>&6 |
5f0f31fe | 5650 | echo "configure:5651: checking "for libpng"" >&5 |
bcf1fa6b RR |
5651 | # Check whether --with-libpng or --without-libpng was given. |
5652 | if test "${with_libpng+set}" = set; then | |
5653 | withval="$with_libpng" | |
5654 | if test "x$with_libpng" = xyes; then | |
8248314d | 5655 | ac_cv_use_libpng='wxUSE_LIBPNG="1"' |
bcf1fa6b | 5656 | else |
8248314d | 5657 | ac_cv_use_libpng='wxUSE_LIBPNG="0"' |
bcf1fa6b RR |
5658 | fi |
5659 | else | |
5660 | ||
8248314d | 5661 | LINE=`grep "wxUSE_LIBPNG" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5662 | if test "x$LINE" != x ; then |
5663 | eval "DEFAULT_$LINE" | |
5664 | fi | |
8248314d | 5665 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
bcf1fa6b RR |
5666 | |
5667 | fi | |
5668 | ||
5669 | eval "$ac_cv_use_libpng" | |
5670 | echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp | |
8248314d | 5671 | if test "$wxUSE_LIBPNG" = 1; then |
bcf1fa6b RR |
5672 | echo "$ac_t""yes" 1>&6 |
5673 | else | |
5674 | echo "$ac_t""no" 1>&6 | |
5675 | fi | |
5676 | ||
5677 | ||
5678 | ||
2fff5f08 | 5679 | echo $ac_n "checking "for libjpeg"""... $ac_c" 1>&6 |
5f0f31fe | 5680 | echo "configure:5681: checking "for libjpeg"" >&5 |
2fff5f08 VS |
5681 | # Check whether --with-libjpeg or --without-libjpeg was given. |
5682 | if test "${with_libjpeg+set}" = set; then | |
5683 | withval="$with_libjpeg" | |
5684 | if test "x$with_libjpeg" = xyes; then | |
5685 | ac_cv_use_libjpeg='wxUSE_LIBJPEG="1"' | |
5686 | else | |
5687 | ac_cv_use_libjpeg='wxUSE_LIBJPEG="0"' | |
5688 | fi | |
5689 | else | |
5690 | ||
5691 | LINE=`grep "wxUSE_LIBJPEG" ${OSTYPE}.system.cache` | |
5692 | if test "x$LINE" != x ; then | |
5693 | eval "DEFAULT_$LINE" | |
5694 | fi | |
5695 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
5696 | ||
5697 | fi | |
5698 | ||
5699 | eval "$ac_cv_use_libjpeg" | |
5700 | echo $ac_cv_use_libjpeg >> ${OSTYPE}.system.cache.tmp | |
5701 | if test "$wxUSE_LIBJPEG" = 1; then | |
5702 | echo "$ac_t""yes" 1>&6 | |
5703 | else | |
5704 | echo "$ac_t""no" 1>&6 | |
5705 | fi | |
5706 | ||
5707 | ||
5708 | ||
bcf1fa6b | 5709 | echo $ac_n "checking "for odbc"""... $ac_c" 1>&6 |
5f0f31fe | 5710 | echo "configure:5711: checking "for odbc"" >&5 |
bcf1fa6b RR |
5711 | # Check whether --with-odbc or --without-odbc was given. |
5712 | if test "${with_odbc+set}" = set; then | |
5713 | withval="$with_odbc" | |
5714 | if test "x$with_odbc" = xyes; then | |
8248314d | 5715 | ac_cv_use_odbc='wxUSE_ODBC="1"' |
bcf1fa6b | 5716 | else |
8248314d | 5717 | ac_cv_use_odbc='wxUSE_ODBC="0"' |
bcf1fa6b RR |
5718 | fi |
5719 | else | |
5720 | ||
8248314d | 5721 | LINE=`grep "wxUSE_ODBC" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5722 | if test "x$LINE" != x ; then |
5723 | eval "DEFAULT_$LINE" | |
5724 | fi | |
8248314d | 5725 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC |
bcf1fa6b RR |
5726 | |
5727 | fi | |
5728 | ||
5729 | eval "$ac_cv_use_odbc" | |
5730 | echo $ac_cv_use_odbc >> ${OSTYPE}.system.cache.tmp | |
8248314d | 5731 | if test "$wxUSE_ODBC" = 1; then |
bcf1fa6b RR |
5732 | echo "$ac_t""yes" 1>&6 |
5733 | else | |
5734 | echo "$ac_t""no" 1>&6 | |
5735 | fi | |
5736 | ||
5737 | ||
5738 | ||
ac57418f RR |
5739 | |
5740 | echo $ac_n "checking "for timedate"""... $ac_c" 1>&6 | |
5f0f31fe | 5741 | echo "configure:5742: checking "for timedate"" >&5 |
ac57418f RR |
5742 | # Check whether --with-timedate or --without-timedate was given. |
5743 | if test "${with_timedate+set}" = set; then | |
5744 | withval="$with_timedate" | |
5745 | if test "x$with_timedate" = xyes; then | |
5746 | ac_cv_use_timedate='wxUSE_TIMEDATE="1"' | |
bcf1fa6b | 5747 | else |
ac57418f | 5748 | ac_cv_use_timedate='wxUSE_TIMEDATE="0"' |
bcf1fa6b RR |
5749 | fi |
5750 | else | |
5751 | ||
ac57418f | 5752 | LINE=`grep "wxUSE_TIMEDATE" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5753 | if test "x$LINE" != x ; then |
5754 | eval "DEFAULT_$LINE" | |
5755 | fi | |
ac57418f | 5756 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE |
bcf1fa6b RR |
5757 | |
5758 | fi | |
5759 | ||
ac57418f RR |
5760 | eval "$ac_cv_use_timedate" |
5761 | echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp | |
5762 | if test "$wxUSE_TIMEDATE" = 1; then | |
bcf1fa6b RR |
5763 | echo "$ac_t""yes" 1>&6 |
5764 | else | |
5765 | echo "$ac_t""no" 1>&6 | |
5766 | fi | |
5767 | ||
5768 | ||
5769 | ||
ac57418f | 5770 | echo $ac_n "checking "for intl"""... $ac_c" 1>&6 |
5f0f31fe | 5771 | echo "configure:5772: checking "for intl"" >&5 |
ac57418f RR |
5772 | # Check whether --with-intl or --without-intl was given. |
5773 | if test "${with_intl+set}" = set; then | |
5774 | withval="$with_intl" | |
5775 | if test "x$with_intl" = xyes; then | |
5776 | ac_cv_use_intl='wxUSE_INTL="1"' | |
bcf1fa6b | 5777 | else |
ac57418f | 5778 | ac_cv_use_intl='wxUSE_INTL="0"' |
bcf1fa6b RR |
5779 | fi |
5780 | else | |
5781 | ||
ac57418f | 5782 | LINE=`grep "wxUSE_INTL" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5783 | if test "x$LINE" != x ; then |
5784 | eval "DEFAULT_$LINE" | |
5785 | fi | |
ac57418f | 5786 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL |
bcf1fa6b RR |
5787 | |
5788 | fi | |
5789 | ||
ac57418f RR |
5790 | eval "$ac_cv_use_intl" |
5791 | echo $ac_cv_use_intl >> ${OSTYPE}.system.cache.tmp | |
5792 | if test "$wxUSE_INTL" = 1; then | |
bcf1fa6b RR |
5793 | echo "$ac_t""yes" 1>&6 |
5794 | else | |
5795 | echo "$ac_t""no" 1>&6 | |
5796 | fi | |
5797 | ||
5798 | ||
5799 | ||
ac57418f | 5800 | echo $ac_n "checking "for config"""... $ac_c" 1>&6 |
5f0f31fe | 5801 | echo "configure:5802: checking "for config"" >&5 |
ac57418f RR |
5802 | # Check whether --with-config or --without-config was given. |
5803 | if test "${with_config+set}" = set; then | |
5804 | withval="$with_config" | |
5805 | if test "x$with_config" = xyes; then | |
5806 | ac_cv_use_config='wxUSE_CONFIG="1"' | |
a60c99e6 | 5807 | else |
ac57418f | 5808 | ac_cv_use_config='wxUSE_CONFIG="0"' |
a60c99e6 RR |
5809 | fi |
5810 | else | |
5811 | ||
ac57418f | 5812 | LINE=`grep "wxUSE_CONFIG" ${OSTYPE}.system.cache` |
a60c99e6 RR |
5813 | if test "x$LINE" != x ; then |
5814 | eval "DEFAULT_$LINE" | |
5815 | fi | |
ac57418f | 5816 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG |
a60c99e6 RR |
5817 | |
5818 | fi | |
5819 | ||
ac57418f RR |
5820 | eval "$ac_cv_use_config" |
5821 | echo $ac_cv_use_config >> ${OSTYPE}.system.cache.tmp | |
5822 | if test "$wxUSE_CONFIG" = 1; then | |
a60c99e6 RR |
5823 | echo "$ac_t""yes" 1>&6 |
5824 | else | |
5825 | echo "$ac_t""no" 1>&6 | |
5826 | fi | |
5827 | ||
5828 | ||
5829 | ||
ac57418f | 5830 | echo $ac_n "checking "for streams"""... $ac_c" 1>&6 |
5f0f31fe | 5831 | echo "configure:5832: checking "for streams"" >&5 |
ac57418f RR |
5832 | # Check whether --with-streams or --without-streams was given. |
5833 | if test "${with_streams+set}" = set; then | |
5834 | withval="$with_streams" | |
5835 | if test "x$with_streams" = xyes; then | |
5836 | ac_cv_use_streams='wxUSE_STREAMS="1"' | |
bcf1fa6b | 5837 | else |
ac57418f | 5838 | ac_cv_use_streams='wxUSE_STREAMS="0"' |
bcf1fa6b RR |
5839 | fi |
5840 | else | |
5841 | ||
ac57418f | 5842 | LINE=`grep "wxUSE_STREAMS" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5843 | if test "x$LINE" != x ; then |
5844 | eval "DEFAULT_$LINE" | |
5845 | fi | |
ac57418f | 5846 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS |
bcf1fa6b RR |
5847 | |
5848 | fi | |
5849 | ||
ac57418f RR |
5850 | eval "$ac_cv_use_streams" |
5851 | echo $ac_cv_use_streams >> ${OSTYPE}.system.cache.tmp | |
5852 | if test "$wxUSE_STREAMS" = 1; then | |
bcf1fa6b RR |
5853 | echo "$ac_t""yes" 1>&6 |
5854 | else | |
5855 | echo "$ac_t""no" 1>&6 | |
5856 | fi | |
5857 | ||
5858 | ||
5859 | ||
ac57418f | 5860 | echo $ac_n "checking "for serial"""... $ac_c" 1>&6 |
5f0f31fe | 5861 | echo "configure:5862: checking "for serial"" >&5 |
ac57418f RR |
5862 | # Check whether --with-serial or --without-serial was given. |
5863 | if test "${with_serial+set}" = set; then | |
5864 | withval="$with_serial" | |
5865 | if test "x$with_serial" = xyes; then | |
5866 | ac_cv_use_serial='wxUSE_SERIAL="1"' | |
bcf1fa6b | 5867 | else |
ac57418f | 5868 | ac_cv_use_serial='wxUSE_SERIAL="0"' |
bcf1fa6b RR |
5869 | fi |
5870 | else | |
5871 | ||
ac57418f | 5872 | LINE=`grep "wxUSE_SERIAL" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5873 | if test "x$LINE" != x ; then |
5874 | eval "DEFAULT_$LINE" | |
5875 | fi | |
ac57418f | 5876 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL |
bcf1fa6b RR |
5877 | |
5878 | fi | |
5879 | ||
ac57418f RR |
5880 | eval "$ac_cv_use_serial" |
5881 | echo $ac_cv_use_serial >> ${OSTYPE}.system.cache.tmp | |
5882 | if test "$wxUSE_SERIAL" = 1; then | |
bcf1fa6b RR |
5883 | echo "$ac_t""yes" 1>&6 |
5884 | else | |
5885 | echo "$ac_t""no" 1>&6 | |
5886 | fi | |
5887 | ||
5888 | ||
5889 | ||
35a4dab7 | 5890 | echo $ac_n "checking "for sockets"""... $ac_c" 1>&6 |
5f0f31fe | 5891 | echo "configure:5892: checking "for sockets"" >&5 |
35a4dab7 GL |
5892 | # Check whether --with-sockets or --without-sockets was given. |
5893 | if test "${with_sockets+set}" = set; then | |
5894 | withval="$with_sockets" | |
5895 | if test "x$with_sockets" = xyes; then | |
5896 | ac_cv_use_sockets='wxUSE_SOCKETS="1"' | |
5897 | else | |
5898 | ac_cv_use_sockets='wxUSE_SOCKETS="0"' | |
5899 | fi | |
5900 | else | |
5901 | ||
5902 | LINE=`grep "wxUSE_SOCKETS" ${OSTYPE}.system.cache` | |
5903 | if test "x$LINE" != x ; then | |
5904 | eval "DEFAULT_$LINE" | |
5905 | fi | |
5906 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
5907 | ||
5908 | fi | |
5909 | ||
5910 | eval "$ac_cv_use_sockets" | |
5911 | echo $ac_cv_use_sockets >> ${OSTYPE}.system.cache.tmp | |
5912 | if test "$wxUSE_SOCKETS" = 1; then | |
5913 | echo "$ac_t""yes" 1>&6 | |
5914 | else | |
5915 | echo "$ac_t""no" 1>&6 | |
5916 | fi | |
5917 | ||
5918 | ||
5919 | ||
ac57418f RR |
5920 | |
5921 | echo $ac_n "checking "for afmfonts"""... $ac_c" 1>&6 | |
5f0f31fe | 5922 | echo "configure:5923: checking "for afmfonts"" >&5 |
ac57418f RR |
5923 | # Check whether --with-afmfonts or --without-afmfonts was given. |
5924 | if test "${with_afmfonts+set}" = set; then | |
5925 | withval="$with_afmfonts" | |
5926 | if test "x$with_afmfonts" = xyes; then | |
5927 | ac_cv_use_afmfonts='wxUSE_AFM_FOR_POSTSCRIPT="1"' | |
bcf1fa6b | 5928 | else |
ac57418f | 5929 | ac_cv_use_afmfonts='wxUSE_AFM_FOR_POSTSCRIPT="0"' |
bcf1fa6b RR |
5930 | fi |
5931 | else | |
5932 | ||
ac57418f | 5933 | LINE=`grep "wxUSE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5934 | if test "x$LINE" != x ; then |
5935 | eval "DEFAULT_$LINE" | |
5936 | fi | |
ac57418f | 5937 | ac_cv_use_afmfonts='wxUSE_AFM_FOR_POSTSCRIPT='$DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT |
bcf1fa6b RR |
5938 | |
5939 | fi | |
5940 | ||
ac57418f RR |
5941 | eval "$ac_cv_use_afmfonts" |
5942 | echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp | |
5943 | if test "$wxUSE_AFM_FOR_POSTSCRIPT" = 1; then | |
bcf1fa6b RR |
5944 | echo "$ac_t""yes" 1>&6 |
5945 | else | |
5946 | echo "$ac_t""no" 1>&6 | |
5947 | fi | |
5948 | ||
5949 | ||
5950 | ||
ac57418f | 5951 | echo $ac_n "checking "for normalized"""... $ac_c" 1>&6 |
5f0f31fe | 5952 | echo "configure:5953: checking "for normalized"" >&5 |
ac57418f RR |
5953 | # Check whether --with-normalized or --without-normalized was given. |
5954 | if test "${with_normalized+set}" = set; then | |
5955 | withval="$with_normalized" | |
5956 | if test "x$with_normalized" = xyes; then | |
5957 | ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS="1"' | |
bcf1fa6b | 5958 | else |
ac57418f | 5959 | ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS="0"' |
bcf1fa6b RR |
5960 | fi |
5961 | else | |
5962 | ||
ac57418f | 5963 | LINE=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5964 | if test "x$LINE" != x ; then |
5965 | eval "DEFAULT_$LINE" | |
5966 | fi | |
ac57418f | 5967 | ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS |
bcf1fa6b RR |
5968 | |
5969 | fi | |
5970 | ||
ac57418f RR |
5971 | eval "$ac_cv_use_normalized" |
5972 | echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp | |
5973 | if test "$WX_NORMALIZED_PS_FONTS" = 1; then | |
bcf1fa6b RR |
5974 | echo "$ac_t""yes" 1>&6 |
5975 | else | |
5976 | echo "$ac_t""no" 1>&6 | |
5977 | fi | |
5978 | ||
5979 | ||
5980 | ||
ac57418f | 5981 | echo $ac_n "checking "for postscript"""... $ac_c" 1>&6 |
5f0f31fe | 5982 | echo "configure:5983: checking "for postscript"" >&5 |
ac57418f RR |
5983 | # Check whether --with-postscript or --without-postscript was given. |
5984 | if test "${with_postscript+set}" = set; then | |
5985 | withval="$with_postscript" | |
5986 | if test "x$with_postscript" = xyes; then | |
5987 | ac_cv_use_postscript='wxUSE_POSTSCRIPT="1"' | |
bcf1fa6b | 5988 | else |
ac57418f | 5989 | ac_cv_use_postscript='wxUSE_POSTSCRIPT="0"' |
bcf1fa6b RR |
5990 | fi |
5991 | else | |
5992 | ||
ac57418f | 5993 | LINE=`grep "wxUSE_POSTSCRIPT" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
5994 | if test "x$LINE" != x ; then |
5995 | eval "DEFAULT_$LINE" | |
5996 | fi | |
ac57418f | 5997 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT |
bcf1fa6b RR |
5998 | |
5999 | fi | |
6000 | ||
ac57418f RR |
6001 | eval "$ac_cv_use_postscript" |
6002 | echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp | |
6003 | if test "$wxUSE_POSTSCRIPT" = 1; then | |
bcf1fa6b RR |
6004 | echo "$ac_t""yes" 1>&6 |
6005 | else | |
6006 | echo "$ac_t""no" 1>&6 | |
6007 | fi | |
6008 | ||
6009 | ||
6010 | ||
ac57418f RR |
6011 | |
6012 | echo $ac_n "checking "for unicode"""... $ac_c" 1>&6 | |
5f0f31fe | 6013 | echo "configure:6014: checking "for unicode"" >&5 |
ac57418f RR |
6014 | # Check whether --with-unicode or --without-unicode was given. |
6015 | if test "${with_unicode+set}" = set; then | |
6016 | withval="$with_unicode" | |
6017 | if test "x$with_unicode" = xyes; then | |
6018 | ac_cv_use_unicode='wxUSE_UNICODE="1"' | |
bcf1fa6b | 6019 | else |
ac57418f | 6020 | ac_cv_use_unicode='wxUSE_UNICODE="0"' |
bcf1fa6b RR |
6021 | fi |
6022 | else | |
6023 | ||
ac57418f | 6024 | LINE=`grep "wxUSE_UNICODE" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
6025 | if test "x$LINE" != x ; then |
6026 | eval "DEFAULT_$LINE" | |
6027 | fi | |
ac57418f | 6028 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE |
bcf1fa6b RR |
6029 | |
6030 | fi | |
6031 | ||
ac57418f RR |
6032 | eval "$ac_cv_use_unicode" |
6033 | echo $ac_cv_use_unicode >> ${OSTYPE}.system.cache.tmp | |
6034 | if test "$wxUSE_UNICODE" = 1; then | |
bcf1fa6b RR |
6035 | echo "$ac_t""yes" 1>&6 |
6036 | else | |
6037 | echo "$ac_t""no" 1>&6 | |
6038 | fi | |
6039 | ||
6040 | ||
6041 | ||
ac57418f | 6042 | echo $ac_n "checking "for wcsrtombs"""... $ac_c" 1>&6 |
5f0f31fe | 6043 | echo "configure:6044: checking "for wcsrtombs"" >&5 |
ac57418f RR |
6044 | # Check whether --with-wcsrtombs or --without-wcsrtombs was given. |
6045 | if test "${with_wcsrtombs+set}" = set; then | |
6046 | withval="$with_wcsrtombs" | |
6047 | if test "x$with_wcsrtombs" = xyes; then | |
6048 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS="1"' | |
bcf1fa6b | 6049 | else |
ac57418f | 6050 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS="0"' |
bcf1fa6b RR |
6051 | fi |
6052 | else | |
6053 | ||
ac57418f | 6054 | LINE=`grep "wxUSE_WCSRTOMBS" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
6055 | if test "x$LINE" != x ; then |
6056 | eval "DEFAULT_$LINE" | |
6057 | fi | |
ac57418f | 6058 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS |
bcf1fa6b RR |
6059 | |
6060 | fi | |
6061 | ||
ac57418f RR |
6062 | eval "$ac_cv_use_wcsrtombs" |
6063 | echo $ac_cv_use_wcsrtombs >> ${OSTYPE}.system.cache.tmp | |
6064 | if test "$wxUSE_WCSRTOMBS" = 1; then | |
bcf1fa6b RR |
6065 | echo "$ac_t""yes" 1>&6 |
6066 | else | |
6067 | echo "$ac_t""no" 1>&6 | |
6068 | fi | |
6069 | ||
6070 | ||
6071 | ||
ac57418f RR |
6072 | |
6073 | echo $ac_n "checking "for wxresources"""... $ac_c" 1>&6 | |
5f0f31fe | 6074 | echo "configure:6075: checking "for wxresources"" >&5 |
ac57418f RR |
6075 | # Check whether --with-wxresources or --without-wxresources was given. |
6076 | if test "${with_wxresources+set}" = set; then | |
6077 | withval="$with_wxresources" | |
6078 | if test "x$with_wxresources" = xyes; then | |
6079 | ac_cv_use_wxresources='wxUSE_WX_RESOURCES="1"' | |
bcf1fa6b | 6080 | else |
ac57418f | 6081 | ac_cv_use_wxresources='wxUSE_WX_RESOURCES="0"' |
bcf1fa6b RR |
6082 | fi |
6083 | else | |
6084 | ||
ac57418f | 6085 | LINE=`grep "wxUSE_WX_RESOURCES" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
6086 | if test "x$LINE" != x ; then |
6087 | eval "DEFAULT_$LINE" | |
6088 | fi | |
ac57418f | 6089 | ac_cv_use_wxresources='wxUSE_WX_RESOURCES='$DEFAULT_wxUSE_WX_RESOURCES |
bcf1fa6b RR |
6090 | |
6091 | fi | |
6092 | ||
ac57418f RR |
6093 | eval "$ac_cv_use_wxresources" |
6094 | echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp | |
6095 | if test "$wxUSE_WX_RESOURCES" = 1; then | |
bcf1fa6b RR |
6096 | echo "$ac_t""yes" 1>&6 |
6097 | else | |
6098 | echo "$ac_t""no" 1>&6 | |
6099 | fi | |
6100 | ||
6101 | ||
6102 | ||
ac57418f | 6103 | echo $ac_n "checking "for prologio"""... $ac_c" 1>&6 |
5f0f31fe | 6104 | echo "configure:6105: checking "for prologio"" >&5 |
ac57418f RR |
6105 | # Check whether --with-prologio or --without-prologio was given. |
6106 | if test "${with_prologio+set}" = set; then | |
6107 | withval="$with_prologio" | |
6108 | if test "x$with_prologio" = xyes; then | |
6109 | ac_cv_use_prologio='wxUSE_PROLOGIO="1"' | |
bcf1fa6b | 6110 | else |
ac57418f | 6111 | ac_cv_use_prologio='wxUSE_PROLOGIO="0"' |
bcf1fa6b RR |
6112 | fi |
6113 | else | |
6114 | ||
ac57418f | 6115 | LINE=`grep "wxUSE_PROLOGIO" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
6116 | if test "x$LINE" != x ; then |
6117 | eval "DEFAULT_$LINE" | |
6118 | fi | |
ac57418f | 6119 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO |
bcf1fa6b RR |
6120 | |
6121 | fi | |
6122 | ||
ac57418f RR |
6123 | eval "$ac_cv_use_prologio" |
6124 | echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp | |
6125 | if test "$wxUSE_PROLOGIO" = 1; then | |
bcf1fa6b RR |
6126 | echo "$ac_t""yes" 1>&6 |
6127 | else | |
6128 | echo "$ac_t""no" 1>&6 | |
6129 | fi | |
6130 | ||
6131 | ||
6132 | ||
ac57418f | 6133 | echo $ac_n "checking "for RPC"""... $ac_c" 1>&6 |
5f0f31fe | 6134 | echo "configure:6135: checking "for RPC"" >&5 |
ac57418f RR |
6135 | # Check whether --with-rpc or --without-rpc was given. |
6136 | if test "${with_rpc+set}" = set; then | |
6137 | withval="$with_rpc" | |
6138 | if test "x$with_rpc" = xyes; then | |
6139 | ac_cv_use_rpc='wxUSE_RPC="1"' | |
bcf1fa6b | 6140 | else |
ac57418f | 6141 | ac_cv_use_rpc='wxUSE_RPC="0"' |
bcf1fa6b RR |
6142 | fi |
6143 | else | |
6144 | ||
ac57418f | 6145 | LINE=`grep "wxUSE_RPC" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
6146 | if test "x$LINE" != x ; then |
6147 | eval "DEFAULT_$LINE" | |
6148 | fi | |
ac57418f | 6149 | ac_cv_use_rpc='wxUSE_RPC='$DEFAULT_wxUSE_RPC |
bcf1fa6b RR |
6150 | |
6151 | fi | |
6152 | ||
ac57418f RR |
6153 | eval "$ac_cv_use_rpc" |
6154 | echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp | |
6155 | if test "$wxUSE_RPC" = 1; then | |
bcf1fa6b RR |
6156 | echo "$ac_t""yes" 1>&6 |
6157 | else | |
6158 | echo "$ac_t""no" 1>&6 | |
6159 | fi | |
6160 | ||
6161 | ||
6162 | ||
ac57418f RR |
6163 | |
6164 | echo $ac_n "checking "for IPC"""... $ac_c" 1>&6 | |
5f0f31fe | 6165 | echo "configure:6166: checking "for IPC"" >&5 |
ac57418f RR |
6166 | # Check whether --with-ipc or --without-ipc was given. |
6167 | if test "${with_ipc+set}" = set; then | |
6168 | withval="$with_ipc" | |
6169 | if test "x$with_ipc" = xyes; then | |
6170 | ac_cv_use_ipc='wxUSE_IPC="1"' | |
bcf1fa6b | 6171 | else |
ac57418f | 6172 | ac_cv_use_ipc='wxUSE_IPC="0"' |
bcf1fa6b RR |
6173 | fi |
6174 | else | |
6175 | ||
ac57418f | 6176 | LINE=`grep "wxUSE_IPC" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
6177 | if test "x$LINE" != x ; then |
6178 | eval "DEFAULT_$LINE" | |
6179 | fi | |
ac57418f | 6180 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
bcf1fa6b RR |
6181 | |
6182 | fi | |
6183 | ||
6184 | eval "$ac_cv_use_ipc" | |
6185 | echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp | |
8248314d | 6186 | if test "$wxUSE_IPC" = 1; then |
bcf1fa6b RR |
6187 | echo "$ac_t""yes" 1>&6 |
6188 | else | |
6189 | echo "$ac_t""no" 1>&6 | |
6190 | fi | |
6191 | ||
6192 | ||
6193 | ||
6194 | echo $ac_n "checking "for resources"""... $ac_c" 1>&6 | |
5f0f31fe | 6195 | echo "configure:6196: checking "for resources"" >&5 |
bcf1fa6b RR |
6196 | # Check whether --with-resources or --without-resources was given. |
6197 | if test "${with_resources+set}" = set; then | |
6198 | withval="$with_resources" | |
6199 | if test "x$with_resources" = xyes; then | |
8248314d | 6200 | ac_cv_use_resources='wxUSE_RESOURCES="1"' |
bcf1fa6b | 6201 | else |
8248314d | 6202 | ac_cv_use_resources='wxUSE_RESOURCES="0"' |
bcf1fa6b RR |
6203 | fi |
6204 | else | |
6205 | ||
8248314d | 6206 | LINE=`grep "wxUSE_RESOURCES" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
6207 | if test "x$LINE" != x ; then |
6208 | eval "DEFAULT_$LINE" | |
6209 | fi | |
8248314d | 6210 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES |
bcf1fa6b RR |
6211 | |
6212 | fi | |
6213 | ||
6214 | eval "$ac_cv_use_resources" | |
6215 | echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp | |
8248314d | 6216 | if test "$wxUSE_RESOURCES" = 1; then |
bcf1fa6b RR |
6217 | echo "$ac_t""yes" 1>&6 |
6218 | else | |
6219 | echo "$ac_t""no" 1>&6 | |
6220 | fi | |
6221 | ||
6222 | ||
6223 | ||
6224 | echo $ac_n "checking "for clipboard"""... $ac_c" 1>&6 | |
5f0f31fe | 6225 | echo "configure:6226: checking "for clipboard"" >&5 |
bcf1fa6b RR |
6226 | # Check whether --with-clipboard or --without-clipboard was given. |
6227 | if test "${with_clipboard+set}" = set; then | |
6228 | withval="$with_clipboard" | |
6229 | if test "x$with_clipboard" = xyes; then | |
8248314d | 6230 | ac_cv_use_clipboard='wxUSE_CLIPBOARD="1"' |
bcf1fa6b | 6231 | else |
8248314d | 6232 | ac_cv_use_clipboard='wxUSE_CLIPBOARD="0"' |
bcf1fa6b RR |
6233 | fi |
6234 | else | |
6235 | ||
8248314d | 6236 | LINE=`grep "wxUSE_CLIPBOARD" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
6237 | if test "x$LINE" != x ; then |
6238 | eval "DEFAULT_$LINE" | |
6239 | fi | |
8248314d | 6240 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD |
bcf1fa6b RR |
6241 | |
6242 | fi | |
6243 | ||
6244 | eval "$ac_cv_use_clipboard" | |
6245 | echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp | |
8248314d | 6246 | if test "$wxUSE_CLIPBOARD" = 1; then |
bcf1fa6b RR |
6247 | echo "$ac_t""yes" 1>&6 |
6248 | else | |
6249 | echo "$ac_t""no" 1>&6 | |
6250 | fi | |
6251 | ||
6252 | ||
6253 | ||
ff8bfdbb | 6254 | echo $ac_n "checking "for tooltips"""... $ac_c" 1>&6 |
5f0f31fe | 6255 | echo "configure:6256: checking "for tooltips"" >&5 |
ff8bfdbb VZ |
6256 | # Check whether --with-tooltips or --without-tooltips was given. |
6257 | if test "${with_tooltips+set}" = set; then | |
6258 | withval="$with_tooltips" | |
6259 | if test "x$with_tooltips" = xyes; then | |
6260 | ac_cv_use_tooltips='wxUSE_TOOLTIPS="1"' | |
6261 | else | |
6262 | ac_cv_use_tooltips='wxUSE_TOOLTIPS="0"' | |
6263 | fi | |
6264 | else | |
6265 | ||
6266 | LINE=`grep "wxUSE_TOOLTIPS" ${OSTYPE}.system.cache` | |
6267 | if test "x$LINE" != x ; then | |
6268 | eval "DEFAULT_$LINE" | |
6269 | fi | |
6270 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
6271 | ||
6272 | fi | |
6273 | ||
6274 | eval "$ac_cv_use_tooltips" | |
6275 | echo $ac_cv_use_tooltips >> ${OSTYPE}.system.cache.tmp | |
6276 | if test "$wxUSE_TOOLTIPS" = 1; then | |
6277 | echo "$ac_t""yes" 1>&6 | |
6278 | else | |
6279 | echo "$ac_t""no" 1>&6 | |
6280 | fi | |
6281 | ||
6282 | ||
6283 | ||
bcf1fa6b | 6284 | echo $ac_n "checking "for dnd"""... $ac_c" 1>&6 |
5f0f31fe | 6285 | echo "configure:6286: checking "for dnd"" >&5 |
bcf1fa6b | 6286 | # Check whether --with-dnd or --without-dnd was given. |
ac57418f RR |
6287 | if test "${with_dnd+set}" = set; then |
6288 | withval="$with_dnd" | |
6289 | if test "x$with_dnd" = xyes; then | |
6290 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP="1"' | |
bcf1fa6b | 6291 | else |
ac57418f | 6292 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP="0"' |
bcf1fa6b RR |
6293 | fi |
6294 | else | |
6295 | ||
ac57418f | 6296 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
6297 | if test "x$LINE" != x ; then |
6298 | eval "DEFAULT_$LINE" | |
6299 | fi | |
ac57418f | 6300 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP |
bcf1fa6b RR |
6301 | |
6302 | fi | |
6303 | ||
ac57418f RR |
6304 | eval "$ac_cv_use_dnd" |
6305 | echo $ac_cv_use_dnd >> ${OSTYPE}.system.cache.tmp | |
6306 | if test "$wxUSE_DRAG_AND_DROP" = 1; then | |
bcf1fa6b RR |
6307 | echo "$ac_t""yes" 1>&6 |
6308 | else | |
6309 | echo "$ac_t""no" 1>&6 | |
6310 | fi | |
6311 | ||
6312 | ||
6313 | ||
6314 | ||
6315 | echo $ac_n "checking "for mdi"""... $ac_c" 1>&6 | |
5f0f31fe | 6316 | echo "configure:6317: checking "for mdi"" >&5 |
bcf1fa6b RR |
6317 | # Check whether --with-mdi or --without-mdi was given. |
6318 | if test "${with_mdi+set}" = set; then | |
6319 | withval="$with_mdi" | |
6320 | if test "x$with_mdi" = xyes; then | |
8248314d | 6321 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE="1"' |
bcf1fa6b | 6322 | else |
8248314d | 6323 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE="0"' |
bcf1fa6b RR |
6324 | fi |
6325 | else | |
6326 | ||
8248314d | 6327 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
6328 | if test "x$LINE" != x ; then |
6329 | eval "DEFAULT_$LINE" | |
6330 | fi | |
8248314d | 6331 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE |
bcf1fa6b RR |
6332 | |
6333 | fi | |
6334 | ||
6335 | eval "$ac_cv_use_mdi" | |
6336 | echo $ac_cv_use_mdi >> ${OSTYPE}.system.cache.tmp | |
8248314d | 6337 | if test "$wxUSE_MDI_ARCHITECTURE" = 1; then |
bcf1fa6b RR |
6338 | echo "$ac_t""yes" 1>&6 |
6339 | else | |
6340 | echo "$ac_t""no" 1>&6 | |
6341 | fi | |
6342 | ||
6343 | ||
6344 | ||
6345 | echo $ac_n "checking "for docview"""... $ac_c" 1>&6 | |
5f0f31fe | 6346 | echo "configure:6347: checking "for docview"" >&5 |
bcf1fa6b RR |
6347 | # Check whether --with-docview or --without-docview was given. |
6348 | if test "${with_docview+set}" = set; then | |
6349 | withval="$with_docview" | |
6350 | if test "x$with_docview" = xyes; then | |
8248314d | 6351 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE="1"' |
bcf1fa6b | 6352 | else |
8248314d | 6353 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE="0"' |
bcf1fa6b RR |
6354 | fi |
6355 | else | |
6356 | ||
8248314d | 6357 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
6358 | if test "x$LINE" != x ; then |
6359 | eval "DEFAULT_$LINE" | |
6360 | fi | |
8248314d | 6361 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE |
bcf1fa6b RR |
6362 | |
6363 | fi | |
6364 | ||
6365 | eval "$ac_cv_use_docview" | |
6366 | echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp | |
8248314d | 6367 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1; then |
bcf1fa6b RR |
6368 | echo "$ac_t""yes" 1>&6 |
6369 | else | |
6370 | echo "$ac_t""no" 1>&6 | |
6371 | fi | |
6372 | ||
6373 | ||
6374 | ||
6375 | echo $ac_n "checking "for printarch"""... $ac_c" 1>&6 | |
5f0f31fe | 6376 | echo "configure:6377: checking "for printarch"" >&5 |
bcf1fa6b RR |
6377 | # Check whether --with-printarch or --without-printarch was given. |
6378 | if test "${with_printarch+set}" = set; then | |
6379 | withval="$with_printarch" | |
6380 | if test "x$with_printarch" = xyes; then | |
8248314d | 6381 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE="1"' |
bcf1fa6b | 6382 | else |
8248314d | 6383 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE="0"' |
bcf1fa6b RR |
6384 | fi |
6385 | else | |
6386 | ||
8248314d | 6387 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache` |
bcf1fa6b RR |
6388 | if test "x$LINE" != x ; then |
6389 | eval "DEFAULT_$LINE" | |
6390 | fi | |
8248314d | 6391 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE |
bcf1fa6b RR |
6392 | |
6393 | fi | |
6394 | ||
6395 | eval "$ac_cv_use_printarch" | |
6396 | echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp | |
8248314d | 6397 | if test "$wxUSE_PRINTING_ARCHITECTURE" = 1; then |
bcf1fa6b RR |
6398 | echo "$ac_t""yes" 1>&6 |
6399 | else | |
6400 | echo "$ac_t""no" 1>&6 | |
6401 | fi | |
6402 | ||
6403 | ||
6404 | ||
e9aad10a | 6405 | echo $ac_n "checking "for help"""... $ac_c" 1>&6 |
5f0f31fe | 6406 | echo "configure:6407: checking "for help"" >&5 |
e9aad10a KB |
6407 | # Check whether --with-help or --without-help was given. |
6408 | if test "${with_help+set}" = set; then | |
6409 | withval="$with_help" | |
6410 | if test "x$with_help" = xyes; then | |
6411 | ac_cv_use_help='wxUSE_HELP="1"' | |
6412 | else | |
6413 | ac_cv_use_help='wxUSE_HELP="0"' | |
6414 | fi | |
6415 | else | |
6416 | ||
6417 | LINE=`grep "wxUSE_HELP" ${OSTYPE}.system.cache` | |
6418 | if test "x$LINE" != x ; then | |
6419 | eval "DEFAULT_$LINE" | |
6420 | fi | |
6421 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6422 | ||
6423 | fi | |
6424 | ||
6425 | eval "$ac_cv_use_help" | |
6426 | echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp | |
6427 | if test "$wxUSE_HELP" = 1; then | |
6428 | echo "$ac_t""yes" 1>&6 | |
6429 | else | |
6430 | echo "$ac_t""no" 1>&6 | |
6431 | fi | |
6432 | ||
6433 | ||
6434 | ||
8248314d | 6435 | if test "$wxUSE_UNIX" = 1 ; then |
bcf1fa6b RR |
6436 | cat >> confdefs.h <<\EOF |
6437 | #define __UNIX__ 1 | |
6438 | EOF | |
6439 | ||
6440 | fi | |
6441 | ||
6d5977df | 6442 | if test "$USE_LINUX" = 1; then |
91845ada | 6443 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 |
5f0f31fe | 6444 | echo "configure:6445: checking for gettext in -lc" >&5 |
6d5977df KB |
6445 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
6446 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6447 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6448 | else | |
6449 | ac_save_LIBS="$LIBS" | |
6450 | LIBS="-lc $LIBS" | |
6451 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 6452 | #line 6453 "configure" |
6d5977df KB |
6453 | #include "confdefs.h" |
6454 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6455 | /* We use char because int might match the return type of a gcc2 | |
6456 | builtin and then its argument prototype would still apply. */ | |
6457 | char gettext(); | |
6458 | ||
6459 | int main() { | |
6460 | gettext() | |
6461 | ; return 0; } | |
6462 | EOF | |
5f0f31fe | 6463 | if { (eval echo configure:6464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
6d5977df KB |
6464 | rm -rf conftest* |
6465 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6466 | else | |
6467 | echo "configure: failed program was:" >&5 | |
6468 | cat conftest.$ac_ext >&5 | |
6469 | rm -rf conftest* | |
6470 | eval "ac_cv_lib_$ac_lib_var=no" | |
6471 | fi | |
6472 | rm -f conftest* | |
6473 | LIBS="$ac_save_LIBS" | |
6474 | ||
6475 | fi | |
6476 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6477 | echo "$ac_t""yes" 1>&6 | |
6478 | cat >> confdefs.h <<\EOF | |
6479 | #define wxHAVE_GLIBC2 1 | |
6480 | EOF | |
6481 | ||
6482 | else | |
6483 | echo "$ac_t""no" 1>&6 | |
6484 | fi | |
6485 | ||
6486 | fi | |
6487 | ||
bcf1fa6b RR |
6488 | |
6489 | TOOLKIT= | |
6490 | TOOLKIT_DEF= | |
6491 | ||
6492 | GUI_TK_INCLUDE= | |
6493 | GUI_TK_LIBRARY= | |
6494 | GUI_TK_LINK= | |
6495 | ||
76153302 RR |
6496 | WX_LINK= |
6497 | ||
bcf1fa6b RR |
6498 | MAKEINCLUDE= |
6499 | ||
8248314d | 6500 | if test "$wxUSE_GTK" = 1; then |
bcf1fa6b RR |
6501 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
6502 | if test "${with_gtk_prefix+set}" = set; then | |
6503 | withval="$with_gtk_prefix" | |
6504 | gtk_config_prefix="$withval" | |
6505 | else | |
6506 | gtk_config_prefix="" | |
6507 | fi | |
6508 | ||
6509 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
6510 | if test "${with_gtk_exec_prefix+set}" = set; then | |
6511 | withval="$with_gtk_exec_prefix" | |
6512 | gtk_config_exec_prefix="$withval" | |
6513 | else | |
6514 | gtk_config_exec_prefix="" | |
6515 | fi | |
6516 | ||
6517 | ||
6518 | if test x$gtk_config_exec_prefix != x ; then | |
6519 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
6520 | if test x${GTK_CONFIG+set} != xset ; then | |
6521 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
6522 | fi | |
6523 | fi | |
6524 | if test x$gtk_config_prefix != x ; then | |
6525 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
6526 | if test x${GTK_CONFIG+set} != xset ; then | |
6527 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
6528 | fi | |
6529 | fi | |
6530 | ||
6531 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
6532 | set dummy gtk-config; ac_word=$2 | |
6533 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5f0f31fe | 6534 | echo "configure:6535: checking for $ac_word" >&5 |
bcf1fa6b RR |
6535 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
6536 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6537 | else | |
6538 | case "$GTK_CONFIG" in | |
6539 | /*) | |
6540 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
6541 | ;; | |
6542 | *) | |
d28e1977 RR |
6543 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
6544 | for ac_dir in $PATH; do | |
bcf1fa6b RR |
6545 | test -z "$ac_dir" && ac_dir=. |
6546 | if test -f $ac_dir/$ac_word; then | |
6547 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
6548 | break | |
6549 | fi | |
6550 | done | |
6551 | IFS="$ac_save_ifs" | |
6552 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
6553 | ;; | |
6554 | esac | |
6555 | fi | |
6556 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
6557 | if test -n "$GTK_CONFIG"; then | |
6558 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
6559 | else | |
6560 | echo "$ac_t""no" 1>&6 | |
6561 | fi | |
6562 | ||
5db1a502 | 6563 | min_gtk_version=1.0.4 |
bcf1fa6b | 6564 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
5f0f31fe | 6565 | echo "configure:6566: checking for GTK - version >= $min_gtk_version" >&5 |
bcf1fa6b RR |
6566 | no_gtk="" |
6567 | if test "$GTK_CONFIG" != "no" ; then | |
6568 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
6569 | GTK_LIBS=`$GTK_CONFIG --libs` | |
6570 | ac_save_CFLAGS="$CFLAGS" | |
6571 | ac_save_LIBS="$LIBS" | |
6572 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
6573 | LIBS="$LIBS $GTK_LIBS" | |
6574 | if test "$cross_compiling" = yes; then | |
6575 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
6576 | else | |
6577 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 6578 | #line 6579 "configure" |
bcf1fa6b RR |
6579 | #include "confdefs.h" |
6580 | ||
6581 | #include <gtk/gtk.h> | |
6582 | #include <stdio.h> | |
6583 | ||
c2933500 | 6584 | int |
bcf1fa6b RR |
6585 | main () |
6586 | { | |
6587 | int major, minor, micro; | |
6588 | ||
6589 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
6590 | printf("%s, bad version string\n", "$min_gtk_version"); | |
6591 | exit(1); | |
6592 | } | |
6593 | ||
f3855ef0 RR |
6594 | if (gtk_minor_version > 0) return FALSE; |
6595 | ||
bcf1fa6b | 6596 | return !((gtk_major_version > major) || |
c2933500 VZ |
6597 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
6598 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
bcf1fa6b RR |
6599 | } |
6600 | ||
6601 | EOF | |
5f0f31fe | 6602 | if { (eval echo configure:6603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
bcf1fa6b RR |
6603 | then |
6604 | : | |
6605 | else | |
6606 | echo "configure: failed program was:" >&5 | |
6607 | cat conftest.$ac_ext >&5 | |
6608 | rm -fr conftest* | |
6609 | no_gtk=yes | |
6610 | fi | |
6611 | rm -fr conftest* | |
6612 | fi | |
6613 | ||
6614 | CFLAGS="$ac_save_CFLAGS" | |
6615 | LIBS="$ac_save_LIBS" | |
6616 | else | |
6617 | no_gtk=yes | |
6618 | fi | |
6619 | if test "x$no_gtk" = x ; then | |
6620 | echo "$ac_t""yes" 1>&6 | |
6621 | ||
6622 | GUI_TK_INCLUDE="$GTK_CFLAGS" | |
6623 | GUI_TK_LIBRARY="$GTK_LIBS" | |
c2933500 | 6624 | |
bcf1fa6b RR |
6625 | else |
6626 | echo "$ac_t""no" 1>&6 | |
6627 | GTK_CFLAGS="" | |
6628 | GTK_LIBS="" | |
f3855ef0 | 6629 | { 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 |
6630 | fi |
6631 | ||
6632 | ||
6633 | ||
bcf1fa6b RR |
6634 | TOOLKIT=GTK |
6635 | TOOLKIT_DEF=__WXGTK__ | |
8710cf5c | 6636 | WX_LINK=-lwx_gtk2 |
bcf1fa6b RR |
6637 | MAKEINCLUDE=../gtk.inc |
6638 | fi | |
6639 | ||
8248314d | 6640 | if test "$wxUSE_QT" = 1; then |
bcf1fa6b | 6641 | echo $ac_n "checking for Qt includes""... $ac_c" 1>&6 |
5f0f31fe | 6642 | echo "configure:6643: checking for Qt includes" >&5 |
bcf1fa6b RR |
6643 | |
6644 | ac_find_includes= | |
6645 | for ac_dir in $SEARCH_INCLUDE; | |
6646 | do | |
6647 | if test -f "$ac_dir/qapp.h"; then | |
6648 | ac_find_includes=$ac_dir | |
6649 | break | |
6650 | fi | |
6651 | done | |
6652 | ||
6653 | if test "$ac_find_includes" != "" ; then | |
6654 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
6655 | echo $ac_n "checking for Qt library""... $ac_c" 1>&6 | |
5f0f31fe | 6656 | echo "configure:6657: checking for Qt library" >&5 |
bcf1fa6b RR |
6657 | |
6658 | ac_find_libraries= | |
6659 | for ac_dir in $SEARCH_LIB; | |
6660 | do | |
6661 | for ac_extension in a so sl; do | |
6662 | if test -f "$ac_dir/libqt.$ac_extension"; then | |
6663 | ac_find_libraries=$ac_dir | |
6664 | break 2 | |
6665 | fi | |
6666 | done | |
6667 | done | |
6668 | ||
6669 | if test "$ac_find_libraries" != "" ; then | |
6670 | ||
6671 | ac_path_to_include=$ac_find_includes | |
6672 | echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
6673 | result=$? | |
6674 | if test $result = 0; then | |
6675 | ac_path_to_include="" | |
6676 | else | |
c2933500 | 6677 | ac_path_to_include="-I$ac_find_includes" |
bcf1fa6b RR |
6678 | fi |
6679 | ||
6680 | ||
6681 | echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null | |
6682 | result=$? | |
6683 | if test $result = 0; then | |
6684 | ac_path_to_link="" | |
6685 | else | |
c2933500 | 6686 | ac_path_to_link="-L$ac_find_libraries" |
bcf1fa6b RR |
6687 | fi |
6688 | ||
6689 | CHECK_LINK="$CHECK_INCLUDE $ac_path_to_link" | |
6690 | CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include" | |
6691 | echo "$ac_t""found Qt at $ac_find_libraries" 1>&6 | |
6692 | else | |
6693 | { echo "configure: error: no" 1>&2; exit 1; } | |
6694 | fi | |
6695 | else | |
6696 | { echo "configure: error: no" 1>&2; exit 1; } | |
6697 | fi | |
76153302 | 6698 | GUI_TK_LINK="-lX11 -lqt -lm" |
bcf1fa6b RR |
6699 | TOOLKIT=QT |
6700 | TOOLKIT_DEF=__WXQT__ | |
76153302 | 6701 | WX_LINK=-lwx_qt |
bcf1fa6b RR |
6702 | MAKEINCLUDE=../qt.inc |
6703 | fi | |
6704 | ||
8248314d | 6705 | if test "$wxUSE_MOTIF" = 1; then |
bcf1fa6b | 6706 | echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6 |
5f0f31fe | 6707 | echo "configure:6708: checking for Motif/Lesstif includes" >&5 |
bcf1fa6b RR |
6708 | |
6709 | ac_find_includes= | |
6710 | for ac_dir in $SEARCH_INCLUDE; | |
6711 | do | |
ebefb2f3 | 6712 | if test -f "$ac_dir/Xm/Xm.h"; then |
bcf1fa6b RR |
6713 | ac_find_includes=$ac_dir |
6714 | break | |
6715 | fi | |
6716 | done | |
6717 | ||
6718 | if test "$ac_find_includes" != "" ; then | |
6719 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
76153302 | 6720 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 |
5f0f31fe | 6721 | echo "configure:6722: checking for Motif/Lesstif library" >&5 |
bcf1fa6b RR |
6722 | |
6723 | ac_find_libraries= | |
6724 | for ac_dir in $SEARCH_LIB; | |
6725 | do | |
6726 | for ac_extension in a so sl; do | |
6727 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
6728 | ac_find_libraries=$ac_dir | |
6729 | break 2 | |
6730 | fi | |
6731 | done | |
6732 | done | |
6733 | ||
6734 | if test "$ac_find_libraries" != "" ; then | |
6735 | ||
6736 | ac_path_to_include=$ac_find_includes | |
6737 | echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
6738 | result=$? | |
6739 | if test $result = 0; then | |
6740 | ac_path_to_include="" | |
6741 | else | |
c2933500 | 6742 | ac_path_to_include="-I$ac_find_includes" |
bcf1fa6b RR |
6743 | fi |
6744 | ||
6745 | ||
6746 | echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null | |
6747 | result=$? | |
6748 | if test $result = 0; then | |
6749 | ac_path_to_link="" | |
6750 | else | |
c2933500 | 6751 | ac_path_to_link="-L$ac_find_libraries" |
bcf1fa6b RR |
6752 | fi |
6753 | ||
76153302 | 6754 | CHECK_LINK="$CHECK_LIB $ac_path_to_link" |
bcf1fa6b RR |
6755 | CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include" |
6756 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
76153302 | 6757 | echo $ac_n "checking for Xt library""... $ac_c" 1>&6 |
5f0f31fe | 6758 | echo "configure:6759: checking for Xt library" >&5 |
76153302 RR |
6759 | |
6760 | ac_find_libraries= | |
6761 | for ac_dir in $SEARCH_LIB; | |
6762 | do | |
6763 | for ac_extension in a so sl; do | |
6764 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
6765 | ac_find_libraries=$ac_dir | |
6766 | break 2 | |
6767 | fi | |
6768 | done | |
6769 | done | |
6770 | ||
6771 | if test "$ac_find_libraries" != "" ; then | |
6772 | ||
6773 | echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null | |
6774 | result=$? | |
6775 | if test $result = 0; then | |
6776 | ac_path_to_link="" | |
6777 | else | |
c2933500 | 6778 | ac_path_to_link="-L$ac_find_libraries" |
76153302 RR |
6779 | fi |
6780 | ||
6781 | CHECK_LINK="$CHECK_LIB $ac_path_to_link" | |
6782 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
892dbe99 | 6783 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
5f0f31fe | 6784 | echo "configure:6785: checking for Xpm library" >&5 |
892dbe99 RR |
6785 | |
6786 | ac_find_libraries= | |
6787 | for ac_dir in $SEARCH_LIB; | |
6788 | do | |
6789 | for ac_extension in a so sl; do | |
6790 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
6791 | ac_find_libraries=$ac_dir | |
6792 | break 2 | |
6793 | fi | |
6794 | done | |
6795 | done | |
6796 | ||
6797 | if test "$ac_find_libraries" != "" ; then | |
6798 | ||
6799 | echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null | |
6800 | result=$? | |
6801 | if test $result = 0; then | |
6802 | ac_path_to_link="" | |
6803 | else | |
c2933500 | 6804 | ac_path_to_link="-L$ac_find_libraries" |
892dbe99 RR |
6805 | fi |
6806 | ||
6807 | CHECK_LINK="$CHECK_LIB $ac_path_to_link" | |
6808 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
6809 | else | |
6810 | { echo "configure: error: no" 1>&2; exit 1; } | |
6811 | fi | |
76153302 RR |
6812 | else |
6813 | { echo "configure: error: no" 1>&2; exit 1; } | |
6814 | fi | |
bcf1fa6b RR |
6815 | else |
6816 | { echo "configure: error: no" 1>&2; exit 1; } | |
6817 | fi | |
6818 | else | |
6819 | { echo "configure: error: no" 1>&2; exit 1; } | |
6820 | fi | |
c2933500 | 6821 | |
8c739649 RR |
6822 | GUI_TK_LINK="-lXm -lXpm -lXmu -lXt -lX11 -lm" |
6823 | GUI_TK_LIBRARY="$CHECK_LIB $GUI_TK_LINK" | |
bcf1fa6b | 6824 | TOOLKIT=MOTIF |
c2933500 | 6825 | TOOLKIT_DEF=__WXMOTIF__ |
b75867a6 | 6826 | WX_LINK=-lwx_motif2 |
bcf1fa6b RR |
6827 | MAKEINCLUDE=../motif.inc |
6828 | fi | |
6829 | ||
6830 | if test "$TOOLKIT" = ""; then | |
c2933500 | 6831 | { echo "configure: error: You must specify a toolkit: --with-gtk --with-qt --with-motif" 1>&2; exit 1; } |
bcf1fa6b RR |
6832 | fi |
6833 | ||
6834 | ||
6835 | ||
6836 | ||
6837 | ||
6838 | ||
6839 | ||
6840 | ||
6841 | ||
6842 | ||
6843 | ||
76153302 RR |
6844 | |
6845 | ||
8c739649 RR |
6846 | EXTRA_LINK= |
6847 | ||
bcf1fa6b | 6848 | WXDEBUG= |
2904eefd | 6849 | if test "$wxUSE_DEBUG_GDB" = 1 ; then |
5f0f31fe VZ |
6850 | wxUSE_DEBUG_INFO=1 |
6851 | WXDEBUG="-ggdb" | |
6852 | fi | |
6853 | ||
6854 | if test "$wxUSE_DEBUG_INFO" = 1 ; then | |
2904eefd KB |
6855 | WXDEBUG="-g" |
6856 | wxUSE_OPTIMISE=0 | |
bcf1fa6b RR |
6857 | fi |
6858 | ||
6859 | ||
5f0f31fe | 6860 | |
8248314d | 6861 | if test "$wxUSE_DEBUG_FLAG" = 1 ; then |
bcf1fa6b | 6862 | cat >> confdefs.h <<EOF |
8248314d | 6863 | #define WXDEBUG $wxUSE_DEBUG_FLAG |
bcf1fa6b RR |
6864 | EOF |
6865 | ||
6866 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
6867 | ||
f96aa4d9 RR |
6868 | else |
6869 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
6870 | ||
bcf1fa6b RR |
6871 | fi |
6872 | ||
8248314d | 6873 | if test "$wxUSE_MEM_TRACING" = 1 ; then |
bcf1fa6b | 6874 | cat >> confdefs.h <<EOF |
8248314d | 6875 | #define wxUSE_MEMORY_TRACING $wxUSE_MEM_TRACING |
bcf1fa6b RR |
6876 | EOF |
6877 | ||
e55ad60e | 6878 | cat >> confdefs.h <<EOF |
8248314d | 6879 | #define wxUSE_GLOBAL_MEMORY_OPERATORS $wxUSE_MEM_TRACING |
e55ad60e RR |
6880 | EOF |
6881 | ||
6882 | fi | |
bcf1fa6b | 6883 | |
8248314d | 6884 | if test "$wxUSE_DMALLOC" = 1 ; then |
bcf1fa6b RR |
6885 | EXTRA_LINK="$EXTRA_LINK -ldmalloc" |
6886 | fi | |
6887 | ||
6888 | ||
6889 | PROFILE= | |
8248314d | 6890 | if test "$wxUSE_PROFILE" = 1 ; then |
bcf1fa6b RR |
6891 | PROFILE="-pg" |
6892 | fi | |
6893 | ||
6894 | ||
6895 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
6896 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
8248314d | 6897 | if test "$wxUSE_OPTIMISE" = 0 ; then |
bcf1fa6b RR |
6898 | OPTIMISE= |
6899 | else | |
6900 | if test "$GCC" = yes ; then | |
6901 | OPTIMISE="-O2" | |
6902 | case "${canonical}" in | |
6903 | i586-*-*|i686-*-* ) | |
6904 | OPTIMISE="${OPTIMISE} " | |
6905 | ;; | |
6906 | esac | |
6907 | else | |
6908 | OPTIMISE="-O" | |
6909 | fi | |
6910 | fi | |
6911 | ||
6912 | ||
6913 | APPLE_IEEE=NONE | |
8248314d | 6914 | if test "$wxUSE_APPLE_IEEE" = 1 ; then |
bcf1fa6b RR |
6915 | APPLE_IEEE="APPLE_IEEE" |
6916 | cat >> confdefs.h <<EOF | |
8248314d | 6917 | #define wxUSE_APPLE_IEEE $wxUSE_APPLE_IEEE |
bcf1fa6b RR |
6918 | EOF |
6919 | ||
6920 | fi | |
6921 | ||
8248314d | 6922 | wxUSE_IOSTREAMH=$DEFAULT_wxUSE_IOSTREAMH |
bcf1fa6b | 6923 | cat >> confdefs.h <<EOF |
8248314d | 6924 | #define wxUSE_IOSTREAMH $wxUSE_IOSTREAMH |
bcf1fa6b RR |
6925 | EOF |
6926 | ||
6927 | ||
6928 | ||
8248314d | 6929 | if test "$wxUSE_ZLIB" = 1 ; then |
bcf1fa6b | 6930 | cat >> confdefs.h <<EOF |
8248314d | 6931 | #define wxUSE_ZLIB $wxUSE_ZLIB |
bcf1fa6b RR |
6932 | EOF |
6933 | ||
ac57418f | 6934 | Z_C_SRC="\$(Z_C_SRC)" |
bcf1fa6b RR |
6935 | fi |
6936 | ||
ac57418f | 6937 | |
8248314d | 6938 | if test "$wxUSE_LIBPNG" = 1 ; then |
bcf1fa6b | 6939 | cat >> confdefs.h <<EOF |
8248314d | 6940 | #define wxUSE_LIBPNG $wxUSE_LIBPNG |
bcf1fa6b | 6941 | EOF |
c2933500 | 6942 | |
ac57418f | 6943 | PNG_C_SRC="\$(PNG_C_SRC)" |
bcf1fa6b RR |
6944 | fi |
6945 | ||
ac57418f | 6946 | |
2fff5f08 VS |
6947 | JPEG_LINK="" |
6948 | if test "$wxUSE_LIBJPEG" = 1 ; then | |
6949 | cat >> confdefs.h <<EOF | |
6950 | #define wxUSE_LIBJPEG $wxUSE_LIBJPEG | |
6951 | EOF | |
6952 | ||
2e0bceb6 | 6953 | echo $ac_n "checking for main in -ljpeg""... $ac_c" 1>&6 |
5f0f31fe | 6954 | echo "configure:6955: checking for main in -ljpeg" >&5 |
2e0bceb6 | 6955 | ac_lib_var=`echo jpeg'_'main | sed 'y%./+-%__p_%'` |
d1d3ccbe | 6956 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2fff5f08 VS |
6957 | echo $ac_n "(cached) $ac_c" 1>&6 |
6958 | else | |
6959 | ac_save_LIBS="$LIBS" | |
6960 | LIBS="-ljpeg $LIBS" | |
6961 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 6962 | #line 6963 "configure" |
2fff5f08 VS |
6963 | #include "confdefs.h" |
6964 | ||
6965 | int main() { | |
2e0bceb6 | 6966 | main() |
2fff5f08 VS |
6967 | ; return 0; } |
6968 | EOF | |
5f0f31fe | 6969 | if { (eval echo configure:6970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
2fff5f08 | 6970 | rm -rf conftest* |
d1d3ccbe | 6971 | eval "ac_cv_lib_$ac_lib_var=yes" |
2fff5f08 VS |
6972 | else |
6973 | echo "configure: failed program was:" >&5 | |
6974 | cat conftest.$ac_ext >&5 | |
6975 | rm -rf conftest* | |
d1d3ccbe | 6976 | eval "ac_cv_lib_$ac_lib_var=no" |
2fff5f08 VS |
6977 | fi |
6978 | rm -f conftest* | |
6979 | LIBS="$ac_save_LIBS" | |
6980 | ||
6981 | fi | |
d1d3ccbe VZ |
6982 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
6983 | echo "$ac_t""yes" 1>&6 | |
6984 | ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
6985 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
6986 | cat >> confdefs.h <<EOF | |
6987 | #define $ac_tr_lib 1 | |
2fff5f08 VS |
6988 | EOF |
6989 | ||
6990 | LIBS="-ljpeg $LIBS" | |
6991 | ||
d1d3ccbe VZ |
6992 | else |
6993 | echo "$ac_t""no" 1>&6 | |
2e0bceb6 | 6994 | { echo "configure: error: "libjpeg is not available."" 1>&2; exit 1; } |
2fff5f08 | 6995 | fi |
2e0bceb6 | 6996 | |
2fff5f08 VS |
6997 | JPEG_LINK="-ljpeg" |
6998 | fi | |
6999 | ||
7000 | ||
84b46c35 | 7001 | IODBC_C_SRC="" |
8248314d | 7002 | if test "$wxUSE_ODBC" = 1 ; then |
bcf1fa6b | 7003 | cat >> confdefs.h <<EOF |
8248314d | 7004 | #define wxUSE_ODBC $wxUSE_ODBC |
bcf1fa6b | 7005 | EOF |
c2933500 | 7006 | |
84b46c35 | 7007 | IODBC_C_SRC="\$(IODBC_C_SRC)" |
bcf1fa6b RR |
7008 | fi |
7009 | ||
7010 | ||
84b46c35 | 7011 | |
8248314d | 7012 | if test "$wxUSE_CONFIG" = 1 ; then |
bcf1fa6b | 7013 | cat >> confdefs.h <<EOF |
8248314d | 7014 | #define wxUSE_CONFIG $wxUSE_CONFIG |
bcf1fa6b RR |
7015 | EOF |
7016 | ||
7017 | fi | |
7018 | ||
8248314d | 7019 | if test "$wxUSE_TIMEDATE" = 1 ; then |
bcf1fa6b | 7020 | cat >> confdefs.h <<EOF |
8248314d | 7021 | #define wxUSE_TIMEDATE $wxUSE_TIMEDATE |
bcf1fa6b RR |
7022 | EOF |
7023 | ||
7024 | fi | |
7025 | ||
8248314d | 7026 | if test "$wxUSE_INTL" = 1 ; then |
bcf1fa6b | 7027 | cat >> confdefs.h <<EOF |
8248314d | 7028 | #define wxUSE_INTL $wxUSE_INTL |
bcf1fa6b RR |
7029 | EOF |
7030 | ||
7031 | fi | |
7032 | ||
8248314d | 7033 | if test "$wxUSE_STREAMS" = 1 ; then |
bcf1fa6b | 7034 | cat >> confdefs.h <<EOF |
8248314d | 7035 | #define wxUSE_STREAMS $wxUSE_STREAMS |
bcf1fa6b RR |
7036 | EOF |
7037 | ||
7038 | fi | |
7039 | ||
370ae202 RR |
7040 | if test "$wxUSE_SOCKETS" = 1 ; then |
7041 | cat >> confdefs.h <<EOF | |
7042 | #define wxUSE_SOCKETS $wxUSE_SOCKETS | |
7043 | EOF | |
7044 | ||
7045 | fi | |
7046 | ||
8248314d | 7047 | if test "$wxUSE_SERIAL" = 1 ; then |
bcf1fa6b | 7048 | cat >> confdefs.h <<EOF |
8248314d | 7049 | #define wxUSE_SERIAL $wxUSE_SERIAL |
bcf1fa6b RR |
7050 | EOF |
7051 | ||
7052 | fi | |
7053 | ||
bcf1fa6b | 7054 | |
eb9bbf52 VZ |
7055 | HAVE_DL_FUNCS=0 |
7056 | if test "$wxUSE_DYNLIB_CLASS" = "1"; then | |
7057 | for ac_func in dlopen | |
7058 | do | |
7059 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5f0f31fe | 7060 | echo "configure:7061: checking for $ac_func" >&5 |
eb9bbf52 VZ |
7061 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7062 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7063 | else | |
7064 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 7065 | #line 7066 "configure" |
eb9bbf52 VZ |
7066 | #include "confdefs.h" |
7067 | /* System header to define __stub macros and hopefully few prototypes, | |
7068 | which can conflict with char $ac_func(); below. */ | |
7069 | #include <assert.h> | |
7070 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7071 | /* We use char because int might match the return type of a gcc2 | |
7072 | builtin and then its argument prototype would still apply. */ | |
7073 | char $ac_func(); | |
7074 | ||
7075 | int main() { | |
7076 | ||
7077 | /* The GNU C library defines this for functions which it implements | |
7078 | to always fail with ENOSYS. Some functions are actually named | |
7079 | something starting with __ and the normal name is an alias. */ | |
7080 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7081 | choke me | |
7082 | #else | |
7083 | $ac_func(); | |
7084 | #endif | |
7085 | ||
7086 | ; return 0; } | |
7087 | EOF | |
5f0f31fe | 7088 | if { (eval echo configure:7089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
eb9bbf52 VZ |
7089 | rm -rf conftest* |
7090 | eval "ac_cv_func_$ac_func=yes" | |
7091 | else | |
7092 | echo "configure: failed program was:" >&5 | |
7093 | cat conftest.$ac_ext >&5 | |
7094 | rm -rf conftest* | |
7095 | eval "ac_cv_func_$ac_func=no" | |
7096 | fi | |
7097 | rm -f conftest* | |
7098 | fi | |
7099 | ||
7100 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7101 | echo "$ac_t""yes" 1>&6 | |
7102 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7103 | cat >> confdefs.h <<EOF | |
7104 | #define $ac_tr_func 1 | |
7105 | EOF | |
7106 | cat >> confdefs.h <<\EOF | |
7107 | #define HAVE_DLOPEN 1 | |
7108 | EOF | |
7109 | HAVE_DL_FUNCS=1 | |
7110 | else | |
7111 | echo "$ac_t""no" 1>&6 | |
7112 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
5f0f31fe | 7113 | echo "configure:7114: checking for dlopen in -ldl" >&5 |
eb9bbf52 VZ |
7114 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
7115 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7116 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7117 | else | |
7118 | ac_save_LIBS="$LIBS" | |
7119 | LIBS="-ldl $LIBS" | |
7120 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 7121 | #line 7122 "configure" |
eb9bbf52 VZ |
7122 | #include "confdefs.h" |
7123 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7124 | /* We use char because int might match the return type of a gcc2 | |
7125 | builtin and then its argument prototype would still apply. */ | |
7126 | char dlopen(); | |
7127 | ||
7128 | int main() { | |
7129 | dlopen() | |
7130 | ; return 0; } | |
7131 | EOF | |
5f0f31fe | 7132 | if { (eval echo configure:7133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
eb9bbf52 VZ |
7133 | rm -rf conftest* |
7134 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7135 | else | |
7136 | echo "configure: failed program was:" >&5 | |
7137 | cat conftest.$ac_ext >&5 | |
7138 | rm -rf conftest* | |
7139 | eval "ac_cv_lib_$ac_lib_var=no" | |
7140 | fi | |
7141 | rm -f conftest* | |
7142 | LIBS="$ac_save_LIBS" | |
7143 | ||
7144 | fi | |
7145 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7146 | echo "$ac_t""yes" 1>&6 | |
7147 | cat >> confdefs.h <<\EOF | |
7148 | #define HAVE_DLOPEN 1 | |
7149 | EOF | |
7150 | HAVE_DL_FUNCS=1 | |
7151 | else | |
7152 | echo "$ac_t""no" 1>&6 | |
7153 | fi | |
7154 | ||
7155 | fi | |
7156 | done | |
7157 | ||
7158 | for ac_func in shl_load | |
7159 | do | |
7160 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5f0f31fe | 7161 | echo "configure:7162: checking for $ac_func" >&5 |
eb9bbf52 VZ |
7162 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7163 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7164 | else | |
7165 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 7166 | #line 7167 "configure" |
eb9bbf52 VZ |
7167 | #include "confdefs.h" |
7168 | /* System header to define __stub macros and hopefully few prototypes, | |
7169 | which can conflict with char $ac_func(); below. */ | |
7170 | #include <assert.h> | |
7171 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7172 | /* We use char because int might match the return type of a gcc2 | |
7173 | builtin and then its argument prototype would still apply. */ | |
7174 | char $ac_func(); | |
7175 | ||
7176 | int main() { | |
7177 | ||
7178 | /* The GNU C library defines this for functions which it implements | |
7179 | to always fail with ENOSYS. Some functions are actually named | |
7180 | something starting with __ and the normal name is an alias. */ | |
7181 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7182 | choke me | |
7183 | #else | |
7184 | $ac_func(); | |
7185 | #endif | |
7186 | ||
7187 | ; return 0; } | |
7188 | EOF | |
5f0f31fe | 7189 | if { (eval echo configure:7190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
eb9bbf52 VZ |
7190 | rm -rf conftest* |
7191 | eval "ac_cv_func_$ac_func=yes" | |
7192 | else | |
7193 | echo "configure: failed program was:" >&5 | |
7194 | cat conftest.$ac_ext >&5 | |
7195 | rm -rf conftest* | |
7196 | eval "ac_cv_func_$ac_func=no" | |
7197 | fi | |
7198 | rm -f conftest* | |
7199 | fi | |
7200 | ||
7201 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7202 | echo "$ac_t""yes" 1>&6 | |
7203 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7204 | cat >> confdefs.h <<EOF | |
7205 | #define $ac_tr_func 1 | |
7206 | EOF | |
7207 | cat >> confdefs.h <<\EOF | |
7208 | #define HAVE_SHL_LOAD 1 | |
7209 | EOF | |
7210 | HAVE_DL_FUNCS=1 | |
7211 | else | |
7212 | echo "$ac_t""no" 1>&6 | |
7213 | fi | |
7214 | done | |
7215 | ||
7216 | ||
7217 | if test "$HAVE_DL_FUNCS" = 0; then | |
7218 | echo "configure: warning: "--with-dynlib will be disabled because no function was found to load a shared library on this platform"" 1>&2 | |
7219 | ||
7220 | wxUSE_DYNLIB_CLASS=0 | |
7221 | fi | |
7222 | fi | |
7223 | ||
7224 | if test "$wxUSE_DYNLIB_CLASS" = 1 ; then | |
7225 | cat >> confdefs.h <<EOF | |
7226 | #define wxUSE_DYNLIB_CLASS $wxUSE_DYNLIB_CLASS | |
7227 | EOF | |
7228 | ||
7229 | fi | |
7230 | ||
7231 | ||
8248314d | 7232 | if test "$wxUSE_RPC" = 1 ; then |
bcf1fa6b | 7233 | cat >> confdefs.h <<EOF |
8248314d | 7234 | #define wxUSE_RPC $wxUSE_RPC |
bcf1fa6b RR |
7235 | EOF |
7236 | ||
7237 | fi | |
7238 | ||
8248314d | 7239 | if test "$wxUSE_WX_RESOURCES" = 1 ; then |
bcf1fa6b | 7240 | cat >> confdefs.h <<EOF |
8248314d | 7241 | #define wxUSE_WX_RESOURCES $wxUSE_WX_RESOURCES |
bcf1fa6b RR |
7242 | EOF |
7243 | ||
7244 | fi | |
7245 | ||
8248314d | 7246 | if test "$wxUSE_PROLOGIO" = 1 ; then |
bcf1fa6b | 7247 | cat >> confdefs.h <<EOF |
8248314d | 7248 | #define wxUSE_PROLOGIO 1 |
bcf1fa6b RR |
7249 | EOF |
7250 | ||
7251 | fi | |
7252 | ||
7253 | ||
8248314d | 7254 | if test "$wxUSE_POSTSCRIPT" = 1 ; then |
bcf1fa6b | 7255 | cat >> confdefs.h <<EOF |
8248314d | 7256 | #define wxUSE_POSTSCRIPT 1 |
bcf1fa6b RR |
7257 | EOF |
7258 | ||
7259 | fi | |
7260 | ||
7261 | cat >> confdefs.h <<EOF | |
8248314d | 7262 | #define wxUSE_AFM_FOR_POSTSCRIPT $wxUSE_AFM_FOR_POSTSCRIPT |
bcf1fa6b RR |
7263 | EOF |
7264 | ||
7265 | ||
7266 | cat >> confdefs.h <<EOF | |
7267 | #define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS | |
7268 | EOF | |
7269 | ||
7270 | ||
7271 | ||
8248314d | 7272 | if test "$wxUSE_MDI_ARCHITECTURE" = 1 ; then |
bcf1fa6b | 7273 | cat >> confdefs.h <<EOF |
8248314d | 7274 | #define wxUSE_MDI_ARCHITECTURE $wxUSE_MDI_ARCHITECTURE |
bcf1fa6b RR |
7275 | EOF |
7276 | ||
7277 | fi | |
7278 | ||
8248314d | 7279 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1 ; then |
bcf1fa6b | 7280 | cat >> confdefs.h <<EOF |
8248314d | 7281 | #define wxUSE_DOC_VIEW_ARCHITECTURE $wxUSE_DOC_VIEW_ARCHITECTURE |
bcf1fa6b RR |
7282 | EOF |
7283 | ||
7284 | fi | |
7285 | ||
8248314d | 7286 | if test "$wxUSE_PRINTING_ARCHITECTURE" = 1 ; then |
bcf1fa6b | 7287 | cat >> confdefs.h <<EOF |
8248314d | 7288 | #define wxUSE_PRINTING_ARCHITECTURE $wxUSE_PRINTING_ARCHITECTURE |
bcf1fa6b RR |
7289 | EOF |
7290 | ||
7291 | fi | |
7292 | ||
7293 | ||
fb4e5803 VZ |
7294 | if test "$wxUSE_UNICODE" = 1 ; then |
7295 | cat >> confdefs.h <<EOF | |
7296 | #define wxUSE_UNICODE 1 | |
7297 | EOF | |
7298 | ||
7299 | fi | |
7300 | ||
7301 | if test "$wxUSE_WCSRTOMBS" = 1 ; then | |
7302 | cat >> confdefs.h <<EOF | |
7303 | #define wxUSE_WCSRTOMBS 1 | |
7304 | EOF | |
7305 | ||
7306 | fi | |
7307 | ||
7308 | ||
8248314d | 7309 | if test "$wxUSE_IPC" = 1 ; then |
bcf1fa6b | 7310 | cat >> confdefs.h <<EOF |
8248314d | 7311 | #define wxUSE_IPC 1 |
bcf1fa6b RR |
7312 | EOF |
7313 | ||
7314 | fi | |
7315 | ||
8248314d | 7316 | if test "$wxUSE_RESOURCES" = 1 ; then |
bcf1fa6b | 7317 | cat >> confdefs.h <<EOF |
8248314d | 7318 | #define wxUSE_RESOURCES $wxUSE_RESOURCES |
bcf1fa6b RR |
7319 | EOF |
7320 | ||
7321 | fi | |
7322 | ||
8248314d | 7323 | if test "$wxUSE_CLIPBOARD" = 1 ; then |
bcf1fa6b | 7324 | cat >> confdefs.h <<EOF |
8248314d | 7325 | #define wxUSE_CLIPBOARD $wxUSE_CLIPBOARD |
bcf1fa6b RR |
7326 | EOF |
7327 | ||
7328 | fi | |
7329 | ||
ff8bfdbb VZ |
7330 | if test "$wxUSE_TOOLTIPS" = 1 ; then |
7331 | cat >> confdefs.h <<EOF | |
7332 | #define wxUSE_TOOLTIPS $wxUSE_TOOLTIPS | |
7333 | EOF | |
7334 | ||
7335 | fi | |
7336 | ||
ac57418f | 7337 | if test "$wxUSE_DRAG_AND_DROP" = 1 ; then |
bcf1fa6b | 7338 | cat >> confdefs.h <<EOF |
ac57418f | 7339 | #define wxUSE_DRAG_AND_DROP $wxUSE_DRAG_AND_DROP |
bcf1fa6b RR |
7340 | EOF |
7341 | ||
7342 | fi | |
7343 | ||
7344 | ||
7345 | HELP=NONE | |
8248314d | 7346 | if test "$wxUSE_HELP" = 1 ; then |
bcf1fa6b RR |
7347 | HELP="HELP" |
7348 | cat >> confdefs.h <<EOF | |
8248314d | 7349 | #define wxUSE_HELP $wxUSE_HELP |
bcf1fa6b RR |
7350 | EOF |
7351 | ||
7352 | fi | |
7353 | ||
7354 | ||
bcf1fa6b | 7355 | |
91845ada | 7356 | |
bcf1fa6b | 7357 | THREADS_LINK="" |
ac57418f | 7358 | UNIX_THREAD="" |
bcf1fa6b | 7359 | |
d18ed59a | 7360 | if test "$wxUSE_THREADS" = "1"; then |
5e0b1434 VZ |
7361 | |
7362 | echo $ac_n "checking for pthread_create in -lpthread-0.7""... $ac_c" 1>&6 | |
5f0f31fe | 7363 | echo "configure:7364: checking for pthread_create in -lpthread-0.7" >&5 |
bcf1fa6b RR |
7364 | ac_lib_var=`echo pthread-0.7'_'pthread_create | sed 'y%./+-%__p_%'` |
7365 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7366 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7367 | else | |
7368 | ac_save_LIBS="$LIBS" | |
7369 | LIBS="-lpthread-0.7 $LIBS" | |
7370 | cat > conftest.$ac_ext <<EOF | |
5f0f31fe | 7371 | #line 7372 "configure" |
bcf1fa6b RR |
7372 | #include "confdefs.h" |
7373 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7374 | /* We use char because int might match the return type of a gcc2 | |
7375 | builtin and then its argument prototype would still apply. */ | |
7376 | char pthread_create(); | |
7377 | ||
7378 | int main() { | |
7379 | pthread_create() | |
7380 | ; return 0; } | |
7381 | EOF | |
5f0f31fe | 7382 | if { (eval echo configure:7383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
7383 | rm -rf conftest* |
7384 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7385 | else | |
7386 | echo "configure: failed program was:" >&5 | |
7387 | cat conftest.$ac_ext >&5 | |
7388 | rm -rf conftest* | |
7389 | eval "ac_cv_lib_$ac_lib_var=no" | |
7390 | fi | |
7391 | rm -f conftest* | |
7392 | LIBS="$ac_save_LIBS" | |
7393 | ||
7394 | fi | |
7395 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7396 | echo "$ac_t""yes" 1>&6 | |
7397 | ||
5e0b1434 VZ |
7398 | UNIX_THREAD="unix/threadpsx.cpp" |
7399 | THREADS_LINK="pthread-0.7" | |
7400 | ||
bcf1fa6b RR |
7401 | else |
7402 | echo "$ac_t""no" 1>&6 | |
bcf1fa6b | 7403 | |
5e0b1434 VZ |
7404 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
7405 | echo "configure:7406: checking for pthread_create in -lpthread" >&5 | |
7406 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` | |
bcf1fa6b RR |
7407 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7408 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7409 | else | |
7410 | ac_save_LIBS="$LIBS" | |
7411 | LIBS="-lpthread $LIBS" | |
7412 | cat > conftest.$ac_ext <<EOF | |
5e0b1434 | 7413 | #line 7414 "configure" |
bcf1fa6b RR |
7414 | #include "confdefs.h" |
7415 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7416 | /* We use char because int might match the return type of a gcc2 | |
7417 | builtin and then its argument prototype would still apply. */ | |
5e0b1434 | 7418 | char pthread_create(); |
bcf1fa6b RR |
7419 | |
7420 | int main() { | |
5e0b1434 | 7421 | pthread_create() |
bcf1fa6b RR |
7422 | ; return 0; } |
7423 | EOF | |
5e0b1434 | 7424 | if { (eval echo configure:7425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
7425 | rm -rf conftest* |
7426 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7427 | else | |
7428 | echo "configure: failed program was:" >&5 | |
7429 | cat conftest.$ac_ext >&5 | |
7430 | rm -rf conftest* | |
7431 | eval "ac_cv_lib_$ac_lib_var=no" | |
7432 | fi | |
7433 | rm -f conftest* | |
7434 | LIBS="$ac_save_LIBS" | |
7435 | ||
7436 | fi | |
7437 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7438 | echo "$ac_t""yes" 1>&6 | |
7439 | ||
5e0b1434 VZ |
7440 | UNIX_THREAD="unix/threadpsx.cpp" |
7441 | THREADS_LINK="pthread" | |
7442 | ||
bcf1fa6b RR |
7443 | else |
7444 | echo "$ac_t""no" 1>&6 | |
bcf1fa6b | 7445 | |
5e0b1434 VZ |
7446 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
7447 | echo "configure:7448: checking for pthread_create in -lc_r" >&5 | |
c2933500 VZ |
7448 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
7449 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7450 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7451 | else | |
7452 | ac_save_LIBS="$LIBS" | |
7453 | LIBS="-lc_r $LIBS" | |
7454 | cat > conftest.$ac_ext <<EOF | |
5e0b1434 | 7455 | #line 7456 "configure" |
c2933500 VZ |
7456 | #include "confdefs.h" |
7457 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7458 | /* We use char because int might match the return type of a gcc2 | |
7459 | builtin and then its argument prototype would still apply. */ | |
7460 | char pthread_create(); | |
7461 | ||
7462 | int main() { | |
7463 | pthread_create() | |
7464 | ; return 0; } | |
7465 | EOF | |
5e0b1434 | 7466 | if { (eval echo configure:7467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c2933500 VZ |
7467 | rm -rf conftest* |
7468 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7469 | else | |
7470 | echo "configure: failed program was:" >&5 | |
7471 | cat conftest.$ac_ext >&5 | |
7472 | rm -rf conftest* | |
7473 | eval "ac_cv_lib_$ac_lib_var=no" | |
7474 | fi | |
7475 | rm -f conftest* | |
7476 | LIBS="$ac_save_LIBS" | |
7477 | ||
7478 | fi | |
7479 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7480 | echo "$ac_t""yes" 1>&6 | |
7481 | ||
5e0b1434 VZ |
7482 | UNIX_THREAD="unix/threadpsx.cpp" |
7483 | THREADS_LINK="c_r" | |
7484 | ||
7485 | else | |
7486 | echo "$ac_t""no" 1>&6 | |
7487 | ||
7488 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
7489 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
7490 | echo "configure:7491: checking for sys/prctl.h" >&5 | |
7491 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
7492 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7493 | else | |
7494 | cat > conftest.$ac_ext <<EOF | |
7495 | #line 7496 "configure" | |
7496 | #include "confdefs.h" | |
7497 | #include <sys/prctl.h> | |
7498 | EOF | |
7499 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7500 | { (eval echo configure:7501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
7501 | ac_err=`grep -v '^ *+' conftest.out` | |
7502 | if test -z "$ac_err"; then | |
7503 | rm -rf conftest* | |
7504 | eval "ac_cv_header_$ac_safe=yes" | |
7505 | else | |
7506 | echo "$ac_err" >&5 | |
7507 | echo "configure: failed program was:" >&5 | |
7508 | cat conftest.$ac_ext >&5 | |
7509 | rm -rf conftest* | |
7510 | eval "ac_cv_header_$ac_safe=no" | |
7511 | fi | |
7512 | rm -f conftest* | |
7513 | fi | |
7514 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7515 | echo "$ac_t""yes" 1>&6 | |
7516 | ||
7517 | UNIX_THREAD="gtk/threadsgi.cpp" | |
7518 | ||
c2933500 VZ |
7519 | else |
7520 | echo "$ac_t""no" 1>&6 | |
7521 | fi | |
7522 | ||
5e0b1434 VZ |
7523 | |
7524 | fi | |
7525 | ||
7526 | ||
7527 | fi | |
7528 | ||
7529 | ||
7530 | fi | |
7531 | ||
c2933500 | 7532 | |
ac57418f | 7533 | if test "$THREADS_LINK" != ""; then |
5e0b1434 | 7534 | cat >> confdefs.h <<\EOF |
ac57418f RR |
7535 | #define wxUSE_THREADS 1 |
7536 | EOF | |
7537 | ||
5e0b1434 VZ |
7538 | else |
7539 | echo "configure: warning: No thread support on this system" 1>&2 | |
ac57418f | 7540 | fi |
91845ada | 7541 | fi |
ac57418f | 7542 | |
91845ada VZ |
7543 | if test -z "$UNIX_THREAD"; then |
7544 | wxUSE_THREADS=0 | |
7545 | fi | |
7546 | ||
7547 | if test "$wxUSE_THREADS" = "1"; then | |
7548 | THREADS_LINK2="" | |
72914c56 VZ |
7549 | |
7550 | for ac_hdr in sched.h | |
7551 | do | |
7552 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7553 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5e0b1434 | 7554 | echo "configure:7555: checking for $ac_hdr" >&5 |
72914c56 VZ |
7555 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7556 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7557 | else | |
7558 | cat > conftest.$ac_ext <<EOF | |
5e0b1434 | 7559 | #line 7560 "configure" |
72914c56 VZ |
7560 | #include "confdefs.h" |
7561 | #include <$ac_hdr> | |
7562 | EOF | |
7563 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5e0b1434 | 7564 | { (eval echo configure:7565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
72914c56 VZ |
7565 | ac_err=`grep -v '^ *+' conftest.out` |
7566 | if test -z "$ac_err"; then | |
7567 | rm -rf conftest* | |
7568 | eval "ac_cv_header_$ac_safe=yes" | |
7569 | else | |
7570 | echo "$ac_err" >&5 | |
7571 | echo "configure: failed program was:" >&5 | |
7572 | cat conftest.$ac_ext >&5 | |
7573 | rm -rf conftest* | |
7574 | eval "ac_cv_header_$ac_safe=no" | |
7575 | fi | |
7576 | rm -f conftest* | |
7577 | fi | |
7578 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7579 | echo "$ac_t""yes" 1>&6 | |
7580 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7581 | cat >> confdefs.h <<EOF | |
7582 | #define $ac_tr_hdr 1 | |
7583 | EOF | |
7584 | ||
7585 | else | |
7586 | echo "$ac_t""no" 1>&6 | |
7587 | fi | |
7588 | done | |
7589 | ||
7590 | ||
91845ada | 7591 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 |
5e0b1434 | 7592 | echo "configure:7593: checking for sched_yield in -l$THREADS_LINK" >&5 |
91845ada | 7593 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
bcf1fa6b RR |
7594 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7595 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7596 | else | |
7597 | ac_save_LIBS="$LIBS" | |
91845ada | 7598 | LIBS="-l$THREADS_LINK $LIBS" |
bcf1fa6b | 7599 | cat > conftest.$ac_ext <<EOF |
5e0b1434 | 7600 | #line 7601 "configure" |
bcf1fa6b RR |
7601 | #include "confdefs.h" |
7602 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7603 | /* We use char because int might match the return type of a gcc2 | |
7604 | builtin and then its argument prototype would still apply. */ | |
91845ada | 7605 | char sched_yield(); |
bcf1fa6b RR |
7606 | |
7607 | int main() { | |
91845ada | 7608 | sched_yield() |
bcf1fa6b RR |
7609 | ; return 0; } |
7610 | EOF | |
5e0b1434 | 7611 | if { (eval echo configure:7612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bcf1fa6b RR |
7612 | rm -rf conftest* |
7613 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7614 | else | |
7615 | echo "configure: failed program was:" >&5 | |
7616 | cat conftest.$ac_ext >&5 | |
7617 | rm -rf conftest* | |
7618 | eval "ac_cv_lib_$ac_lib_var=no" | |
7619 | fi | |
7620 | rm -f conftest* | |
7621 | LIBS="$ac_save_LIBS" | |
7622 | ||
7623 | fi | |
7624 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7625 | echo "$ac_t""yes" 1>&6 | |
91845ada VZ |
7626 | cat >> confdefs.h <<\EOF |
7627 | #define HAVE_SCHED_YIELD 1 | |
7628 | EOF | |
7629 | ||
bcf1fa6b RR |
7630 | else |
7631 | echo "$ac_t""no" 1>&6 | |
91845ada | 7632 | echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6 |
5e0b1434 | 7633 | echo "configure:7634: checking for sched_yield in -l"posix4"" >&5 |
91845ada VZ |
7634 | ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'` |
7635 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7636 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7637 | else | |
7638 | ac_save_LIBS="$LIBS" | |
7639 | LIBS="-l"posix4" $LIBS" | |
7640 | cat > conftest.$ac_ext <<EOF | |
5e0b1434 | 7641 | #line 7642 "configure" |
91845ada VZ |
7642 | #include "confdefs.h" |
7643 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7644 | /* We use char because int might match the return type of a gcc2 | |
7645 | builtin and then its argument prototype would still apply. */ | |
7646 | char sched_yield(); | |
7647 | ||
7648 | int main() { | |
7649 | sched_yield() | |
7650 | ; return 0; } | |
7651 | EOF | |
5e0b1434 | 7652 | if { (eval echo configure:7653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
91845ada VZ |
7653 | rm -rf conftest* |
7654 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7655 | else | |
7656 | echo "configure: failed program was:" >&5 | |
7657 | cat conftest.$ac_ext >&5 | |
7658 | rm -rf conftest* | |
7659 | eval "ac_cv_lib_$ac_lib_var=no" | |
bcf1fa6b | 7660 | fi |
91845ada VZ |
7661 | rm -f conftest* |
7662 | LIBS="$ac_save_LIBS" | |
bcf1fa6b | 7663 | |
91845ada VZ |
7664 | fi |
7665 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7666 | echo "$ac_t""yes" 1>&6 | |
7667 | cat >> confdefs.h <<\EOF | |
7668 | #define HAVE_SCHED_YIELD 1 | |
7669 | EOF | |
7670 | THREADS_LINK2="-lposix4" | |
7671 | else | |
7672 | echo "$ac_t""no" 1>&6 | |
7673 | echo "configure: warning: wxThread::Yield() will not work properly" 1>&2 | |
7674 | ||
7675 | fi | |
c2933500 | 7676 | |
91845ada | 7677 | |
bcf1fa6b RR |
7678 | fi |
7679 | ||
91845ada VZ |
7680 | |
7681 | echo $ac_n "checking for sched_get_priority_min in -l$THREADS_LINK""... $ac_c" 1>&6 | |
5e0b1434 | 7682 | echo "configure:7683: checking for sched_get_priority_min in -l$THREADS_LINK" >&5 |
91845ada VZ |
7683 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_min | sed 'y%./+-%__p_%'` |
7684 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7686 | else | |
7687 | ac_save_LIBS="$LIBS" | |
7688 | LIBS="-l$THREADS_LINK $LIBS" | |
7689 | cat > conftest.$ac_ext <<EOF | |
5e0b1434 | 7690 | #line 7691 "configure" |
91845ada VZ |
7691 | #include "confdefs.h" |
7692 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7693 | /* We use char because int might match the return type of a gcc2 | |
7694 | builtin and then its argument prototype would still apply. */ | |
7695 | char sched_get_priority_min(); | |
7696 | ||
7697 | int main() { | |
7698 | sched_get_priority_min() | |
7699 | ; return 0; } | |
7700 | EOF | |
5e0b1434 | 7701 | if { (eval echo configure:7702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
91845ada VZ |
7702 | rm -rf conftest* |
7703 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7704 | else | |
7705 | echo "configure: failed program was:" >&5 | |
7706 | cat conftest.$ac_ext >&5 | |
7707 | rm -rf conftest* | |
7708 | eval "ac_cv_lib_$ac_lib_var=no" | |
d18ed59a | 7709 | fi |
91845ada VZ |
7710 | rm -f conftest* |
7711 | LIBS="$ac_save_LIBS" | |
d18ed59a | 7712 | |
bcf1fa6b | 7713 | fi |
91845ada VZ |
7714 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
7715 | echo "$ac_t""yes" 1>&6 | |
7716 | cat >> confdefs.h <<\EOF | |
7717 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
7718 | EOF | |
bcf1fa6b | 7719 | |
91845ada VZ |
7720 | else |
7721 | echo "$ac_t""no" 1>&6 | |
7722 | echo $ac_n "checking for sched_get_priority_min in -l"posix4"""... $ac_c" 1>&6 | |
5e0b1434 | 7723 | echo "configure:7724: checking for sched_get_priority_min in -l"posix4"" >&5 |
91845ada VZ |
7724 | ac_lib_var=`echo "posix4"'_'sched_get_priority_min | sed 'y%./+-%__p_%'` |
7725 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7726 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7727 | else | |
7728 | ac_save_LIBS="$LIBS" | |
7729 | LIBS="-l"posix4" $LIBS" | |
7730 | cat > conftest.$ac_ext <<EOF | |
5e0b1434 | 7731 | #line 7732 "configure" |
91845ada VZ |
7732 | #include "confdefs.h" |
7733 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7734 | /* We use char because int might match the return type of a gcc2 | |
7735 | builtin and then its argument prototype would still apply. */ | |
7736 | char sched_get_priority_min(); | |
7737 | ||
7738 | int main() { | |
7739 | sched_get_priority_min() | |
7740 | ; return 0; } | |
7741 | EOF | |
5e0b1434 | 7742 | if { (eval echo configure:7743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
91845ada VZ |
7743 | rm -rf conftest* |
7744 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7745 | else | |
7746 | echo "configure: failed program was:" >&5 | |
7747 | cat conftest.$ac_ext >&5 | |
7748 | rm -rf conftest* | |
7749 | eval "ac_cv_lib_$ac_lib_var=no" | |
7750 | fi | |
7751 | rm -f conftest* | |
7752 | LIBS="$ac_save_LIBS" | |
7753 | ||
7754 | fi | |
7755 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7756 | echo "$ac_t""yes" 1>&6 | |
7757 | cat >> confdefs.h <<\EOF | |
7758 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
7759 | EOF | |
7760 | THREADS_LINK2="-lposix4" | |
7761 | else | |
7762 | echo "$ac_t""no" 1>&6 | |
7763 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
7764 | ||
7765 | fi | |
7766 | ||
7767 | ||
7768 | fi | |
7769 | ||
7770 | ||
7771 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 | |
5e0b1434 | 7772 | echo "configure:7773: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
91845ada VZ |
7773 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
7774 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7776 | else | |
7777 | ac_save_LIBS="$LIBS" | |
7778 | LIBS="-l$THREADS_LINK $LIBS" | |
7779 | cat > conftest.$ac_ext <<EOF | |
5e0b1434 | 7780 | #line 7781 "configure" |
91845ada VZ |
7781 | #include "confdefs.h" |
7782 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7783 | /* We use char because int might match the return type of a gcc2 | |
7784 | builtin and then its argument prototype would still apply. */ | |
7785 | char pthread_cancel(); | |
7786 | ||
7787 | int main() { | |
7788 | pthread_cancel() | |
7789 | ; return 0; } | |
7790 | EOF | |
5e0b1434 | 7791 | if { (eval echo configure:7792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
91845ada VZ |
7792 | rm -rf conftest* |
7793 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7794 | else | |
7795 | echo "configure: failed program was:" >&5 | |
7796 | cat conftest.$ac_ext >&5 | |
7797 | rm -rf conftest* | |
7798 | eval "ac_cv_lib_$ac_lib_var=no" | |
7799 | fi | |
7800 | rm -f conftest* | |
7801 | LIBS="$ac_save_LIBS" | |
7802 | ||
7803 | fi | |
7804 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7805 | echo "$ac_t""yes" 1>&6 | |
7806 | cat >> confdefs.h <<\EOF | |
7807 | #define HAVE_PTHREAD_CANCEL 1 | |
7808 | EOF | |
7809 | ||
7810 | else | |
7811 | echo "$ac_t""no" 1>&6 | |
7812 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
7813 | fi | |
7814 | ||
7815 | ||
7816 | THREADS_LINK="-l$THREADS_LINK $THREADS_LINK2" | |
7817 | fi | |
bcf1fa6b RR |
7818 | |
7819 | ||
bcf1fa6b RR |
7820 | |
7821 | ||
7822 | ||
7823 | PICFLAGS= | |
7824 | CREATE_SHARED= | |
7825 | case "${canonical}" in | |
bcf1fa6b | 7826 | *-hp-hpux* ) |
7cacdad3 | 7827 | if test "$GCC" != "yes" ; then |
bcf1fa6b RR |
7828 | CXXFLAGS="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE" |
7829 | CFLAGS="${CFLAGS} -z -D_HPUX_SOURCE" | |
7830 | PICFLAGS="+z" | |
7831 | else | |
7832 | PICFLAGS="-fPIC" | |
7833 | fi | |
7834 | LDFLAGS="-Wl,+s" | |
7835 | CREATE_SHARED=sharedHpux | |
7836 | ;; | |
7837 | ||
7838 | *-*-linux* ) | |
7839 | PICFLAGS=-fPIC | |
7840 | CREATE_SHARED=sharedLinux | |
7841 | ;; | |
7842 | ||
c2933500 | 7843 | *-*-irix5* | *-*-irix6* ) |
bcf1fa6b RR |
7844 | # PICFLAGS can remain empty, as pic is the default |
7845 | LDFLAGS="-Wl,+s" | |
7846 | CREATE_SHARED=sharedIrix | |
7847 | cat >> confdefs.h <<\EOF | |
7848 | #define SVR4 1 | |
7849 | EOF | |
7850 | ||
7851 | ;; | |
7852 | ||
c2933500 | 7853 | *-*-solaris2* ) |
7cacdad3 | 7854 | if test "$GCC" != "yes" ; then |
bcf1fa6b RR |
7855 | PICFLAGS="-KPIC" |
7856 | else | |
7857 | PICFLAGS="-fPIC" | |
7858 | fi | |
7859 | CREATE_SHARED=sharedSolaris2 | |
7860 | cat >> confdefs.h <<\EOF | |
7861 | #define SVR4 1 | |
7862 | EOF | |
7863 | ||
7864 | ;; | |
7865 | ||
c2933500 | 7866 | *-*-sunos4* ) |
7cacdad3 | 7867 | if test "$GCC" != "yes" ; then |
bcf1fa6b RR |
7868 | PICFLAGS="-PIC" |
7869 | else | |
7870 | PICFLAGS="-fPIC" | |
7871 | fi | |
7872 | LDFLAGS="-Wl,+s" | |
7873 | CREATE_SHARED=sharedSunos4 | |
7874 | cat >> confdefs.h <<\EOF | |
7875 | #define BSD 1 | |
7876 | EOF | |
7877 | ||
7878 | ;; | |
7879 | ||
7880 | *-*-freebsd* | *-*-netbsd*) | |
7881 | PICFLAGS=-fPIC | |
7882 | CREATE_SHARED=sharedBsd | |
7883 | cat >> confdefs.h <<\EOF | |
7884 | #define BSD 1 | |
7885 | EOF | |
7886 | ||
7887 | ;; | |
7888 | ||
c2933500 | 7889 | *-*-osf* ) |
bcf1fa6b RR |
7890 | PICFLAGS="-fPIC" |
7891 | CREATE_SHARED=sharedOSF | |
7892 | ;; | |
7893 | ||
c2933500 | 7894 | *-*-dgux5* ) |
7cacdad3 | 7895 | if test "$GCC" != "yes" ; then |
bcf1fa6b RR |
7896 | PICFLAGS="-K PIC" |
7897 | else | |
7898 | PICFLAGS="-fPIC" | |
7899 | fi | |
7900 | CREATE_SHARED=sharedDgux | |
7901 | cat >> confdefs.h <<\EOF | |
7902 | #define SVR4 1 | |
7903 | EOF | |
7904 | ||
7905 | ;; | |
7906 | ||
c2933500 | 7907 | *-*-sysv5* ) |
7cacdad3 | 7908 | if test "$GCC" != "yes" ; then |
bcf1fa6b RR |
7909 | PICFLAGS="-K PIC" |
7910 | else | |
7911 | PICFLAGS="-fPIC" | |
7912 | fi | |
7913 | CREATE_SHARED=sharedSysV | |
7914 | cat >> confdefs.h <<\EOF | |
7915 | #define SVR4 1 | |
7916 | EOF | |
7917 | ||
7918 | ;; | |
7919 | ||
c2933500 | 7920 | *-*-aix* ) |
7cacdad3 | 7921 | if test "$GCC" != "yes" ; then |
bcf1fa6b RR |
7922 | PICFLAGS="-bM\:SRE" |
7923 | else | |
7924 | PICFLAGS="-fPIC" | |
7925 | fi | |
7926 | CREATE_SHARED=sharedAIX | |
7927 | cat >> confdefs.h <<\EOF | |
7928 | #define SYSV 1 | |
7929 | EOF | |
7930 | ||
7931 | ;; | |
7932 | ||
7933 | *) | |
7934 | CREATE_SHARED= | |
7935 | PICFLAGS= | |
7936 | esac | |
7937 | ||
7938 | if test "x$GCC" = xyes; then | |
cd5bf2a6 | 7939 | CFLAGS="${CFLAGS} -Wall -Wno-unused -Wno-uninitialized -D_REENTRANT -DLEX_SCANNER -DHAVE_LIBDL" |
bcf1fa6b RR |
7940 | fi |
7941 | ||
7942 | if test "x$GXX" = xyes; then | |
f6c6dd8c | 7943 | if test "$wxUSE_MOTIF" = 1; then |
06f46ad1 | 7944 | CXXFLAGS="${CXXFLAGS} -Wall -Wno-unused -D_REENTRANT" |
f6c6dd8c | 7945 | else |
06f46ad1 | 7946 | CXXFLAGS="${CXXFLAGS} -Wall -D_REENTRANT" |
f6c6dd8c | 7947 | fi |
bcf1fa6b RR |
7948 | fi |
7949 | ||
8248314d | 7950 | if test "$wxUSE_SHARED" != 1; then |
bcf1fa6b RR |
7951 | CREATE_SHARED= |
7952 | PICFLAGS= | |
7953 | fi | |
7954 | ||
7955 | ||
7956 | ||
7957 | ||
7958 | ||
7959 | ||
7960 | echo $OS >> system.list | |
7961 | ||
7962 | ||
7963 | trap '' 1 2 15 | |
7964 | cat > confcache <<\EOF | |
7965 | # This file is a shell script that caches the results of configure | |
7966 | # tests run on this system so they can be shared between configure | |
7967 | # scripts and configure runs. It is not useful on other systems. | |
7968 | # If it contains results you don't want to keep, you may remove or edit it. | |
7969 | # | |
7970 | # By default, configure uses ./config.cache as the cache file, | |
7971 | # creating it if it does not exist already. You can give configure | |
7972 | # the --cache-file=FILE option to use a different cache file; that is | |
7973 | # what configure does when it calls configure scripts in | |
7974 | # subdirectories, so they share the cache. | |
7975 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7976 | # config.status only pays attention to the cache file if you give it the | |
7977 | # --recheck option to rerun configure. | |
7978 | # | |
7979 | EOF | |
7980 | # The following way of writing the cache mishandles newlines in values, | |
7981 | # but we know of no workaround that is simple, portable, and efficient. | |
7982 | # So, don't put newlines in cache variables' values. | |
7983 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7984 | # and sets the high bit in the cache file unless we assign to the vars. | |
7985 | (set) 2>&1 | | |
d28e1977 | 7986 | case `(ac_space=' '; set) 2>&1` in |
bcf1fa6b RR |
7987 | *ac_space=\ *) |
7988 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7989 | # turns \\\\ into \\, and sed turns \\ into \). | |
7990 | sed -n \ | |
7991 | -e "s/'/'\\\\''/g" \ | |
7992 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7993 | ;; | |
7994 | *) | |
7995 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7996 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7997 | ;; | |
7998 | esac >> confcache | |
7999 | if cmp -s $cache_file confcache; then | |
8000 | : | |
8001 | else | |
8002 | if test -w $cache_file; then | |
8003 | echo "updating cache $cache_file" | |
8004 | cat confcache > $cache_file | |
8005 | else | |
8006 | echo "not updating unwritable cache $cache_file" | |
8007 | fi | |
8008 | fi | |
8009 | rm -f confcache | |
8010 | ||
8011 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
8012 | ||
8013 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
8014 | # Let make expand exec_prefix. | |
8015 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8016 | ||
8017 | # Any assignment to VPATH causes Sun make to only execute | |
8018 | # the first set of double-colon rules, so remove it if not needed. | |
8019 | # If there is a colon in the path, we need to keep it. | |
8020 | if test "x$srcdir" = x.; then | |
8021 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
8022 | fi | |
8023 | ||
8024 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
8025 | ||
8026 | DEFS=-DHAVE_CONFIG_H | |
8027 | ||
8028 | # Without the "./", some shells look in PATH for config.status. | |
8029 | : ${CONFIG_STATUS=./config.status} | |
8030 | ||
8031 | echo creating $CONFIG_STATUS | |
8032 | rm -f $CONFIG_STATUS | |
8033 | cat > $CONFIG_STATUS <<EOF | |
8034 | #! /bin/sh | |
8035 | # Generated automatically by configure. | |
8036 | # Run this file to recreate the current configuration. | |
8037 | # This directory was configured as follows, | |
8038 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
8039 | # | |
8040 | # $0 $ac_configure_args | |
8041 | # | |
8042 | # Compiler output produced by configure, useful for debugging | |
8043 | # configure, is in ./config.log if it exists. | |
8044 | ||
8045 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
8046 | for ac_option | |
8047 | do | |
8048 | case "\$ac_option" in | |
8049 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
8050 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
8051 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
8052 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
d28e1977 | 8053 | echo "$CONFIG_STATUS generated by autoconf version 2.12" |
bcf1fa6b RR |
8054 | exit 0 ;; |
8055 | -help | --help | --hel | --he | --h) | |
8056 | echo "\$ac_cs_usage"; exit 0 ;; | |
8057 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
8058 | esac | |
8059 | done | |
8060 | ||
8061 | ac_given_srcdir=$srcdir | |
8062 | ac_given_INSTALL="$INSTALL" | |
8063 | ||
f3cb6592 | 8064 | 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 |
8065 | EOF |
8066 | cat >> $CONFIG_STATUS <<EOF | |
8067 | ||
8068 | # Protect against being on the right side of a sed subst in config.status. | |
8069 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
8070 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
8071 | $ac_vpsub | |
8072 | $extrasub | |
8073 | s%@CFLAGS@%$CFLAGS%g | |
8074 | s%@CPPFLAGS@%$CPPFLAGS%g | |
8075 | s%@CXXFLAGS@%$CXXFLAGS%g | |
8076 | s%@DEFS@%$DEFS%g | |
8077 | s%@LDFLAGS@%$LDFLAGS%g | |
8078 | s%@LIBS@%$LIBS%g | |
8079 | s%@exec_prefix@%$exec_prefix%g | |
8080 | s%@prefix@%$prefix%g | |
8081 | s%@program_transform_name@%$program_transform_name%g | |
8082 | s%@bindir@%$bindir%g | |
8083 | s%@sbindir@%$sbindir%g | |
8084 | s%@libexecdir@%$libexecdir%g | |
8085 | s%@datadir@%$datadir%g | |
8086 | s%@sysconfdir@%$sysconfdir%g | |
8087 | s%@sharedstatedir@%$sharedstatedir%g | |
8088 | s%@localstatedir@%$localstatedir%g | |
8089 | s%@libdir@%$libdir%g | |
8090 | s%@includedir@%$includedir%g | |
8091 | s%@oldincludedir@%$oldincludedir%g | |
8092 | s%@infodir@%$infodir%g | |
8093 | s%@mandir@%$mandir%g | |
8094 | s%@WXBASEDIR@%$WXBASEDIR%g | |
8095 | s%@CC@%$CC%g | |
8096 | s%@CPP@%$CPP%g | |
8097 | s%@CXX@%$CXX%g | |
8098 | s%@CXXCPP@%$CXXCPP%g | |
8099 | s%@RANLIB@%$RANLIB%g | |
8100 | s%@AR@%$AR%g | |
8101 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
8102 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
8103 | s%@LN_S@%$LN_S%g | |
8104 | s%@AWK@%$AWK%g | |
5f0f31fe | 8105 | s%@STRIP@%$STRIP%g |
bcf1fa6b RR |
8106 | s%@X_CFLAGS@%$X_CFLAGS%g |
8107 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
8108 | s%@X_LIBS@%$X_LIBS%g | |
8109 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
8110 | s%@GTK_JOYSTICK@%$GTK_JOYSTICK%g | |
8111 | s%@LIBOBJS@%$LIBOBJS%g | |
8112 | s%@YACC@%$YACC%g | |
8113 | s%@LEX@%$LEX%g | |
8114 | s%@LEXLIB@%$LEXLIB%g | |
8115 | s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g | |
cd5bf2a6 | 8116 | s%@DL_LIBRARY@%$DL_LIBRARY%g |
bcf1fa6b RR |
8117 | s%@host@%$host%g |
8118 | s%@host_alias@%$host_alias%g | |
8119 | s%@host_cpu@%$host_cpu%g | |
8120 | s%@host_vendor@%$host_vendor%g | |
8121 | s%@host_os@%$host_os%g | |
8122 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
8123 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
8124 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8125 | s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g | |
8126 | s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g | |
8127 | s%@GUI_TK_LINK@%$GUI_TK_LINK%g | |
76153302 | 8128 | s%@WX_LINK@%$WX_LINK%g |
bcf1fa6b RR |
8129 | s%@TOOLKIT@%$TOOLKIT%g |
8130 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
8131 | s%@MAKEINCLUDE@%$MAKEINCLUDE%g | |
8132 | s%@WXDEBUG@%$WXDEBUG%g | |
8133 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
8134 | s%@EXTRA_LINK@%$EXTRA_LINK%g | |
8135 | s%@PROFILE@%$PROFILE%g | |
8136 | s%@OPTIMISE@%$OPTIMISE%g | |
ac57418f RR |
8137 | s%@Z_C_SRC@%$Z_C_SRC%g |
8138 | s%@PNG_C_SRC@%$PNG_C_SRC%g | |
2fff5f08 | 8139 | s%@JPEG_LINK@%$JPEG_LINK%g |
84b46c35 | 8140 | s%@IODBC_C_SRC@%$IODBC_C_SRC%g |
bcf1fa6b | 8141 | s%@HELP@%$HELP%g |
bcf1fa6b RR |
8142 | s%@UNIX_THREAD@%$UNIX_THREAD%g |
8143 | s%@THREADS_LINK@%$THREADS_LINK%g | |
bcf1fa6b RR |
8144 | s%@OS@%$OS%g |
8145 | s%@PICFLAGS@%$PICFLAGS%g | |
8146 | s%@CREATE_SHARED@%$CREATE_SHARED%g | |
8147 | ||
8148 | CEOF | |
8149 | EOF | |
8150 | ||
8151 | cat >> $CONFIG_STATUS <<\EOF | |
8152 | ||
8153 | # Split the substitutions into bite-sized pieces for seds with | |
8154 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
8155 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
8156 | ac_file=1 # Number of current file. | |
8157 | ac_beg=1 # First line for current file. | |
8158 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
8159 | ac_more_lines=: | |
8160 | ac_sed_cmds="" | |
8161 | while $ac_more_lines; do | |
8162 | if test $ac_beg -gt 1; then | |
8163 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
8164 | else | |
8165 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
8166 | fi | |
8167 | if test ! -s conftest.s$ac_file; then | |
8168 | ac_more_lines=false | |
8169 | rm -f conftest.s$ac_file | |
8170 | else | |
8171 | if test -z "$ac_sed_cmds"; then | |
8172 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
8173 | else | |
8174 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
8175 | fi | |
8176 | ac_file=`expr $ac_file + 1` | |
8177 | ac_beg=$ac_end | |
8178 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
8179 | fi | |
8180 | done | |
8181 | if test -z "$ac_sed_cmds"; then | |
8182 | ac_sed_cmds=cat | |
8183 | fi | |
8184 | EOF | |
8185 | ||
8186 | cat >> $CONFIG_STATUS <<EOF | |
8187 | ||
f3cb6592 | 8188 | CONFIG_FILES=\${CONFIG_FILES-"./setup/substit ./wx-config:./wx-config.in"} |
bcf1fa6b RR |
8189 | EOF |
8190 | cat >> $CONFIG_STATUS <<\EOF | |
8191 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
8192 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
8193 | case "$ac_file" in | |
8194 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
8195 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8196 | *) ac_file_in="${ac_file}.in" ;; | |
8197 | esac | |
8198 | ||
8199 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
8200 | ||
8201 | # Remove last slash and all that follows it. Not all systems have dirname. | |
8202 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
8203 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
8204 | # The file is in a subdirectory. | |
8205 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
8206 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
8207 | # A "../" for each directory in $ac_dir_suffix. | |
8208 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
8209 | else | |
8210 | ac_dir_suffix= ac_dots= | |
8211 | fi | |
8212 | ||
8213 | case "$ac_given_srcdir" in | |
8214 | .) srcdir=. | |
8215 | if test -z "$ac_dots"; then top_srcdir=. | |
8216 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
8217 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
8218 | *) # Relative path. | |
8219 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
8220 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8221 | esac | |
8222 | ||
8223 | case "$ac_given_INSTALL" in | |
8224 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
8225 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
8226 | esac | |
8227 | ||
8228 | echo creating "$ac_file" | |
8229 | rm -f "$ac_file" | |
8230 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
8231 | case "$ac_file" in | |
8232 | *Makefile*) ac_comsub="1i\\ | |
8233 | # $configure_input" ;; | |
8234 | *) ac_comsub= ;; | |
8235 | esac | |
8236 | ||
8237 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
8238 | sed -e "$ac_comsub | |
8239 | s%@configure_input@%$configure_input%g | |
8240 | s%@srcdir@%$srcdir%g | |
8241 | s%@top_srcdir@%$top_srcdir%g | |
8242 | s%@INSTALL@%$INSTALL%g | |
8243 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
8244 | fi; done | |
8245 | rm -f conftest.s* | |
8246 | ||
8247 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
8248 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
8249 | # | |
8250 | # ac_d sets the value in "#define NAME VALUE" lines. | |
8251 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
8252 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
8253 | ac_dC='\3' | |
8254 | ac_dD='%g' | |
8255 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
8256 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8257 | ac_uB='\([ ]\)%\1#\2define\3' | |
8258 | ac_uC=' ' | |
8259 | ac_uD='\4%g' | |
8260 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
8261 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8262 | ac_eB='$%\1#\2define\3' | |
8263 | ac_eC=' ' | |
8264 | ac_eD='%g' | |
8265 | ||
8266 | if test "${CONFIG_HEADERS+set}" != set; then | |
8267 | EOF | |
8268 | cat >> $CONFIG_STATUS <<EOF | |
c98f0421 | 8269 | CONFIG_HEADERS="./include/wx/gtk/setup.h:./setup/setup.hin" |
bcf1fa6b RR |
8270 | EOF |
8271 | cat >> $CONFIG_STATUS <<\EOF | |
8272 | fi | |
8273 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
8274 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
8275 | case "$ac_file" in | |
8276 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
8277 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8278 | *) ac_file_in="${ac_file}.in" ;; | |
8279 | esac | |
8280 | ||
8281 | echo creating $ac_file | |
8282 | ||
8283 | rm -f conftest.frag conftest.in conftest.out | |
8284 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
8285 | cat $ac_file_inputs > conftest.in | |
8286 | ||
8287 | EOF | |
8288 | ||
8289 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
8290 | # the proper values into config.h.in to produce config.h. And first: | |
8291 | # Protect against being on the right side of a sed subst in config.status. | |
8292 | # Protect against being in an unquoted here document in config.status. | |
8293 | rm -f conftest.vals | |
8294 | cat > conftest.hdr <<\EOF | |
8295 | s/[\\&%]/\\&/g | |
8296 | s%[\\$`]%\\&%g | |
8297 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
8298 | s%ac_d%ac_u%gp | |
8299 | s%ac_u%ac_e%gp | |
8300 | EOF | |
8301 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
8302 | rm -f conftest.hdr | |
8303 | ||
8304 | # This sed command replaces #undef with comments. This is necessary, for | |
8305 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
8306 | # on some systems where configure will not decide to define it. | |
8307 | cat >> conftest.vals <<\EOF | |
8308 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
8309 | EOF | |
8310 | ||
8311 | # Break up conftest.vals because some shells have a limit on | |
8312 | # the size of here documents, and old seds have small limits too. | |
8313 | ||
8314 | rm -f conftest.tail | |
8315 | while : | |
8316 | do | |
8317 | ac_lines=`grep -c . conftest.vals` | |
8318 | # grep -c gives empty output for an empty file on some AIX systems. | |
8319 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
8320 | # Write a limited-size here document to conftest.frag. | |
8321 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
8322 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
8323 | echo 'CEOF | |
8324 | sed -f conftest.frag conftest.in > conftest.out | |
8325 | rm -f conftest.in | |
8326 | mv conftest.out conftest.in | |
8327 | ' >> $CONFIG_STATUS | |
8328 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
8329 | rm -f conftest.vals | |
8330 | mv conftest.tail conftest.vals | |
8331 | done | |
8332 | rm -f conftest.vals | |
8333 | ||
8334 | cat >> $CONFIG_STATUS <<\EOF | |
8335 | rm -f conftest.frag conftest.h | |
8336 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
8337 | cat conftest.in >> conftest.h | |
8338 | rm -f conftest.in | |
8339 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
8340 | echo "$ac_file is unchanged" | |
8341 | rm -f conftest.h | |
8342 | else | |
8343 | # Remove last slash and all that follows it. Not all systems have dirname. | |
8344 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
8345 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
8346 | # The file is in a subdirectory. | |
8347 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
8348 | fi | |
8349 | rm -f $ac_file | |
8350 | mv conftest.h $ac_file | |
8351 | fi | |
8352 | fi; done | |
8353 | ||
8354 | EOF | |
8355 | cat >> $CONFIG_STATUS <<EOF | |
8356 | ||
8357 | EOF | |
8358 | cat >> $CONFIG_STATUS <<\EOF | |
8359 | ./setup/general/createall | |
8360 | exit 0 | |
8361 | EOF | |
8362 | chmod +x $CONFIG_STATUS | |
8363 | rm -fr confdefs* $ac_clean_files | |
8364 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
8365 | ||
8366 | ||
8367 | ||
8368 | mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache | |
8369 | ||
518b5d2f | 8370 |