]> git.saurik.com Git - wxWidgets.git/blame - configure
Changed capitalization style of wxConv*
[wxWidgets.git] / configure
CommitLineData
bcf1fa6b
RR
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
6a3ab8b1 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
e1929140 45**--without-zlib don't use zlib for LZW comression"
bcf1fa6b 46ac_help="$ac_help
e1929140 47**--without-libpng don't use libpng (PNG image format)"
bcf1fa6b 48ac_help="$ac_help
e1929140 49**--without-libjpeg don't use libjpeg (JPEG image format)"
2fff5f08 50ac_help="$ac_help
bcf1fa6b
RR
51**--with-odbc use iODBC and wxODBC classes"
52ac_help="$ac_help
bcf1fa6b
RR
53**--with-timedate use wxTime and wxDate classes"
54ac_help="$ac_help
bcf1fa6b
RR
55**--with-intl use internationalization system"
56ac_help="$ac_help
57**--with-config use wxConfig class"
58ac_help="$ac_help
59**--with-streams use wxStream etc classes"
60ac_help="$ac_help
61**--with-serial use class serialization"
62ac_help="$ac_help
5f0f31fe 63**--with-sockets use wxSocket etc classes"
35a4dab7 64ac_help="$ac_help
bcf1fa6b
RR
65**--with-afmfonts use Adobe Font Metric Font table"
66ac_help="$ac_help
67**--with-PS-normalized use normalized PS fonts"
68ac_help="$ac_help
69**--with-postscript use wxPostscriptDC device context"
70ac_help="$ac_help
fb4e5803
VZ
71**--with-unicode compile wxString with Unicode support"
72ac_help="$ac_help
73**--with-wcsrtombs use wcsrtombs instead of (buggy in GNU libc5) wcstombs"
74ac_help="$ac_help
bcf1fa6b
RR
75**--with-wxresources use wxWindows's resources"
76ac_help="$ac_help
77**--with-prologio use Prolog IO library"
78ac_help="$ac_help
79**--with-rpc use Prolog's remote procedure calls"
80ac_help="$ac_help
81**--with-ipc use interprocess communication (wxSocket etc.)"
82ac_help="$ac_help
83**--with-resources use X resources for saving information"
84ac_help="$ac_help
85**--with-clipboard use wxClipboard classes"
86ac_help="$ac_help
ff8bfdbb
VZ
87**--with-tooltips use tooltips"
88ac_help="$ac_help
bcf1fa6b
RR
89**--with-dnd use Drag'n'Drop classes"
90ac_help="$ac_help
bcf1fa6b
RR
91**--with-mdi use multiple document interface architecture"
92ac_help="$ac_help
93**--with-docview use document view architecture"
94ac_help="$ac_help
95**--with-printarch use printing architecture"
96ac_help="$ac_help
e9aad10a
KB
97**--with-help use help (using external browser at present)"
98ac_help="$ac_help
f3cb6592 99**--with-gtk-prefix=PFX Prefix where GTK is installed"
bcf1fa6b 100ac_help="$ac_help
f3cb6592 101**--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
bcf1fa6b
RR
102
103# Initialize some variables set by options.
104# The variables have the same names as the options, with
105# dashes changed to underlines.
106build=NONE
107cache_file=./config.cache
108exec_prefix=NONE
109host=NONE
110no_create=
111nonopt=NONE
112no_recursion=
113prefix=NONE
114program_prefix=NONE
115program_suffix=NONE
116program_transform_name=s,x,x,
117silent=
118site=
119srcdir=
120target=NONE
121verbose=
122x_includes=NONE
123x_libraries=NONE
124bindir='${exec_prefix}/bin'
125sbindir='${exec_prefix}/sbin'
126libexecdir='${exec_prefix}/libexec'
127datadir='${prefix}/share'
128sysconfdir='${prefix}/etc'
129sharedstatedir='${prefix}/com'
130localstatedir='${prefix}/var'
131libdir='${exec_prefix}/lib'
132includedir='${prefix}/include'
133oldincludedir='/usr/include'
134infodir='${prefix}/info'
135mandir='${prefix}/man'
136
137# Initialize some other variables.
138subdirs=
139MFLAGS= MAKEFLAGS=
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)
6a3ab8b1 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'
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1
KB
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
6a3ab8b1 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
6a3ab8b1 730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
bcf1fa6b 731 ac_prog_rejected=no
6a3ab8b1 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
6a3ab8b1 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'
6a3ab8b1 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
6a3ab8b1
KB
780cat > conftest.$ac_ext <<EOF
781#line 782 "configure"
bcf1fa6b
RR
782#include "confdefs.h"
783main(){return(0);}
784EOF
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1
KB
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
6a3ab8b1
KB
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
00ca73aa 854 CFLAGS="-O2"
00ca73aa 855 fi
6a3ab8b1
KB
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
6a3ab8b1 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
6a3ab8b1 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'
6a3ab8b1
KB
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.
6a3ab8b1 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'
6a3ab8b1
KB
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
6a3ab8b1 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
6a3ab8b1 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"
6a3ab8b1
KB
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
6a3ab8b1 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"
6a3ab8b1
KB
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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1
KB
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
6a3ab8b1 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'
6a3ab8b1 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
6a3ab8b1
KB
1072cat > conftest.$ac_ext <<EOF
1073#line 1074 "configure"
bcf1fa6b 1074#include "confdefs.h"
6a3ab8b1 1075main(){return(0);}
bcf1fa6b 1076EOF
6a3ab8b1 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'
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1
KB
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
6a3ab8b1
KB
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
00ca73aa 1152 CXXFLAGS="-O2"
00ca73aa 1153 fi
6a3ab8b1
KB
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
6a3ab8b1 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'
6a3ab8b1 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
6a3ab8b1 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"
6a3ab8b1
KB
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'
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1
KB
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
6a3ab8b1 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
6a3ab8b1
KB
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
6a3ab8b1 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
6a3ab8b1 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.
6a3ab8b1 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.
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1
KB
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
6a3ab8b1 1406echo "configure:1407: checking for $ac_word" >&5
5f0f31fe
VZ
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
6a3ab8b1
KB
1413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1414 for ac_dir in $PATH; do
5f0f31fe
VZ
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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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"
6a3ab8b1
KB
1531{ (eval echo configure:1532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
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
6a3ab8b1 1600#line 1601 "configure"
bcf1fa6b
RR
1601#include "confdefs.h"
1602
1603int main() {
1604${x_direct_test_function}()
1605; return 0; }
1606EOF
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 1716#line 1717 "configure"
bcf1fa6b
RR
1717#include "confdefs.h"
1718
1719int main() {
1720
1721; return 0; }
1722EOF
6a3ab8b1 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
6a3ab8b1 1739#line 1740 "configure"
bcf1fa6b
RR
1740#include "confdefs.h"
1741
1742int main() {
1743
1744; return 0; }
1745EOF
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 1890gethostbyname();
bcf1fa6b
RR
1891#endif
1892
1893; return 0; }
1894EOF
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 1988connect();
bcf1fa6b
RR
1989#endif
1990
1991; return 0; }
1992EOF
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 2080remove();
bcf1fa6b
RR
2081#endif
2082
2083; return 0; }
2084EOF
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 2172shmat();
bcf1fa6b
RR
2173#endif
2174
2175; return 0; }
2176EOF
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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"
6a3ab8b1 2256LIBS="-lICE $LIBS"
bcf1fa6b 2257cat > conftest.$ac_ext <<EOF
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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"
6a3ab8b1
KB
2433{ (eval echo configure:2434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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
6a3ab8b1 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"
6a3ab8b1
KB
2579{ (eval echo configure:2580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
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
6a3ab8b1 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
6a3ab8b1 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"
6a3ab8b1
KB
2619{ (eval echo configure:2620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
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
6a3ab8b1 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
6a3ab8b1 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"
6a3ab8b1
KB
2659{ (eval echo configure:2660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
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
6a3ab8b1 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
6a3ab8b1 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"
6a3ab8b1
KB
2699{ (eval echo configure:2700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
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
6a3ab8b1 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
6a3ab8b1 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"
6a3ab8b1
KB
2739{ (eval echo configure:2740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
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
76ed42ef 2765for ac_hdr in wchar.h
a4876ea4
KB
2766do
2767ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2768echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6a3ab8b1 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
6a3ab8b1 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"
6a3ab8b1
KB
2779{ (eval echo configure:2780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
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
76ed42ef 2805for ac_hdr in wcstr.h
a4876ea4
KB
2806do
2807ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2808echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6a3ab8b1 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
6a3ab8b1 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"
6a3ab8b1
KB
2819{ (eval echo configure:2820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
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 2844
76ed42ef
KB
2845for ac_hdr in fnmatch.h
2846do
2847ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2848echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6a3ab8b1 2849echo "configure:2850: checking for $ac_hdr" >&5
76ed42ef
KB
2850if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2852else
2853 cat > conftest.$ac_ext <<EOF
6a3ab8b1 2854#line 2855 "configure"
76ed42ef
KB
2855#include "confdefs.h"
2856#include <$ac_hdr>
2857EOF
2858ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a3ab8b1
KB
2859{ (eval echo configure:2860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2860ac_err=`grep -v '^ *+' conftest.out`
76ed42ef
KB
2861if test -z "$ac_err"; then
2862 rm -rf conftest*
2863 eval "ac_cv_header_$ac_safe=yes"
2864else
2865 echo "$ac_err" >&5
2866 echo "configure: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2868 rm -rf conftest*
2869 eval "ac_cv_header_$ac_safe=no"
2870fi
2871rm -f conftest*
2872fi
2873if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2874 echo "$ac_t""yes" 1>&6
2875 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2876 cat >> confdefs.h <<EOF
2877#define $ac_tr_hdr 1
2878EOF
2879
2880else
2881 echo "$ac_t""no" 1>&6
2882fi
2883done
2884
2885for ac_hdr in linux/joystick.h
2886do
2887ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2888echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6a3ab8b1 2889echo "configure:2890: checking for $ac_hdr" >&5
76ed42ef
KB
2890if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2892else
2893 cat > conftest.$ac_ext <<EOF
6a3ab8b1 2894#line 2895 "configure"
76ed42ef
KB
2895#include "confdefs.h"
2896#include <$ac_hdr>
2897EOF
2898ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a3ab8b1
KB
2899{ (eval echo configure:2900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2900ac_err=`grep -v '^ *+' conftest.out`
76ed42ef
KB
2901if test -z "$ac_err"; then
2902 rm -rf conftest*
2903 eval "ac_cv_header_$ac_safe=yes"
2904else
2905 echo "$ac_err" >&5
2906 echo "configure: failed program was:" >&5
2907 cat conftest.$ac_ext >&5
2908 rm -rf conftest*
2909 eval "ac_cv_header_$ac_safe=no"
2910fi
2911rm -f conftest*
2912fi
2913if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2914 echo "$ac_t""yes" 1>&6
2915 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2916 cat >> confdefs.h <<EOF
2917#define $ac_tr_hdr 1
2918EOF
2919
2920else
2921 echo "$ac_t""no" 1>&6
2922fi
2923done
2924
bcf1fa6b
RR
2925GTK_JOYSTICK=""
2926if test "$ac_cv_header_linux_joystick_h" = "yes"; then
2927 GTK_JOYSTICK="gtk/joystick.cpp"
2928fi
2929
2930
57493f9f
VZ
2931for ac_hdr in strings.h
2932do
2933ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2934echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6a3ab8b1 2935echo "configure:2936: checking for $ac_hdr" >&5
57493f9f
VZ
2936if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2937 echo $ac_n "(cached) $ac_c" 1>&6
2938else
2939 cat > conftest.$ac_ext <<EOF
6a3ab8b1 2940#line 2941 "configure"
57493f9f
VZ
2941#include "confdefs.h"
2942#include <$ac_hdr>
2943EOF
2944ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a3ab8b1
KB
2945{ (eval echo configure:2946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2946ac_err=`grep -v '^ *+' conftest.out`
57493f9f
VZ
2947if test -z "$ac_err"; then
2948 rm -rf conftest*
2949 eval "ac_cv_header_$ac_safe=yes"
2950else
2951 echo "$ac_err" >&5
2952 echo "configure: failed program was:" >&5
2953 cat conftest.$ac_ext >&5
2954 rm -rf conftest*
2955 eval "ac_cv_header_$ac_safe=no"
2956fi
2957rm -f conftest*
2958fi
2959if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2960 echo "$ac_t""yes" 1>&6
2961 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2962 cat >> confdefs.h <<EOF
2963#define $ac_tr_hdr 1
2964EOF
2965
2966else
2967 echo "$ac_t""no" 1>&6
2968fi
2969done
2970
2971
2972
6a3ab8b1
KB
2973WCHAR_LINK=
2974echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
2975echo "configure:2976: checking for wcslen in -lc" >&5
2976ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
2977if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2979else
2980 ac_save_LIBS="$LIBS"
2981LIBS="-lc $LIBS"
2982cat > conftest.$ac_ext <<EOF
2983#line 2984 "configure"
2984#include "confdefs.h"
2985/* Override any gcc2 internal prototype to avoid an error. */
2986/* We use char because int might match the return type of a gcc2
2987 builtin and then its argument prototype would still apply. */
2988char wcslen();
2989
2990int main() {
2991wcslen()
2992; return 0; }
2993EOF
2994if { (eval echo configure:2995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2995 rm -rf conftest*
2996 eval "ac_cv_lib_$ac_lib_var=yes"
2997else
2998 echo "configure: failed program was:" >&5
2999 cat conftest.$ac_ext >&5
3000 rm -rf conftest*
3001 eval "ac_cv_lib_$ac_lib_var=no"
3002fi
3003rm -f conftest*
3004LIBS="$ac_save_LIBS"
3005
3006fi
3007if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3008 echo "$ac_t""yes" 1>&6
3009 ac_tr_lib=HAVE_LIB`echo c | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3010 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3011 cat >> confdefs.h <<EOF
3012#define $ac_tr_lib 1
3013EOF
3014
3015 LIBS="-lc $LIBS"
3016
3017else
3018 echo "$ac_t""no" 1>&6
3019echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
3020echo "configure:3021: checking for wcslen in -lw" >&5
3021ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
3022if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3024else
3025 ac_save_LIBS="$LIBS"
3026LIBS="-lw $LIBS"
3027cat > conftest.$ac_ext <<EOF
3028#line 3029 "configure"
3029#include "confdefs.h"
3030/* Override any gcc2 internal prototype to avoid an error. */
3031/* We use char because int might match the return type of a gcc2
3032 builtin and then its argument prototype would still apply. */
3033char wcslen();
3034
3035int main() {
3036wcslen()
3037; return 0; }
3038EOF
3039if { (eval echo configure:3040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3040 rm -rf conftest*
3041 eval "ac_cv_lib_$ac_lib_var=yes"
3042else
3043 echo "configure: failed program was:" >&5
3044 cat conftest.$ac_ext >&5
3045 rm -rf conftest*
3046 eval "ac_cv_lib_$ac_lib_var=no"
3047fi
3048rm -f conftest*
3049LIBS="$ac_save_LIBS"
3050
3051fi
3052if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3053 echo "$ac_t""yes" 1>&6
3054 WCHAR_LINK="-lw"
3055else
3056 echo "$ac_t""no" 1>&6
3057{ echo "configure: error: "Cannot find wcslen function."" 1>&2; exit 1; }
3058fi
3059
3060fi
3061
3062
3063
35c9d958 3064echo $ac_n "checking for vprintf""... $ac_c" 1>&6
6a3ab8b1 3065echo "configure:3066: checking for vprintf" >&5
35c9d958
KB
3066if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3067 echo $ac_n "(cached) $ac_c" 1>&6
3068else
3069 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3070#line 3071 "configure"
35c9d958
KB
3071#include "confdefs.h"
3072/* System header to define __stub macros and hopefully few prototypes,
3073 which can conflict with char vprintf(); below. */
3074#include <assert.h>
3075/* Override any gcc2 internal prototype to avoid an error. */
3076/* We use char because int might match the return type of a gcc2
3077 builtin and then its argument prototype would still apply. */
3078char vprintf();
3079
3080int main() {
3081
3082/* The GNU C library defines this for functions which it implements
3083 to always fail with ENOSYS. Some functions are actually named
3084 something starting with __ and the normal name is an alias. */
3085#if defined (__stub_vprintf) || defined (__stub___vprintf)
3086choke me
3087#else
6a3ab8b1 3088vprintf();
35c9d958
KB
3089#endif
3090
3091; return 0; }
3092EOF
6a3ab8b1 3093if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
35c9d958
KB
3094 rm -rf conftest*
3095 eval "ac_cv_func_vprintf=yes"
3096else
3097 echo "configure: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3099 rm -rf conftest*
3100 eval "ac_cv_func_vprintf=no"
3101fi
3102rm -f conftest*
3103fi
3104
3105if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3106 echo "$ac_t""yes" 1>&6
3107 cat >> confdefs.h <<\EOF
3108#define HAVE_VPRINTF 1
3109EOF
3110
3111else
3112 echo "$ac_t""no" 1>&6
3113fi
3114
3115if test "$ac_cv_func_vprintf" != yes; then
3116echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
6a3ab8b1 3117echo "configure:3118: checking for _doprnt" >&5
35c9d958
KB
3118if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3120else
3121 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3122#line 3123 "configure"
35c9d958
KB
3123#include "confdefs.h"
3124/* System header to define __stub macros and hopefully few prototypes,
3125 which can conflict with char _doprnt(); below. */
3126#include <assert.h>
3127/* Override any gcc2 internal prototype to avoid an error. */
3128/* We use char because int might match the return type of a gcc2
3129 builtin and then its argument prototype would still apply. */
3130char _doprnt();
3131
3132int main() {
3133
3134/* The GNU C library defines this for functions which it implements
3135 to always fail with ENOSYS. Some functions are actually named
3136 something starting with __ and the normal name is an alias. */
3137#if defined (__stub__doprnt) || defined (__stub____doprnt)
3138choke me
3139#else
6a3ab8b1 3140_doprnt();
35c9d958
KB
3141#endif
3142
3143; return 0; }
3144EOF
6a3ab8b1 3145if { (eval echo configure:3146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
35c9d958
KB
3146 rm -rf conftest*
3147 eval "ac_cv_func__doprnt=yes"
3148else
3149 echo "configure: failed program was:" >&5
3150 cat conftest.$ac_ext >&5
3151 rm -rf conftest*
3152 eval "ac_cv_func__doprnt=no"
3153fi
3154rm -f conftest*
3155fi
3156
3157if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3158 echo "$ac_t""yes" 1>&6
3159 cat >> confdefs.h <<\EOF
3160#define HAVE_DOPRNT 1
3161EOF
3162
3163else
3164 echo "$ac_t""no" 1>&6
3165fi
3166
3167fi
3168
518b5d2f 3169
57493f9f 3170for ac_func in vsnprintf
afb74891
VZ
3171do
3172echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a3ab8b1 3173echo "configure:3174: checking for $ac_func" >&5
afb74891 3174if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
35c9d958
KB
3175 echo $ac_n "(cached) $ac_c" 1>&6
3176else
3177 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3178#line 3179 "configure"
35c9d958
KB
3179#include "confdefs.h"
3180/* System header to define __stub macros and hopefully few prototypes,
afb74891 3181 which can conflict with char $ac_func(); below. */
35c9d958
KB
3182#include <assert.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. */
afb74891 3186char $ac_func();
35c9d958
KB
3187
3188int main() {
3189
3190/* The GNU C library defines this for functions which it implements
3191 to always fail with ENOSYS. Some functions are actually named
3192 something starting with __ and the normal name is an alias. */
afb74891 3193#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35c9d958
KB
3194choke me
3195#else
6a3ab8b1 3196$ac_func();
35c9d958
KB
3197#endif
3198
3199; return 0; }
3200EOF
6a3ab8b1 3201if { (eval echo configure:3202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
57493f9f
VZ
3202 rm -rf conftest*
3203 eval "ac_cv_func_$ac_func=yes"
3204else
3205 echo "configure: failed program was:" >&5
3206 cat conftest.$ac_ext >&5
3207 rm -rf conftest*
3208 eval "ac_cv_func_$ac_func=no"
3209fi
3210rm -f conftest*
3211fi
3212
3213if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3214 echo "$ac_t""yes" 1>&6
3215 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3216 cat >> confdefs.h <<EOF
3217#define $ac_tr_func 1
3218EOF
3219 cat >> confdefs.h <<\EOF
3220#define HAVE_VSNPRINTF 1
3221EOF
3222
3223else
3224 echo "$ac_t""no" 1>&6
3225echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
3226
3227fi
3228done
3229
3230
3231for ac_func in vfork
3232do
3233echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a3ab8b1 3234echo "configure:3235: checking for $ac_func" >&5
57493f9f
VZ
3235if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3237else
3238 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3239#line 3240 "configure"
57493f9f
VZ
3240#include "confdefs.h"
3241/* System header to define __stub macros and hopefully few prototypes,
3242 which can conflict with char $ac_func(); below. */
3243#include <assert.h>
3244/* Override any gcc2 internal prototype to avoid an error. */
3245/* We use char because int might match the return type of a gcc2
3246 builtin and then its argument prototype would still apply. */
3247char $ac_func();
3248
3249int main() {
3250
3251/* The GNU C library defines this for functions which it implements
3252 to always fail with ENOSYS. Some functions are actually named
3253 something starting with __ and the normal name is an alias. */
3254#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3255choke me
3256#else
6a3ab8b1 3257$ac_func();
57493f9f
VZ
3258#endif
3259
3260; return 0; }
3261EOF
6a3ab8b1 3262if { (eval echo configure:3263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
35c9d958 3263 rm -rf conftest*
afb74891 3264 eval "ac_cv_func_$ac_func=yes"
35c9d958
KB
3265else
3266 echo "configure: failed program was:" >&5
3267 cat conftest.$ac_ext >&5
3268 rm -rf conftest*
afb74891 3269 eval "ac_cv_func_$ac_func=no"
35c9d958
KB
3270fi
3271rm -f conftest*
3272fi
3273
afb74891 3274if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
35c9d958 3275 echo "$ac_t""yes" 1>&6
afb74891
VZ
3276 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3277 cat >> confdefs.h <<EOF
3278#define $ac_tr_func 1
d1d3ccbe 3279EOF
afb74891
VZ
3280
3281else
3282 echo "$ac_t""no" 1>&6
3283fi
3284done
3285
d1d3ccbe 3286
80cb83be 3287POSIX4_LINK=
c9b6828b 3288for ac_func in nanosleep
afb74891
VZ
3289do
3290echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a3ab8b1 3291echo "configure:3292: checking for $ac_func" >&5
afb74891
VZ
3292if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3293 echo $ac_n "(cached) $ac_c" 1>&6
3294else
3295 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3296#line 3297 "configure"
afb74891
VZ
3297#include "confdefs.h"
3298/* System header to define __stub macros and hopefully few prototypes,
3299 which can conflict with char $ac_func(); below. */
3300#include <assert.h>
3301/* Override any gcc2 internal prototype to avoid an error. */
3302/* We use char because int might match the return type of a gcc2
3303 builtin and then its argument prototype would still apply. */
3304char $ac_func();
3305
3306int main() {
3307
3308/* The GNU C library defines this for functions which it implements
3309 to always fail with ENOSYS. Some functions are actually named
3310 something starting with __ and the normal name is an alias. */
3311#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3312choke me
3313#else
6a3ab8b1 3314$ac_func();
afb74891
VZ
3315#endif
3316
3317; return 0; }
3318EOF
6a3ab8b1 3319if { (eval echo configure:3320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
afb74891
VZ
3320 rm -rf conftest*
3321 eval "ac_cv_func_$ac_func=yes"
3322else
3323 echo "configure: failed program was:" >&5
3324 cat conftest.$ac_ext >&5
3325 rm -rf conftest*
3326 eval "ac_cv_func_$ac_func=no"
3327fi
3328rm -f conftest*
3329fi
3330
c9b6828b
VZ
3331if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3332 echo "$ac_t""yes" 1>&6
3333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3334 cat >> confdefs.h <<EOF
3335#define $ac_tr_func 1
3336EOF
3337 cat >> confdefs.h <<\EOF
3338#define HAVE_NANOSLEEP 1
3339EOF
3340
3341else
3342 echo "$ac_t""no" 1>&6
3343echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
6a3ab8b1 3344echo "configure:3345: checking for nanosleep in -lposix4" >&5
c9b6828b
VZ
3345ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3346if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3348else
3349 ac_save_LIBS="$LIBS"
3350LIBS="-lposix4 $LIBS"
3351cat > conftest.$ac_ext <<EOF
6a3ab8b1 3352#line 3353 "configure"
c9b6828b
VZ
3353#include "confdefs.h"
3354/* Override any gcc2 internal prototype to avoid an error. */
3355/* We use char because int might match the return type of a gcc2
3356 builtin and then its argument prototype would still apply. */
3357char nanosleep();
3358
3359int main() {
3360nanosleep()
3361; return 0; }
3362EOF
6a3ab8b1 3363if { (eval echo configure:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
c9b6828b
VZ
3364 rm -rf conftest*
3365 eval "ac_cv_lib_$ac_lib_var=yes"
3366else
3367 echo "configure: failed program was:" >&5
3368 cat conftest.$ac_ext >&5
3369 rm -rf conftest*
3370 eval "ac_cv_lib_$ac_lib_var=no"
3371fi
3372rm -f conftest*
3373LIBS="$ac_save_LIBS"
3374
3375fi
3376if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3377 echo "$ac_t""yes" 1>&6
80cb83be 3378
57493f9f 3379 cat >> confdefs.h <<\EOF
c9b6828b
VZ
3380#define HAVE_NANOSLEEP 1
3381EOF
3382
57493f9f
VZ
3383 POSIX4_LINK="-lposix4"
3384
c9b6828b
VZ
3385else
3386 echo "$ac_t""no" 1>&6
57493f9f
VZ
3387
3388 for ac_func in usleep
518b5d2f
VZ
3389do
3390echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a3ab8b1 3391echo "configure:3392: checking for $ac_func" >&5
518b5d2f
VZ
3392if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3394else
3395 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3396#line 3397 "configure"
518b5d2f
VZ
3397#include "confdefs.h"
3398/* System header to define __stub macros and hopefully few prototypes,
3399 which can conflict with char $ac_func(); below. */
3400#include <assert.h>
3401/* Override any gcc2 internal prototype to avoid an error. */
3402/* We use char because int might match the return type of a gcc2
3403 builtin and then its argument prototype would still apply. */
3404char $ac_func();
3405
3406int main() {
3407
3408/* The GNU C library defines this for functions which it implements
3409 to always fail with ENOSYS. Some functions are actually named
3410 something starting with __ and the normal name is an alias. */
3411#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3412choke me
3413#else
6a3ab8b1 3414$ac_func();
518b5d2f
VZ
3415#endif
3416
3417; return 0; }
3418EOF
6a3ab8b1 3419if { (eval echo configure:3420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
518b5d2f
VZ
3420 rm -rf conftest*
3421 eval "ac_cv_func_$ac_func=yes"
3422else
3423 echo "configure: failed program was:" >&5
3424 cat conftest.$ac_ext >&5
3425 rm -rf conftest*
3426 eval "ac_cv_func_$ac_func=no"
3427fi
3428rm -f conftest*
3429fi
3430
3431if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3432 echo "$ac_t""yes" 1>&6
3433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3434 cat >> confdefs.h <<EOF
3435#define $ac_tr_func 1
3436EOF
3437 cat >> confdefs.h <<\EOF
3438#define HAVE_USLEEP 1
3439EOF
3440
3441else
3442 echo "$ac_t""no" 1>&6
3443echo "configure: warning: Sleep() function will not work" 1>&2
518b5d2f
VZ
3444fi
3445done
3446
57493f9f 3447
c9b6828b
VZ
3448fi
3449
518b5d2f 3450
c9b6828b
VZ
3451fi
3452done
3453
518b5d2f
VZ
3454
3455for ac_func in uname gethostname
c9b6828b
VZ
3456do
3457echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a3ab8b1 3458echo "configure:3459: checking for $ac_func" >&5
c9b6828b
VZ
3459if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3461else
3462 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3463#line 3464 "configure"
c9b6828b
VZ
3464#include "confdefs.h"
3465/* System header to define __stub macros and hopefully few prototypes,
3466 which can conflict with char $ac_func(); below. */
3467#include <assert.h>
3468/* Override any gcc2 internal prototype to avoid an error. */
3469/* We use char because int might match the return type of a gcc2
3470 builtin and then its argument prototype would still apply. */
3471char $ac_func();
3472
3473int main() {
3474
3475/* The GNU C library defines this for functions which it implements
3476 to always fail with ENOSYS. Some functions are actually named
3477 something starting with __ and the normal name is an alias. */
3478#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3479choke me
3480#else
6a3ab8b1 3481$ac_func();
c9b6828b
VZ
3482#endif
3483
3484; return 0; }
3485EOF
6a3ab8b1 3486if { (eval echo configure:3487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
c9b6828b
VZ
3487 rm -rf conftest*
3488 eval "ac_cv_func_$ac_func=yes"
3489else
3490 echo "configure: failed program was:" >&5
3491 cat conftest.$ac_ext >&5
3492 rm -rf conftest*
3493 eval "ac_cv_func_$ac_func=no"
3494fi
3495rm -f conftest*
3496fi
3497
afb74891
VZ
3498if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3499 echo "$ac_t""yes" 1>&6
3500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3501 cat >> confdefs.h <<EOF
3502#define $ac_tr_func 1
3503EOF
518b5d2f 3504 break
35c9d958
KB
3505else
3506 echo "$ac_t""no" 1>&6
3507fi
afb74891 3508done
35c9d958
KB
3509
3510
bcf1fa6b 3511echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6a3ab8b1 3512echo "configure:3513: checking for uid_t in sys/types.h" >&5
bcf1fa6b
RR
3513if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3515else
3516 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3517#line 3518 "configure"
bcf1fa6b
RR
3518#include "confdefs.h"
3519#include <sys/types.h>
3520EOF
3521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3522 egrep "uid_t" >/dev/null 2>&1; then
3523 rm -rf conftest*
3524 ac_cv_type_uid_t=yes
3525else
3526 rm -rf conftest*
3527 ac_cv_type_uid_t=no
3528fi
3529rm -f conftest*
3530
3531fi
3532
3533echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3534if test $ac_cv_type_uid_t = no; then
3535 cat >> confdefs.h <<\EOF
3536#define uid_t int
3537EOF
3538
3539 cat >> confdefs.h <<\EOF
3540#define gid_t int
3541EOF
3542
3543fi
3544
3545echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
6a3ab8b1 3546echo "configure:3547: checking type of array argument to getgroups" >&5
bcf1fa6b
RR
3547if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3548 echo $ac_n "(cached) $ac_c" 1>&6
3549else
3550 if test "$cross_compiling" = yes; then
3551 ac_cv_type_getgroups=cross
3552else
3553 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3554#line 3555 "configure"
bcf1fa6b
RR
3555#include "confdefs.h"
3556
3557/* Thanks to Mike Rendell for this test. */
3558#include <sys/types.h>
3559#define NGID 256
3560#undef MAX
3561#define MAX(x, y) ((x) > (y) ? (x) : (y))
3562main()
3563{
3564 gid_t gidset[NGID];
3565 int i, n;
3566 union { gid_t gval; long lval; } val;
3567
3568 val.lval = -1;
3569 for (i = 0; i < NGID; i++)
3570 gidset[i] = val.gval;
3571 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3572 gidset);
3573 /* Exit non-zero if getgroups seems to require an array of ints. This
3574 happens when gid_t is short but getgroups modifies an array of ints. */
3575 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3576}
3577
3578EOF
6a3ab8b1 3579if { (eval echo configure:3580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
bcf1fa6b
RR
3580then
3581 ac_cv_type_getgroups=gid_t
3582else
3583 echo "configure: failed program was:" >&5
3584 cat conftest.$ac_ext >&5
3585 rm -fr conftest*
3586 ac_cv_type_getgroups=int
3587fi
3588rm -fr conftest*
3589fi
3590
3591if test $ac_cv_type_getgroups = cross; then
3592 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3593#line 3594 "configure"
bcf1fa6b
RR
3594#include "confdefs.h"
3595#include <unistd.h>
3596EOF
3597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3598 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
3599 rm -rf conftest*
3600 ac_cv_type_getgroups=gid_t
3601else
3602 rm -rf conftest*
3603 ac_cv_type_getgroups=int
3604fi
3605rm -f conftest*
3606
3607fi
3608fi
3609
3610echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3611cat >> confdefs.h <<EOF
3612#define GETGROUPS_T $ac_cv_type_getgroups
3613EOF
3614
3615
3616echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6a3ab8b1 3617echo "configure:3618: checking for mode_t" >&5
bcf1fa6b
RR
3618if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3620else
3621 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3622#line 3623 "configure"
bcf1fa6b
RR
3623#include "confdefs.h"
3624#include <sys/types.h>
3625#if STDC_HEADERS
3626#include <stdlib.h>
3627#include <stddef.h>
3628#endif
3629EOF
3630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6a3ab8b1 3631 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
bcf1fa6b
RR
3632 rm -rf conftest*
3633 ac_cv_type_mode_t=yes
3634else
3635 rm -rf conftest*
3636 ac_cv_type_mode_t=no
3637fi
3638rm -f conftest*
3639
3640fi
3641echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3642if test $ac_cv_type_mode_t = no; then
3643 cat >> confdefs.h <<\EOF
3644#define mode_t int
3645EOF
3646
3647fi
3648
3649echo $ac_n "checking for off_t""... $ac_c" 1>&6
6a3ab8b1 3650echo "configure:3651: checking for off_t" >&5
bcf1fa6b
RR
3651if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3653else
3654 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3655#line 3656 "configure"
bcf1fa6b
RR
3656#include "confdefs.h"
3657#include <sys/types.h>
3658#if STDC_HEADERS
3659#include <stdlib.h>
3660#include <stddef.h>
3661#endif
3662EOF
3663if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6a3ab8b1 3664 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
bcf1fa6b
RR
3665 rm -rf conftest*
3666 ac_cv_type_off_t=yes
3667else
3668 rm -rf conftest*
3669 ac_cv_type_off_t=no
3670fi
3671rm -f conftest*
3672
3673fi
3674echo "$ac_t""$ac_cv_type_off_t" 1>&6
3675if test $ac_cv_type_off_t = no; then
3676 cat >> confdefs.h <<\EOF
3677#define off_t long
3678EOF
3679
3680fi
3681
3682echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6a3ab8b1 3683echo "configure:3684: checking for pid_t" >&5
bcf1fa6b
RR
3684if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3686else
3687 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3688#line 3689 "configure"
bcf1fa6b
RR
3689#include "confdefs.h"
3690#include <sys/types.h>
3691#if STDC_HEADERS
3692#include <stdlib.h>
3693#include <stddef.h>
3694#endif
3695EOF
3696if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6a3ab8b1 3697 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
bcf1fa6b
RR
3698 rm -rf conftest*
3699 ac_cv_type_pid_t=yes
3700else
3701 rm -rf conftest*
3702 ac_cv_type_pid_t=no
3703fi
3704rm -f conftest*
3705
3706fi
3707echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3708if test $ac_cv_type_pid_t = no; then
3709 cat >> confdefs.h <<\EOF
3710#define pid_t int
3711EOF
3712
3713fi
3714
3715echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6a3ab8b1 3716echo "configure:3717: checking return type of signal handlers" >&5
bcf1fa6b
RR
3717if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3718 echo $ac_n "(cached) $ac_c" 1>&6
3719else
3720 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3721#line 3722 "configure"
bcf1fa6b
RR
3722#include "confdefs.h"
3723#include <sys/types.h>
3724#include <signal.h>
3725#ifdef signal
3726#undef signal
3727#endif
3728#ifdef __cplusplus
3729extern "C" void (*signal (int, void (*)(int)))(int);
3730#else
3731void (*signal ()) ();
3732#endif
3733
3734int main() {
3735int i;
3736; return 0; }
3737EOF
6a3ab8b1 3738if { (eval echo configure:3739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
3739 rm -rf conftest*
3740 ac_cv_type_signal=void
3741else
3742 echo "configure: failed program was:" >&5
3743 cat conftest.$ac_ext >&5
3744 rm -rf conftest*
3745 ac_cv_type_signal=int
3746fi
3747rm -f conftest*
3748fi
3749
3750echo "$ac_t""$ac_cv_type_signal" 1>&6
3751cat >> confdefs.h <<EOF
3752#define RETSIGTYPE $ac_cv_type_signal
3753EOF
3754
3755
3756echo $ac_n "checking for size_t""... $ac_c" 1>&6
6a3ab8b1 3757echo "configure:3758: checking for size_t" >&5
bcf1fa6b
RR
3758if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3760else
3761 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3762#line 3763 "configure"
bcf1fa6b
RR
3763#include "confdefs.h"
3764#include <sys/types.h>
3765#if STDC_HEADERS
3766#include <stdlib.h>
3767#include <stddef.h>
3768#endif
3769EOF
3770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6a3ab8b1 3771 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
bcf1fa6b
RR
3772 rm -rf conftest*
3773 ac_cv_type_size_t=yes
3774else
3775 rm -rf conftest*
3776 ac_cv_type_size_t=no
3777fi
3778rm -f conftest*
3779
3780fi
3781echo "$ac_t""$ac_cv_type_size_t" 1>&6
3782if test $ac_cv_type_size_t = no; then
3783 cat >> confdefs.h <<\EOF
3784#define size_t unsigned
3785EOF
3786
3787fi
3788
3789echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6a3ab8b1 3790echo "configure:3791: checking for uid_t in sys/types.h" >&5
bcf1fa6b
RR
3791if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3792 echo $ac_n "(cached) $ac_c" 1>&6
3793else
3794 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3795#line 3796 "configure"
bcf1fa6b
RR
3796#include "confdefs.h"
3797#include <sys/types.h>
3798EOF
3799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3800 egrep "uid_t" >/dev/null 2>&1; then
3801 rm -rf conftest*
3802 ac_cv_type_uid_t=yes
3803else
3804 rm -rf conftest*
3805 ac_cv_type_uid_t=no
3806fi
3807rm -f conftest*
3808
3809fi
3810
3811echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3812if test $ac_cv_type_uid_t = no; then
3813 cat >> confdefs.h <<\EOF
3814#define uid_t int
3815EOF
3816
3817 cat >> confdefs.h <<\EOF
3818#define gid_t int
3819EOF
3820
3821fi
3822
3823
3824
3825echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
6a3ab8b1 3826echo "configure:3827: checking whether stat file-mode macros are broken" >&5
bcf1fa6b
RR
3827if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3829else
3830 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3831#line 3832 "configure"
bcf1fa6b
RR
3832#include "confdefs.h"
3833#include <sys/types.h>
3834#include <sys/stat.h>
3835
3836#if defined(S_ISBLK) && defined(S_IFDIR)
3837# if S_ISBLK (S_IFDIR)
3838You lose.
3839# endif
3840#endif
3841
3842#if defined(S_ISBLK) && defined(S_IFCHR)
3843# if S_ISBLK (S_IFCHR)
3844You lose.
3845# endif
3846#endif
3847
3848#if defined(S_ISLNK) && defined(S_IFREG)
3849# if S_ISLNK (S_IFREG)
3850You lose.
3851# endif
3852#endif
3853
3854#if defined(S_ISSOCK) && defined(S_IFREG)
3855# if S_ISSOCK (S_IFREG)
3856You lose.
3857# endif
3858#endif
3859
3860EOF
3861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3862 egrep "You lose" >/dev/null 2>&1; then
3863 rm -rf conftest*
3864 ac_cv_header_stat_broken=yes
3865else
3866 rm -rf conftest*
3867 ac_cv_header_stat_broken=no
3868fi
3869rm -f conftest*
3870
3871fi
3872
3873echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3874if test $ac_cv_header_stat_broken = yes; then
3875 cat >> confdefs.h <<\EOF
3876#define STAT_MACROS_BROKEN 1
3877EOF
3878
3879fi
3880
3881echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
6a3ab8b1 3882echo "configure:3883: checking whether time.h and sys/time.h may both be included" >&5
bcf1fa6b
RR
3883if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3885else
3886 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3887#line 3888 "configure"
bcf1fa6b
RR
3888#include "confdefs.h"
3889#include <sys/types.h>
3890#include <sys/time.h>
3891#include <time.h>
3892int main() {
3893struct tm *tp;
3894; return 0; }
3895EOF
6a3ab8b1 3896if { (eval echo configure:3897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
3897 rm -rf conftest*
3898 ac_cv_header_time=yes
3899else
3900 echo "configure: failed program was:" >&5
3901 cat conftest.$ac_ext >&5
3902 rm -rf conftest*
3903 ac_cv_header_time=no
3904fi
3905rm -f conftest*
3906fi
3907
3908echo "$ac_t""$ac_cv_header_time" 1>&6
3909if test $ac_cv_header_time = yes; then
3910 cat >> confdefs.h <<\EOF
3911#define TIME_WITH_SYS_TIME 1
3912EOF
3913
3914fi
3915
3916echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
6a3ab8b1 3917echo "configure:3918: checking for st_blksize in struct stat" >&5
bcf1fa6b
RR
3918if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3920else
3921 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3922#line 3923 "configure"
bcf1fa6b
RR
3923#include "confdefs.h"
3924#include <sys/types.h>
3925#include <sys/stat.h>
3926int main() {
3927struct stat s; s.st_blksize;
3928; return 0; }
3929EOF
6a3ab8b1 3930if { (eval echo configure:3931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
3931 rm -rf conftest*
3932 ac_cv_struct_st_blksize=yes
3933else
3934 echo "configure: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3936 rm -rf conftest*
3937 ac_cv_struct_st_blksize=no
3938fi
3939rm -f conftest*
3940fi
3941
3942echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3943if test $ac_cv_struct_st_blksize = yes; then
3944 cat >> confdefs.h <<\EOF
3945#define HAVE_ST_BLKSIZE 1
3946EOF
3947
3948fi
c2933500 3949
bcf1fa6b 3950echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
6a3ab8b1 3951echo "configure:3952: checking for st_blocks in struct stat" >&5
bcf1fa6b
RR
3952if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3954else
3955 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3956#line 3957 "configure"
bcf1fa6b
RR
3957#include "confdefs.h"
3958#include <sys/types.h>
3959#include <sys/stat.h>
3960int main() {
3961struct stat s; s.st_blocks;
3962; return 0; }
3963EOF
6a3ab8b1 3964if { (eval echo configure:3965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
3965 rm -rf conftest*
3966 ac_cv_struct_st_blocks=yes
3967else
3968 echo "configure: failed program was:" >&5
3969 cat conftest.$ac_ext >&5
3970 rm -rf conftest*
3971 ac_cv_struct_st_blocks=no
3972fi
3973rm -f conftest*
3974fi
3975
3976echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3977if test $ac_cv_struct_st_blocks = yes; then
3978 cat >> confdefs.h <<\EOF
3979#define HAVE_ST_BLOCKS 1
3980EOF
3981
3982else
6a3ab8b1 3983 LIBOBJS="$LIBOBJS fileblocks.o"
bcf1fa6b 3984fi
c2933500 3985
bcf1fa6b 3986echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
6a3ab8b1 3987echo "configure:3988: checking for st_rdev in struct stat" >&5
bcf1fa6b
RR
3988if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3989 echo $ac_n "(cached) $ac_c" 1>&6
3990else
3991 cat > conftest.$ac_ext <<EOF
6a3ab8b1 3992#line 3993 "configure"
bcf1fa6b
RR
3993#include "confdefs.h"
3994#include <sys/types.h>
3995#include <sys/stat.h>
3996int main() {
3997struct stat s; s.st_rdev;
3998; return 0; }
3999EOF
6a3ab8b1 4000if { (eval echo configure:4001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
4001 rm -rf conftest*
4002 ac_cv_struct_st_rdev=yes
4003else
4004 echo "configure: failed program was:" >&5
4005 cat conftest.$ac_ext >&5
4006 rm -rf conftest*
4007 ac_cv_struct_st_rdev=no
4008fi
4009rm -f conftest*
4010fi
4011
4012echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
4013if test $ac_cv_struct_st_rdev = yes; then
4014 cat >> confdefs.h <<\EOF
4015#define HAVE_ST_RDEV 1
4016EOF
4017
4018fi
c2933500 4019
bcf1fa6b 4020echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6a3ab8b1 4021echo "configure:4022: checking whether struct tm is in sys/time.h or time.h" >&5
bcf1fa6b
RR
4022if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4024else
4025 cat > conftest.$ac_ext <<EOF
6a3ab8b1 4026#line 4027 "configure"
bcf1fa6b
RR
4027#include "confdefs.h"
4028#include <sys/types.h>
4029#include <time.h>
4030int main() {
4031struct tm *tp; tp->tm_sec;
4032; return 0; }
4033EOF
6a3ab8b1 4034if { (eval echo configure:4035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
4035 rm -rf conftest*
4036 ac_cv_struct_tm=time.h
4037else
4038 echo "configure: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4040 rm -rf conftest*
4041 ac_cv_struct_tm=sys/time.h
4042fi
4043rm -f conftest*
4044fi
4045
4046echo "$ac_t""$ac_cv_struct_tm" 1>&6
4047if test $ac_cv_struct_tm = sys/time.h; then
4048 cat >> confdefs.h <<\EOF
4049#define TM_IN_SYS_TIME 1
4050EOF
4051
4052fi
4053
4054echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
6a3ab8b1 4055echo "configure:4056: checking for tm_zone in struct tm" >&5
bcf1fa6b
RR
4056if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6
4058else
4059 cat > conftest.$ac_ext <<EOF
6a3ab8b1 4060#line 4061 "configure"
bcf1fa6b
RR
4061#include "confdefs.h"
4062#include <sys/types.h>
4063#include <$ac_cv_struct_tm>
4064int main() {
4065struct tm tm; tm.tm_zone;
4066; return 0; }
4067EOF
6a3ab8b1 4068if { (eval echo configure:4069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
4069 rm -rf conftest*
4070 ac_cv_struct_tm_zone=yes
4071else
4072 echo "configure: failed program was:" >&5
4073 cat conftest.$ac_ext >&5
4074 rm -rf conftest*
4075 ac_cv_struct_tm_zone=no
4076fi
4077rm -f conftest*
4078fi
4079
4080echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4081if test "$ac_cv_struct_tm_zone" = yes; then
4082 cat >> confdefs.h <<\EOF
4083#define HAVE_TM_ZONE 1
4084EOF
4085
4086else
4087 echo $ac_n "checking for tzname""... $ac_c" 1>&6
6a3ab8b1 4088echo "configure:4089: checking for tzname" >&5
bcf1fa6b
RR
4089if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4091else
4092 cat > conftest.$ac_ext <<EOF
6a3ab8b1 4093#line 4094 "configure"
bcf1fa6b
RR
4094#include "confdefs.h"
4095#include <time.h>
4096#ifndef tzname /* For SGI. */
4097extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4098#endif
4099int main() {
4100atoi(*tzname);
4101; return 0; }
4102EOF
6a3ab8b1 4103if { (eval echo configure:4104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
bcf1fa6b
RR
4104 rm -rf conftest*
4105 ac_cv_var_tzname=yes
4106else
4107 echo "configure: failed program was:" >&5
4108 cat conftest.$ac_ext >&5
4109 rm -rf conftest*
4110 ac_cv_var_tzname=no
4111fi
4112rm -f conftest*
4113fi
4114
4115echo "$ac_t""$ac_cv_var_tzname" 1>&6
4116 if test $ac_cv_var_tzname = yes; then
4117 cat >> confdefs.h <<\EOF
4118#define HAVE_TZNAME 1
4119EOF
4120
4121 fi
4122fi
4123
4124
4125
4126echo $ac_n "checking for working const""... $ac_c" 1>&6
6a3ab8b1 4127echo "configure:4128: checking for working const" >&5
bcf1fa6b
RR
4128if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4129 echo $ac_n "(cached) $ac_c" 1>&6
4130else
4131 cat > conftest.$ac_ext <<EOF
6a3ab8b1 4132#line 4133 "configure"
bcf1fa6b
RR
4133#include "confdefs.h"
4134
4135int main() {
4136
4137/* Ultrix mips cc rejects this. */
4138typedef int charset[2]; const charset x;
4139/* SunOS 4.1.1 cc rejects this. */
4140char const *const *ccp;
4141char **p;
4142/* NEC SVR4.0.2 mips cc rejects this. */
4143struct point {int x, y;};
4144static struct point const zero = {0,0};
4145/* AIX XL C 1.02.0.0 rejects this.
4146 It does not let you subtract one const X* pointer from another in an arm
4147 of an if-expression whose if-part is not a constant expression */
4148const char *g = "string";
4149ccp = &g + (g ? g-g : 0);
4150/* HPUX 7.0 cc rejects these. */
4151++ccp;
4152p = (char**) ccp;
4153ccp = (char const *const *) p;
4154{ /* SCO 3.2v4 cc rejects this. */
4155 char *t;
4156 char const *s = 0 ? (char *) 0 : (char const *) 0;
4157
4158 *t++ = 0;
4159}
4160{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4161 int x[] = {25, 17};
4162 const int *foo = &x[0];
4163 ++foo;
4164}
4165{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4166 typedef const int *iptr;
4167 iptr p = 0;
4168 ++p;
4169}
4170{ /* AIX XL C 1.02.0.0 rejects this saying
4171 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4172 struct s { int j; const int *ap[3]; };
4173 struct s *b; b->j = 5;
4174}
4175{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4176 const int foo = 10;
4177}
4178
4179; return 0; }
4180EOF
6a3ab8b1 4181if { (eval echo configure:4182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
4182 rm -rf conftest*
4183 ac_cv_c_const=yes
4184else
4185 echo "configure: failed program was:" >&5
4186 cat conftest.$ac_ext >&5
4187 rm -rf conftest*
4188 ac_cv_c_const=no
4189fi
4190rm -f conftest*
4191fi
4192
4193echo "$ac_t""$ac_cv_c_const" 1>&6
4194if test $ac_cv_c_const = no; then
4195 cat >> confdefs.h <<\EOF
4196#define const
4197EOF
4198
4199fi
4200
4201echo $ac_n "checking for inline""... $ac_c" 1>&6
6a3ab8b1 4202echo "configure:4203: checking for inline" >&5
bcf1fa6b
RR
4203if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6
4205else
4206 ac_cv_c_inline=no
4207for ac_kw in inline __inline__ __inline; do
4208 cat > conftest.$ac_ext <<EOF
6a3ab8b1 4209#line 4210 "configure"
bcf1fa6b
RR
4210#include "confdefs.h"
4211
4212int main() {
4213} $ac_kw foo() {
4214; return 0; }
4215EOF
6a3ab8b1 4216if { (eval echo configure:4217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
4217 rm -rf conftest*
4218 ac_cv_c_inline=$ac_kw; break
4219else
4220 echo "configure: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4222fi
4223rm -f conftest*
4224done
4225
4226fi
4227
4228echo "$ac_t""$ac_cv_c_inline" 1>&6
4229case "$ac_cv_c_inline" in
4230 inline | yes) ;;
4231 no) cat >> confdefs.h <<\EOF
4232#define inline
4233EOF
4234 ;;
4235 *) cat >> confdefs.h <<EOF
4236#define inline $ac_cv_c_inline
4237EOF
4238 ;;
4239esac
4240
4241echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
6a3ab8b1 4242echo "configure:4243: checking whether char is unsigned" >&5
bcf1fa6b
RR
4243if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
4244 echo $ac_n "(cached) $ac_c" 1>&6
4245else
4246 if test "$GCC" = yes; then
4247 # GCC predefines this symbol on systems where it applies.
4248cat > conftest.$ac_ext <<EOF
6a3ab8b1 4249#line 4250 "configure"
bcf1fa6b
RR
4250#include "confdefs.h"
4251#ifdef __CHAR_UNSIGNED__
4252 yes
4253#endif
4254
4255EOF
4256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257 egrep "yes" >/dev/null 2>&1; then
4258 rm -rf conftest*
4259 ac_cv_c_char_unsigned=yes
4260else
4261 rm -rf conftest*
4262 ac_cv_c_char_unsigned=no
4263fi
4264rm -f conftest*
4265
4266else
4267if test "$cross_compiling" = yes; then
4268 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4269else
4270 cat > conftest.$ac_ext <<EOF
6a3ab8b1 4271#line 4272 "configure"
bcf1fa6b
RR
4272#include "confdefs.h"
4273/* volatile prevents gcc2 from optimizing the test away on sparcs. */
4274#if !defined(__STDC__) || __STDC__ != 1
4275#define volatile
4276#endif
4277main() {
4278 volatile char c = 255; exit(c < 0);
4279}
4280EOF
6a3ab8b1 4281if { (eval echo configure:4282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
bcf1fa6b
RR
4282then
4283 ac_cv_c_char_unsigned=yes
4284else
4285 echo "configure: failed program was:" >&5
4286 cat conftest.$ac_ext >&5
4287 rm -fr conftest*
4288 ac_cv_c_char_unsigned=no
4289fi
4290rm -fr conftest*
4291fi
4292
4293fi
4294fi
4295
4296echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
4297if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4298 cat >> confdefs.h <<\EOF
4299#define __CHAR_UNSIGNED__ 1
4300EOF
4301
4302fi
4303
4304echo $ac_n "checking for long double""... $ac_c" 1>&6
6a3ab8b1 4305echo "configure:4306: checking for long double" >&5
bcf1fa6b
RR
4306if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6
4308else
4309 if test "$GCC" = yes; then
4310 ac_cv_c_long_double=yes
4311else
4312if test "$cross_compiling" = yes; then
4313 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4314else
4315 cat > conftest.$ac_ext <<EOF
6a3ab8b1 4316#line 4317 "configure"
bcf1fa6b
RR
4317#include "confdefs.h"
4318int main() {
4319/* The Stardent Vistra knows sizeof(long double), but does not support it. */
4320long double foo = 0.0;
4321/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4322exit(sizeof(long double) < sizeof(double)); }
4323EOF
6a3ab8b1 4324if { (eval echo configure:4325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
bcf1fa6b
RR
4325then
4326 ac_cv_c_long_double=yes
4327else
4328 echo "configure: failed program was:" >&5
4329 cat conftest.$ac_ext >&5
4330 rm -fr conftest*
4331 ac_cv_c_long_double=no
4332fi
4333rm -fr conftest*
4334fi
4335
4336fi
4337fi
4338
4339echo "$ac_t""$ac_cv_c_long_double" 1>&6
4340if test $ac_cv_c_long_double = yes; then
4341 cat >> confdefs.h <<\EOF
4342#define HAVE_LONG_DOUBLE 1
4343EOF
4344
4345fi
4346
4347
4348echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
6a3ab8b1 4349echo "configure:4350: checking whether byte ordering is bigendian" >&5
bcf1fa6b
RR
4350if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4352else
4353 ac_cv_c_bigendian=unknown
4354# See if sys/param.h defines the BYTE_ORDER macro.
4355cat > conftest.$ac_ext <<EOF
6a3ab8b1 4356#line 4357 "configure"
bcf1fa6b
RR
4357#include "confdefs.h"
4358#include <sys/types.h>
4359#include <sys/param.h>
4360int main() {
4361
4362#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4363 bogus endian macros
4364#endif
4365; return 0; }
4366EOF
6a3ab8b1 4367if { (eval echo configure:4368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
4368 rm -rf conftest*
4369 # It does; now see whether it defined to BIG_ENDIAN or not.
4370cat > conftest.$ac_ext <<EOF
6a3ab8b1 4371#line 4372 "configure"
bcf1fa6b
RR
4372#include "confdefs.h"
4373#include <sys/types.h>
4374#include <sys/param.h>
4375int main() {
4376
4377#if BYTE_ORDER != BIG_ENDIAN
4378 not big endian
4379#endif
4380; return 0; }
4381EOF
6a3ab8b1 4382if { (eval echo configure:4383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bcf1fa6b
RR
4383 rm -rf conftest*
4384 ac_cv_c_bigendian=yes
4385else
4386 echo "configure: failed program was:" >&5
4387 cat conftest.$ac_ext >&5
4388 rm -rf conftest*
4389 ac_cv_c_bigendian=no
4390fi
4391rm -f conftest*
4392else
4393 echo "configure: failed program was:" >&5
4394 cat conftest.$ac_ext >&5
4395fi
4396rm -f conftest*
4397if test $ac_cv_c_bigendian = unknown; then
4398if test "$cross_compiling" = yes; then
4399 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4400else
4401 cat > conftest.$ac_ext <<EOF
6a3ab8b1 4402#line 4403 "configure"
bcf1fa6b
RR
4403#include "confdefs.h"
4404main () {
4405 /* Are we little or big endian? From Harbison&Steele. */
4406 union
4407 {
4408 long l;
4409 char c[sizeof (long)];
4410 } u;
4411 u.l = 1;
4412 exit (u.c[sizeof (long) - 1] == 1);
4413}
4414EOF
6a3ab8b1 4415if { (eval echo configure:4416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
bcf1fa6b
RR
4416then
4417 ac_cv_c_bigendian=no
4418else
4419 echo "configure: failed program was:" >&5
4420 cat conftest.$ac_ext >&5
4421 rm -fr conftest*
4422 ac_cv_c_bigendian=yes
4423fi
4424rm -fr conftest*
4425fi
4426
4427fi
4428fi
4429
4430echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4431if test $ac_cv_c_bigendian = yes; then
4432 cat >> confdefs.h <<\EOF
4433#define WORDS_BIGENDIAN 1
4434EOF
4435
4436fi
4437
4438
4439echo $ac_n "checking size of int *""... $ac_c" 1>&6
6a3ab8b1 4440echo "configure:4441: checking size of int *" >&5
bcf1fa6b
RR
4441if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
4442 echo $ac_n "(cached) $ac_c" 1>&6
4443else
4444 if test "$cross_compiling" = yes; then
57493f9f 4445 ac_cv_sizeof_int_p=4
bcf1fa6b
RR
4446else
4447 cat > conftest.$ac_ext <<EOF
6a3ab8b1 4448#line 4449 "configure"
bcf1fa6b
RR
4449#include "confdefs.h"
4450#include <stdio.h>
4451main()
4452{
4453 FILE *f=fopen("conftestval", "w");
4454 if (!f) exit(1);
4455 fprintf(f, "%d\n", sizeof(int *));
4456 exit(0);
4457}
4458EOF
6a3ab8b1 4459if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
bcf1fa6b
RR
4460then
4461 ac_cv_sizeof_int_p=`cat conftestval`
4462else
4463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4465 rm -fr conftest*
4466 ac_cv_sizeof_int_p=0
4467fi
4468rm -fr conftest*
4469fi
4470
4471fi
4472echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
4473cat >> confdefs.h <<EOF
4474#define SIZEOF_INT_P $ac_cv_sizeof_int_p
4475EOF
4476
4477
4478echo $ac_n "checking size of int""... $ac_c" 1>&6
6a3ab8b1 4479echo "configure:4480: checking size of int" >&5
bcf1fa6b
RR
4480if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4482else
4483 if test "$cross_compiling" = yes; then
57493f9f 4484 ac_cv_sizeof_int=4
bcf1fa6b
RR
4485else
4486 cat > conftest.$ac_ext <<EOF
6a3ab8b1 4487#line 4488 "configure"
bcf1fa6b
RR
4488#include "confdefs.h"
4489#include <stdio.h>
4490main()
4491{
4492 FILE *f=fopen("conftestval", "w");
4493 if (!f) exit(1);
4494 fprintf(f, "%d\n", sizeof(int));
4495 exit(0);
4496}
4497EOF
6a3ab8b1 4498if { (eval echo configure:4499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
bcf1fa6b
RR
4499then
4500 ac_cv_sizeof_int=`cat conftestval`
4501else
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4504 rm -fr conftest*
4505 ac_cv_sizeof_int=0
4506fi
4507rm -fr conftest*
4508fi
4509
4510fi
4511echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4512cat >> confdefs.h <<EOF
4513#define SIZEOF_INT $ac_cv_sizeof_int
4514EOF
4515
4516
4517echo $ac_n "checking size of long""... $ac_c" 1>&6
6a3ab8b1 4518echo "configure:4519: checking size of long" >&5
bcf1fa6b
RR
4519if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4520 echo $ac_n "(cached) $ac_c" 1>&6
4521else
4522 if test "$cross_compiling" = yes; then
57493f9f 4523 ac_cv_sizeof_long=4
bcf1fa6b
RR
4524else
4525 cat > conftest.$ac_ext <<EOF
6a3ab8b1 4526#line 4527 "configure"
bcf1fa6b
RR
4527#include "confdefs.h"
4528#include <stdio.h>
4529main()
4530{
4531 FILE *f=fopen("conftestval", "w");
4532 if (!f) exit(1);
4533 fprintf(f, "%d\n", sizeof(long));
4534 exit(0);
4535}
4536EOF
6a3ab8b1 4537if { (eval echo configure:4538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
bcf1fa6b
RR
4538then
4539 ac_cv_sizeof_long=`cat conftestval`
4540else
4541 echo "configure: failed program was:" >&5
4542 cat conftest.$ac_ext >&5
4543 rm -fr conftest*
4544 ac_cv_sizeof_long=0
4545fi
4546rm -fr conftest*
4547fi
4548
4549fi
4550echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4551cat >> confdefs.h <<EOF
4552#define SIZEOF_LONG $ac_cv_sizeof_long
4553EOF
4554
4555
6c56b261 4556echo $ac_n "checking size of long long""... $ac_c" 1>&6
6a3ab8b1 4557echo "configure:4558: checking size of long long" >&5
6c56b261
KB
4558if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4560else
4561 if test "$cross_compiling" = yes; then
57493f9f 4562 ac_cv_sizeof_long_long=0
6c56b261
KB
4563else
4564 cat > conftest.$ac_ext <<EOF
6a3ab8b1 4565#line 4566 "configure"
6c56b261
KB
4566#include "confdefs.h"
4567#include <stdio.h>
4568main()
4569{
4570 FILE *f=fopen("conftestval", "w");
4571 if (!f) exit(1);
4572 fprintf(f, "%d\n", sizeof(long long));
4573 exit(0);
4574}
4575EOF
6a3ab8b1 4576if { (eval echo configure:4577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6c56b261
KB
4577then
4578 ac_cv_sizeof_long_long=`cat conftestval`
4579else
4580 echo "configure: failed program was:" >&5
4581 cat conftest.$ac_ext >&5
4582 rm -fr conftest*
4583 ac_cv_sizeof_long_long=0
4584fi
4585rm -fr conftest*
4586fi
4587
4588fi
4589echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4590cat >> confdefs.h <<EOF
4591#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4592EOF
4593
4594
bcf1fa6b
RR
4595
4596
4597
2d45abf1
VZ
4598ac_ext=C
4599# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4600ac_cpp='$CXXCPP $CPPFLAGS'
4601ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6a3ab8b1 4602ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2d45abf1
VZ
4603cross_compiling=$ac_cv_prog_cxx_cross
4604
4605
57493f9f
VZ
4606for ac_hdr in iostream
4607do
4608ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4609echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6a3ab8b1 4610echo "configure:4611: checking for $ac_hdr" >&5
57493f9f
VZ
4611if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4612 echo $ac_n "(cached) $ac_c" 1>&6
4613else
4614 cat > conftest.$ac_ext <<EOF
6a3ab8b1 4615#line 4616 "configure"
57493f9f
VZ
4616#include "confdefs.h"
4617#include <$ac_hdr>
4618EOF
4619ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a3ab8b1
KB
4620{ (eval echo configure:4621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4621ac_err=`grep -v '^ *+' conftest.out`
57493f9f
VZ
4622if test -z "$ac_err"; then
4623 rm -rf conftest*
4624 eval "ac_cv_header_$ac_safe=yes"
4625else
4626 echo "$ac_err" >&5
4627 echo "configure: failed program was:" >&5
4628 cat conftest.$ac_ext >&5
4629 rm -rf conftest*
4630 eval "ac_cv_header_$ac_safe=no"
4631fi
4632rm -f conftest*
4633fi
4634if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4635 echo "$ac_t""yes" 1>&6
4636 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4637 cat >> confdefs.h <<EOF
4638#define $ac_tr_hdr 1
4639EOF
4640
4641else
4642 echo "$ac_t""no" 1>&6
4643fi
4644done
4645
4646if test "x$HAVE_IOSTREAM" = "x" ; then
4647 cat >> confdefs.h <<\EOF
4648#define wxUSE_IOSTREAMH 1
4649EOF
4650
4651fi
4652
2d45abf1 4653echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
6a3ab8b1 4654echo "configure:4655: checking if C++ compiler supports bool" >&5
2d45abf1
VZ
4655if test "$cross_compiling" = yes; then
4656 echo "$ac_t""no assumed for cross-compilation" 1>&6
4657else
4658 cat > conftest.$ac_ext <<EOF
6a3ab8b1 4659#line 4660 "configure"
2d45abf1
VZ
4660#include "confdefs.h"
4661#ifdef __cplusplus
4662extern "C" void exit(int);
4663#endif
57493f9f
VZ
4664
4665
4666int main()
4667{
4668 bool b = true;
4669
4670 return 0;
4671}
4672
2d45abf1 4673EOF
6a3ab8b1 4674if { (eval echo configure:4675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2d45abf1
VZ
4675then
4676 cat >> confdefs.h <<\EOF
4677#define HAVE_BOOL 1
4678EOF
4679 echo "$ac_t""yes" 1>&6
4680else
4681 echo "configure: failed program was:" >&5
4682 cat conftest.$ac_ext >&5
4683 rm -fr conftest*
4684 echo "$ac_t""no" 1>&6
4685fi
4686rm -fr conftest*
4687fi
4688
4689
57493f9f 4690echo $ac_n "checking if size_t and int are different types""... $ac_c" 1>&6
6a3ab8b1 4691echo "configure:4692: checking if size_t and int are different types" >&5
57493f9f
VZ
4692if test "$cross_compiling" = yes; then
4693 echo "$ac_t""no assumed for cross-compilation" 1>&6
4694else
4695 cat > conftest.$ac_ext <<EOF
6a3ab8b1 4696#line 4697 "configure"
57493f9f
VZ
4697#include "confdefs.h"
4698#ifdef __cplusplus
4699extern "C" void exit(int);
4700#endif
4701
4702#include <stdlib.h>
4703
4704void wxFoo(int i) { }
4705void wxFoo(size_t n) { }
4706
4707int main()
4708{
4709 int i;
4710 size_t n;
4711 wxFoo(0);
4712 wxFoo(1);
4713 wxFoo(0u);
4714 wxFoo(i);
4715 wxFoo(n);
4716
4717 return 0;
4718}
4719
4720
4721EOF
6a3ab8b1 4722if { (eval echo configure:4723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
57493f9f
VZ
4723then
4724 cat >> confdefs.h <<\EOF
4725#define wxUSE_SIZE_T_STRING_OPERATOR 1
4726EOF
4727 echo "$ac_t""yes" 1>&6
4728else
4729 echo "configure: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4731 rm -fr conftest*
4732 echo "$ac_t""no" 1>&6
4733fi
4734rm -fr conftest*
4735fi
4736
4737
2d45abf1
VZ
4738ac_ext=c
4739# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4740ac_cpp='$CPP $CPPFLAGS'
4741ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6a3ab8b1 4742ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2d45abf1
VZ
4743cross_compiling=$ac_cv_prog_cc_cross
4744
4745
4746
4747
bcf1fa6b
RR
4748
4749echo $ac_n "checking for long file names""... $ac_c" 1>&6
6a3ab8b1 4750echo "configure:4751: checking for long file names" >&5
bcf1fa6b
RR
4751if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
4752 echo $ac_n "(cached) $ac_c" 1>&6
4753else
4754 ac_cv_sys_long_file_names=yes
4755# Test for long file names in all the places we know might matter:
4756# . the current directory, where building will happen
4757# $prefix/lib where we will be installing things
4758# $exec_prefix/lib likewise
4759# eval it to expand exec_prefix.
4760# $TMPDIR if set, where it might want to write temporary files
4761# if $TMPDIR is not set:
4762# /tmp where it might want to write temporary files
4763# /var/tmp likewise
4764# /usr/tmp likewise
4765if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4766 ac_tmpdirs="$TMPDIR"
4767else
4768 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4769fi
4770for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4771 test -d $ac_dir || continue
4772 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4773 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4774 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4775 val=`cat $ac_dir/conftest9012345 2>/dev/null`
4776 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
4777 ac_cv_sys_long_file_names=no
4778 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4779 break
4780 fi
4781 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4782done
4783fi
4784
4785echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4786if test $ac_cv_sys_long_file_names = yes; then
4787 cat >> confdefs.h <<\EOF
4788#define HAVE_LONG_FILE_NAMES 1
4789EOF
4790
4791fi
4792
4793
c2933500 4794
bcf1fa6b
RR
4795
4796for ac_prog in 'bison -y' byacc
4797do
4798# Extract the first word of "$ac_prog", so it can be a program name with args.
4799set dummy $ac_prog; ac_word=$2
4800echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6a3ab8b1 4801echo "configure:4802: checking for $ac_word" >&5
bcf1fa6b
RR
4802if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4803 echo $ac_n "(cached) $ac_c" 1>&6
4804else
4805 if test -n "$YACC"; then
4806 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4807else
6a3ab8b1
KB
4808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4809 for ac_dir in $PATH; do
bcf1fa6b
RR
4810 test -z "$ac_dir" && ac_dir=.
4811 if test -f $ac_dir/$ac_word; then
4812 ac_cv_prog_YACC="$ac_prog"
4813 break
4814 fi
4815 done
4816 IFS="$ac_save_ifs"
4817fi
4818fi
4819YACC="$ac_cv_prog_YACC"
4820if test -n "$YACC"; then
4821 echo "$ac_t""$YACC" 1>&6
4822else
4823 echo "$ac_t""no" 1>&6
4824fi
4825
4826test -n "$YACC" && break
4827done
4828test -n "$YACC" || YACC="yacc"
4829
4830
4831# Extract the first word of "flex", so it can be a program name with args.
4832set dummy flex; ac_word=$2
4833echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6a3ab8b1 4834echo "configure:4835: checking for $ac_word" >&5
bcf1fa6b
RR
4835if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4836 echo $ac_n "(cached) $ac_c" 1>&6
4837else
4838 if test -n "$LEX"; then
4839 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4840else
6a3ab8b1
KB
4841 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4842 for ac_dir in $PATH; do
bcf1fa6b
RR
4843 test -z "$ac_dir" && ac_dir=.
4844 if test -f $ac_dir/$ac_word; then
4845 ac_cv_prog_LEX="flex"
4846 break
4847 fi
4848 done
4849 IFS="$ac_save_ifs"
4850 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
4851fi
4852fi
4853LEX="$ac_cv_prog_LEX"
4854if test -n "$LEX"; then
4855 echo "$ac_t""$LEX" 1>&6
4856else
4857 echo "$ac_t""no" 1>&6
4858fi
4859
4860if test -z "$LEXLIB"
4861then
4862 case "$LEX" in
4863 flex*) ac_lib=fl ;;
4864 *) ac_lib=l ;;
4865 esac
4866 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
6a3ab8b1 4867echo "configure:4868: checking for yywrap in -l$ac_lib" >&5
bcf1fa6b
RR
4868ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4869if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4871else
4872 ac_save_LIBS="$LIBS"
4873LIBS="-l$ac_lib $LIBS"
4874cat > conftest.$ac_ext <<EOF
6a3ab8b1 4875#line 4876 "configure"
bcf1fa6b
RR
4876#include "confdefs.h"
4877/* Override any gcc2 internal prototype to avoid an error. */
4878/* We use char because int might match the return type of a gcc2
4879 builtin and then its argument prototype would still apply. */
4880char yywrap();
4881
4882int main() {
4883yywrap()
4884; return 0; }
4885EOF
6a3ab8b1 4886if { (eval echo configure:4887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
bcf1fa6b
RR
4887 rm -rf conftest*
4888 eval "ac_cv_lib_$ac_lib_var=yes"
4889else
4890 echo "configure: failed program was:" >&5
4891 cat conftest.$ac_ext >&5
4892 rm -rf conftest*
4893 eval "ac_cv_lib_$ac_lib_var=no"
4894fi
4895rm -f conftest*
4896LIBS="$ac_save_LIBS"
4897
4898fi
4899if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4900 echo "$ac_t""yes" 1>&6
4901 LEXLIB="-l$ac_lib"
4902else
4903 echo "$ac_t""no" 1>&6
4904fi
4905
4906fi
4907
4908echo $ac_n "checking lex output file root""... $ac_c" 1>&6
6a3ab8b1 4909echo "configure:4910: checking lex output file root" >&5
bcf1fa6b
RR
4910if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4911 echo $ac_n "(cached) $ac_c" 1>&6
4912else
4913 # The minimal lex program is just a single line: %%. But some broken lexes
4914# (Solaris, I think it was) want two %% lines, so accommodate them.
4915echo '%%
4916%%' | $LEX
4917if test -f lex.yy.c; then
4918 ac_cv_prog_lex_root=lex.yy
4919elif test -f lexyy.c; then
4920 ac_cv_prog_lex_root=lexyy
4921else
4922 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4923fi
4924fi
4925
4926echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4927LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4928
4929echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
6a3ab8b1 4930echo "configure:4931: checking whether yytext is a pointer" >&5
bcf1fa6b
RR
4931if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4932 echo $ac_n "(cached) $ac_c" 1>&6
4933else
4934 # POSIX says lex can declare yytext either as a pointer or an array; the
4935# default is implementation-dependent. Figure out which it is, since
4936# not all implementations provide the %pointer and %array declarations.
4937ac_cv_prog_lex_yytext_pointer=no
4938echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4939ac_save_LIBS="$LIBS"
4940LIBS="$LIBS $LEXLIB"
4941cat > conftest.$ac_ext <<EOF
6a3ab8b1 4942#line 4943 "configure"
bcf1fa6b
RR
4943#include "confdefs.h"
4944`cat $LEX_OUTPUT_ROOT.c`
4945int main() {
4946
4947; return 0; }
4948EOF
6a3ab8b1 4949if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
bcf1fa6b
RR
4950 rm -rf conftest*
4951 ac_cv_prog_lex_yytext_pointer=yes
4952else
4953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4955fi
4956rm -f conftest*
4957LIBS="$ac_save_LIBS"
4958rm -f "${LEX_OUTPUT_ROOT}.c"
4959
4960fi
4961
4962echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4963if test $ac_cv_prog_lex_yytext_pointer = yes; then
4964 cat >> confdefs.h <<\EOF
4965#define YYTEXT_POINTER 1
4966EOF
4967
4968fi
4969
4970
4971
cd5bf2a6
RR
4972DL_LIBRARY=
4973for ac_func in dlopen
4974do
4975echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a3ab8b1 4976echo "configure:4977: checking for $ac_func" >&5
cd5bf2a6
RR
4977if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4978 echo $ac_n "(cached) $ac_c" 1>&6
4979else
4980 cat > conftest.$ac_ext <<EOF
6a3ab8b1 4981#line 4982 "configure"
cd5bf2a6
RR
4982#include "confdefs.h"
4983/* System header to define __stub macros and hopefully few prototypes,
4984 which can conflict with char $ac_func(); below. */
4985#include <assert.h>
4986/* Override any gcc2 internal prototype to avoid an error. */
4987/* We use char because int might match the return type of a gcc2
4988 builtin and then its argument prototype would still apply. */
4989char $ac_func();
4990
4991int main() {
4992
4993/* The GNU C library defines this for functions which it implements
4994 to always fail with ENOSYS. Some functions are actually named
4995 something starting with __ and the normal name is an alias. */
4996#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4997choke me
4998#else
6a3ab8b1 4999$ac_func();
cd5bf2a6
RR
5000#endif
5001
5002; return 0; }
5003EOF
6a3ab8b1 5004if { (eval echo configure:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
cd5bf2a6
RR
5005 rm -rf conftest*
5006 eval "ac_cv_func_$ac_func=yes"
5007else
5008 echo "configure: failed program was:" >&5
5009 cat conftest.$ac_ext >&5
5010 rm -rf conftest*
5011 eval "ac_cv_func_$ac_func=no"
5012fi
5013rm -f conftest*
5014fi
5015
5016if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5017 echo "$ac_t""yes" 1>&6
5018 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5019 cat >> confdefs.h <<EOF
5020#define $ac_tr_func 1
5021EOF
5022 cat >> confdefs.h <<\EOF
5023#define HAVE_LIBDL 1
5024EOF
5025
5026else
5027 echo "$ac_t""no" 1>&6
5028echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6a3ab8b1 5029echo "configure:5030: checking for dlopen in -ldl" >&5
cd5bf2a6
RR
5030ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5031if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5032 echo $ac_n "(cached) $ac_c" 1>&6
5033else
5034 ac_save_LIBS="$LIBS"
5035LIBS="-ldl $LIBS"
5036cat > conftest.$ac_ext <<EOF
6a3ab8b1 5037#line 5038 "configure"
cd5bf2a6
RR
5038#include "confdefs.h"
5039/* Override any gcc2 internal prototype to avoid an error. */
5040/* We use char because int might match the return type of a gcc2
5041 builtin and then its argument prototype would still apply. */
5042char dlopen();
5043
5044int main() {
5045dlopen()
5046; return 0; }
5047EOF
6a3ab8b1 5048if { (eval echo configure:5049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
cd5bf2a6
RR
5049 rm -rf conftest*
5050 eval "ac_cv_lib_$ac_lib_var=yes"
5051else
5052 echo "configure: failed program was:" >&5
5053 cat conftest.$ac_ext >&5
5054 rm -rf conftest*
5055 eval "ac_cv_lib_$ac_lib_var=no"
5056fi
5057rm -f conftest*
5058LIBS="$ac_save_LIBS"
5059
5060fi
5061if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5062 echo "$ac_t""yes" 1>&6
5063 cat >> confdefs.h <<\EOF
5064#define HAVE_LIBDL 1
5065EOF
5066 DL_LIBRARY="-ldl"
5067else
5068 echo "$ac_t""no" 1>&6
5069echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6a3ab8b1 5070echo "configure:5071: checking for dld_link in -ldld" >&5
cd5bf2a6
RR
5071ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
5072if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5073 echo $ac_n "(cached) $ac_c" 1>&6
5074else
5075 ac_save_LIBS="$LIBS"
5076LIBS="-ldld $LIBS"
5077cat > conftest.$ac_ext <<EOF
6a3ab8b1 5078#line 5079 "configure"
cd5bf2a6
RR
5079#include "confdefs.h"
5080/* Override any gcc2 internal prototype to avoid an error. */
5081/* We use char because int might match the return type of a gcc2
5082 builtin and then its argument prototype would still apply. */
5083char dld_link();
5084
5085int main() {
5086dld_link()
5087; return 0; }
5088EOF
6a3ab8b1 5089if { (eval echo configure:5090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
cd5bf2a6
RR
5090 rm -rf conftest*
5091 eval "ac_cv_lib_$ac_lib_var=yes"
5092else
5093 echo "configure: failed program was:" >&5
5094 cat conftest.$ac_ext >&5
5095 rm -rf conftest*
5096 eval "ac_cv_lib_$ac_lib_var=no"
5097fi
5098rm -f conftest*
5099LIBS="$ac_save_LIBS"
5100
5101fi
5102if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5103 echo "$ac_t""yes" 1>&6
5104 cat >> confdefs.h <<\EOF
5105#define HAVE_DLD 1
5106EOF
5107 DL_LIBRARY="-ldld"
5108else
5109 echo "$ac_t""no" 1>&6
5110for ac_func in shl_load
5111do
5112echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a3ab8b1 5113echo "configure:5114: checking for $ac_func" >&5
cd5bf2a6
RR
5114if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5115 echo $ac_n "(cached) $ac_c" 1>&6
5116else
5117 cat > conftest.$ac_ext <<EOF
6a3ab8b1 5118#line 5119 "configure"
cd5bf2a6
RR
5119#include "confdefs.h"
5120/* System header to define __stub macros and hopefully few prototypes,
5121 which can conflict with char $ac_func(); below. */
5122#include <assert.h>
5123/* Override any gcc2 internal prototype to avoid an error. */
5124/* We use char because int might match the return type of a gcc2
5125 builtin and then its argument prototype would still apply. */
5126char $ac_func();
5127
5128int main() {
5129
5130/* The GNU C library defines this for functions which it implements
5131 to always fail with ENOSYS. Some functions are actually named
5132 something starting with __ and the normal name is an alias. */
5133#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5134choke me
5135#else
6a3ab8b1 5136$ac_func();
cd5bf2a6
RR
5137#endif
5138
5139; return 0; }
5140EOF
6a3ab8b1 5141if { (eval echo configure:5142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
cd5bf2a6
RR
5142 rm -rf conftest*
5143 eval "ac_cv_func_$ac_func=yes"
5144else
5145 echo "configure: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5147 rm -rf conftest*
5148 eval "ac_cv_func_$ac_func=no"
5149fi
5150rm -f conftest*
5151fi
5152
5153if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5154 echo "$ac_t""yes" 1>&6
5155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5156 cat >> confdefs.h <<EOF
5157#define $ac_tr_func 1
5158EOF
5159 cat >> confdefs.h <<\EOF
5160#define HAVE_SHL_LOAD 1
5161EOF
5162
5163else
5164 echo "$ac_t""no" 1>&6
5165fi
5166done
5167
5168
5169fi
5170
5171
5172fi
5173
5174
5175fi
5176done
5177
5178
5179
5180echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
6a3ab8b1 5181echo "configure:5182: checking for underscore before symbols" >&5
cd5bf2a6
RR
5182if eval "test \"`echo '$''{'libltdl_cv_uscore'+set}'`\" = set"; then
5183 echo $ac_n "(cached) $ac_c" 1>&6
5184else
5185
5186 echo "main(){int i=1;} fnord(){int i=23; int ltuae=42;}" > conftest.c
5187 ${CC} -c conftest.c > /dev/null
5188 if (nm conftest.o | grep _fnord) > /dev/null; then
5189 libltdl_cv_uscore=yes
5190 else
5191 libltdl_cv_uscore=no
5192 fi
5193 rm -f conftest*
5194
5195fi
5196
5197echo "$ac_t""$libltdl_cv_uscore" 1>&6
5198
5199if test x"$libltdl_cv_uscore" = xyes; then
5200 if test x"$ac_cv_func_dlopen" = xyes ||
5201 test x"$ac_cv_lib_dl_dlopen" = xyes ; then
5202 echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
6a3ab8b1 5203echo "configure:5204: checking whether we have to add an underscore for dlsym" >&5
cd5bf2a6
RR
5204if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
5205 echo $ac_n "(cached) $ac_c" 1>&6
5206else
5207 if test "$cross_compiling" = yes; then
5208 libltdl_cv_need_uscore=no
5209
5210else
5211 cat > conftest.$ac_ext <<EOF
6a3ab8b1 5212#line 5213 "configure"
cd5bf2a6
RR
5213#include "confdefs.h"
5214
5215#include <dlfcn.h>
5216#include <stdio.h>
5217fnord() { int i=42;}
5218main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
5219 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
c2933500 5220 if(ptr1 && !ptr2) exit(0); } exit(1); }
cd5bf2a6
RR
5221
5222EOF
6a3ab8b1 5223if { (eval echo configure:5224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
cd5bf2a6
RR
5224then
5225 libltdl_cv_need_uscore=no
5226else
5227 echo "configure: failed program was:" >&5
5228 cat conftest.$ac_ext >&5
5229 rm -fr conftest*
5230 libltdl_cv_need_uscore=yes
5231fi
5232rm -fr conftest*
5233fi
5234
5235fi
5236
5237echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
5238 fi
5239fi
5240
5241if test x"$libltdl_cv_need_uscore" = xyes; then
5242 cat >> confdefs.h <<\EOF
5243#define NEED_USCORE 1
5244EOF
5245
5246fi
5247
5248
5249for ac_func in strerror
5250do
5251echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a3ab8b1 5252echo "configure:5253: checking for $ac_func" >&5
cd5bf2a6
RR
5253if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5254 echo $ac_n "(cached) $ac_c" 1>&6
5255else
5256 cat > conftest.$ac_ext <<EOF
6a3ab8b1 5257#line 5258 "configure"
cd5bf2a6
RR
5258#include "confdefs.h"
5259/* System header to define __stub macros and hopefully few prototypes,
5260 which can conflict with char $ac_func(); below. */
5261#include <assert.h>
5262/* Override any gcc2 internal prototype to avoid an error. */
5263/* We use char because int might match the return type of a gcc2
5264 builtin and then its argument prototype would still apply. */
5265char $ac_func();
5266
5267int main() {
5268
5269/* The GNU C library defines this for functions which it implements
5270 to always fail with ENOSYS. Some functions are actually named
5271 something starting with __ and the normal name is an alias. */
5272#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5273choke me
5274#else
6a3ab8b1 5275$ac_func();
cd5bf2a6
RR
5276#endif
5277
5278; return 0; }
5279EOF
6a3ab8b1 5280if { (eval echo configure:5281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
cd5bf2a6
RR
5281 rm -rf conftest*
5282 eval "ac_cv_func_$ac_func=yes"
5283else
5284 echo "configure: failed program was:" >&5
5285 cat conftest.$ac_ext >&5
5286 rm -rf conftest*
5287 eval "ac_cv_func_$ac_func=no"
5288fi
5289rm -f conftest*
5290fi
5291
5292if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5293 echo "$ac_t""yes" 1>&6
5294 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5295 cat >> confdefs.h <<EOF
5296#define $ac_tr_func 1
5297EOF
5298
5299else
5300 echo "$ac_t""no" 1>&6
5301fi
5302done
5303
5304
5305
bcf1fa6b
RR
5306CHECK_INCLUDE="-I/usr/include $X_CFLAGS"
5307CHECK_LIB="-L/lib -L/usr/lib $X_LIBS"
5308
5309
5310
5311# Make sure we can run config.sub.
6a3ab8b1 5312if $ac_config_sub sun4 >/dev/null 2>&1; then :
bcf1fa6b
RR
5313else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5314fi
5315
5316echo $ac_n "checking host system type""... $ac_c" 1>&6
6a3ab8b1 5317echo "configure:5318: checking host system type" >&5
bcf1fa6b
RR
5318
5319host_alias=$host
5320case "$host_alias" in
5321NONE)
5322 case $nonopt in
5323 NONE)
6a3ab8b1 5324 if host_alias=`$ac_config_guess`; then :
bcf1fa6b
RR
5325 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5326 fi ;;
5327 *) host_alias=$nonopt ;;
5328 esac ;;
5329esac
5330
6a3ab8b1 5331host=`$ac_config_sub $host_alias`
bcf1fa6b
RR
5332host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5333host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5334host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5335echo "$ac_t""$host" 1>&6
5336
5337canonical=$host
5338configuration=$host_alias
5339
5340
5341USE_UNIX=1
5342
bcf1fa6b
RR
5343USE_LINUX=
5344USE_SGI=
5345USE_HPUX=
5346USE_SYSV=
5347USE_SVR4=
5348USE_AIX=
5349USE_SUN=
5350USE_SOLARIS=
5351USE_SUNOS=
5352USE_ALPHA=
5353USE_OSF=
5354USE_BSD=
5355USE_FREEBSD=
5356USE_VMS=
5357USE_ULTRIX=
5358USE_DATA_GENERAL=
5359
f780dc86
KB
5360cat >> confdefs.h <<\EOF
5361#define __UNIX__ 1
5362EOF
5363
bcf1fa6b
RR
5364case "${canonical}" in
5365 *-hp-hpux* )
5366 USE_HPUX=1
5367 cat >> confdefs.h <<\EOF
5368#define __HPUX__ 1
5369EOF
5370
5371 ;;
5372 *-*-linux* )
5373 USE_LINUX=1
5374 cat >> confdefs.h <<\EOF
5375#define __LINUX__ 1
5376EOF
5377
e0e680d2
KB
5378 TMP=`uname -m`
5379 if test "x$TMP" = "xalpha"
5380 then
5381 USE_ALPHA=1
5382 cat >> confdefs.h <<\EOF
5383#define __ALPHA__ 1
5384EOF
5385
5386 fi
bcf1fa6b 5387 ;;
c2933500 5388 *-*-irix5* | *-*-irix6* )
bcf1fa6b
RR
5389 USE_SGI=1
5390 USE_SVR4=1
5391 cat >> confdefs.h <<\EOF
5392#define __SGI__ 1
5393EOF
5394
5395 cat >> confdefs.h <<\EOF
5396#define __SVR4__ 1
5397EOF
5398
5399 ;;
c2933500 5400 *-*-solaris2* )
bcf1fa6b
RR
5401 USE_SUN=1
5402 USE_SOLARIS=1
5403 USE_SVR4=1
5404 cat >> confdefs.h <<\EOF
5405#define __SUN__ 1
5406EOF
5407
5408 cat >> confdefs.h <<\EOF
5409#define __SOLARIS__ 1
5410EOF
5411
5412 cat >> confdefs.h <<\EOF
5413#define __SVR4__ 1
5414EOF
5415
5416 ;;
c2933500 5417 *-*-sunos4* )
bcf1fa6b
RR
5418 USE_SUN=1
5419 USE_SUNOS=1
5420 USE_BSD=1
5421 cat >> confdefs.h <<\EOF
5422#define __SUN__ 1
5423EOF
5424
5425 cat >> confdefs.h <<\EOF
5426#define __SUNOS__ 1
5427EOF
5428
5429 cat >> confdefs.h <<\EOF
5430#define __BSD__ 1
5431EOF
5432
5433 ;;
5434 *-*-freebsd* | *-*-netbsd*)
5435 USE_BSD=1
5436 USE_FREEBSD=1
5437 cat >> confdefs.h <<\EOF
5438#define __FREEBSD__ 1
5439EOF
5440
5441 cat >> confdefs.h <<\EOF
5442#define __BSD__ 1
5443EOF
5444
5445 ;;
c2933500 5446 *-*-osf* )
bcf1fa6b
RR
5447 USE_ALPHA=1
5448 USE_OSF=1
5449 cat >> confdefs.h <<\EOF
5450#define __ALPHA__ 1
5451EOF
5452
5453 cat >> confdefs.h <<\EOF
5454#define __OSF__ 1
5455EOF
5456
5457 ;;
c2933500 5458 *-*-dgux5* )
bcf1fa6b
RR
5459 USE_ALPHA=1
5460 USE_SVR4=1
5461 cat >> confdefs.h <<\EOF
5462#define __ALPHA__ 1
5463EOF
5464
5465 cat >> confdefs.h <<\EOF
5466#define __SVR4__ 1
5467EOF
5468
5469 ;;
c2933500 5470 *-*-sysv5* )
bcf1fa6b
RR
5471 USE_SYSV=1
5472 USE_SVR4=1
5473 cat >> confdefs.h <<\EOF
5474#define __SYSV__ 1
5475EOF
5476
5477 cat >> confdefs.h <<\EOF
5478#define __SVR4__ 1
5479EOF
5480
5481 ;;
c2933500 5482 *-*-aix* )
bcf1fa6b
RR
5483 USE_AIX=1
5484 USE_SYSV=1
5485 USE_SVR4=1
5486 cat >> confdefs.h <<\EOF
5487#define __AIX__ 1
5488EOF
5489
5490 cat >> confdefs.h <<\EOF
5491#define __SYSV__ 1
5492EOF
5493
5494 cat >> confdefs.h <<\EOF
5495#define __SVR4__ 1
5496EOF
5497
5498 ;;
5499 *)
5500 { echo "configure: error: I don't know your system type." 1>&2; exit 1; }
5501esac
5502
5503
5504
5505rm -f ${OSTYPE}.system.cache.tmp
5506touch ${OSTYPE}.system.cache.tmp
5507touch ${OSTYPE}.system.cache
5508
5509
6fbf0513 5510DEFAULT_wxUSE_GTK=1
8248314d
VZ
5511DEFAULT_wxUSE_QT=0
5512DEFAULT_wxUSE_MOTIF=0
bcf1fa6b 5513
8710cf5c 5514DEFAULT_wxUSE_THREADS=0
cb43b372 5515
8248314d
VZ
5516DEFAULT_wxUSE_SHARED=1
5517DEFAULT_wxUSE_OPTIMISE=1
5518DEFAULT_wxUSE_PROFILE=0
5519DEFAULT_wxUSE_DEBUG_FLAG=0
5520DEFAULT_wxUSE_DEBUG_INFO=0
5521DEFAULT_wxUSE_MEM_TRACING=0
5522DEFAULT_wxUSE_DMALLOC=0
5523DEFAULT_wxUSE_APPLE_IEEE=1
5524DEFAULT_wxUSE_IOSTREAMH=1
5525
5526DEFAULT_wxUSE_ZLIB=1
8248314d 5527DEFAULT_wxUSE_LIBPNG=1
e1929140 5528DEFAULT_wxUSE_LIBJPEG=1
8710cf5c 5529DEFAULT_wxUSE_ODBC=1
8248314d 5530
8248314d 5531DEFAULT_wxUSE_TIMEDATE=1
8248314d
VZ
5532DEFAULT_wxUSE_INTL=1
5533DEFAULT_wxUSE_CONFIG=1
5534DEFAULT_wxUSE_STREAMS=1
d28e1977 5535DEFAULT_wxUSE_SOCKETS=1
8248314d 5536DEFAULT_wxUSE_SERIAL=1
eb9bbf52 5537DEFAULT_wxUSE_DYNLIB_CLASS=1
8248314d
VZ
5538
5539DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=1
bcf1fa6b 5540DEFAULT_WX_NORMALIZED_PS_FONTS=1
8248314d 5541DEFAULT_wxUSE_POSTSCRIPT=1
bcf1fa6b 5542
8248314d
VZ
5543DEFAULT_wxUSE_IPC=1
5544DEFAULT_wxUSE_RESOURCES=1
8b53e5a2 5545DEFAULT_wxUSE_CLIPBOARD=1
ff8bfdbb 5546DEFAULT_wxUSE_TOOLTIPS=1
ac57418f 5547DEFAULT_wxUSE_DRAG_AND_DROP=1
bcf1fa6b 5548
8248314d
VZ
5549DEFAULT_wxUSE_MDI_ARCHITECTURE=1
5550DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=1
5551DEFAULT_wxUSE_PRINTING_ARCHITECTURE=1
bcf1fa6b 5552
8248314d
VZ
5553DEFAULT_wxUSE_PROLOGIO=1
5554DEFAULT_wxUSE_WX_RESOURCES=1
5555DEFAULT_wxUSE_RPC=0
e9aad10a 5556DEFAULT_wxUSE_HELP=1
bcf1fa6b 5557
64ef3622 5558DEFAULT_wxUSE_UNICODE=0
fb4e5803
VZ
5559DEFAULT_wxUSE_WCSRTOMBS=0
5560
bcf1fa6b
RR
5561
5562
5563echo $ac_n "checking "for gtk"""... $ac_c" 1>&6
6a3ab8b1 5564echo "configure:5565: checking "for gtk"" >&5
bcf1fa6b
RR
5565# Check whether --with-gtk or --without-gtk was given.
5566if test "${with_gtk+set}" = set; then
5567 withval="$with_gtk"
5568 if test "x$with_gtk" = xyes; then
8248314d 5569 ac_cv_use_gtk='wxUSE_GTK="1"'
bcf1fa6b 5570else
8248314d 5571 ac_cv_use_gtk='wxUSE_GTK="0"'
bcf1fa6b
RR
5572fi
5573else
5574
8248314d 5575 LINE=`grep "wxUSE_GTK" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5576 if test "x$LINE" != x ; then
5577 eval "DEFAULT_$LINE"
5578 fi
8248314d 5579 ac_cv_use_gtk='wxUSE_GTK='$DEFAULT_wxUSE_GTK
bcf1fa6b
RR
5580
5581fi
5582
5583eval "$ac_cv_use_gtk"
5584echo $ac_cv_use_gtk >> ${OSTYPE}.system.cache.tmp
8248314d 5585if test "$wxUSE_GTK" = 1; then
bcf1fa6b
RR
5586 echo "$ac_t""yes" 1>&6
5587else
5588 echo "$ac_t""no" 1>&6
5589fi
5590
5591
5592
5593echo $ac_n "checking "for qt"""... $ac_c" 1>&6
6a3ab8b1 5594echo "configure:5595: checking "for qt"" >&5
bcf1fa6b
RR
5595# Check whether --with-qt or --without-qt was given.
5596if test "${with_qt+set}" = set; then
5597 withval="$with_qt"
5598 if test "x$with_qt" = xyes; then
8248314d 5599 ac_cv_use_qt='wxUSE_QT="1"'
bcf1fa6b 5600else
8248314d 5601 ac_cv_use_qt='wxUSE_QT="0"'
bcf1fa6b
RR
5602fi
5603else
5604
8248314d 5605 LINE=`grep "wxUSE_QT" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5606 if test "x$LINE" != x ; then
5607 eval "DEFAULT_$LINE"
5608 fi
8248314d 5609 ac_cv_use_qt='wxUSE_QT='$DEFAULT_wxUSE_QT
bcf1fa6b
RR
5610
5611fi
5612
5613eval "$ac_cv_use_qt"
5614echo $ac_cv_use_qt >> ${OSTYPE}.system.cache.tmp
8248314d 5615if test "$wxUSE_QT" = 1; then
bcf1fa6b
RR
5616 echo "$ac_t""yes" 1>&6
5617else
5618 echo "$ac_t""no" 1>&6
5619fi
5620
5621
5622
5623echo $ac_n "checking "for motif"""... $ac_c" 1>&6
6a3ab8b1 5624echo "configure:5625: checking "for motif"" >&5
bcf1fa6b
RR
5625# Check whether --with-motif or --without-motif was given.
5626if test "${with_motif+set}" = set; then
5627 withval="$with_motif"
5628 if test "x$with_motif" = xyes; then
8248314d 5629 ac_cv_use_motif='wxUSE_MOTIF="1"'
bcf1fa6b 5630else
8248314d 5631 ac_cv_use_motif='wxUSE_MOTIF="0"'
bcf1fa6b
RR
5632fi
5633else
5634
8248314d 5635 LINE=`grep "wxUSE_MOTIF" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5636 if test "x$LINE" != x ; then
5637 eval "DEFAULT_$LINE"
5638 fi
8248314d 5639 ac_cv_use_motif='wxUSE_MOTIF='$DEFAULT_wxUSE_MOTIF
bcf1fa6b
RR
5640
5641fi
5642
5643eval "$ac_cv_use_motif"
5644echo $ac_cv_use_motif >> ${OSTYPE}.system.cache.tmp
8248314d 5645if test "$wxUSE_MOTIF" = 1; then
bcf1fa6b
RR
5646 echo "$ac_t""yes" 1>&6
5647else
5648 echo "$ac_t""no" 1>&6
5649fi
5650
5651
5652
5653
5654echo $ac_n "checking "for shared"""... $ac_c" 1>&6
6a3ab8b1 5655echo "configure:5656: checking "for shared"" >&5
bcf1fa6b
RR
5656# Check whether --with-shared or --without-shared was given.
5657if test "${with_shared+set}" = set; then
5658 withval="$with_shared"
5659 if test "x$with_shared" = xyes; then
8248314d 5660 ac_cv_use_shared='wxUSE_SHARED="1"'
bcf1fa6b 5661else
8248314d 5662 ac_cv_use_shared='wxUSE_SHARED="0"'
bcf1fa6b
RR
5663fi
5664else
5665
8248314d 5666 LINE=`grep "wxUSE_SHARED" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5667 if test "x$LINE" != x ; then
5668 eval "DEFAULT_$LINE"
5669 fi
8248314d 5670 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
bcf1fa6b
RR
5671
5672fi
5673
5674eval "$ac_cv_use_shared"
5675echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp
8248314d 5676if test "$wxUSE_SHARED" = 1; then
bcf1fa6b
RR
5677 echo "$ac_t""yes" 1>&6
5678else
5679 echo "$ac_t""no" 1>&6
5680fi
5681
5682
5683
5684echo $ac_n "checking "for optimise"""... $ac_c" 1>&6
6a3ab8b1 5685echo "configure:5686: checking "for optimise"" >&5
bcf1fa6b
RR
5686# Check whether --with-optimise or --without-optimise was given.
5687if test "${with_optimise+set}" = set; then
5688 withval="$with_optimise"
5689 if test "x$with_optimise" = xyes; then
8248314d 5690 ac_cv_use_optimise='wxUSE_OPTIMISE="1"'
bcf1fa6b 5691else
8248314d 5692 ac_cv_use_optimise='wxUSE_OPTIMISE="0"'
bcf1fa6b
RR
5693fi
5694else
5695
8248314d 5696 LINE=`grep "wxUSE_OPTIMISE" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5697 if test "x$LINE" != x ; then
5698 eval "DEFAULT_$LINE"
5699 fi
8248314d 5700 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
bcf1fa6b
RR
5701
5702fi
5703
5704eval "$ac_cv_use_optimise"
5705echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp
8248314d 5706if test "$wxUSE_OPTIMISE" = 1; then
bcf1fa6b
RR
5707 echo "$ac_t""yes" 1>&6
5708else
5709 echo "$ac_t""no" 1>&6
5710fi
5711
5712
5713
5714echo $ac_n "checking "for debug_flag"""... $ac_c" 1>&6
6a3ab8b1 5715echo "configure:5716: checking "for debug_flag"" >&5
bcf1fa6b
RR
5716# Check whether --with-debug_flag or --without-debug_flag was given.
5717if test "${with_debug_flag+set}" = set; then
5718 withval="$with_debug_flag"
5719 if test "x$with_debug_flag" = xyes; then
8248314d 5720 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG="1"'
bcf1fa6b 5721else
8248314d 5722 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG="0"'
bcf1fa6b
RR
5723fi
5724else
5725
8248314d 5726 LINE=`grep "wxUSE_DEBUG_FLAG" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5727 if test "x$LINE" != x ; then
5728 eval "DEFAULT_$LINE"
5729 fi
8248314d 5730 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
bcf1fa6b
RR
5731
5732fi
5733
5734eval "$ac_cv_use_debug_flag"
5735echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp
8248314d 5736if test "$wxUSE_DEBUG_FLAG" = 1; then
bcf1fa6b
RR
5737 echo "$ac_t""yes" 1>&6
5738else
5739 echo "$ac_t""no" 1>&6
5740fi
5741
5742
5743
5744echo $ac_n "checking "for debug_info"""... $ac_c" 1>&6
6a3ab8b1 5745echo "configure:5746: checking "for debug_info"" >&5
bcf1fa6b
RR
5746# Check whether --with-debug_info or --without-debug_info was given.
5747if test "${with_debug_info+set}" = set; then
5748 withval="$with_debug_info"
5749 if test "x$with_debug_info" = xyes; then
8248314d 5750 ac_cv_use_debug_info='wxUSE_DEBUG_INFO="1"'
bcf1fa6b 5751else
8248314d 5752 ac_cv_use_debug_info='wxUSE_DEBUG_INFO="0"'
bcf1fa6b
RR
5753fi
5754else
5755
8248314d 5756 LINE=`grep "wxUSE_DEBUG_INFO" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5757 if test "x$LINE" != x ; then
5758 eval "DEFAULT_$LINE"
5759 fi
8248314d 5760 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
bcf1fa6b
RR
5761
5762fi
5763
5764eval "$ac_cv_use_debug_info"
5765echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp
8248314d 5766if test "$wxUSE_DEBUG_INFO" = 1; then
bcf1fa6b
RR
5767 echo "$ac_t""yes" 1>&6
5768else
5769 echo "$ac_t""no" 1>&6
5770fi
5771
5772
5773
2904eefd 5774echo $ac_n "checking "for debug_gdb"""... $ac_c" 1>&6
6a3ab8b1 5775echo "configure:5776: checking "for debug_gdb"" >&5
2904eefd
KB
5776# Check whether --with-debug_gdb or --without-debug_gdb was given.
5777if test "${with_debug_gdb+set}" = set; then
5778 withval="$with_debug_gdb"
5779 if test "x$with_debug_gdb" = xyes; then
5780 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB="1"'
5781else
5782 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB="0"'
5783fi
5784else
5785
5786 LINE=`grep "wxUSE_DEBUG_GDB" ${OSTYPE}.system.cache`
5787 if test "x$LINE" != x ; then
5788 eval "DEFAULT_$LINE"
5789 fi
5790 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
5791
5792fi
5793
5794eval "$ac_cv_use_debug_gdb"
5795echo $ac_cv_use_debug_gdb >> ${OSTYPE}.system.cache.tmp
5796if test "$wxUSE_DEBUG_GDB" = 1; then
5797 echo "$ac_t""yes" 1>&6
5798else
5799 echo "$ac_t""no" 1>&6
5800fi
5801
5802
5803
bcf1fa6b 5804echo $ac_n "checking "for mem_tracing"""... $ac_c" 1>&6
6a3ab8b1 5805echo "configure:5806: checking "for mem_tracing"" >&5
bcf1fa6b
RR
5806# Check whether --with-mem_tracing or --without-mem_tracing was given.
5807if test "${with_mem_tracing+set}" = set; then
5808 withval="$with_mem_tracing"
5809 if test "x$with_mem_tracing" = xyes; then
8248314d 5810 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING="1"'
bcf1fa6b 5811else
8248314d 5812 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING="0"'
bcf1fa6b
RR
5813fi
5814else
5815
8248314d 5816 LINE=`grep "wxUSE_MEM_TRACING" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5817 if test "x$LINE" != x ; then
5818 eval "DEFAULT_$LINE"
5819 fi
8248314d 5820 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
bcf1fa6b
RR
5821
5822fi
5823
5824eval "$ac_cv_use_mem_tracing"
5825echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp
8248314d 5826if test "$wxUSE_MEM_TRACING" = 1; then
bcf1fa6b
RR
5827 echo "$ac_t""yes" 1>&6
5828else
5829 echo "$ac_t""no" 1>&6
5830fi
5831
5832
5833
5834echo $ac_n "checking "for dmalloc"""... $ac_c" 1>&6
6a3ab8b1 5835echo "configure:5836: checking "for dmalloc"" >&5
bcf1fa6b
RR
5836# Check whether --with-dmalloc or --without-dmalloc was given.
5837if test "${with_dmalloc+set}" = set; then
5838 withval="$with_dmalloc"
5839 if test "x$with_dmalloc" = xyes; then
8248314d 5840 ac_cv_use_dmalloc='wxUSE_DMALLOC="1"'
bcf1fa6b 5841else
8248314d 5842 ac_cv_use_dmalloc='wxUSE_DMALLOC="0"'
bcf1fa6b
RR
5843fi
5844else
5845
8248314d 5846 LINE=`grep "wxUSE_DMALLOC" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5847 if test "x$LINE" != x ; then
5848 eval "DEFAULT_$LINE"
5849 fi
8248314d 5850 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
bcf1fa6b
RR
5851
5852fi
5853
5854eval "$ac_cv_use_dmalloc"
5855echo $ac_cv_use_dmalloc >> ${OSTYPE}.system.cache.tmp
8248314d 5856if test "$wxUSE_DMALLOC" = 1; then
bcf1fa6b
RR
5857 echo "$ac_t""yes" 1>&6
5858else
5859 echo "$ac_t""no" 1>&6
5860fi
5861
5862
5863
5864echo $ac_n "checking "for profile"""... $ac_c" 1>&6
6a3ab8b1 5865echo "configure:5866: checking "for profile"" >&5
bcf1fa6b
RR
5866# Check whether --with-profile or --without-profile was given.
5867if test "${with_profile+set}" = set; then
5868 withval="$with_profile"
5869 if test "x$with_profile" = xyes; then
8248314d 5870 ac_cv_use_profile='wxUSE_PROFILE="1"'
bcf1fa6b 5871else
8248314d 5872 ac_cv_use_profile='wxUSE_PROFILE="0"'
bcf1fa6b
RR
5873fi
5874else
5875
8248314d 5876 LINE=`grep "wxUSE_PROFILE" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5877 if test "x$LINE" != x ; then
5878 eval "DEFAULT_$LINE"
5879 fi
8248314d 5880 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
bcf1fa6b
RR
5881
5882fi
5883
5884eval "$ac_cv_use_profile"
5885echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp
8248314d 5886if test "$wxUSE_PROFILE" = 1; then
bcf1fa6b
RR
5887 echo "$ac_t""yes" 1>&6
5888else
5889 echo "$ac_t""no" 1>&6
5890fi
5891
5892
5893
5894echo $ac_n "checking "for apple_ieee"""... $ac_c" 1>&6
6a3ab8b1 5895echo "configure:5896: checking "for apple_ieee"" >&5
bcf1fa6b
RR
5896# Check whether --with-apple_ieee or --without-apple_ieee was given.
5897if test "${with_apple_ieee+set}" = set; then
5898 withval="$with_apple_ieee"
5899 if test "x$with_apple_ieee" = xyes; then
8248314d 5900 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE="1"'
bcf1fa6b 5901else
8248314d 5902 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE="0"'
bcf1fa6b
RR
5903fi
5904else
5905
8248314d 5906 LINE=`grep "wxUSE_APPLE_IEEE" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5907 if test "x$LINE" != x ; then
5908 eval "DEFAULT_$LINE"
5909 fi
8248314d 5910 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
bcf1fa6b
RR
5911
5912fi
5913
5914eval "$ac_cv_use_apple_ieee"
5915echo $ac_cv_use_apple_ieee >> ${OSTYPE}.system.cache.tmp
8248314d 5916if test "$wxUSE_APPLE_IEEE" = 1; then
bcf1fa6b
RR
5917 echo "$ac_t""yes" 1>&6
5918else
5919 echo "$ac_t""no" 1>&6
5920fi
5921
5922
5923
ac57418f 5924echo $ac_n "checking "for threads"""... $ac_c" 1>&6
6a3ab8b1 5925echo "configure:5926: checking "for threads"" >&5
ac57418f
RR
5926# Check whether --with-threads or --without-threads was given.
5927if test "${with_threads+set}" = set; then
5928 withval="$with_threads"
5929 if test "x$with_threads" = xyes; then
5930 ac_cv_use_threads='wxUSE_THREADS="1"'
5931else
5932 ac_cv_use_threads='wxUSE_THREADS="0"'
5933fi
5934else
5935
5936 LINE=`grep "wxUSE_THREADS" ${OSTYPE}.system.cache`
5937 if test "x$LINE" != x ; then
5938 eval "DEFAULT_$LINE"
5939 fi
5940 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5941
5942fi
5943
5944eval "$ac_cv_use_threads"
5945echo $ac_cv_use_threads >> ${OSTYPE}.system.cache.tmp
5946if test "$wxUSE_THREADS" = 1; then
5947 echo "$ac_t""yes" 1>&6
5948else
5949 echo "$ac_t""no" 1>&6
5950fi
5951
5952
5953
eb9bbf52 5954echo $ac_n "checking "for dynlib"""... $ac_c" 1>&6
6a3ab8b1 5955echo "configure:5956: checking "for dynlib"" >&5
eb9bbf52
VZ
5956# Check whether --with-dynlib or --without-dynlib was given.
5957if test "${with_dynlib+set}" = set; then
5958 withval="$with_dynlib"
5959 if test "x$with_dynlib" = xyes; then
5960 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS="1"'
5961else
5962 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS="0"'
5963fi
5964else
5965
5966 LINE=`grep "wxUSE_DYNLIB_CLASS" ${OSTYPE}.system.cache`
5967 if test "x$LINE" != x ; then
5968 eval "DEFAULT_$LINE"
5969 fi
5970 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5971
5972fi
5973
5974eval "$ac_cv_use_dynlib"
5975echo $ac_cv_use_dynlib >> ${OSTYPE}.system.cache.tmp
5976if test "$wxUSE_DYNLIB_CLASS" = 1; then
5977 echo "$ac_t""yes" 1>&6
5978else
5979 echo "$ac_t""no" 1>&6
5980fi
5981
5982
5983
bcf1fa6b
RR
5984
5985echo $ac_n "checking "for zlib"""... $ac_c" 1>&6
6a3ab8b1 5986echo "configure:5987: checking "for zlib"" >&5
bcf1fa6b
RR
5987# Check whether --with-zlib or --without-zlib was given.
5988if test "${with_zlib+set}" = set; then
5989 withval="$with_zlib"
5990 if test "x$with_zlib" = xyes; then
8248314d 5991 ac_cv_use_zlib='wxUSE_ZLIB="1"'
bcf1fa6b 5992else
8248314d 5993 ac_cv_use_zlib='wxUSE_ZLIB="0"'
bcf1fa6b
RR
5994fi
5995else
5996
8248314d 5997 LINE=`grep "wxUSE_ZLIB" ${OSTYPE}.system.cache`
bcf1fa6b
RR
5998 if test "x$LINE" != x ; then
5999 eval "DEFAULT_$LINE"
6000 fi
8248314d 6001 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
bcf1fa6b
RR
6002
6003fi
6004
6005eval "$ac_cv_use_zlib"
6006echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp
8248314d 6007if test "$wxUSE_ZLIB" = 1; then
bcf1fa6b
RR
6008 echo "$ac_t""yes" 1>&6
6009else
6010 echo "$ac_t""no" 1>&6
6011fi
6012
6013
6014
bcf1fa6b 6015echo $ac_n "checking "for libpng"""... $ac_c" 1>&6
6a3ab8b1 6016echo "configure:6017: checking "for libpng"" >&5
bcf1fa6b
RR
6017# Check whether --with-libpng or --without-libpng was given.
6018if test "${with_libpng+set}" = set; then
6019 withval="$with_libpng"
6020 if test "x$with_libpng" = xyes; then
8248314d 6021 ac_cv_use_libpng='wxUSE_LIBPNG="1"'
bcf1fa6b 6022else
8248314d 6023 ac_cv_use_libpng='wxUSE_LIBPNG="0"'
bcf1fa6b
RR
6024fi
6025else
6026
8248314d 6027 LINE=`grep "wxUSE_LIBPNG" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6028 if test "x$LINE" != x ; then
6029 eval "DEFAULT_$LINE"
6030 fi
8248314d 6031 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
bcf1fa6b
RR
6032
6033fi
6034
6035eval "$ac_cv_use_libpng"
6036echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp
8248314d 6037if test "$wxUSE_LIBPNG" = 1; then
bcf1fa6b
RR
6038 echo "$ac_t""yes" 1>&6
6039else
6040 echo "$ac_t""no" 1>&6
6041fi
6042
6043
6044
2fff5f08 6045echo $ac_n "checking "for libjpeg"""... $ac_c" 1>&6
6a3ab8b1 6046echo "configure:6047: checking "for libjpeg"" >&5
2fff5f08
VS
6047# Check whether --with-libjpeg or --without-libjpeg was given.
6048if test "${with_libjpeg+set}" = set; then
6049 withval="$with_libjpeg"
6050 if test "x$with_libjpeg" = xyes; then
6051 ac_cv_use_libjpeg='wxUSE_LIBJPEG="1"'
6052else
6053 ac_cv_use_libjpeg='wxUSE_LIBJPEG="0"'
6054fi
6055else
6056
6057 LINE=`grep "wxUSE_LIBJPEG" ${OSTYPE}.system.cache`
6058 if test "x$LINE" != x ; then
6059 eval "DEFAULT_$LINE"
6060 fi
6061 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
6062
6063fi
6064
6065eval "$ac_cv_use_libjpeg"
6066echo $ac_cv_use_libjpeg >> ${OSTYPE}.system.cache.tmp
6067if test "$wxUSE_LIBJPEG" = 1; then
6068 echo "$ac_t""yes" 1>&6
6069else
6070 echo "$ac_t""no" 1>&6
6071fi
6072
6073
6074
bcf1fa6b 6075echo $ac_n "checking "for odbc"""... $ac_c" 1>&6
6a3ab8b1 6076echo "configure:6077: checking "for odbc"" >&5
bcf1fa6b
RR
6077# Check whether --with-odbc or --without-odbc was given.
6078if test "${with_odbc+set}" = set; then
6079 withval="$with_odbc"
6080 if test "x$with_odbc" = xyes; then
8248314d 6081 ac_cv_use_odbc='wxUSE_ODBC="1"'
bcf1fa6b 6082else
8248314d 6083 ac_cv_use_odbc='wxUSE_ODBC="0"'
bcf1fa6b
RR
6084fi
6085else
6086
8248314d 6087 LINE=`grep "wxUSE_ODBC" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6088 if test "x$LINE" != x ; then
6089 eval "DEFAULT_$LINE"
6090 fi
8248314d 6091 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
bcf1fa6b
RR
6092
6093fi
6094
6095eval "$ac_cv_use_odbc"
6096echo $ac_cv_use_odbc >> ${OSTYPE}.system.cache.tmp
8248314d 6097if test "$wxUSE_ODBC" = 1; then
bcf1fa6b
RR
6098 echo "$ac_t""yes" 1>&6
6099else
6100 echo "$ac_t""no" 1>&6
6101fi
6102
6103
6104
ac57418f
RR
6105
6106echo $ac_n "checking "for timedate"""... $ac_c" 1>&6
6a3ab8b1 6107echo "configure:6108: checking "for timedate"" >&5
ac57418f
RR
6108# Check whether --with-timedate or --without-timedate was given.
6109if test "${with_timedate+set}" = set; then
6110 withval="$with_timedate"
6111 if test "x$with_timedate" = xyes; then
6112 ac_cv_use_timedate='wxUSE_TIMEDATE="1"'
bcf1fa6b 6113else
ac57418f 6114 ac_cv_use_timedate='wxUSE_TIMEDATE="0"'
bcf1fa6b
RR
6115fi
6116else
6117
ac57418f 6118 LINE=`grep "wxUSE_TIMEDATE" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6119 if test "x$LINE" != x ; then
6120 eval "DEFAULT_$LINE"
6121 fi
ac57418f 6122 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
bcf1fa6b
RR
6123
6124fi
6125
ac57418f
RR
6126eval "$ac_cv_use_timedate"
6127echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp
6128if test "$wxUSE_TIMEDATE" = 1; then
bcf1fa6b
RR
6129 echo "$ac_t""yes" 1>&6
6130else
6131 echo "$ac_t""no" 1>&6
6132fi
6133
6134
6135
ac57418f 6136echo $ac_n "checking "for intl"""... $ac_c" 1>&6
6a3ab8b1 6137echo "configure:6138: checking "for intl"" >&5
ac57418f
RR
6138# Check whether --with-intl or --without-intl was given.
6139if test "${with_intl+set}" = set; then
6140 withval="$with_intl"
6141 if test "x$with_intl" = xyes; then
6142 ac_cv_use_intl='wxUSE_INTL="1"'
bcf1fa6b 6143else
ac57418f 6144 ac_cv_use_intl='wxUSE_INTL="0"'
bcf1fa6b
RR
6145fi
6146else
6147
ac57418f 6148 LINE=`grep "wxUSE_INTL" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6149 if test "x$LINE" != x ; then
6150 eval "DEFAULT_$LINE"
6151 fi
ac57418f 6152 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
bcf1fa6b
RR
6153
6154fi
6155
ac57418f
RR
6156eval "$ac_cv_use_intl"
6157echo $ac_cv_use_intl >> ${OSTYPE}.system.cache.tmp
6158if test "$wxUSE_INTL" = 1; then
bcf1fa6b
RR
6159 echo "$ac_t""yes" 1>&6
6160else
6161 echo "$ac_t""no" 1>&6
6162fi
6163
6164
6165
ac57418f 6166echo $ac_n "checking "for config"""... $ac_c" 1>&6
6a3ab8b1 6167echo "configure:6168: checking "for config"" >&5
ac57418f
RR
6168# Check whether --with-config or --without-config was given.
6169if test "${with_config+set}" = set; then
6170 withval="$with_config"
6171 if test "x$with_config" = xyes; then
6172 ac_cv_use_config='wxUSE_CONFIG="1"'
a60c99e6 6173else
ac57418f 6174 ac_cv_use_config='wxUSE_CONFIG="0"'
a60c99e6
RR
6175fi
6176else
6177
ac57418f 6178 LINE=`grep "wxUSE_CONFIG" ${OSTYPE}.system.cache`
a60c99e6
RR
6179 if test "x$LINE" != x ; then
6180 eval "DEFAULT_$LINE"
6181 fi
ac57418f 6182 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
a60c99e6
RR
6183
6184fi
6185
ac57418f
RR
6186eval "$ac_cv_use_config"
6187echo $ac_cv_use_config >> ${OSTYPE}.system.cache.tmp
6188if test "$wxUSE_CONFIG" = 1; then
a60c99e6
RR
6189 echo "$ac_t""yes" 1>&6
6190else
6191 echo "$ac_t""no" 1>&6
6192fi
6193
6194
6195
ac57418f 6196echo $ac_n "checking "for streams"""... $ac_c" 1>&6
6a3ab8b1 6197echo "configure:6198: checking "for streams"" >&5
ac57418f
RR
6198# Check whether --with-streams or --without-streams was given.
6199if test "${with_streams+set}" = set; then
6200 withval="$with_streams"
6201 if test "x$with_streams" = xyes; then
6202 ac_cv_use_streams='wxUSE_STREAMS="1"'
bcf1fa6b 6203else
ac57418f 6204 ac_cv_use_streams='wxUSE_STREAMS="0"'
bcf1fa6b
RR
6205fi
6206else
6207
ac57418f 6208 LINE=`grep "wxUSE_STREAMS" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6209 if test "x$LINE" != x ; then
6210 eval "DEFAULT_$LINE"
6211 fi
ac57418f 6212 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
bcf1fa6b
RR
6213
6214fi
6215
ac57418f
RR
6216eval "$ac_cv_use_streams"
6217echo $ac_cv_use_streams >> ${OSTYPE}.system.cache.tmp
6218if test "$wxUSE_STREAMS" = 1; then
bcf1fa6b
RR
6219 echo "$ac_t""yes" 1>&6
6220else
6221 echo "$ac_t""no" 1>&6
6222fi
6223
6224
6225
ac57418f 6226echo $ac_n "checking "for serial"""... $ac_c" 1>&6
6a3ab8b1 6227echo "configure:6228: checking "for serial"" >&5
ac57418f
RR
6228# Check whether --with-serial or --without-serial was given.
6229if test "${with_serial+set}" = set; then
6230 withval="$with_serial"
6231 if test "x$with_serial" = xyes; then
6232 ac_cv_use_serial='wxUSE_SERIAL="1"'
bcf1fa6b 6233else
ac57418f 6234 ac_cv_use_serial='wxUSE_SERIAL="0"'
bcf1fa6b
RR
6235fi
6236else
6237
ac57418f 6238 LINE=`grep "wxUSE_SERIAL" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6239 if test "x$LINE" != x ; then
6240 eval "DEFAULT_$LINE"
6241 fi
ac57418f 6242 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
bcf1fa6b
RR
6243
6244fi
6245
ac57418f
RR
6246eval "$ac_cv_use_serial"
6247echo $ac_cv_use_serial >> ${OSTYPE}.system.cache.tmp
6248if test "$wxUSE_SERIAL" = 1; then
bcf1fa6b
RR
6249 echo "$ac_t""yes" 1>&6
6250else
6251 echo "$ac_t""no" 1>&6
6252fi
6253
6254
6255
35a4dab7 6256echo $ac_n "checking "for sockets"""... $ac_c" 1>&6
6a3ab8b1 6257echo "configure:6258: checking "for sockets"" >&5
35a4dab7
GL
6258# Check whether --with-sockets or --without-sockets was given.
6259if test "${with_sockets+set}" = set; then
6260 withval="$with_sockets"
6261 if test "x$with_sockets" = xyes; then
6262 ac_cv_use_sockets='wxUSE_SOCKETS="1"'
6263else
6264 ac_cv_use_sockets='wxUSE_SOCKETS="0"'
6265fi
6266else
6267
6268 LINE=`grep "wxUSE_SOCKETS" ${OSTYPE}.system.cache`
6269 if test "x$LINE" != x ; then
6270 eval "DEFAULT_$LINE"
6271 fi
6272 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
6273
6274fi
6275
6276eval "$ac_cv_use_sockets"
6277echo $ac_cv_use_sockets >> ${OSTYPE}.system.cache.tmp
6278if test "$wxUSE_SOCKETS" = 1; then
6279 echo "$ac_t""yes" 1>&6
6280else
6281 echo "$ac_t""no" 1>&6
6282fi
6283
6284
6285
ac57418f
RR
6286
6287echo $ac_n "checking "for afmfonts"""... $ac_c" 1>&6
6a3ab8b1 6288echo "configure:6289: checking "for afmfonts"" >&5
ac57418f
RR
6289# Check whether --with-afmfonts or --without-afmfonts was given.
6290if test "${with_afmfonts+set}" = set; then
6291 withval="$with_afmfonts"
6292 if test "x$with_afmfonts" = xyes; then
6293 ac_cv_use_afmfonts='wxUSE_AFM_FOR_POSTSCRIPT="1"'
bcf1fa6b 6294else
ac57418f 6295 ac_cv_use_afmfonts='wxUSE_AFM_FOR_POSTSCRIPT="0"'
bcf1fa6b
RR
6296fi
6297else
6298
ac57418f 6299 LINE=`grep "wxUSE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6300 if test "x$LINE" != x ; then
6301 eval "DEFAULT_$LINE"
6302 fi
ac57418f 6303 ac_cv_use_afmfonts='wxUSE_AFM_FOR_POSTSCRIPT='$DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
bcf1fa6b
RR
6304
6305fi
6306
ac57418f
RR
6307eval "$ac_cv_use_afmfonts"
6308echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp
6309if test "$wxUSE_AFM_FOR_POSTSCRIPT" = 1; then
bcf1fa6b
RR
6310 echo "$ac_t""yes" 1>&6
6311else
6312 echo "$ac_t""no" 1>&6
6313fi
6314
6315
6316
ac57418f 6317echo $ac_n "checking "for normalized"""... $ac_c" 1>&6
6a3ab8b1 6318echo "configure:6319: checking "for normalized"" >&5
ac57418f
RR
6319# Check whether --with-normalized or --without-normalized was given.
6320if test "${with_normalized+set}" = set; then
6321 withval="$with_normalized"
6322 if test "x$with_normalized" = xyes; then
6323 ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS="1"'
bcf1fa6b 6324else
ac57418f 6325 ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS="0"'
bcf1fa6b
RR
6326fi
6327else
6328
ac57418f 6329 LINE=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6330 if test "x$LINE" != x ; then
6331 eval "DEFAULT_$LINE"
6332 fi
ac57418f 6333 ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS
bcf1fa6b
RR
6334
6335fi
6336
ac57418f
RR
6337eval "$ac_cv_use_normalized"
6338echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp
6339if test "$WX_NORMALIZED_PS_FONTS" = 1; then
bcf1fa6b
RR
6340 echo "$ac_t""yes" 1>&6
6341else
6342 echo "$ac_t""no" 1>&6
6343fi
6344
6345
6346
ac57418f 6347echo $ac_n "checking "for postscript"""... $ac_c" 1>&6
6a3ab8b1 6348echo "configure:6349: checking "for postscript"" >&5
ac57418f
RR
6349# Check whether --with-postscript or --without-postscript was given.
6350if test "${with_postscript+set}" = set; then
6351 withval="$with_postscript"
6352 if test "x$with_postscript" = xyes; then
6353 ac_cv_use_postscript='wxUSE_POSTSCRIPT="1"'
bcf1fa6b 6354else
ac57418f 6355 ac_cv_use_postscript='wxUSE_POSTSCRIPT="0"'
bcf1fa6b
RR
6356fi
6357else
6358
ac57418f 6359 LINE=`grep "wxUSE_POSTSCRIPT" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6360 if test "x$LINE" != x ; then
6361 eval "DEFAULT_$LINE"
6362 fi
ac57418f 6363 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
bcf1fa6b
RR
6364
6365fi
6366
ac57418f
RR
6367eval "$ac_cv_use_postscript"
6368echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp
6369if test "$wxUSE_POSTSCRIPT" = 1; then
bcf1fa6b
RR
6370 echo "$ac_t""yes" 1>&6
6371else
6372 echo "$ac_t""no" 1>&6
6373fi
6374
6375
6376
ac57418f
RR
6377
6378echo $ac_n "checking "for unicode"""... $ac_c" 1>&6
6a3ab8b1 6379echo "configure:6380: checking "for unicode"" >&5
ac57418f
RR
6380# Check whether --with-unicode or --without-unicode was given.
6381if test "${with_unicode+set}" = set; then
6382 withval="$with_unicode"
6383 if test "x$with_unicode" = xyes; then
6384 ac_cv_use_unicode='wxUSE_UNICODE="1"'
bcf1fa6b 6385else
ac57418f 6386 ac_cv_use_unicode='wxUSE_UNICODE="0"'
bcf1fa6b
RR
6387fi
6388else
6389
ac57418f 6390 LINE=`grep "wxUSE_UNICODE" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6391 if test "x$LINE" != x ; then
6392 eval "DEFAULT_$LINE"
6393 fi
ac57418f 6394 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
bcf1fa6b
RR
6395
6396fi
6397
ac57418f
RR
6398eval "$ac_cv_use_unicode"
6399echo $ac_cv_use_unicode >> ${OSTYPE}.system.cache.tmp
6400if test "$wxUSE_UNICODE" = 1; then
bcf1fa6b
RR
6401 echo "$ac_t""yes" 1>&6
6402else
6403 echo "$ac_t""no" 1>&6
6404fi
6405
6406
6407
ac57418f 6408echo $ac_n "checking "for wcsrtombs"""... $ac_c" 1>&6
6a3ab8b1 6409echo "configure:6410: checking "for wcsrtombs"" >&5
ac57418f
RR
6410# Check whether --with-wcsrtombs or --without-wcsrtombs was given.
6411if test "${with_wcsrtombs+set}" = set; then
6412 withval="$with_wcsrtombs"
6413 if test "x$with_wcsrtombs" = xyes; then
6414 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS="1"'
bcf1fa6b 6415else
ac57418f 6416 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS="0"'
bcf1fa6b
RR
6417fi
6418else
6419
ac57418f 6420 LINE=`grep "wxUSE_WCSRTOMBS" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6421 if test "x$LINE" != x ; then
6422 eval "DEFAULT_$LINE"
6423 fi
ac57418f 6424 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
bcf1fa6b
RR
6425
6426fi
6427
ac57418f
RR
6428eval "$ac_cv_use_wcsrtombs"
6429echo $ac_cv_use_wcsrtombs >> ${OSTYPE}.system.cache.tmp
6430if test "$wxUSE_WCSRTOMBS" = 1; then
bcf1fa6b
RR
6431 echo "$ac_t""yes" 1>&6
6432else
6433 echo "$ac_t""no" 1>&6
6434fi
6435
6436
6437
ac57418f
RR
6438
6439echo $ac_n "checking "for wxresources"""... $ac_c" 1>&6
6a3ab8b1 6440echo "configure:6441: checking "for wxresources"" >&5
ac57418f
RR
6441# Check whether --with-wxresources or --without-wxresources was given.
6442if test "${with_wxresources+set}" = set; then
6443 withval="$with_wxresources"
6444 if test "x$with_wxresources" = xyes; then
6445 ac_cv_use_wxresources='wxUSE_WX_RESOURCES="1"'
bcf1fa6b 6446else
ac57418f 6447 ac_cv_use_wxresources='wxUSE_WX_RESOURCES="0"'
bcf1fa6b
RR
6448fi
6449else
6450
ac57418f 6451 LINE=`grep "wxUSE_WX_RESOURCES" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6452 if test "x$LINE" != x ; then
6453 eval "DEFAULT_$LINE"
6454 fi
ac57418f 6455 ac_cv_use_wxresources='wxUSE_WX_RESOURCES='$DEFAULT_wxUSE_WX_RESOURCES
bcf1fa6b
RR
6456
6457fi
6458
ac57418f
RR
6459eval "$ac_cv_use_wxresources"
6460echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp
6461if test "$wxUSE_WX_RESOURCES" = 1; then
bcf1fa6b
RR
6462 echo "$ac_t""yes" 1>&6
6463else
6464 echo "$ac_t""no" 1>&6
6465fi
6466
6467
6468
ac57418f 6469echo $ac_n "checking "for prologio"""... $ac_c" 1>&6
6a3ab8b1 6470echo "configure:6471: checking "for prologio"" >&5
ac57418f
RR
6471# Check whether --with-prologio or --without-prologio was given.
6472if test "${with_prologio+set}" = set; then
6473 withval="$with_prologio"
6474 if test "x$with_prologio" = xyes; then
6475 ac_cv_use_prologio='wxUSE_PROLOGIO="1"'
bcf1fa6b 6476else
ac57418f 6477 ac_cv_use_prologio='wxUSE_PROLOGIO="0"'
bcf1fa6b
RR
6478fi
6479else
6480
ac57418f 6481 LINE=`grep "wxUSE_PROLOGIO" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6482 if test "x$LINE" != x ; then
6483 eval "DEFAULT_$LINE"
6484 fi
ac57418f 6485 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
bcf1fa6b
RR
6486
6487fi
6488
ac57418f
RR
6489eval "$ac_cv_use_prologio"
6490echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp
6491if test "$wxUSE_PROLOGIO" = 1; then
bcf1fa6b
RR
6492 echo "$ac_t""yes" 1>&6
6493else
6494 echo "$ac_t""no" 1>&6
6495fi
6496
6497
6498
ac57418f 6499echo $ac_n "checking "for RPC"""... $ac_c" 1>&6
6a3ab8b1 6500echo "configure:6501: checking "for RPC"" >&5
ac57418f
RR
6501# Check whether --with-rpc or --without-rpc was given.
6502if test "${with_rpc+set}" = set; then
6503 withval="$with_rpc"
6504 if test "x$with_rpc" = xyes; then
6505 ac_cv_use_rpc='wxUSE_RPC="1"'
bcf1fa6b 6506else
ac57418f 6507 ac_cv_use_rpc='wxUSE_RPC="0"'
bcf1fa6b
RR
6508fi
6509else
6510
ac57418f 6511 LINE=`grep "wxUSE_RPC" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6512 if test "x$LINE" != x ; then
6513 eval "DEFAULT_$LINE"
6514 fi
ac57418f 6515 ac_cv_use_rpc='wxUSE_RPC='$DEFAULT_wxUSE_RPC
bcf1fa6b
RR
6516
6517fi
6518
ac57418f
RR
6519eval "$ac_cv_use_rpc"
6520echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp
6521if test "$wxUSE_RPC" = 1; then
bcf1fa6b
RR
6522 echo "$ac_t""yes" 1>&6
6523else
6524 echo "$ac_t""no" 1>&6
6525fi
6526
6527
6528
ac57418f
RR
6529
6530echo $ac_n "checking "for IPC"""... $ac_c" 1>&6
6a3ab8b1 6531echo "configure:6532: checking "for IPC"" >&5
ac57418f
RR
6532# Check whether --with-ipc or --without-ipc was given.
6533if test "${with_ipc+set}" = set; then
6534 withval="$with_ipc"
6535 if test "x$with_ipc" = xyes; then
6536 ac_cv_use_ipc='wxUSE_IPC="1"'
bcf1fa6b 6537else
ac57418f 6538 ac_cv_use_ipc='wxUSE_IPC="0"'
bcf1fa6b
RR
6539fi
6540else
6541
ac57418f 6542 LINE=`grep "wxUSE_IPC" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6543 if test "x$LINE" != x ; then
6544 eval "DEFAULT_$LINE"
6545 fi
ac57418f 6546 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
bcf1fa6b
RR
6547
6548fi
6549
6550eval "$ac_cv_use_ipc"
6551echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp
8248314d 6552if test "$wxUSE_IPC" = 1; then
bcf1fa6b
RR
6553 echo "$ac_t""yes" 1>&6
6554else
6555 echo "$ac_t""no" 1>&6
6556fi
6557
6558
6559
6560echo $ac_n "checking "for resources"""... $ac_c" 1>&6
6a3ab8b1 6561echo "configure:6562: checking "for resources"" >&5
bcf1fa6b
RR
6562# Check whether --with-resources or --without-resources was given.
6563if test "${with_resources+set}" = set; then
6564 withval="$with_resources"
6565 if test "x$with_resources" = xyes; then
8248314d 6566 ac_cv_use_resources='wxUSE_RESOURCES="1"'
bcf1fa6b 6567else
8248314d 6568 ac_cv_use_resources='wxUSE_RESOURCES="0"'
bcf1fa6b
RR
6569fi
6570else
6571
8248314d 6572 LINE=`grep "wxUSE_RESOURCES" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6573 if test "x$LINE" != x ; then
6574 eval "DEFAULT_$LINE"
6575 fi
8248314d 6576 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
bcf1fa6b
RR
6577
6578fi
6579
6580eval "$ac_cv_use_resources"
6581echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp
8248314d 6582if test "$wxUSE_RESOURCES" = 1; then
bcf1fa6b
RR
6583 echo "$ac_t""yes" 1>&6
6584else
6585 echo "$ac_t""no" 1>&6
6586fi
6587
6588
6589
6590echo $ac_n "checking "for clipboard"""... $ac_c" 1>&6
6a3ab8b1 6591echo "configure:6592: checking "for clipboard"" >&5
bcf1fa6b
RR
6592# Check whether --with-clipboard or --without-clipboard was given.
6593if test "${with_clipboard+set}" = set; then
6594 withval="$with_clipboard"
6595 if test "x$with_clipboard" = xyes; then
8248314d 6596 ac_cv_use_clipboard='wxUSE_CLIPBOARD="1"'
bcf1fa6b 6597else
8248314d 6598 ac_cv_use_clipboard='wxUSE_CLIPBOARD="0"'
bcf1fa6b
RR
6599fi
6600else
6601
8248314d 6602 LINE=`grep "wxUSE_CLIPBOARD" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6603 if test "x$LINE" != x ; then
6604 eval "DEFAULT_$LINE"
6605 fi
8248314d 6606 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
bcf1fa6b
RR
6607
6608fi
6609
6610eval "$ac_cv_use_clipboard"
6611echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp
8248314d 6612if test "$wxUSE_CLIPBOARD" = 1; then
bcf1fa6b
RR
6613 echo "$ac_t""yes" 1>&6
6614else
6615 echo "$ac_t""no" 1>&6
6616fi
6617
6618
6619
ff8bfdbb 6620echo $ac_n "checking "for tooltips"""... $ac_c" 1>&6
6a3ab8b1 6621echo "configure:6622: checking "for tooltips"" >&5
ff8bfdbb
VZ
6622# Check whether --with-tooltips or --without-tooltips was given.
6623if test "${with_tooltips+set}" = set; then
6624 withval="$with_tooltips"
6625 if test "x$with_tooltips" = xyes; then
6626 ac_cv_use_tooltips='wxUSE_TOOLTIPS="1"'
6627else
6628 ac_cv_use_tooltips='wxUSE_TOOLTIPS="0"'
6629fi
6630else
6631
6632 LINE=`grep "wxUSE_TOOLTIPS" ${OSTYPE}.system.cache`
6633 if test "x$LINE" != x ; then
6634 eval "DEFAULT_$LINE"
6635 fi
6636 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
6637
6638fi
6639
6640eval "$ac_cv_use_tooltips"
6641echo $ac_cv_use_tooltips >> ${OSTYPE}.system.cache.tmp
6642if test "$wxUSE_TOOLTIPS" = 1; then
6643 echo "$ac_t""yes" 1>&6
6644else
6645 echo "$ac_t""no" 1>&6
6646fi
6647
6648
6649
bcf1fa6b 6650echo $ac_n "checking "for dnd"""... $ac_c" 1>&6
6a3ab8b1 6651echo "configure:6652: checking "for dnd"" >&5
bcf1fa6b 6652# Check whether --with-dnd or --without-dnd was given.
ac57418f
RR
6653if test "${with_dnd+set}" = set; then
6654 withval="$with_dnd"
6655 if test "x$with_dnd" = xyes; then
6656 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP="1"'
bcf1fa6b 6657else
ac57418f 6658 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP="0"'
bcf1fa6b
RR
6659fi
6660else
6661
ac57418f 6662 LINE=`grep "wxUSE_DRAG_AND_DROP" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6663 if test "x$LINE" != x ; then
6664 eval "DEFAULT_$LINE"
6665 fi
ac57418f 6666 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
bcf1fa6b
RR
6667
6668fi
6669
ac57418f
RR
6670eval "$ac_cv_use_dnd"
6671echo $ac_cv_use_dnd >> ${OSTYPE}.system.cache.tmp
6672if test "$wxUSE_DRAG_AND_DROP" = 1; then
bcf1fa6b
RR
6673 echo "$ac_t""yes" 1>&6
6674else
6675 echo "$ac_t""no" 1>&6
6676fi
6677
6678
6679
6680
6681echo $ac_n "checking "for mdi"""... $ac_c" 1>&6
6a3ab8b1 6682echo "configure:6683: checking "for mdi"" >&5
bcf1fa6b
RR
6683# Check whether --with-mdi or --without-mdi was given.
6684if test "${with_mdi+set}" = set; then
6685 withval="$with_mdi"
6686 if test "x$with_mdi" = xyes; then
8248314d 6687 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE="1"'
bcf1fa6b 6688else
8248314d 6689 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE="0"'
bcf1fa6b
RR
6690fi
6691else
6692
8248314d 6693 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6694 if test "x$LINE" != x ; then
6695 eval "DEFAULT_$LINE"
6696 fi
8248314d 6697 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
bcf1fa6b
RR
6698
6699fi
6700
6701eval "$ac_cv_use_mdi"
6702echo $ac_cv_use_mdi >> ${OSTYPE}.system.cache.tmp
8248314d 6703if test "$wxUSE_MDI_ARCHITECTURE" = 1; then
bcf1fa6b
RR
6704 echo "$ac_t""yes" 1>&6
6705else
6706 echo "$ac_t""no" 1>&6
6707fi
6708
6709
6710
6711echo $ac_n "checking "for docview"""... $ac_c" 1>&6
6a3ab8b1 6712echo "configure:6713: checking "for docview"" >&5
bcf1fa6b
RR
6713# Check whether --with-docview or --without-docview was given.
6714if test "${with_docview+set}" = set; then
6715 withval="$with_docview"
6716 if test "x$with_docview" = xyes; then
8248314d 6717 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE="1"'
bcf1fa6b 6718else
8248314d 6719 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE="0"'
bcf1fa6b
RR
6720fi
6721else
6722
8248314d 6723 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6724 if test "x$LINE" != x ; then
6725 eval "DEFAULT_$LINE"
6726 fi
8248314d 6727 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
bcf1fa6b
RR
6728
6729fi
6730
6731eval "$ac_cv_use_docview"
6732echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp
8248314d 6733if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1; then
bcf1fa6b
RR
6734 echo "$ac_t""yes" 1>&6
6735else
6736 echo "$ac_t""no" 1>&6
6737fi
6738
6739
6740
6741echo $ac_n "checking "for printarch"""... $ac_c" 1>&6
6a3ab8b1 6742echo "configure:6743: checking "for printarch"" >&5
bcf1fa6b
RR
6743# Check whether --with-printarch or --without-printarch was given.
6744if test "${with_printarch+set}" = set; then
6745 withval="$with_printarch"
6746 if test "x$with_printarch" = xyes; then
8248314d 6747 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE="1"'
bcf1fa6b 6748else
8248314d 6749 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE="0"'
bcf1fa6b
RR
6750fi
6751else
6752
8248314d 6753 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache`
bcf1fa6b
RR
6754 if test "x$LINE" != x ; then
6755 eval "DEFAULT_$LINE"
6756 fi
8248314d 6757 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
bcf1fa6b
RR
6758
6759fi
6760
6761eval "$ac_cv_use_printarch"
6762echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp
8248314d 6763if test "$wxUSE_PRINTING_ARCHITECTURE" = 1; then
bcf1fa6b
RR
6764 echo "$ac_t""yes" 1>&6
6765else
6766 echo "$ac_t""no" 1>&6
6767fi
6768
6769
6770
e9aad10a 6771echo $ac_n "checking "for help"""... $ac_c" 1>&6
6a3ab8b1 6772echo "configure:6773: checking "for help"" >&5
e9aad10a
KB
6773# Check whether --with-help or --without-help was given.
6774if test "${with_help+set}" = set; then
6775 withval="$with_help"
6776 if test "x$with_help" = xyes; then
6777 ac_cv_use_help='wxUSE_HELP="1"'
6778else
6779 ac_cv_use_help='wxUSE_HELP="0"'
6780fi
6781else
6782
6783 LINE=`grep "wxUSE_HELP" ${OSTYPE}.system.cache`
6784 if test "x$LINE" != x ; then
6785 eval "DEFAULT_$LINE"
6786 fi
6787 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6788
6789fi
6790
6791eval "$ac_cv_use_help"
6792echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp
6793if test "$wxUSE_HELP" = 1; then
6794 echo "$ac_t""yes" 1>&6
6795else
6796 echo "$ac_t""no" 1>&6
6797fi
6798
6799
6800
8248314d 6801if test "$wxUSE_UNIX" = 1 ; then
bcf1fa6b
RR
6802 cat >> confdefs.h <<\EOF
6803#define __UNIX__ 1
6804EOF
6805
6806fi
6807
6d5977df 6808if test "$USE_LINUX" = 1; then
91845ada 6809 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
6a3ab8b1 6810echo "configure:6811: checking for gettext in -lc" >&5
6d5977df
KB
6811ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
6812if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6813 echo $ac_n "(cached) $ac_c" 1>&6
6814else
6815 ac_save_LIBS="$LIBS"
6816LIBS="-lc $LIBS"
6817cat > conftest.$ac_ext <<EOF
6a3ab8b1 6818#line 6819 "configure"
6d5977df
KB
6819#include "confdefs.h"
6820/* Override any gcc2 internal prototype to avoid an error. */
6821/* We use char because int might match the return type of a gcc2
6822 builtin and then its argument prototype would still apply. */
6823char gettext();
6824
6825int main() {
6826gettext()
6827; return 0; }
6828EOF
6a3ab8b1 6829if { (eval echo configure:6830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6d5977df
KB
6830 rm -rf conftest*
6831 eval "ac_cv_lib_$ac_lib_var=yes"
6832else
6833 echo "configure: failed program was:" >&5
6834 cat conftest.$ac_ext >&5
6835 rm -rf conftest*
6836 eval "ac_cv_lib_$ac_lib_var=no"
6837fi
6838rm -f conftest*
6839LIBS="$ac_save_LIBS"
6840
6841fi
6842if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6843 echo "$ac_t""yes" 1>&6
6844 cat >> confdefs.h <<\EOF
6845#define wxHAVE_GLIBC2 1
6846EOF
6847
6848else
6849 echo "$ac_t""no" 1>&6
6850fi
6851
6852fi
6853
bcf1fa6b
RR
6854
6855TOOLKIT=
6856TOOLKIT_DEF=
6857
6858GUI_TK_INCLUDE=
6859GUI_TK_LIBRARY=
6860GUI_TK_LINK=
6861
76153302
RR
6862WX_LINK=
6863
bcf1fa6b
RR
6864MAKEINCLUDE=
6865
8248314d 6866if test "$wxUSE_GTK" = 1; then
bcf1fa6b
RR
6867 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6868if test "${with_gtk_prefix+set}" = set; then
6869 withval="$with_gtk_prefix"
6870 gtk_config_prefix="$withval"
6871else
6872 gtk_config_prefix=""
6873fi
6874
6875# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
6876if test "${with_gtk_exec_prefix+set}" = set; then
6877 withval="$with_gtk_exec_prefix"
6878 gtk_config_exec_prefix="$withval"
6879else
6880 gtk_config_exec_prefix=""
6881fi
6882
6883
6884 if test x$gtk_config_exec_prefix != x ; then
6885 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6886 if test x${GTK_CONFIG+set} != xset ; then
6887 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6888 fi
6889 fi
6890 if test x$gtk_config_prefix != x ; then
6891 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6892 if test x${GTK_CONFIG+set} != xset ; then
6893 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6894 fi
6895 fi
6896
6897 # Extract the first word of "gtk-config", so it can be a program name with args.
6898set dummy gtk-config; ac_word=$2
6899echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6a3ab8b1 6900echo "configure:6901: checking for $ac_word" >&5
bcf1fa6b
RR
6901if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6902 echo $ac_n "(cached) $ac_c" 1>&6
6903else
6904 case "$GTK_CONFIG" in
6905 /*)
6906 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6907 ;;
6908 *)
6a3ab8b1
KB
6909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6910 for ac_dir in $PATH; do
bcf1fa6b
RR
6911 test -z "$ac_dir" && ac_dir=.
6912 if test -f $ac_dir/$ac_word; then
6913 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6914 break
6915 fi
6916 done
6917 IFS="$ac_save_ifs"
6918 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6919 ;;
6920esac
6921fi
6922GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6923if test -n "$GTK_CONFIG"; then
6924 echo "$ac_t""$GTK_CONFIG" 1>&6
6925else
6926 echo "$ac_t""no" 1>&6
6927fi
6928
d345e841 6929 min_gtk_version=1.0.0
bcf1fa6b 6930 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6a3ab8b1 6931echo "configure:6932: checking for GTK - version >= $min_gtk_version" >&5
bcf1fa6b
RR
6932 no_gtk=""
6933 if test "$GTK_CONFIG" != "no" ; then
6934 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6935 GTK_LIBS=`$GTK_CONFIG --libs`
6936 ac_save_CFLAGS="$CFLAGS"
6937 ac_save_LIBS="$LIBS"
6938 CFLAGS="$CFLAGS $GTK_CFLAGS"
6939 LIBS="$LIBS $GTK_LIBS"
6940 if test "$cross_compiling" = yes; then
6941 echo $ac_n "cross compiling; assumed OK... $ac_c"
6942else
6943 cat > conftest.$ac_ext <<EOF
6a3ab8b1 6944#line 6945 "configure"
bcf1fa6b
RR
6945#include "confdefs.h"
6946
6947#include <gtk/gtk.h>
6948#include <stdio.h>
6949
c2933500 6950int
bcf1fa6b
RR
6951main ()
6952{
6953 int major, minor, micro;
6954
6955 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6956 printf("%s, bad version string\n", "$min_gtk_version");
6957 exit(1);
6958 }
6959
d345e841 6960 if (gtk_minor_version == 1) return FALSE;
f3855ef0 6961
bcf1fa6b 6962 return !((gtk_major_version > major) ||
c2933500
VZ
6963 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6964 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
bcf1fa6b
RR
6965}
6966
6967EOF
6a3ab8b1 6968if { (eval echo configure:6969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
bcf1fa6b
RR
6969then
6970 :
6971else
6972 echo "configure: failed program was:" >&5
6973 cat conftest.$ac_ext >&5
6974 rm -fr conftest*
6975 no_gtk=yes
6976fi
6977rm -fr conftest*
6978fi
6979
6980 CFLAGS="$ac_save_CFLAGS"
6981 LIBS="$ac_save_LIBS"
6982 else
6983 no_gtk=yes
6984 fi
6985 if test "x$no_gtk" = x ; then
6986 echo "$ac_t""yes" 1>&6
6987
6988 GUI_TK_INCLUDE="$GTK_CFLAGS"
6989 GUI_TK_LIBRARY="$GTK_LIBS"
c2933500 6990
bcf1fa6b
RR
6991 else
6992 echo "$ac_t""no" 1>&6
6993 GTK_CFLAGS=""
6994 GTK_LIBS=""
d345e841 6995 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.X or 1.0.X?" 1>&2; exit 1; }
bcf1fa6b
RR
6996 fi
6997
6998
6999
bcf1fa6b
RR
7000 TOOLKIT=GTK
7001 TOOLKIT_DEF=__WXGTK__
8710cf5c 7002 WX_LINK=-lwx_gtk2
bcf1fa6b
RR
7003 MAKEINCLUDE=../gtk.inc
7004fi
7005
8248314d 7006if test "$wxUSE_QT" = 1; then
bcf1fa6b 7007 echo $ac_n "checking for Qt includes""... $ac_c" 1>&6
6a3ab8b1 7008echo "configure:7009: checking for Qt includes" >&5
bcf1fa6b
RR
7009
7010ac_find_includes=
7011for ac_dir in $SEARCH_INCLUDE;
7012 do
7013 if test -f "$ac_dir/qapp.h"; then
7014 ac_find_includes=$ac_dir
7015 break
7016 fi
7017 done
7018
7019 if test "$ac_find_includes" != "" ; then
7020 echo "$ac_t""found $ac_find_includes" 1>&6
7021 echo $ac_n "checking for Qt library""... $ac_c" 1>&6
6a3ab8b1 7022echo "configure:7023: checking for Qt library" >&5
bcf1fa6b
RR
7023
7024ac_find_libraries=
7025for ac_dir in $SEARCH_LIB;
7026 do
7027 for ac_extension in a so sl; do
7028 if test -f "$ac_dir/libqt.$ac_extension"; then
7029 ac_find_libraries=$ac_dir
7030 break 2
7031 fi
7032 done
7033 done
7034
7035 if test "$ac_find_libraries" != "" ; then
7036
7037 ac_path_to_include=$ac_find_includes
7038 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
7039 result=$?
7040 if test $result = 0; then
7041 ac_path_to_include=""
7042 else
c2933500 7043 ac_path_to_include="-I$ac_find_includes"
bcf1fa6b
RR
7044 fi
7045
7046
7047 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null
7048 result=$?
7049 if test $result = 0; then
7050 ac_path_to_link=""
7051 else
c2933500 7052 ac_path_to_link="-L$ac_find_libraries"
bcf1fa6b
RR
7053 fi
7054
7055 CHECK_LINK="$CHECK_INCLUDE $ac_path_to_link"
7056 CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include"
7057 echo "$ac_t""found Qt at $ac_find_libraries" 1>&6
7058 else
7059 { echo "configure: error: no" 1>&2; exit 1; }
7060 fi
7061 else
7062 { echo "configure: error: no" 1>&2; exit 1; }
7063 fi
76153302 7064 GUI_TK_LINK="-lX11 -lqt -lm"
bcf1fa6b
RR
7065 TOOLKIT=QT
7066 TOOLKIT_DEF=__WXQT__
76153302 7067 WX_LINK=-lwx_qt
bcf1fa6b
RR
7068 MAKEINCLUDE=../qt.inc
7069fi
7070
8248314d 7071if test "$wxUSE_MOTIF" = 1; then
57493f9f 7072 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
6a3ab8b1 7073echo "configure:7074: checking for Motif/Lesstif includes" >&5
57493f9f 7074
bcf1fa6b
RR
7075ac_find_includes=
7076for ac_dir in $SEARCH_INCLUDE;
7077 do
ebefb2f3 7078 if test -f "$ac_dir/Xm/Xm.h"; then
bcf1fa6b
RR
7079 ac_find_includes=$ac_dir
7080 break
7081 fi
7082 done
7083
57493f9f
VZ
7084 if test "$ac_find_includes" != "" ; then
7085 echo "$ac_t""found $ac_find_includes" 1>&6
7086 else
7087 echo "$ac_t""no" 1>&6
7088 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
7089 fi
7090
7091 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
6a3ab8b1 7092echo "configure:7093: checking for Motif/Lesstif library" >&5
57493f9f 7093
bcf1fa6b
RR
7094ac_find_libraries=
7095for ac_dir in $SEARCH_LIB;
7096 do
7097 for ac_extension in a so sl; do
7098 if test -f "$ac_dir/libXm.$ac_extension"; then
7099 ac_find_libraries=$ac_dir
7100 break 2
7101 fi
7102 done
7103 done
7104
57493f9f
VZ
7105 if test "$ac_find_libraries" != "" ; then
7106
bcf1fa6b
RR
7107 ac_path_to_include=$ac_find_includes
7108 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
7109 result=$?
7110 if test $result = 0; then
7111 ac_path_to_include=""
7112 else
c2933500 7113 ac_path_to_include="-I$ac_find_includes"
bcf1fa6b
RR
7114 fi
7115
57493f9f 7116
bcf1fa6b
RR
7117 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null
7118 result=$?
7119 if test $result = 0; then
7120 ac_path_to_link=""
7121 else
c2933500 7122 ac_path_to_link="-L$ac_find_libraries"
bcf1fa6b
RR
7123 fi
7124
57493f9f
VZ
7125
7126 CHECK_LINK="$CHECK_LIB $ac_path_to_link"
7127 CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include"
7128 echo "$ac_t""found at $ac_find_libraries" 1>&6
7129 else
7130 echo "$ac_t""no" 1>&6
7131 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
7132 fi
7133
7134 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
6a3ab8b1 7135echo "configure:7136: checking for Xt library" >&5
57493f9f 7136
76153302
RR
7137ac_find_libraries=
7138for ac_dir in $SEARCH_LIB;
7139 do
7140 for ac_extension in a so sl; do
7141 if test -f "$ac_dir/libXt.$ac_extension"; then
7142 ac_find_libraries=$ac_dir
7143 break 2
7144 fi
7145 done
7146 done
7147
57493f9f
VZ
7148 if test "$ac_find_libraries" != "" ; then
7149
76153302
RR
7150 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null
7151 result=$?
7152 if test $result = 0; then
7153 ac_path_to_link=""
7154 else
c2933500 7155 ac_path_to_link="-L$ac_find_libraries"
76153302
RR
7156 fi
7157
57493f9f
VZ
7158 CHECK_LINK="$CHECK_LIB $ac_path_to_link"
7159 echo "$ac_t""found at $ac_find_libraries" 1>&6
7160 else
7161 echo "$ac_t""no" 1>&6
7162 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
7163 fi
7164
7165 XPM_LINK=""
7166 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
6a3ab8b1 7167echo "configure:7168: checking for Xpm library" >&5
57493f9f 7168
892dbe99
RR
7169ac_find_libraries=
7170for ac_dir in $SEARCH_LIB;
7171 do
7172 for ac_extension in a so sl; do
7173 if test -f "$ac_dir/libXpm.$ac_extension"; then
7174 ac_find_libraries=$ac_dir
7175 break 2
7176 fi
7177 done
7178 done
7179
57493f9f
VZ
7180 if test "$ac_find_libraries" != "" ; then
7181
892dbe99
RR
7182 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null
7183 result=$?
7184 if test $result = 0; then
7185 ac_path_to_link=""
7186 else
c2933500 7187 ac_path_to_link="-L$ac_find_libraries"
892dbe99
RR
7188 fi
7189
57493f9f
VZ
7190 CHECK_LINK="$CHECK_LIB $ac_path_to_link"
7191 XPM_LINK="-lXpm "
7192 cat >> confdefs.h <<\EOF
7193#define wxHAVE_LIB_XPM 1
7194EOF
c2933500 7195
57493f9f
VZ
7196 echo "$ac_t""found at $ac_find_libraries" 1>&6
7197 else
7198 echo "$ac_t""no" 1>&6
7199 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7200 fi
7201
5f991871 7202 GUI_TK_LINK="-lXm $(XPM_LINK)-lXmu -lXt -lX11 -lm"
57493f9f
VZ
7203 GUI_TK_LIBRARY="$CHECK_LIB $GUI_TK_LINK"
7204 TOOLKIT=MOTIF
7205 TOOLKIT_DEF=__WXMOTIF__
7206 WX_LINK=-lwx_motif2
7207 MAKEINCLUDE=../motif.inc
bcf1fa6b
RR
7208fi
7209
7210if test "$TOOLKIT" = ""; then
c2933500 7211 { echo "configure: error: You must specify a toolkit: --with-gtk --with-qt --with-motif" 1>&2; exit 1; }
bcf1fa6b
RR
7212fi
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
76153302
RR
7224
7225
8c739649
RR
7226EXTRA_LINK=
7227
bcf1fa6b 7228WXDEBUG=
2904eefd 7229if test "$wxUSE_DEBUG_GDB" = 1 ; then
5f0f31fe
VZ
7230 wxUSE_DEBUG_INFO=1
7231 WXDEBUG="-ggdb"
7232fi
7233
7234if test "$wxUSE_DEBUG_INFO" = 1 ; then
2904eefd
KB
7235 WXDEBUG="-g"
7236 wxUSE_OPTIMISE=0
bcf1fa6b
RR
7237fi
7238
7239
5f0f31fe 7240
8248314d 7241if test "$wxUSE_DEBUG_FLAG" = 1 ; then
bcf1fa6b 7242 cat >> confdefs.h <<EOF
8248314d 7243#define WXDEBUG $wxUSE_DEBUG_FLAG
bcf1fa6b
RR
7244EOF
7245
7246 WXDEBUG_DEFINE="-D__WXDEBUG__"
7247
f96aa4d9
RR
7248else
7249 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
7250
bcf1fa6b
RR
7251fi
7252
8248314d 7253if test "$wxUSE_MEM_TRACING" = 1 ; then
bcf1fa6b 7254 cat >> confdefs.h <<EOF
8248314d 7255#define wxUSE_MEMORY_TRACING $wxUSE_MEM_TRACING
bcf1fa6b
RR
7256EOF
7257
e55ad60e 7258 cat >> confdefs.h <<EOF
8248314d 7259#define wxUSE_GLOBAL_MEMORY_OPERATORS $wxUSE_MEM_TRACING
e55ad60e
RR
7260EOF
7261
7262fi
bcf1fa6b 7263
8248314d 7264if test "$wxUSE_DMALLOC" = 1 ; then
bcf1fa6b
RR
7265 EXTRA_LINK="$EXTRA_LINK -ldmalloc"
7266fi
7267
7268
7269PROFILE=
8248314d 7270if test "$wxUSE_PROFILE" = 1 ; then
bcf1fa6b
RR
7271 PROFILE="-pg"
7272fi
7273
7274
7275CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
7276CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
8248314d 7277if test "$wxUSE_OPTIMISE" = 0 ; then
bcf1fa6b
RR
7278 OPTIMISE=
7279else
7280 if test "$GCC" = yes ; then
7281 OPTIMISE="-O2"
7282 case "${canonical}" in
7283 i586-*-*|i686-*-* )
7284 OPTIMISE="${OPTIMISE} "
7285 ;;
7286 esac
7287 else
7288 OPTIMISE="-O"
7289 fi
7290fi
7291
7292
7293APPLE_IEEE=NONE
8248314d 7294if test "$wxUSE_APPLE_IEEE" = 1 ; then
bcf1fa6b
RR
7295 APPLE_IEEE="APPLE_IEEE"
7296 cat >> confdefs.h <<EOF
8248314d 7297#define wxUSE_APPLE_IEEE $wxUSE_APPLE_IEEE
bcf1fa6b
RR
7298EOF
7299
7300fi
7301
8248314d 7302wxUSE_IOSTREAMH=$DEFAULT_wxUSE_IOSTREAMH
bcf1fa6b 7303cat >> confdefs.h <<EOF
8248314d 7304#define wxUSE_IOSTREAMH $wxUSE_IOSTREAMH
bcf1fa6b
RR
7305EOF
7306
7307
7308
8248314d 7309if test "$wxUSE_ZLIB" = 1 ; then
bcf1fa6b 7310 cat >> confdefs.h <<EOF
8248314d 7311#define wxUSE_ZLIB $wxUSE_ZLIB
bcf1fa6b
RR
7312EOF
7313
ac57418f 7314 Z_C_SRC="\$(Z_C_SRC)"
bcf1fa6b
RR
7315fi
7316
ac57418f 7317
8248314d 7318if test "$wxUSE_LIBPNG" = 1 ; then
bcf1fa6b 7319 cat >> confdefs.h <<EOF
8248314d 7320#define wxUSE_LIBPNG $wxUSE_LIBPNG
bcf1fa6b 7321EOF
c2933500 7322
ac57418f 7323 PNG_C_SRC="\$(PNG_C_SRC)"
bcf1fa6b
RR
7324fi
7325
ac57418f 7326
2fff5f08
VS
7327if test "$wxUSE_LIBJPEG" = 1 ; then
7328 cat >> confdefs.h <<EOF
7329#define wxUSE_LIBJPEG $wxUSE_LIBJPEG
7330EOF
7331
e1929140 7332 JPEG_C_SRC="\$(JPEG_C_SRC)"
2fff5f08 7333fi
2fff5f08 7334
2fff5f08 7335
e1929140 7336JPEG_LINK=""
2fff5f08
VS
7337
7338
84b46c35 7339IODBC_C_SRC=""
8248314d 7340if test "$wxUSE_ODBC" = 1 ; then
bcf1fa6b 7341 cat >> confdefs.h <<EOF
8248314d 7342#define wxUSE_ODBC $wxUSE_ODBC
bcf1fa6b 7343EOF
c2933500 7344
84b46c35 7345 IODBC_C_SRC="\$(IODBC_C_SRC)"
bcf1fa6b
RR
7346fi
7347
7348
84b46c35 7349
8248314d 7350if test "$wxUSE_CONFIG" = 1 ; then
bcf1fa6b 7351 cat >> confdefs.h <<EOF
8248314d 7352#define wxUSE_CONFIG $wxUSE_CONFIG
bcf1fa6b
RR
7353EOF
7354
7355fi
7356
8248314d 7357if test "$wxUSE_TIMEDATE" = 1 ; then
bcf1fa6b 7358 cat >> confdefs.h <<EOF
8248314d 7359#define wxUSE_TIMEDATE $wxUSE_TIMEDATE
bcf1fa6b
RR
7360EOF
7361
7362fi
7363
8248314d 7364if test "$wxUSE_INTL" = 1 ; then
bcf1fa6b 7365 cat >> confdefs.h <<EOF
8248314d 7366#define wxUSE_INTL $wxUSE_INTL
bcf1fa6b
RR
7367EOF
7368
7369fi
7370
8248314d 7371if test "$wxUSE_STREAMS" = 1 ; then
bcf1fa6b 7372 cat >> confdefs.h <<EOF
8248314d 7373#define wxUSE_STREAMS $wxUSE_STREAMS
bcf1fa6b
RR
7374EOF
7375
7376fi
7377
370ae202
RR
7378if test "$wxUSE_SOCKETS" = 1 ; then
7379 cat >> confdefs.h <<EOF
7380#define wxUSE_SOCKETS $wxUSE_SOCKETS
7381EOF
7382
7383fi
7384
8248314d 7385if test "$wxUSE_SERIAL" = 1 ; then
bcf1fa6b 7386 cat >> confdefs.h <<EOF
8248314d 7387#define wxUSE_SERIAL $wxUSE_SERIAL
bcf1fa6b
RR
7388EOF
7389
7390fi
7391
bcf1fa6b 7392
57493f9f 7393if test "$wxUSE_SOCKETS" = "1"; then
5f991871 7394 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
6a3ab8b1 7395echo "configure:7396: checking the type of the third argument of getsockname" >&5
57493f9f 7396 cat > conftest.$ac_ext <<EOF
6a3ab8b1 7397#line 7398 "configure"
57493f9f
VZ
7398#include "confdefs.h"
7399#include <sys/socket.h>
7400int main() {
4875458c 7401socklen_t len; getsockname(0, NULL, &len);
57493f9f
VZ
7402; return 0; }
7403EOF
6a3ab8b1 7404if { (eval echo configure:7405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
57493f9f
VZ
7405 rm -rf conftest*
7406 cat >> confdefs.h <<\EOF
4875458c
KB
7407#define SOCKLEN_T socklen_t
7408EOF
7409 echo "$ac_t""socklen_t" 1>&6
7410else
7411 echo "configure: failed program was:" >&5
7412 cat conftest.$ac_ext >&5
7413 rm -rf conftest*
7414 cat > conftest.$ac_ext <<EOF
6a3ab8b1 7415#line 7416 "configure"
4875458c
KB
7416#include "confdefs.h"
7417#include <sys/socket.h>
7418int main() {
7419size_t len; getsockname(0, NULL, &len);
7420; return 0; }
7421EOF
6a3ab8b1 7422if { (eval echo configure:7423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4875458c
KB
7423 rm -rf conftest*
7424 cat >> confdefs.h <<\EOF
57493f9f
VZ
7425#define SOCKLEN_T size_t
7426EOF
7427 echo "$ac_t""size_t" 1>&6
7428else
7429 echo "configure: failed program was:" >&5
7430 cat conftest.$ac_ext >&5
7431 rm -rf conftest*
7432 cat > conftest.$ac_ext <<EOF
6a3ab8b1 7433#line 7434 "configure"
57493f9f
VZ
7434#include "confdefs.h"
7435#include <sys/socket.h>
7436int main() {
7437int len; getsockname(0, NULL, &len);
7438; return 0; }
7439EOF
6a3ab8b1 7440if { (eval echo configure:7441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
57493f9f
VZ
7441 rm -rf conftest*
7442 cat >> confdefs.h <<\EOF
7443#define SOCKLEN_T int
7444EOF
7445 echo "$ac_t""int" 1>&6
7446else
7447 echo "configure: failed program was:" >&5
7448 cat conftest.$ac_ext >&5
7449 rm -rf conftest*
7450 echo "$ac_t""unknown" 1>&6
4875458c
KB
7451
7452fi
7453rm -f conftest*
57493f9f
VZ
7454
7455fi
7456rm -f conftest*
7457
7458fi
7459rm -f conftest*
7460fi
7461
7462
eb9bbf52
VZ
7463HAVE_DL_FUNCS=0
7464if test "$wxUSE_DYNLIB_CLASS" = "1"; then
7465 for ac_func in dlopen
7466do
7467echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a3ab8b1 7468echo "configure:7469: checking for $ac_func" >&5
eb9bbf52
VZ
7469if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7470 echo $ac_n "(cached) $ac_c" 1>&6
7471else
7472 cat > conftest.$ac_ext <<EOF
6a3ab8b1 7473#line 7474 "configure"
eb9bbf52
VZ
7474#include "confdefs.h"
7475/* System header to define __stub macros and hopefully few prototypes,
7476 which can conflict with char $ac_func(); below. */
7477#include <assert.h>
7478/* Override any gcc2 internal prototype to avoid an error. */
7479/* We use char because int might match the return type of a gcc2
7480 builtin and then its argument prototype would still apply. */
7481char $ac_func();
7482
7483int main() {
7484
7485/* The GNU C library defines this for functions which it implements
7486 to always fail with ENOSYS. Some functions are actually named
7487 something starting with __ and the normal name is an alias. */
7488#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7489choke me
7490#else
6a3ab8b1 7491$ac_func();
eb9bbf52
VZ
7492#endif
7493
7494; return 0; }
7495EOF
6a3ab8b1 7496if { (eval echo configure:7497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
eb9bbf52
VZ
7497 rm -rf conftest*
7498 eval "ac_cv_func_$ac_func=yes"
7499else
7500 echo "configure: failed program was:" >&5
7501 cat conftest.$ac_ext >&5
7502 rm -rf conftest*
7503 eval "ac_cv_func_$ac_func=no"
7504fi
7505rm -f conftest*
7506fi
7507
7508if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7509 echo "$ac_t""yes" 1>&6
7510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7511 cat >> confdefs.h <<EOF
7512#define $ac_tr_func 1
7513EOF
7514 cat >> confdefs.h <<\EOF
7515#define HAVE_DLOPEN 1
7516EOF
7517 HAVE_DL_FUNCS=1
7518else
7519 echo "$ac_t""no" 1>&6
7520echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6a3ab8b1 7521echo "configure:7522: checking for dlopen in -ldl" >&5
eb9bbf52
VZ
7522ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
7523if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7524 echo $ac_n "(cached) $ac_c" 1>&6
7525else
7526 ac_save_LIBS="$LIBS"
7527LIBS="-ldl $LIBS"
7528cat > conftest.$ac_ext <<EOF
6a3ab8b1 7529#line 7530 "configure"
eb9bbf52
VZ
7530#include "confdefs.h"
7531/* Override any gcc2 internal prototype to avoid an error. */
7532/* We use char because int might match the return type of a gcc2
7533 builtin and then its argument prototype would still apply. */
7534char dlopen();
7535
7536int main() {
7537dlopen()
7538; return 0; }
7539EOF
6a3ab8b1 7540if { (eval echo configure:7541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
eb9bbf52
VZ
7541 rm -rf conftest*
7542 eval "ac_cv_lib_$ac_lib_var=yes"
7543else
7544 echo "configure: failed program was:" >&5
7545 cat conftest.$ac_ext >&5
7546 rm -rf conftest*
7547 eval "ac_cv_lib_$ac_lib_var=no"
7548fi
7549rm -f conftest*
7550LIBS="$ac_save_LIBS"
7551
7552fi
7553if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7554 echo "$ac_t""yes" 1>&6
7555 cat >> confdefs.h <<\EOF
7556#define HAVE_DLOPEN 1
7557EOF
7558 HAVE_DL_FUNCS=1
7559else
7560 echo "$ac_t""no" 1>&6
7561fi
7562
7563fi
7564done
7565
7566 for ac_func in shl_load
7567do
7568echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6a3ab8b1 7569echo "configure:7570: checking for $ac_func" >&5
eb9bbf52
VZ
7570if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7571 echo $ac_n "(cached) $ac_c" 1>&6
7572else
7573 cat > conftest.$ac_ext <<EOF
6a3ab8b1 7574#line 7575 "configure"
eb9bbf52
VZ
7575#include "confdefs.h"
7576/* System header to define __stub macros and hopefully few prototypes,
7577 which can conflict with char $ac_func(); below. */
7578#include <assert.h>
7579/* Override any gcc2 internal prototype to avoid an error. */
7580/* We use char because int might match the return type of a gcc2
7581 builtin and then its argument prototype would still apply. */
7582char $ac_func();
7583
7584int main() {
7585
7586/* The GNU C library defines this for functions which it implements
7587 to always fail with ENOSYS. Some functions are actually named
7588 something starting with __ and the normal name is an alias. */
7589#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7590choke me
7591#else
6a3ab8b1 7592$ac_func();
eb9bbf52
VZ
7593#endif
7594
7595; return 0; }
7596EOF
6a3ab8b1 7597if { (eval echo configure:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
eb9bbf52
VZ
7598 rm -rf conftest*
7599 eval "ac_cv_func_$ac_func=yes"
7600else
7601 echo "configure: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7603 rm -rf conftest*
7604 eval "ac_cv_func_$ac_func=no"
7605fi
7606rm -f conftest*
7607fi
7608
7609if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7610 echo "$ac_t""yes" 1>&6
7611 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7612 cat >> confdefs.h <<EOF
7613#define $ac_tr_func 1
7614EOF
7615 cat >> confdefs.h <<\EOF
7616#define HAVE_SHL_LOAD 1
7617EOF
7618 HAVE_DL_FUNCS=1
7619else
7620 echo "$ac_t""no" 1>&6
7621fi
7622done
7623
7624
7625 if test "$HAVE_DL_FUNCS" = 0; then
7626 echo "configure: warning: "--with-dynlib will be disabled because no function was found to load a shared library on this platform"" 1>&2
7627
7628 wxUSE_DYNLIB_CLASS=0
7629 fi
7630fi
7631
7632if test "$wxUSE_DYNLIB_CLASS" = 1 ; then
7633 cat >> confdefs.h <<EOF
7634#define wxUSE_DYNLIB_CLASS $wxUSE_DYNLIB_CLASS
7635EOF
7636
7637fi
7638
7639
8248314d 7640if test "$wxUSE_RPC" = 1 ; then
bcf1fa6b 7641 cat >> confdefs.h <<EOF
8248314d 7642#define wxUSE_RPC $wxUSE_RPC
bcf1fa6b
RR
7643EOF
7644
7645fi
7646
8248314d 7647if test "$wxUSE_WX_RESOURCES" = 1 ; then
bcf1fa6b 7648 cat >> confdefs.h <<EOF
8248314d 7649#define wxUSE_WX_RESOURCES $wxUSE_WX_RESOURCES
bcf1fa6b
RR
7650EOF
7651
7652fi
7653
8248314d 7654if test "$wxUSE_PROLOGIO" = 1 ; then
bcf1fa6b 7655 cat >> confdefs.h <<EOF
8248314d 7656#define wxUSE_PROLOGIO 1
bcf1fa6b
RR
7657EOF
7658
7659fi
7660
7661
8248314d 7662if test "$wxUSE_POSTSCRIPT" = 1 ; then
bcf1fa6b 7663 cat >> confdefs.h <<EOF
8248314d 7664#define wxUSE_POSTSCRIPT 1
bcf1fa6b
RR
7665EOF
7666
7667fi
7668
7669cat >> confdefs.h <<EOF
8248314d 7670#define wxUSE_AFM_FOR_POSTSCRIPT $wxUSE_AFM_FOR_POSTSCRIPT
bcf1fa6b
RR
7671EOF
7672
7673
7674cat >> confdefs.h <<EOF
7675#define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS
7676EOF
7677
7678
7679
8248314d 7680if test "$wxUSE_MDI_ARCHITECTURE" = 1 ; then
bcf1fa6b 7681 cat >> confdefs.h <<EOF
8248314d 7682#define wxUSE_MDI_ARCHITECTURE $wxUSE_MDI_ARCHITECTURE
bcf1fa6b
RR
7683EOF
7684
7685fi
7686
8248314d 7687if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1 ; then
bcf1fa6b 7688 cat >> confdefs.h <<EOF
8248314d 7689#define wxUSE_DOC_VIEW_ARCHITECTURE $wxUSE_DOC_VIEW_ARCHITECTURE
bcf1fa6b
RR
7690EOF
7691
7692fi
7693
8248314d 7694if test "$wxUSE_PRINTING_ARCHITECTURE" = 1 ; then
bcf1fa6b 7695 cat >> confdefs.h <<EOF
8248314d 7696#define wxUSE_PRINTING_ARCHITECTURE $wxUSE_PRINTING_ARCHITECTURE
bcf1fa6b
RR
7697EOF
7698
7699fi
7700
7701
fb4e5803
VZ
7702if test "$wxUSE_UNICODE" = 1 ; then
7703 cat >> confdefs.h <<EOF
7704#define wxUSE_UNICODE 1
7705EOF
7706
7707fi
7708
7709if test "$wxUSE_WCSRTOMBS" = 1 ; then
7710 cat >> confdefs.h <<EOF
7711#define wxUSE_WCSRTOMBS 1
7712EOF
7713
7714fi
7715
7716
8248314d 7717if test "$wxUSE_IPC" = 1 ; then
bcf1fa6b 7718 cat >> confdefs.h <<EOF
8248314d 7719#define wxUSE_IPC 1
bcf1fa6b
RR
7720EOF
7721
7722fi
7723
8248314d 7724if test "$wxUSE_RESOURCES" = 1 ; then
bcf1fa6b 7725 cat >> confdefs.h <<EOF
8248314d 7726#define wxUSE_RESOURCES $wxUSE_RESOURCES
bcf1fa6b
RR
7727EOF
7728
7729fi
7730
8248314d 7731if test "$wxUSE_CLIPBOARD" = 1 ; then
bcf1fa6b 7732 cat >> confdefs.h <<EOF
8248314d 7733#define wxUSE_CLIPBOARD $wxUSE_CLIPBOARD
bcf1fa6b
RR
7734EOF
7735
7736fi
7737
ff8bfdbb 7738if test "$wxUSE_TOOLTIPS" = 1 ; then
6442ad7f
VZ
7739 if test "$wxUSE_MOTIF" = 1; then
7740 echo "configure: warning: tooltips are not supported yet under Motif" 1>&2
7741 wxUSE_TOOLTIPS=0
7742 fi
7743
7744 cat >> confdefs.h <<EOF
ff8bfdbb
VZ
7745#define wxUSE_TOOLTIPS $wxUSE_TOOLTIPS
7746EOF
7747
7748fi
7749
ac57418f 7750if test "$wxUSE_DRAG_AND_DROP" = 1 ; then
bcf1fa6b 7751 cat >> confdefs.h <<EOF
ac57418f 7752#define wxUSE_DRAG_AND_DROP $wxUSE_DRAG_AND_DROP
bcf1fa6b
RR
7753EOF
7754
7755fi
7756
7757
7758HELP=NONE
8248314d 7759if test "$wxUSE_HELP" = 1 ; then
bcf1fa6b
RR
7760 HELP="HELP"
7761 cat >> confdefs.h <<EOF
8248314d 7762#define wxUSE_HELP $wxUSE_HELP
bcf1fa6b
RR
7763EOF
7764
7765fi
7766
7767
bcf1fa6b 7768
91845ada 7769
bcf1fa6b 7770THREADS_LINK=""
ac57418f 7771UNIX_THREAD=""
bcf1fa6b 7772
d18ed59a 7773if test "$wxUSE_THREADS" = "1"; then
5e0b1434 7774
5e0b1434 7775 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
6a3ab8b1 7776echo "configure:7777: checking for pthread_create in -lpthread" >&5
5e0b1434 7777ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
bcf1fa6b
RR
7778if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7779 echo $ac_n "(cached) $ac_c" 1>&6
7780else
7781 ac_save_LIBS="$LIBS"
7782LIBS="-lpthread $LIBS"
7783cat > conftest.$ac_ext <<EOF
6a3ab8b1 7784#line 7785 "configure"
bcf1fa6b
RR
7785#include "confdefs.h"
7786/* Override any gcc2 internal prototype to avoid an error. */
7787/* We use char because int might match the return type of a gcc2
7788 builtin and then its argument prototype would still apply. */
5e0b1434 7789char pthread_create();
bcf1fa6b
RR
7790
7791int main() {
5e0b1434 7792pthread_create()
bcf1fa6b
RR
7793; return 0; }
7794EOF
6a3ab8b1 7795if { (eval echo configure:7796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
bcf1fa6b
RR
7796 rm -rf conftest*
7797 eval "ac_cv_lib_$ac_lib_var=yes"
7798else
7799 echo "configure: failed program was:" >&5
7800 cat conftest.$ac_ext >&5
7801 rm -rf conftest*
7802 eval "ac_cv_lib_$ac_lib_var=no"
7803fi
7804rm -f conftest*
7805LIBS="$ac_save_LIBS"
7806
7807fi
7808if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7809 echo "$ac_t""yes" 1>&6
7810
5e0b1434
VZ
7811 UNIX_THREAD="unix/threadpsx.cpp"
7812 THREADS_LINK="pthread"
7813
bcf1fa6b
RR
7814else
7815 echo "$ac_t""no" 1>&6
bcf1fa6b 7816
5e0b1434 7817 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
6a3ab8b1 7818echo "configure:7819: checking for pthread_create in -lc_r" >&5
c2933500
VZ
7819ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
7820if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7821 echo $ac_n "(cached) $ac_c" 1>&6
7822else
7823 ac_save_LIBS="$LIBS"
7824LIBS="-lc_r $LIBS"
7825cat > conftest.$ac_ext <<EOF
6a3ab8b1 7826#line 7827 "configure"
c2933500
VZ
7827#include "confdefs.h"
7828/* Override any gcc2 internal prototype to avoid an error. */
7829/* We use char because int might match the return type of a gcc2
7830 builtin and then its argument prototype would still apply. */
7831char pthread_create();
7832
7833int main() {
7834pthread_create()
7835; return 0; }
7836EOF
6a3ab8b1 7837if { (eval echo configure:7838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
c2933500
VZ
7838 rm -rf conftest*
7839 eval "ac_cv_lib_$ac_lib_var=yes"
7840else
7841 echo "configure: failed program was:" >&5
7842 cat conftest.$ac_ext >&5
7843 rm -rf conftest*
7844 eval "ac_cv_lib_$ac_lib_var=no"
7845fi
7846rm -f conftest*
7847LIBS="$ac_save_LIBS"
7848
7849fi
7850if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7851 echo "$ac_t""yes" 1>&6
7852
5e0b1434
VZ
7853 UNIX_THREAD="unix/threadpsx.cpp"
7854 THREADS_LINK="c_r"
7855
7856else
7857 echo "$ac_t""no" 1>&6
7858
7859 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
7860echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
6a3ab8b1 7861echo "configure:7862: checking for sys/prctl.h" >&5
5e0b1434
VZ
7862if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7863 echo $ac_n "(cached) $ac_c" 1>&6
7864else
7865 cat > conftest.$ac_ext <<EOF
6a3ab8b1 7866#line 7867 "configure"
5e0b1434
VZ
7867#include "confdefs.h"
7868#include <sys/prctl.h>
7869EOF
7870ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a3ab8b1
KB
7871{ (eval echo configure:7872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7872ac_err=`grep -v '^ *+' conftest.out`
5e0b1434
VZ
7873if test -z "$ac_err"; then
7874 rm -rf conftest*
7875 eval "ac_cv_header_$ac_safe=yes"
7876else
7877 echo "$ac_err" >&5
7878 echo "configure: failed program was:" >&5
7879 cat conftest.$ac_ext >&5
7880 rm -rf conftest*
7881 eval "ac_cv_header_$ac_safe=no"
7882fi
7883rm -f conftest*
7884fi
7885if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7886 echo "$ac_t""yes" 1>&6
7887
7888 UNIX_THREAD="gtk/threadsgi.cpp"
7889
c2933500
VZ
7890else
7891 echo "$ac_t""no" 1>&6
7892fi
7893
5e0b1434
VZ
7894
7895fi
7896
7897
7898fi
7899
ac57418f 7900 if test "$THREADS_LINK" != ""; then
5e0b1434 7901 cat >> confdefs.h <<\EOF
ac57418f
RR
7902#define wxUSE_THREADS 1
7903EOF
7904
5e0b1434
VZ
7905 else
7906 echo "configure: warning: No thread support on this system" 1>&2
ac57418f 7907 fi
91845ada 7908fi
ac57418f 7909
91845ada
VZ
7910if test -z "$UNIX_THREAD"; then
7911 wxUSE_THREADS=0
7912fi
7913
7914if test "$wxUSE_THREADS" = "1"; then
72914c56 7915
903b682c 7916
72914c56
VZ
7917 for ac_hdr in sched.h
7918do
7919ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7920echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6a3ab8b1 7921echo "configure:7922: checking for $ac_hdr" >&5
72914c56
VZ
7922if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7923 echo $ac_n "(cached) $ac_c" 1>&6
7924else
7925 cat > conftest.$ac_ext <<EOF
6a3ab8b1 7926#line 7927 "configure"
72914c56
VZ
7927#include "confdefs.h"
7928#include <$ac_hdr>
7929EOF
7930ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6a3ab8b1
KB
7931{ (eval echo configure:7932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7932ac_err=`grep -v '^ *+' conftest.out`
72914c56
VZ
7933if test -z "$ac_err"; then
7934 rm -rf conftest*
7935 eval "ac_cv_header_$ac_safe=yes"
7936else
7937 echo "$ac_err" >&5
7938 echo "configure: failed program was:" >&5
7939 cat conftest.$ac_ext >&5
7940 rm -rf conftest*
7941 eval "ac_cv_header_$ac_safe=no"
7942fi
7943rm -f conftest*
7944fi
7945if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7946 echo "$ac_t""yes" 1>&6
7947 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7948 cat >> confdefs.h <<EOF
7949#define $ac_tr_hdr 1
7950EOF
7951
7952else
7953 echo "$ac_t""no" 1>&6
7954fi
7955done
7956
7957
91845ada 7958 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
6a3ab8b1 7959echo "configure:7960: checking for sched_yield in -l$THREADS_LINK" >&5
91845ada 7960ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
bcf1fa6b
RR
7961if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7962 echo $ac_n "(cached) $ac_c" 1>&6
7963else
7964 ac_save_LIBS="$LIBS"
91845ada 7965LIBS="-l$THREADS_LINK $LIBS"
bcf1fa6b 7966cat > conftest.$ac_ext <<EOF
6a3ab8b1 7967#line 7968 "configure"
bcf1fa6b
RR
7968#include "confdefs.h"
7969/* Override any gcc2 internal prototype to avoid an error. */
7970/* We use char because int might match the return type of a gcc2
7971 builtin and then its argument prototype would still apply. */
91845ada 7972char sched_yield();
bcf1fa6b
RR
7973
7974int main() {
91845ada 7975sched_yield()
bcf1fa6b
RR
7976; return 0; }
7977EOF
6a3ab8b1 7978if { (eval echo configure:7979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
bcf1fa6b
RR
7979 rm -rf conftest*
7980 eval "ac_cv_lib_$ac_lib_var=yes"
7981else
7982 echo "configure: failed program was:" >&5
7983 cat conftest.$ac_ext >&5
7984 rm -rf conftest*
7985 eval "ac_cv_lib_$ac_lib_var=no"
7986fi
7987rm -f conftest*
7988LIBS="$ac_save_LIBS"
7989
7990fi
7991if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7992 echo "$ac_t""yes" 1>&6
91845ada
VZ
7993 cat >> confdefs.h <<\EOF
7994#define HAVE_SCHED_YIELD 1
7995EOF
7996
bcf1fa6b
RR
7997else
7998 echo "$ac_t""no" 1>&6
91845ada 7999echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
6a3ab8b1 8000echo "configure:8001: checking for sched_yield in -l"posix4"" >&5
91845ada
VZ
8001ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
8002if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8003 echo $ac_n "(cached) $ac_c" 1>&6
8004else
8005 ac_save_LIBS="$LIBS"
8006LIBS="-l"posix4" $LIBS"
8007cat > conftest.$ac_ext <<EOF
6a3ab8b1 8008#line 8009 "configure"
91845ada
VZ
8009#include "confdefs.h"
8010/* Override any gcc2 internal prototype to avoid an error. */
8011/* We use char because int might match the return type of a gcc2
8012 builtin and then its argument prototype would still apply. */
8013char sched_yield();
8014
8015int main() {
8016sched_yield()
8017; return 0; }
8018EOF
6a3ab8b1 8019if { (eval echo configure:8020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
91845ada
VZ
8020 rm -rf conftest*
8021 eval "ac_cv_lib_$ac_lib_var=yes"
8022else
8023 echo "configure: failed program was:" >&5
8024 cat conftest.$ac_ext >&5
8025 rm -rf conftest*
8026 eval "ac_cv_lib_$ac_lib_var=no"
bcf1fa6b 8027fi
91845ada
VZ
8028rm -f conftest*
8029LIBS="$ac_save_LIBS"
bcf1fa6b 8030
91845ada
VZ
8031fi
8032if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8033 echo "$ac_t""yes" 1>&6
8034 cat >> confdefs.h <<\EOF
8035#define HAVE_SCHED_YIELD 1
8036EOF
80cb83be 8037 POSIX4_LINK="-lposix4"
91845ada
VZ
8038else
8039 echo "$ac_t""no" 1>&6
8040echo "configure: warning: wxThread::Yield() will not work properly" 1>&2
8041
8042fi
c2933500 8043
91845ada 8044
bcf1fa6b
RR
8045fi
8046
91845ada 8047
903b682c 8048 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
6a3ab8b1 8049echo "configure:8050: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
903b682c 8050ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
91845ada
VZ
8051if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8052 echo $ac_n "(cached) $ac_c" 1>&6
8053else
8054 ac_save_LIBS="$LIBS"
8055LIBS="-l$THREADS_LINK $LIBS"
8056cat > conftest.$ac_ext <<EOF
6a3ab8b1 8057#line 8058 "configure"
91845ada
VZ
8058#include "confdefs.h"
8059/* Override any gcc2 internal prototype to avoid an error. */
8060/* We use char because int might match the return type of a gcc2
8061 builtin and then its argument prototype would still apply. */
903b682c 8062char pthread_attr_getschedpolicy();
91845ada
VZ
8063
8064int main() {
903b682c 8065pthread_attr_getschedpolicy()
91845ada
VZ
8066; return 0; }
8067EOF
6a3ab8b1 8068if { (eval echo configure:8069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
91845ada
VZ
8069 rm -rf conftest*
8070 eval "ac_cv_lib_$ac_lib_var=yes"
8071else
8072 echo "configure: failed program was:" >&5
8073 cat conftest.$ac_ext >&5
8074 rm -rf conftest*
8075 eval "ac_cv_lib_$ac_lib_var=no"
d18ed59a 8076fi
91845ada
VZ
8077rm -f conftest*
8078LIBS="$ac_save_LIBS"
d18ed59a 8079
bcf1fa6b 8080fi
91845ada
VZ
8081if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8082 echo "$ac_t""yes" 1>&6
8083 cat >> confdefs.h <<\EOF
8084#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
8085EOF
bcf1fa6b 8086
91845ada
VZ
8087else
8088 echo "$ac_t""no" 1>&6
903b682c 8089echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
6a3ab8b1 8090echo "configure:8091: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
903b682c 8091ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
91845ada
VZ
8092if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8093 echo $ac_n "(cached) $ac_c" 1>&6
8094else
8095 ac_save_LIBS="$LIBS"
8096LIBS="-l"posix4" $LIBS"
8097cat > conftest.$ac_ext <<EOF
6a3ab8b1 8098#line 8099 "configure"
91845ada
VZ
8099#include "confdefs.h"
8100/* Override any gcc2 internal prototype to avoid an error. */
8101/* We use char because int might match the return type of a gcc2
8102 builtin and then its argument prototype would still apply. */
903b682c 8103char pthread_attr_getschedpolicy();
91845ada
VZ
8104
8105int main() {
903b682c 8106pthread_attr_getschedpolicy()
91845ada
VZ
8107; return 0; }
8108EOF
6a3ab8b1 8109if { (eval echo configure:8110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
91845ada
VZ
8110 rm -rf conftest*
8111 eval "ac_cv_lib_$ac_lib_var=yes"
8112else
8113 echo "configure: failed program was:" >&5
8114 cat conftest.$ac_ext >&5
8115 rm -rf conftest*
8116 eval "ac_cv_lib_$ac_lib_var=no"
8117fi
8118rm -f conftest*
8119LIBS="$ac_save_LIBS"
8120
8121fi
8122if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8123 echo "$ac_t""yes" 1>&6
8124 cat >> confdefs.h <<\EOF
8125#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
8126EOF
80cb83be 8127 POSIX4_LINK="-lposix4"
91845ada
VZ
8128else
8129 echo "$ac_t""no" 1>&6
8130echo "configure: warning: Setting thread priority will not work" 1>&2
8131
8132fi
8133
8134
8135fi
8136
8137
8138 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
6a3ab8b1 8139echo "configure:8140: checking for pthread_cancel in -l$THREADS_LINK" >&5
91845ada
VZ
8140ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
8141if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8142 echo $ac_n "(cached) $ac_c" 1>&6
8143else
8144 ac_save_LIBS="$LIBS"
8145LIBS="-l$THREADS_LINK $LIBS"
8146cat > conftest.$ac_ext <<EOF
6a3ab8b1 8147#line 8148 "configure"
91845ada
VZ
8148#include "confdefs.h"
8149/* Override any gcc2 internal prototype to avoid an error. */
8150/* We use char because int might match the return type of a gcc2
8151 builtin and then its argument prototype would still apply. */
8152char pthread_cancel();
8153
8154int main() {
8155pthread_cancel()
8156; return 0; }
8157EOF
6a3ab8b1 8158if { (eval echo configure:8159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
91845ada
VZ
8159 rm -rf conftest*
8160 eval "ac_cv_lib_$ac_lib_var=yes"
8161else
8162 echo "configure: failed program was:" >&5
8163 cat conftest.$ac_ext >&5
8164 rm -rf conftest*
8165 eval "ac_cv_lib_$ac_lib_var=no"
8166fi
8167rm -f conftest*
8168LIBS="$ac_save_LIBS"
8169
8170fi
8171if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8172 echo "$ac_t""yes" 1>&6
8173 cat >> confdefs.h <<\EOF
8174#define HAVE_PTHREAD_CANCEL 1
8175EOF
8176
8177else
8178 echo "$ac_t""no" 1>&6
8179echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
8180fi
8181
8182
80cb83be 8183 THREADS_LINK="-l$THREADS_LINK"
91845ada 8184fi
bcf1fa6b
RR
8185
8186
bcf1fa6b
RR
8187
8188
8189
80cb83be 8190
bcf1fa6b
RR
8191PICFLAGS=
8192CREATE_SHARED=
8193case "${canonical}" in
bcf1fa6b 8194 *-hp-hpux* )
7cacdad3 8195 if test "$GCC" != "yes" ; then
bcf1fa6b
RR
8196 CXXFLAGS="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE"
8197 CFLAGS="${CFLAGS} -z -D_HPUX_SOURCE"
8198 PICFLAGS="+z"
8199 else
8200 PICFLAGS="-fPIC"
8201 fi
8202 LDFLAGS="-Wl,+s"
8203 CREATE_SHARED=sharedHpux
8204 ;;
8205
8206 *-*-linux* )
8207 PICFLAGS=-fPIC
8208 CREATE_SHARED=sharedLinux
8209 ;;
8210
c2933500 8211 *-*-irix5* | *-*-irix6* )
bcf1fa6b
RR
8212 # PICFLAGS can remain empty, as pic is the default
8213 LDFLAGS="-Wl,+s"
8214 CREATE_SHARED=sharedIrix
8215 cat >> confdefs.h <<\EOF
8216#define SVR4 1
8217EOF
8218
8219 ;;
8220
c2933500 8221 *-*-solaris2* )
7cacdad3 8222 if test "$GCC" != "yes" ; then
bcf1fa6b
RR
8223 PICFLAGS="-KPIC"
8224 else
8225 PICFLAGS="-fPIC"
8226 fi
8227 CREATE_SHARED=sharedSolaris2
8228 cat >> confdefs.h <<\EOF
8229#define SVR4 1
8230EOF
8231
8232 ;;
8233
c2933500 8234 *-*-sunos4* )
7cacdad3 8235 if test "$GCC" != "yes" ; then
bcf1fa6b
RR
8236 PICFLAGS="-PIC"
8237 else
8238 PICFLAGS="-fPIC"
8239 fi
8240 LDFLAGS="-Wl,+s"
8241 CREATE_SHARED=sharedSunos4
8242 cat >> confdefs.h <<\EOF
8243#define BSD 1
8244EOF
8245
8246 ;;
8247
8248 *-*-freebsd* | *-*-netbsd*)
8249 PICFLAGS=-fPIC
8250 CREATE_SHARED=sharedBsd
8251 cat >> confdefs.h <<\EOF
8252#define BSD 1
8253EOF
8254
8255 ;;
8256
c2933500 8257 *-*-osf* )
bcf1fa6b
RR
8258 PICFLAGS="-fPIC"
8259 CREATE_SHARED=sharedOSF
8260 ;;
8261
c2933500 8262 *-*-dgux5* )
7cacdad3 8263 if test "$GCC" != "yes" ; then
bcf1fa6b
RR
8264 PICFLAGS="-K PIC"
8265 else
8266 PICFLAGS="-fPIC"
8267 fi
8268 CREATE_SHARED=sharedDgux
8269 cat >> confdefs.h <<\EOF
8270#define SVR4 1
8271EOF
8272
8273 ;;
8274
c2933500 8275 *-*-sysv5* )
7cacdad3 8276 if test "$GCC" != "yes" ; then
bcf1fa6b
RR
8277 PICFLAGS="-K PIC"
8278 else
8279 PICFLAGS="-fPIC"
8280 fi
8281 CREATE_SHARED=sharedSysV
8282 cat >> confdefs.h <<\EOF
8283#define SVR4 1
8284EOF
8285
8286 ;;
8287
c2933500 8288 *-*-aix* )
7cacdad3 8289 if test "$GCC" != "yes" ; then
bcf1fa6b
RR
8290 PICFLAGS="-bM\:SRE"
8291 else
2d45abf1 8292 PICFLAGS="-fPIC -D__SYSV__"
bcf1fa6b
RR
8293 fi
8294 CREATE_SHARED=sharedAIX
8295 cat >> confdefs.h <<\EOF
8296#define SYSV 1
8297EOF
8298
8299 ;;
8300
8301 *)
8302 CREATE_SHARED=
8303 PICFLAGS=
8304esac
8305
8306if test "x$GCC" = xyes; then
cd5bf2a6 8307 CFLAGS="${CFLAGS} -Wall -Wno-unused -Wno-uninitialized -D_REENTRANT -DLEX_SCANNER -DHAVE_LIBDL"
bcf1fa6b
RR
8308fi
8309
8310if test "x$GXX" = xyes; then
f6c6dd8c 8311 if test "$wxUSE_MOTIF" = 1; then
06f46ad1 8312 CXXFLAGS="${CXXFLAGS} -Wall -Wno-unused -D_REENTRANT"
f6c6dd8c 8313 else
06f46ad1 8314 CXXFLAGS="${CXXFLAGS} -Wall -D_REENTRANT"
f6c6dd8c 8315 fi
bcf1fa6b
RR
8316fi
8317
8248314d 8318if test "$wxUSE_SHARED" != 1; then
bcf1fa6b
RR
8319 CREATE_SHARED=
8320 PICFLAGS=
8321fi
8322
8323
8324
8325
8326
8327
8328echo $OS >> system.list
8329
6442ad7f
VZ
8330TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
8331
bcf1fa6b
RR
8332
8333trap '' 1 2 15
8334cat > confcache <<\EOF
8335# This file is a shell script that caches the results of configure
8336# tests run on this system so they can be shared between configure
8337# scripts and configure runs. It is not useful on other systems.
8338# If it contains results you don't want to keep, you may remove or edit it.
8339#
8340# By default, configure uses ./config.cache as the cache file,
8341# creating it if it does not exist already. You can give configure
8342# the --cache-file=FILE option to use a different cache file; that is
8343# what configure does when it calls configure scripts in
8344# subdirectories, so they share the cache.
8345# Giving --cache-file=/dev/null disables caching, for debugging configure.
8346# config.status only pays attention to the cache file if you give it the
8347# --recheck option to rerun configure.
8348#
8349EOF
8350# The following way of writing the cache mishandles newlines in values,
8351# but we know of no workaround that is simple, portable, and efficient.
8352# So, don't put newlines in cache variables' values.
8353# Ultrix sh set writes to stderr and can't be redirected directly,
8354# and sets the high bit in the cache file unless we assign to the vars.
8355(set) 2>&1 |
6a3ab8b1 8356 case `(ac_space=' '; set) 2>&1` in
bcf1fa6b
RR
8357 *ac_space=\ *)
8358 # `set' does not quote correctly, so add quotes (double-quote substitution
8359 # turns \\\\ into \\, and sed turns \\ into \).
8360 sed -n \
8361 -e "s/'/'\\\\''/g" \
8362 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8363 ;;
8364 *)
8365 # `set' quotes correctly as required by POSIX, so do not add quotes.
8366 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8367 ;;
8368 esac >> confcache
8369if cmp -s $cache_file confcache; then
8370 :
8371else
8372 if test -w $cache_file; then
8373 echo "updating cache $cache_file"
8374 cat confcache > $cache_file
8375 else
8376 echo "not updating unwritable cache $cache_file"
8377 fi
8378fi
8379rm -f confcache
8380
8381trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8382
8383test "x$prefix" = xNONE && prefix=$ac_default_prefix
8384# Let make expand exec_prefix.
8385test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8386
8387# Any assignment to VPATH causes Sun make to only execute
8388# the first set of double-colon rules, so remove it if not needed.
8389# If there is a colon in the path, we need to keep it.
8390if test "x$srcdir" = x.; then
8391 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8392fi
8393
8394trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8395
8396DEFS=-DHAVE_CONFIG_H
8397
8398# Without the "./", some shells look in PATH for config.status.
8399: ${CONFIG_STATUS=./config.status}
8400
8401echo creating $CONFIG_STATUS
8402rm -f $CONFIG_STATUS
8403cat > $CONFIG_STATUS <<EOF
8404#! /bin/sh
8405# Generated automatically by configure.
8406# Run this file to recreate the current configuration.
8407# This directory was configured as follows,
8408# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8409#
8410# $0 $ac_configure_args
8411#
8412# Compiler output produced by configure, useful for debugging
8413# configure, is in ./config.log if it exists.
8414
8415ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8416for ac_option
8417do
8418 case "\$ac_option" in
8419 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8420 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8421 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8422 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6a3ab8b1 8423 echo "$CONFIG_STATUS generated by autoconf version 2.12"
bcf1fa6b
RR
8424 exit 0 ;;
8425 -help | --help | --hel | --he | --h)
8426 echo "\$ac_cs_usage"; exit 0 ;;
8427 *) echo "\$ac_cs_usage"; exit 1 ;;
8428 esac
8429done
8430
8431ac_given_srcdir=$srcdir
8432ac_given_INSTALL="$INSTALL"
8433
6442ad7f 8434trap '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
8435EOF
8436cat >> $CONFIG_STATUS <<EOF
8437
8438# Protect against being on the right side of a sed subst in config.status.
8439sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8440 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8441$ac_vpsub
8442$extrasub
8443s%@CFLAGS@%$CFLAGS%g
8444s%@CPPFLAGS@%$CPPFLAGS%g
8445s%@CXXFLAGS@%$CXXFLAGS%g
8446s%@DEFS@%$DEFS%g
8447s%@LDFLAGS@%$LDFLAGS%g
8448s%@LIBS@%$LIBS%g
8449s%@exec_prefix@%$exec_prefix%g
8450s%@prefix@%$prefix%g
8451s%@program_transform_name@%$program_transform_name%g
8452s%@bindir@%$bindir%g
8453s%@sbindir@%$sbindir%g
8454s%@libexecdir@%$libexecdir%g
8455s%@datadir@%$datadir%g
8456s%@sysconfdir@%$sysconfdir%g
8457s%@sharedstatedir@%$sharedstatedir%g
8458s%@localstatedir@%$localstatedir%g
8459s%@libdir@%$libdir%g
8460s%@includedir@%$includedir%g
8461s%@oldincludedir@%$oldincludedir%g
8462s%@infodir@%$infodir%g
8463s%@mandir@%$mandir%g
8464s%@WXBASEDIR@%$WXBASEDIR%g
8465s%@CC@%$CC%g
8466s%@CPP@%$CPP%g
8467s%@CXX@%$CXX%g
8468s%@CXXCPP@%$CXXCPP%g
8469s%@RANLIB@%$RANLIB%g
8470s%@AR@%$AR%g
8471s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8472s%@INSTALL_DATA@%$INSTALL_DATA%g
8473s%@LN_S@%$LN_S%g
8474s%@AWK@%$AWK%g
5f0f31fe 8475s%@STRIP@%$STRIP%g
bcf1fa6b
RR
8476s%@X_CFLAGS@%$X_CFLAGS%g
8477s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8478s%@X_LIBS@%$X_LIBS%g
8479s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8480s%@GTK_JOYSTICK@%$GTK_JOYSTICK%g
6a3ab8b1 8481s%@WCHAR_LINK@%$WCHAR_LINK%g
bcf1fa6b
RR
8482s%@LIBOBJS@%$LIBOBJS%g
8483s%@YACC@%$YACC%g
8484s%@LEX@%$LEX%g
8485s%@LEXLIB@%$LEXLIB%g
8486s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
cd5bf2a6 8487s%@DL_LIBRARY@%$DL_LIBRARY%g
bcf1fa6b
RR
8488s%@host@%$host%g
8489s%@host_alias@%$host_alias%g
8490s%@host_cpu@%$host_cpu%g
8491s%@host_vendor@%$host_vendor%g
8492s%@host_os@%$host_os%g
8493s%@GTK_CONFIG@%$GTK_CONFIG%g
8494s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8495s%@GTK_LIBS@%$GTK_LIBS%g
8496s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g
8497s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g
8498s%@GUI_TK_LINK@%$GUI_TK_LINK%g
76153302 8499s%@WX_LINK@%$WX_LINK%g
bcf1fa6b
RR
8500s%@TOOLKIT@%$TOOLKIT%g
8501s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
8502s%@MAKEINCLUDE@%$MAKEINCLUDE%g
8503s%@WXDEBUG@%$WXDEBUG%g
8504s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
8505s%@EXTRA_LINK@%$EXTRA_LINK%g
8506s%@PROFILE@%$PROFILE%g
8507s%@OPTIMISE@%$OPTIMISE%g
ac57418f
RR
8508s%@Z_C_SRC@%$Z_C_SRC%g
8509s%@PNG_C_SRC@%$PNG_C_SRC%g
e1929140 8510s%@JPEG_C_SRC@%$JPEG_C_SRC%g
2fff5f08 8511s%@JPEG_LINK@%$JPEG_LINK%g
84b46c35 8512s%@IODBC_C_SRC@%$IODBC_C_SRC%g
bcf1fa6b 8513s%@HELP@%$HELP%g
bcf1fa6b
RR
8514s%@UNIX_THREAD@%$UNIX_THREAD%g
8515s%@THREADS_LINK@%$THREADS_LINK%g
80cb83be 8516s%@POSIX4_LINK@%$POSIX4_LINK%g
bcf1fa6b
RR
8517s%@OS@%$OS%g
8518s%@PICFLAGS@%$PICFLAGS%g
8519s%@CREATE_SHARED@%$CREATE_SHARED%g
8520
8521CEOF
8522EOF
8523
8524cat >> $CONFIG_STATUS <<\EOF
8525
8526# Split the substitutions into bite-sized pieces for seds with
8527# small command number limits, like on Digital OSF/1 and HP-UX.
8528ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8529ac_file=1 # Number of current file.
8530ac_beg=1 # First line for current file.
8531ac_end=$ac_max_sed_cmds # Line after last line for current file.
8532ac_more_lines=:
8533ac_sed_cmds=""
8534while $ac_more_lines; do
8535 if test $ac_beg -gt 1; then
8536 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8537 else
8538 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8539 fi
8540 if test ! -s conftest.s$ac_file; then
8541 ac_more_lines=false
8542 rm -f conftest.s$ac_file
8543 else
8544 if test -z "$ac_sed_cmds"; then
8545 ac_sed_cmds="sed -f conftest.s$ac_file"
8546 else
8547 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8548 fi
8549 ac_file=`expr $ac_file + 1`
8550 ac_beg=$ac_end
8551 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8552 fi
8553done
8554if test -z "$ac_sed_cmds"; then
8555 ac_sed_cmds=cat
8556fi
8557EOF
8558
8559cat >> $CONFIG_STATUS <<EOF
8560
f3cb6592 8561CONFIG_FILES=\${CONFIG_FILES-"./setup/substit ./wx-config:./wx-config.in"}
bcf1fa6b
RR
8562EOF
8563cat >> $CONFIG_STATUS <<\EOF
8564for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8565 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8566 case "$ac_file" in
8567 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8568 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8569 *) ac_file_in="${ac_file}.in" ;;
8570 esac
8571
8572 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8573
8574 # Remove last slash and all that follows it. Not all systems have dirname.
8575 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8576 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8577 # The file is in a subdirectory.
8578 test ! -d "$ac_dir" && mkdir "$ac_dir"
8579 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8580 # A "../" for each directory in $ac_dir_suffix.
8581 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8582 else
8583 ac_dir_suffix= ac_dots=
8584 fi
8585
8586 case "$ac_given_srcdir" in
8587 .) srcdir=.
8588 if test -z "$ac_dots"; then top_srcdir=.
8589 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8590 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8591 *) # Relative path.
8592 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8593 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8594 esac
8595
8596 case "$ac_given_INSTALL" in
8597 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8598 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8599 esac
8600
8601 echo creating "$ac_file"
8602 rm -f "$ac_file"
8603 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8604 case "$ac_file" in
8605 *Makefile*) ac_comsub="1i\\
8606# $configure_input" ;;
8607 *) ac_comsub= ;;
8608 esac
8609
8610 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8611 sed -e "$ac_comsub
8612s%@configure_input@%$configure_input%g
8613s%@srcdir@%$srcdir%g
8614s%@top_srcdir@%$top_srcdir%g
8615s%@INSTALL@%$INSTALL%g
8616" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8617fi; done
8618rm -f conftest.s*
8619
8620# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8621# NAME is the cpp macro being defined and VALUE is the value it is being given.
8622#
8623# ac_d sets the value in "#define NAME VALUE" lines.
8624ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8625ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8626ac_dC='\3'
8627ac_dD='%g'
8628# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8629ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8630ac_uB='\([ ]\)%\1#\2define\3'
8631ac_uC=' '
8632ac_uD='\4%g'
8633# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8634ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8635ac_eB='$%\1#\2define\3'
8636ac_eC=' '
8637ac_eD='%g'
8638
8639if test "${CONFIG_HEADERS+set}" != set; then
8640EOF
8641cat >> $CONFIG_STATUS <<EOF
6442ad7f 8642 CONFIG_HEADERS="./include/wx/${TOOLKIT_DIR}/setup.h:./setup/setup.hin"
bcf1fa6b
RR
8643EOF
8644cat >> $CONFIG_STATUS <<\EOF
8645fi
8646for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8647 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8648 case "$ac_file" in
8649 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8650 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8651 *) ac_file_in="${ac_file}.in" ;;
8652 esac
8653
8654 echo creating $ac_file
8655
8656 rm -f conftest.frag conftest.in conftest.out
8657 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8658 cat $ac_file_inputs > conftest.in
8659
8660EOF
8661
8662# Transform confdefs.h into a sed script conftest.vals that substitutes
8663# the proper values into config.h.in to produce config.h. And first:
8664# Protect against being on the right side of a sed subst in config.status.
8665# Protect against being in an unquoted here document in config.status.
8666rm -f conftest.vals
8667cat > conftest.hdr <<\EOF
8668s/[\\&%]/\\&/g
8669s%[\\$`]%\\&%g
8670s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8671s%ac_d%ac_u%gp
8672s%ac_u%ac_e%gp
8673EOF
8674sed -n -f conftest.hdr confdefs.h > conftest.vals
8675rm -f conftest.hdr
8676
8677# This sed command replaces #undef with comments. This is necessary, for
8678# example, in the case of _POSIX_SOURCE, which is predefined and required
8679# on some systems where configure will not decide to define it.
8680cat >> conftest.vals <<\EOF
8681s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8682EOF
8683
8684# Break up conftest.vals because some shells have a limit on
8685# the size of here documents, and old seds have small limits too.
8686
8687rm -f conftest.tail
8688while :
8689do
8690 ac_lines=`grep -c . conftest.vals`
8691 # grep -c gives empty output for an empty file on some AIX systems.
8692 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8693 # Write a limited-size here document to conftest.frag.
8694 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8695 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8696 echo 'CEOF
8697 sed -f conftest.frag conftest.in > conftest.out
8698 rm -f conftest.in
8699 mv conftest.out conftest.in
8700' >> $CONFIG_STATUS
8701 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8702 rm -f conftest.vals
8703 mv conftest.tail conftest.vals
8704done
8705rm -f conftest.vals
8706
8707cat >> $CONFIG_STATUS <<\EOF
8708 rm -f conftest.frag conftest.h
8709 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8710 cat conftest.in >> conftest.h
8711 rm -f conftest.in
8712 if cmp -s $ac_file conftest.h 2>/dev/null; then
8713 echo "$ac_file is unchanged"
8714 rm -f conftest.h
8715 else
8716 # Remove last slash and all that follows it. Not all systems have dirname.
8717 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8718 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8719 # The file is in a subdirectory.
8720 test ! -d "$ac_dir" && mkdir "$ac_dir"
8721 fi
8722 rm -f $ac_file
8723 mv conftest.h $ac_file
8724 fi
8725fi; done
8726
8727EOF
8728cat >> $CONFIG_STATUS <<EOF
8729
8730EOF
8731cat >> $CONFIG_STATUS <<\EOF
8732./setup/general/createall
8733exit 0
8734EOF
8735chmod +x $CONFIG_STATUS
8736rm -fr confdefs* $ac_clean_files
8737test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8738
8739
8740
8741mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache
8742
518b5d2f 8743