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