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