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