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