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