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