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