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