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