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