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