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