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