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