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