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