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