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