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