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