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