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