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