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