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