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