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