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