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