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