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