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