]>
Commit | Line | Data |
---|---|---|
c801d85f KB |
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" | |
bdc6fff9 GL |
16 | ac_help="$ac_help |
17 | --without-threads Force disabling threads " | |
c801d85f KB |
18 | ac_help="$ac_help |
19 | **--with-shared create shared libraries" | |
20 | ac_help="$ac_help | |
c0392997 | 21 | **--with-optimise create optimised code" |
c801d85f | 22 | ac_help="$ac_help |
4acbf245 | 23 | **--with-debug_flag create code with WXDEBUG define set to 1" |
c801d85f KB |
24 | ac_help="$ac_help |
25 | **--with-debug_info create code with debuging information included" | |
26 | ac_help="$ac_help | |
27 | **--with-mem_traing create code with memory tracing" | |
28 | ac_help="$ac_help | |
29 | **--with-profile create code with profiling information included" | |
30 | ac_help="$ac_help | |
cf447356 | 31 | **--with-zlib use zlib (LZW comression)" |
c801d85f | 32 | ac_help="$ac_help |
cf447356 | 33 | **--with-gdk_imlib use Raster's gdk_imlib (Image library)" |
c801d85f | 34 | ac_help="$ac_help |
cf447356 | 35 | **--with-libpng use libpng (PNG image format)" |
c801d85f | 36 | ac_help="$ac_help |
cf447356 | 37 | **--with-opengl use opengl (OpenGL or Mesa)" |
c801d85f | 38 | ac_help="$ac_help |
595bcfe9 | 39 | **--with_apple_ieee use the Apple IEEE codec" |
c801d85f | 40 | ac_help="$ac_help |
cf447356 GL |
41 | **--with-storable use storable classes" |
42 | ac_help="$ac_help | |
43 | **--with-autotrans use gettext automatic translation" | |
c801d85f KB |
44 | ac_help="$ac_help |
45 | **--with-afmfonts use Adobe Font Metric Font table" | |
46 | ac_help="$ac_help | |
47 | **--with-PS-normalized use normalized PS fonts" | |
48 | ac_help="$ac_help | |
49 | **--with-rpc use RPC" | |
50 | ac_help="$ac_help | |
51 | **--with-wxresources use wxresources" | |
52 | ac_help="$ac_help | |
53 | **--with-prologio use prologio" | |
54 | ac_help="$ac_help | |
55 | **--with-postscript use postscript-device-context" | |
56 | ac_help="$ac_help | |
53b28675 RR |
57 | **--with-wxconfig use wxconfig" |
58 | ac_help="$ac_help | |
c801d85f KB |
59 | **--with-metafile use metafile" |
60 | ac_help="$ac_help | |
61 | **--with-form use form" | |
62 | ac_help="$ac_help | |
63 | **--with-help use help" | |
64 | ac_help="$ac_help | |
65 | **--with-ipc use ipc" | |
66 | ac_help="$ac_help | |
67 | **--with-enhanceddialog use enhanced dialog" | |
68 | ac_help="$ac_help | |
69 | **--with-resources use resources" | |
70 | ac_help="$ac_help | |
71 | **--with-clipboard use clipboard" | |
72 | ac_help="$ac_help | |
73 | **--with-timedate use timedate" | |
74 | ac_help="$ac_help | |
75 | **--with-fraction use fraction" | |
76 | ac_help="$ac_help | |
77 | **--with-constraints use constraints" | |
78 | ac_help="$ac_help | |
79 | **--with-toolbar use toolbar" | |
80 | ac_help="$ac_help | |
81 | **--with-gauge use gauge" | |
82 | ac_help="$ac_help | |
83 | **--with-vlbox use virtual list box" | |
84 | ac_help="$ac_help | |
85 | **--with-scrollbar use scrollbar" | |
86 | ac_help="$ac_help | |
87 | **--with-docview use document view architecture" | |
88 | ac_help="$ac_help | |
89 | **--with-printarch use printing architecture" | |
90 | ac_help="$ac_help | |
91 | **--with-typetree use typetree" | |
92 | ac_help="$ac_help | |
93 | **--with-wxgraph use wxgraph" | |
94 | ac_help="$ac_help | |
95 | **--with-wxtree use wxtree" | |
96 | ac_help="$ac_help | |
97 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
98 | ac_help="$ac_help | |
99 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
100 | ||
101 | # Initialize some variables set by options. | |
102 | # The variables have the same names as the options, with | |
103 | # dashes changed to underlines. | |
104 | build=NONE | |
105 | cache_file=./config.cache | |
106 | exec_prefix=NONE | |
107 | host=NONE | |
108 | no_create= | |
109 | nonopt=NONE | |
110 | no_recursion= | |
111 | prefix=NONE | |
112 | program_prefix=NONE | |
113 | program_suffix=NONE | |
114 | program_transform_name=s,x,x, | |
115 | silent= | |
116 | site= | |
117 | srcdir= | |
118 | target=NONE | |
119 | verbose= | |
120 | x_includes=NONE | |
121 | x_libraries=NONE | |
122 | bindir='${exec_prefix}/bin' | |
123 | sbindir='${exec_prefix}/sbin' | |
124 | libexecdir='${exec_prefix}/libexec' | |
125 | datadir='${prefix}/share' | |
126 | sysconfdir='${prefix}/etc' | |
127 | sharedstatedir='${prefix}/com' | |
128 | localstatedir='${prefix}/var' | |
129 | libdir='${exec_prefix}/lib' | |
130 | includedir='${prefix}/include' | |
131 | oldincludedir='/usr/include' | |
132 | infodir='${prefix}/info' | |
133 | mandir='${prefix}/man' | |
134 | ||
135 | # Initialize some other variables. | |
136 | subdirs= | |
137 | MFLAGS= MAKEFLAGS= | |
138 | # Maximum number of lines to put in a shell here document. | |
139 | ac_max_here_lines=12 | |
140 | ||
141 | ac_prev= | |
142 | for ac_option | |
143 | do | |
144 | ||
145 | # If the previous option needs an argument, assign it. | |
146 | if test -n "$ac_prev"; then | |
147 | eval "$ac_prev=\$ac_option" | |
148 | ac_prev= | |
149 | continue | |
150 | fi | |
151 | ||
152 | case "$ac_option" in | |
153 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
154 | *) ac_optarg= ;; | |
155 | esac | |
156 | ||
157 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
158 | ||
159 | case "$ac_option" in | |
160 | ||
161 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
162 | ac_prev=bindir ;; | |
163 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
164 | bindir="$ac_optarg" ;; | |
165 | ||
166 | -build | --build | --buil | --bui | --bu) | |
167 | ac_prev=build ;; | |
168 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
169 | build="$ac_optarg" ;; | |
170 | ||
171 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
172 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
173 | ac_prev=cache_file ;; | |
174 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
175 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
176 | cache_file="$ac_optarg" ;; | |
177 | ||
178 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
179 | ac_prev=datadir ;; | |
180 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
181 | | --da=*) | |
182 | datadir="$ac_optarg" ;; | |
183 | ||
184 | -disable-* | --disable-*) | |
185 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
186 | # Reject names that are not valid shell variable names. | |
187 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
188 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
189 | fi | |
190 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
191 | eval "enable_${ac_feature}=no" ;; | |
192 | ||
193 | -enable-* | --enable-*) | |
194 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
195 | # Reject names that are not valid shell variable names. | |
196 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
197 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
198 | fi | |
199 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
200 | case "$ac_option" in | |
201 | *=*) ;; | |
202 | *) ac_optarg=yes ;; | |
203 | esac | |
204 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
205 | ||
206 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
207 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
208 | | --exec | --exe | --ex) | |
209 | ac_prev=exec_prefix ;; | |
210 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
211 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
212 | | --exec=* | --exe=* | --ex=*) | |
213 | exec_prefix="$ac_optarg" ;; | |
214 | ||
215 | -gas | --gas | --ga | --g) | |
216 | # Obsolete; use --with-gas. | |
217 | with_gas=yes ;; | |
218 | ||
219 | -help | --help | --hel | --he) | |
220 | # Omit some internal or obsolete options to make the list less imposing. | |
221 | # This message is too long to be a string in the A/UX 3.1 sh. | |
222 | cat << EOF | |
223 | Usage: configure [options] [host] | |
224 | Options: [defaults in brackets after descriptions] | |
225 | Configuration: | |
226 | --cache-file=FILE cache test results in FILE | |
227 | --help print this message | |
228 | --no-create do not create output files | |
229 | --quiet, --silent do not print \`checking...' messages | |
230 | --version print the version of autoconf that created configure | |
231 | Directory and file names: | |
232 | --prefix=PREFIX install architecture-independent files in PREFIX | |
233 | [$ac_default_prefix] | |
234 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
235 | [same as prefix] | |
236 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
237 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
238 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
239 | --datadir=DIR read-only architecture-independent data in DIR | |
240 | [PREFIX/share] | |
241 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
242 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
243 | [PREFIX/com] | |
244 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
245 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
246 | --includedir=DIR C header files in DIR [PREFIX/include] | |
247 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
248 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
249 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
250 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
251 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
252 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
253 | --program-transform-name=PROGRAM | |
254 | run sed PROGRAM on installed program names | |
255 | EOF | |
256 | cat << EOF | |
257 | Host type: | |
258 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
259 | --host=HOST configure for HOST [guessed] | |
260 | --target=TARGET configure for TARGET [TARGET=HOST] | |
261 | Features and packages: | |
262 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
263 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
264 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
265 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
266 | --x-includes=DIR X include files are in DIR | |
267 | --x-libraries=DIR X library files are in DIR | |
268 | EOF | |
269 | if test -n "$ac_help"; then | |
270 | echo "--enable and --with options recognized:$ac_help" | |
271 | fi | |
272 | exit 0 ;; | |
273 | ||
274 | -host | --host | --hos | --ho) | |
275 | ac_prev=host ;; | |
276 | -host=* | --host=* | --hos=* | --ho=*) | |
277 | host="$ac_optarg" ;; | |
278 | ||
279 | -includedir | --includedir | --includedi | --included | --include \ | |
280 | | --includ | --inclu | --incl | --inc) | |
281 | ac_prev=includedir ;; | |
282 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
283 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
284 | includedir="$ac_optarg" ;; | |
285 | ||
286 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
287 | ac_prev=infodir ;; | |
288 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
289 | infodir="$ac_optarg" ;; | |
290 | ||
291 | -libdir | --libdir | --libdi | --libd) | |
292 | ac_prev=libdir ;; | |
293 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
294 | libdir="$ac_optarg" ;; | |
295 | ||
296 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
297 | | --libexe | --libex | --libe) | |
298 | ac_prev=libexecdir ;; | |
299 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
300 | | --libexe=* | --libex=* | --libe=*) | |
301 | libexecdir="$ac_optarg" ;; | |
302 | ||
303 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
304 | | --localstate | --localstat | --localsta | --localst \ | |
305 | | --locals | --local | --loca | --loc | --lo) | |
306 | ac_prev=localstatedir ;; | |
307 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
308 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
309 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
310 | localstatedir="$ac_optarg" ;; | |
311 | ||
312 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
313 | ac_prev=mandir ;; | |
314 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
315 | mandir="$ac_optarg" ;; | |
316 | ||
317 | -nfp | --nfp | --nf) | |
318 | # Obsolete; use --without-fp. | |
319 | with_fp=no ;; | |
320 | ||
321 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
322 | | --no-cr | --no-c) | |
323 | no_create=yes ;; | |
324 | ||
325 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
326 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
327 | no_recursion=yes ;; | |
328 | ||
329 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
330 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
331 | | --oldin | --oldi | --old | --ol | --o) | |
332 | ac_prev=oldincludedir ;; | |
333 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
334 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
335 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
336 | oldincludedir="$ac_optarg" ;; | |
337 | ||
338 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
339 | ac_prev=prefix ;; | |
340 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
341 | prefix="$ac_optarg" ;; | |
342 | ||
343 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
344 | | --program-pre | --program-pr | --program-p) | |
345 | ac_prev=program_prefix ;; | |
346 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
347 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
348 | program_prefix="$ac_optarg" ;; | |
349 | ||
350 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
351 | | --program-suf | --program-su | --program-s) | |
352 | ac_prev=program_suffix ;; | |
353 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
354 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
355 | program_suffix="$ac_optarg" ;; | |
356 | ||
357 | -program-transform-name | --program-transform-name \ | |
358 | | --program-transform-nam | --program-transform-na \ | |
359 | | --program-transform-n | --program-transform- \ | |
360 | | --program-transform | --program-transfor \ | |
361 | | --program-transfo | --program-transf \ | |
362 | | --program-trans | --program-tran \ | |
363 | | --progr-tra | --program-tr | --program-t) | |
364 | ac_prev=program_transform_name ;; | |
365 | -program-transform-name=* | --program-transform-name=* \ | |
366 | | --program-transform-nam=* | --program-transform-na=* \ | |
367 | | --program-transform-n=* | --program-transform-=* \ | |
368 | | --program-transform=* | --program-transfor=* \ | |
369 | | --program-transfo=* | --program-transf=* \ | |
370 | | --program-trans=* | --program-tran=* \ | |
371 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
372 | program_transform_name="$ac_optarg" ;; | |
373 | ||
374 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
375 | | -silent | --silent | --silen | --sile | --sil) | |
376 | silent=yes ;; | |
377 | ||
378 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
379 | ac_prev=sbindir ;; | |
380 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
381 | | --sbi=* | --sb=*) | |
382 | sbindir="$ac_optarg" ;; | |
383 | ||
384 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
385 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
386 | | --sharedst | --shareds | --shared | --share | --shar \ | |
387 | | --sha | --sh) | |
388 | ac_prev=sharedstatedir ;; | |
389 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
390 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
391 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
392 | | --sha=* | --sh=*) | |
393 | sharedstatedir="$ac_optarg" ;; | |
394 | ||
395 | -site | --site | --sit) | |
396 | ac_prev=site ;; | |
397 | -site=* | --site=* | --sit=*) | |
398 | site="$ac_optarg" ;; | |
399 | ||
400 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
401 | ac_prev=srcdir ;; | |
402 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
403 | srcdir="$ac_optarg" ;; | |
404 | ||
405 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
406 | | --syscon | --sysco | --sysc | --sys | --sy) | |
407 | ac_prev=sysconfdir ;; | |
408 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
409 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
410 | sysconfdir="$ac_optarg" ;; | |
411 | ||
412 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
413 | ac_prev=target ;; | |
414 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
415 | target="$ac_optarg" ;; | |
416 | ||
417 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
418 | verbose=yes ;; | |
419 | ||
420 | -version | --version | --versio | --versi | --vers) | |
421 | echo "configure generated by autoconf version 2.12" | |
422 | exit 0 ;; | |
423 | ||
424 | -with-* | --with-*) | |
425 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
426 | # Reject names that are not valid shell variable names. | |
427 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
428 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
429 | fi | |
430 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
431 | case "$ac_option" in | |
432 | *=*) ;; | |
433 | *) ac_optarg=yes ;; | |
434 | esac | |
435 | eval "with_${ac_package}='$ac_optarg'" ;; | |
436 | ||
437 | -without-* | --without-*) | |
438 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
439 | # Reject names that are not valid shell variable names. | |
440 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
441 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
442 | fi | |
443 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
444 | eval "with_${ac_package}=no" ;; | |
445 | ||
446 | --x) | |
447 | # Obsolete; use --with-x. | |
448 | with_x=yes ;; | |
449 | ||
450 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
451 | | --x-incl | --x-inc | --x-in | --x-i) | |
452 | ac_prev=x_includes ;; | |
453 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
454 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
455 | x_includes="$ac_optarg" ;; | |
456 | ||
457 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
458 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
459 | ac_prev=x_libraries ;; | |
460 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
461 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
462 | x_libraries="$ac_optarg" ;; | |
463 | ||
464 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
465 | ;; | |
466 | ||
467 | *) | |
468 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
469 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
470 | fi | |
471 | if test "x$nonopt" != xNONE; then | |
472 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
473 | fi | |
474 | nonopt="$ac_option" | |
475 | ;; | |
476 | ||
477 | esac | |
478 | done | |
479 | ||
480 | if test -n "$ac_prev"; then | |
481 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
482 | fi | |
483 | ||
484 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
485 | ||
486 | # File descriptor usage: | |
487 | # 0 standard input | |
488 | # 1 file creation | |
489 | # 2 errors and warnings | |
490 | # 3 some systems may open it to /dev/tty | |
491 | # 4 used on the Kubota Titan | |
492 | # 6 checking for... messages and results | |
493 | # 5 compiler messages saved in config.log | |
494 | if test "$silent" = yes; then | |
495 | exec 6>/dev/null | |
496 | else | |
497 | exec 6>&1 | |
498 | fi | |
499 | exec 5>./config.log | |
500 | ||
501 | echo "\ | |
502 | This file contains any messages produced by compilers while | |
503 | running configure, to aid debugging if configure makes a mistake. | |
504 | " 1>&5 | |
505 | ||
506 | # Strip out --no-create and --no-recursion so they do not pile up. | |
507 | # Also quote any args containing shell metacharacters. | |
508 | ac_configure_args= | |
509 | for ac_arg | |
510 | do | |
511 | case "$ac_arg" in | |
512 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
513 | | --no-cr | --no-c) ;; | |
514 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
515 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
516 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
517 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
518 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
519 | esac | |
520 | done | |
521 | ||
522 | # NLS nuisances. | |
523 | # Only set these to C if already set. These must not be set unconditionally | |
524 | # because not all systems understand e.g. LANG=C (notably SCO). | |
525 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
526 | # Non-C LC_CTYPE values break the ctype check. | |
527 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
528 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
529 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
530 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
531 | ||
532 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
533 | rm -rf conftest* confdefs.h | |
534 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
535 | echo > confdefs.h | |
536 | ||
537 | # A filename unique to this package, relative to the directory that | |
538 | # configure is in, which we can look for to find out if srcdir is correct. | |
539 | ac_unique_file=configure.in | |
540 | ||
541 | # Find the source files, if location was not specified. | |
542 | if test -z "$srcdir"; then | |
543 | ac_srcdir_defaulted=yes | |
544 | # Try the directory containing this script, then its parent. | |
545 | ac_prog=$0 | |
546 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
547 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
548 | srcdir=$ac_confdir | |
549 | if test ! -r $srcdir/$ac_unique_file; then | |
550 | srcdir=.. | |
551 | fi | |
552 | else | |
553 | ac_srcdir_defaulted=no | |
554 | fi | |
555 | if test ! -r $srcdir/$ac_unique_file; then | |
556 | if test "$ac_srcdir_defaulted" = yes; then | |
557 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
558 | else | |
559 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
560 | fi | |
561 | fi | |
562 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
563 | ||
564 | # Prefer explicitly selected file to automatically selected ones. | |
565 | if test -z "$CONFIG_SITE"; then | |
566 | if test "x$prefix" != xNONE; then | |
567 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
568 | else | |
569 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
570 | fi | |
571 | fi | |
572 | for ac_site_file in $CONFIG_SITE; do | |
573 | if test -r "$ac_site_file"; then | |
574 | echo "loading site script $ac_site_file" | |
575 | . "$ac_site_file" | |
576 | fi | |
577 | done | |
578 | ||
579 | if test -r "$cache_file"; then | |
580 | echo "loading cache $cache_file" | |
581 | . $cache_file | |
582 | else | |
583 | echo "creating cache $cache_file" | |
584 | > $cache_file | |
585 | fi | |
586 | ||
587 | ac_ext=c | |
588 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
589 | ac_cpp='$CPP $CPPFLAGS' | |
590 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
591 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
592 | cross_compiling=$ac_cv_prog_cc_cross | |
593 | ||
594 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
595 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
596 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
597 | ac_n= ac_c=' | |
598 | ' ac_t=' ' | |
599 | else | |
600 | ac_n=-n ac_c= ac_t= | |
601 | fi | |
602 | else | |
603 | ac_n= ac_c='\c' ac_t= | |
604 | fi | |
605 | ||
606 | ||
607 | ||
608 | ||
609 | OS="${OSTYPE}" | |
610 | ||
611 | if test "x$OS" = "x"; then | |
612 | UNAME=`uname` | |
613 | { echo "configure: error: "The system variable OS has not been set" | |
614 | "please set is everytime befor compiling on this system" | |
615 | "A good example for this system would be:" | |
616 | "setenv OSTYPE $UNAME for csh as a SHELL" | |
617 | "EXPORT OSTYPE=$UNAME for sh as SHELL" | |
618 | "please set this and restart again." | |
619 | " 1>&2; exit 1; } | |
620 | fi | |
621 | ||
622 | ||
abe1d62e | 623 | cd ../.. |
c801d85f | 624 | WXBASEDIR=`pwd` |
abe1d62e | 625 | cd install/gtk |
c801d85f KB |
626 | |
627 | ||
628 | ||
629 | SEARCH_INCLUDE="\ | |
630 | /usr/Motif1.2/include \ | |
631 | \ | |
632 | /usr/X11R6/include \ | |
633 | /usr/X11R5/include \ | |
634 | /usr/X11R4/include \ | |
635 | \ | |
636 | /usr/include/X11R6 \ | |
637 | /usr/include/X11R5 \ | |
638 | /usr/include/X11R4 \ | |
639 | \ | |
640 | /usr/local/X11R6/include \ | |
641 | /usr/local/X11R5/include \ | |
642 | /usr/local/X11R4/include \ | |
643 | \ | |
644 | /usr/local/include/X11R6 \ | |
645 | /usr/local/include/X11R5 \ | |
646 | /usr/local/include/X11R4 \ | |
647 | \ | |
648 | /usr/X11/include \ | |
649 | /usr/include/X11 \ | |
650 | /usr/local/X11/include \ | |
651 | /usr/local/include/X11 \ | |
652 | \ | |
653 | /usr/X386/include \ | |
654 | /usr/x386/include \ | |
655 | /usr/XFree86/include/X11 \ | |
656 | \ | |
657 | /usr/include \ | |
658 | /usr/local/include \ | |
659 | /usr/local/include/gtk \ | |
660 | /usr/unsupported/include \ | |
661 | /usr/athena/include \ | |
662 | /usr/local/x11r5/include \ | |
663 | /usr/lpp/Xamples/include \ | |
664 | \ | |
665 | /usr/openwin/include \ | |
666 | /usr/openwin/share/include \ | |
667 | " | |
668 | ||
669 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` \ | |
670 | " | |
671 | ||
672 | ||
673 | ||
674 | # Extract the first word of "gcc", so it can be a program name with args. | |
675 | set dummy gcc; ac_word=$2 | |
676 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
cf447356 | 677 | echo "configure:678: checking for $ac_word" >&5 |
c801d85f KB |
678 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
679 | echo $ac_n "(cached) $ac_c" 1>&6 | |
680 | else | |
681 | if test -n "$CC"; then | |
682 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
683 | else | |
684 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
685 | for ac_dir in $PATH; do | |
686 | test -z "$ac_dir" && ac_dir=. | |
687 | if test -f $ac_dir/$ac_word; then | |
688 | ac_cv_prog_CC="gcc" | |
689 | break | |
690 | fi | |
691 | done | |
692 | IFS="$ac_save_ifs" | |
693 | fi | |
694 | fi | |
695 | CC="$ac_cv_prog_CC" | |
696 | if test -n "$CC"; then | |
697 | echo "$ac_t""$CC" 1>&6 | |
698 | else | |
699 | echo "$ac_t""no" 1>&6 | |
700 | fi | |
701 | ||
702 | if test -z "$CC"; then | |
703 | # Extract the first word of "cc", so it can be a program name with args. | |
704 | set dummy cc; ac_word=$2 | |
705 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
cf447356 | 706 | echo "configure:707: checking for $ac_word" >&5 |
c801d85f KB |
707 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
708 | echo $ac_n "(cached) $ac_c" 1>&6 | |
709 | else | |
710 | if test -n "$CC"; then | |
711 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
712 | else | |
713 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
714 | ac_prog_rejected=no | |
715 | for ac_dir in $PATH; do | |
716 | test -z "$ac_dir" && ac_dir=. | |
717 | if test -f $ac_dir/$ac_word; then | |
718 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
719 | ac_prog_rejected=yes | |
720 | continue | |
721 | fi | |
722 | ac_cv_prog_CC="cc" | |
723 | break | |
724 | fi | |
725 | done | |
726 | IFS="$ac_save_ifs" | |
727 | if test $ac_prog_rejected = yes; then | |
728 | # We found a bogon in the path, so make sure we never use it. | |
729 | set dummy $ac_cv_prog_CC | |
730 | shift | |
731 | if test $# -gt 0; then | |
732 | # We chose a different compiler from the bogus one. | |
733 | # However, it has the same basename, so the bogon will be chosen | |
734 | # first if we set CC to just the basename; use the full file name. | |
735 | shift | |
736 | set dummy "$ac_dir/$ac_word" "$@" | |
737 | shift | |
738 | ac_cv_prog_CC="$@" | |
739 | fi | |
740 | fi | |
741 | fi | |
742 | fi | |
743 | CC="$ac_cv_prog_CC" | |
744 | if test -n "$CC"; then | |
745 | echo "$ac_t""$CC" 1>&6 | |
746 | else | |
747 | echo "$ac_t""no" 1>&6 | |
748 | fi | |
749 | ||
750 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
751 | fi | |
752 | ||
753 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
cf447356 | 754 | echo "configure:755: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
c801d85f KB |
755 | |
756 | ac_ext=c | |
757 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
758 | ac_cpp='$CPP $CPPFLAGS' | |
759 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
760 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
761 | cross_compiling=$ac_cv_prog_cc_cross | |
762 | ||
763 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 764 | #line 765 "configure" |
c801d85f KB |
765 | #include "confdefs.h" |
766 | main(){return(0);} | |
767 | EOF | |
cf447356 | 768 | if { (eval echo configure:769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
769 | ac_cv_prog_cc_works=yes |
770 | # If we can't run a trivial program, we are probably using a cross compiler. | |
771 | if (./conftest; exit) 2>/dev/null; then | |
772 | ac_cv_prog_cc_cross=no | |
773 | else | |
774 | ac_cv_prog_cc_cross=yes | |
775 | fi | |
776 | else | |
777 | echo "configure: failed program was:" >&5 | |
778 | cat conftest.$ac_ext >&5 | |
779 | ac_cv_prog_cc_works=no | |
780 | fi | |
781 | rm -fr conftest* | |
782 | ||
783 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
784 | if test $ac_cv_prog_cc_works = no; then | |
785 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
786 | fi | |
787 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
cf447356 | 788 | echo "configure:789: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
c801d85f KB |
789 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
790 | cross_compiling=$ac_cv_prog_cc_cross | |
791 | ||
792 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
cf447356 | 793 | echo "configure:794: checking whether we are using GNU C" >&5 |
c801d85f KB |
794 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
795 | echo $ac_n "(cached) $ac_c" 1>&6 | |
796 | else | |
797 | cat > conftest.c <<EOF | |
798 | #ifdef __GNUC__ | |
799 | yes; | |
800 | #endif | |
801 | EOF | |
cf447356 | 802 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
c801d85f KB |
803 | ac_cv_prog_gcc=yes |
804 | else | |
805 | ac_cv_prog_gcc=no | |
806 | fi | |
807 | fi | |
808 | ||
809 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
810 | ||
811 | if test $ac_cv_prog_gcc = yes; then | |
812 | GCC=yes | |
813 | ac_test_CFLAGS="${CFLAGS+set}" | |
814 | ac_save_CFLAGS="$CFLAGS" | |
815 | CFLAGS= | |
816 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
cf447356 | 817 | echo "configure:818: checking whether ${CC-cc} accepts -g" >&5 |
c801d85f KB |
818 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
819 | echo $ac_n "(cached) $ac_c" 1>&6 | |
820 | else | |
821 | echo 'void f(){}' > conftest.c | |
822 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
823 | ac_cv_prog_cc_g=yes | |
824 | else | |
825 | ac_cv_prog_cc_g=no | |
826 | fi | |
827 | rm -f conftest* | |
828 | ||
829 | fi | |
830 | ||
831 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
832 | if test "$ac_test_CFLAGS" = set; then | |
833 | CFLAGS="$ac_save_CFLAGS" | |
834 | elif test $ac_cv_prog_cc_g = yes; then | |
835 | CFLAGS="-g -O2" | |
836 | else | |
837 | CFLAGS="-O2" | |
838 | fi | |
839 | else | |
840 | GCC= | |
841 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
842 | fi | |
843 | ||
844 | ||
845 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
846 | ||
847 | if test "x$CC" != xcc; then | |
848 | echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6 | |
cf447356 | 849 | echo "configure:850: checking whether $CC and cc understand -c and -o together" >&5 |
c801d85f KB |
850 | else |
851 | echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6 | |
cf447356 | 852 | echo "configure:853: checking whether cc understands -c and -o together" >&5 |
c801d85f KB |
853 | fi |
854 | set dummy $CC; ac_cc="`echo $2 | | |
855 | sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" | |
856 | if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then | |
857 | echo $ac_n "(cached) $ac_c" 1>&6 | |
858 | else | |
859 | echo 'foo(){}' > conftest.c | |
860 | # Make sure it works both with $CC and with simple cc. | |
861 | # We do the test twice because some compilers refuse to overwrite an | |
862 | # existing .o file with -o, though they will create one. | |
863 | ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5' | |
cf447356 GL |
864 | if { (eval echo configure:865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && |
865 | test -f conftest.o && { (eval echo configure:866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; | |
c801d85f KB |
866 | then |
867 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
868 | if test "x$CC" != xcc; then | |
869 | # Test first that cc exists at all. | |
cf447356 | 870 | if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
c801d85f | 871 | ac_try='cc -c conftest.c -o conftest.o 1>&5' |
cf447356 GL |
872 | if { (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && |
873 | test -f conftest.o && { (eval echo configure:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; | |
c801d85f KB |
874 | then |
875 | # cc works too. | |
876 | : | |
877 | else | |
878 | # cc exists but doesn't like -o. | |
879 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
880 | fi | |
881 | fi | |
882 | fi | |
883 | else | |
884 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
885 | fi | |
886 | rm -f conftest* | |
887 | ||
888 | fi | |
889 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then | |
890 | echo "$ac_t""yes" 1>&6 | |
891 | else | |
892 | echo "$ac_t""no" 1>&6 | |
893 | cat >> confdefs.h <<\EOF | |
894 | #define NO_MINUS_C_MINUS_O 1 | |
895 | EOF | |
896 | ||
897 | fi | |
898 | ||
899 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
cf447356 | 900 | echo "configure:901: checking how to run the C preprocessor" >&5 |
c801d85f KB |
901 | # On Suns, sometimes $CPP names a directory. |
902 | if test -n "$CPP" && test -d "$CPP"; then | |
903 | CPP= | |
904 | fi | |
905 | if test -z "$CPP"; then | |
906 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
907 | echo $ac_n "(cached) $ac_c" 1>&6 | |
908 | else | |
909 | # This must be in double quotes, not single quotes, because CPP may get | |
910 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
911 | CPP="${CC-cc} -E" | |
912 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
913 | # not just through cpp. | |
914 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 915 | #line 916 "configure" |
c801d85f KB |
916 | #include "confdefs.h" |
917 | #include <assert.h> | |
918 | Syntax Error | |
919 | EOF | |
920 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cf447356 | 921 | { (eval echo configure:922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
922 | ac_err=`grep -v '^ *+' conftest.out` |
923 | if test -z "$ac_err"; then | |
924 | : | |
925 | else | |
926 | echo "$ac_err" >&5 | |
927 | echo "configure: failed program was:" >&5 | |
928 | cat conftest.$ac_ext >&5 | |
929 | rm -rf conftest* | |
930 | CPP="${CC-cc} -E -traditional-cpp" | |
931 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 932 | #line 933 "configure" |
c801d85f KB |
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" | |
cf447356 | 938 | { (eval echo configure:939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
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=/lib/cpp | |
948 | fi | |
949 | rm -f conftest* | |
950 | fi | |
951 | rm -f conftest* | |
952 | ac_cv_prog_CPP="$CPP" | |
953 | fi | |
954 | CPP="$ac_cv_prog_CPP" | |
955 | else | |
956 | ac_cv_prog_CPP="$CPP" | |
957 | fi | |
958 | echo "$ac_t""$CPP" 1>&6 | |
959 | ||
960 | if test $ac_cv_prog_gcc = yes; then | |
961 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
cf447356 | 962 | echo "configure:963: checking whether ${CC-cc} needs -traditional" >&5 |
c801d85f KB |
963 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
964 | echo $ac_n "(cached) $ac_c" 1>&6 | |
965 | else | |
966 | ac_pattern="Autoconf.*'x'" | |
967 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 968 | #line 969 "configure" |
c801d85f KB |
969 | #include "confdefs.h" |
970 | #include <sgtty.h> | |
971 | Autoconf TIOCGETP | |
972 | EOF | |
973 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
974 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
975 | rm -rf conftest* | |
976 | ac_cv_prog_gcc_traditional=yes | |
977 | else | |
978 | rm -rf conftest* | |
979 | ac_cv_prog_gcc_traditional=no | |
980 | fi | |
981 | rm -f conftest* | |
982 | ||
983 | ||
984 | if test $ac_cv_prog_gcc_traditional = no; then | |
985 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 986 | #line 987 "configure" |
c801d85f KB |
987 | #include "confdefs.h" |
988 | #include <termio.h> | |
989 | Autoconf TCGETA | |
990 | EOF | |
991 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
992 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
993 | rm -rf conftest* | |
994 | ac_cv_prog_gcc_traditional=yes | |
995 | fi | |
996 | rm -f conftest* | |
997 | ||
998 | fi | |
999 | fi | |
1000 | ||
1001 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
1002 | if test $ac_cv_prog_gcc_traditional = yes; then | |
1003 | CC="$CC -traditional" | |
1004 | fi | |
1005 | fi | |
1006 | ||
1007 | ||
1008 | ||
1009 | ||
1010 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ | |
1011 | do | |
1012 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1013 | set dummy $ac_prog; ac_word=$2 | |
1014 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
cf447356 | 1015 | echo "configure:1016: checking for $ac_word" >&5 |
c801d85f KB |
1016 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
1017 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1018 | else | |
1019 | if test -n "$CXX"; then | |
1020 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
1021 | else | |
1022 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1023 | for ac_dir in $PATH; do | |
1024 | test -z "$ac_dir" && ac_dir=. | |
1025 | if test -f $ac_dir/$ac_word; then | |
1026 | ac_cv_prog_CXX="$ac_prog" | |
1027 | break | |
1028 | fi | |
1029 | done | |
1030 | IFS="$ac_save_ifs" | |
1031 | fi | |
1032 | fi | |
1033 | CXX="$ac_cv_prog_CXX" | |
1034 | if test -n "$CXX"; then | |
1035 | echo "$ac_t""$CXX" 1>&6 | |
1036 | else | |
1037 | echo "$ac_t""no" 1>&6 | |
1038 | fi | |
1039 | ||
1040 | test -n "$CXX" && break | |
1041 | done | |
1042 | test -n "$CXX" || CXX="gcc" | |
1043 | ||
1044 | ||
1045 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
cf447356 | 1046 | echo "configure:1047: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
c801d85f KB |
1047 | |
1048 | ac_ext=C | |
1049 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1050 | ac_cpp='$CXXCPP $CPPFLAGS' | |
1051 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1052 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1053 | cross_compiling=$ac_cv_prog_cxx_cross | |
1054 | ||
1055 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 1056 | #line 1057 "configure" |
c801d85f KB |
1057 | #include "confdefs.h" |
1058 | main(){return(0);} | |
1059 | EOF | |
cf447356 | 1060 | if { (eval echo configure:1061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1061 | ac_cv_prog_cxx_works=yes |
1062 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1063 | if (./conftest; exit) 2>/dev/null; then | |
1064 | ac_cv_prog_cxx_cross=no | |
1065 | else | |
1066 | ac_cv_prog_cxx_cross=yes | |
1067 | fi | |
1068 | else | |
1069 | echo "configure: failed program was:" >&5 | |
1070 | cat conftest.$ac_ext >&5 | |
1071 | ac_cv_prog_cxx_works=no | |
1072 | fi | |
1073 | rm -fr conftest* | |
1074 | ac_ext=c | |
1075 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1076 | ac_cpp='$CPP $CPPFLAGS' | |
1077 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1078 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1079 | cross_compiling=$ac_cv_prog_cc_cross | |
1080 | ||
1081 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
1082 | if test $ac_cv_prog_cxx_works = no; then | |
1083 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
1084 | fi | |
1085 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
cf447356 | 1086 | echo "configure:1087: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
c801d85f KB |
1087 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
1088 | cross_compiling=$ac_cv_prog_cxx_cross | |
1089 | ||
1090 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
cf447356 | 1091 | echo "configure:1092: checking whether we are using GNU C++" >&5 |
c801d85f KB |
1092 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
1093 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1094 | else | |
1095 | cat > conftest.C <<EOF | |
1096 | #ifdef __GNUC__ | |
1097 | yes; | |
1098 | #endif | |
1099 | EOF | |
cf447356 | 1100 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
c801d85f KB |
1101 | ac_cv_prog_gxx=yes |
1102 | else | |
1103 | ac_cv_prog_gxx=no | |
1104 | fi | |
1105 | fi | |
1106 | ||
1107 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
1108 | ||
1109 | if test $ac_cv_prog_gxx = yes; then | |
1110 | GXX=yes | |
1111 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
1112 | ac_save_CXXFLAGS="$CXXFLAGS" | |
1113 | CXXFLAGS= | |
1114 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
cf447356 | 1115 | echo "configure:1116: checking whether ${CXX-g++} accepts -g" >&5 |
c801d85f KB |
1116 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
1117 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1118 | else | |
1119 | echo 'void f(){}' > conftest.cc | |
1120 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
1121 | ac_cv_prog_cxx_g=yes | |
1122 | else | |
1123 | ac_cv_prog_cxx_g=no | |
1124 | fi | |
1125 | rm -f conftest* | |
1126 | ||
1127 | fi | |
1128 | ||
1129 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
1130 | if test "$ac_test_CXXFLAGS" = set; then | |
1131 | CXXFLAGS="$ac_save_CXXFLAGS" | |
1132 | elif test $ac_cv_prog_cxx_g = yes; then | |
1133 | CXXFLAGS="-g -O2" | |
1134 | else | |
1135 | CXXFLAGS="-O2" | |
1136 | fi | |
1137 | else | |
1138 | GXX= | |
1139 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" | |
1140 | fi | |
1141 | ||
1142 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
cf447356 | 1143 | echo "configure:1144: checking how to run the C++ preprocessor" >&5 |
c801d85f KB |
1144 | if test -z "$CXXCPP"; then |
1145 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
1146 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1147 | else | |
1148 | ac_ext=C | |
1149 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1150 | ac_cpp='$CXXCPP $CPPFLAGS' | |
1151 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1152 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1153 | cross_compiling=$ac_cv_prog_cxx_cross | |
1154 | CXXCPP="${CXX-g++} -E" | |
1155 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 1156 | #line 1157 "configure" |
c801d85f KB |
1157 | #include "confdefs.h" |
1158 | #include <stdlib.h> | |
1159 | EOF | |
1160 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cf447356 | 1161 | { (eval echo configure:1162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
1162 | ac_err=`grep -v '^ *+' conftest.out` |
1163 | if test -z "$ac_err"; then | |
1164 | : | |
1165 | else | |
1166 | echo "$ac_err" >&5 | |
1167 | echo "configure: failed program was:" >&5 | |
1168 | cat conftest.$ac_ext >&5 | |
1169 | rm -rf conftest* | |
1170 | CXXCPP=/lib/cpp | |
1171 | fi | |
1172 | rm -f conftest* | |
1173 | ac_cv_prog_CXXCPP="$CXXCPP" | |
1174 | ac_ext=c | |
1175 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1176 | ac_cpp='$CPP $CPPFLAGS' | |
1177 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1178 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1179 | cross_compiling=$ac_cv_prog_cc_cross | |
1180 | fi | |
1181 | fi | |
1182 | CXXCPP="$ac_cv_prog_CXXCPP" | |
1183 | echo "$ac_t""$CXXCPP" 1>&6 | |
1184 | ||
1185 | ||
1186 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
1187 | ||
1188 | ||
1189 | ||
1190 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1191 | set dummy ranlib; ac_word=$2 | |
1192 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
cf447356 | 1193 | echo "configure:1194: checking for $ac_word" >&5 |
c801d85f KB |
1194 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1195 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1196 | else | |
1197 | if test -n "$RANLIB"; then | |
1198 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1199 | else | |
1200 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1201 | for ac_dir in $PATH; do | |
1202 | test -z "$ac_dir" && ac_dir=. | |
1203 | if test -f $ac_dir/$ac_word; then | |
1204 | ac_cv_prog_RANLIB="ranlib" | |
1205 | break | |
1206 | fi | |
1207 | done | |
1208 | IFS="$ac_save_ifs" | |
1209 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1210 | fi | |
1211 | fi | |
1212 | RANLIB="$ac_cv_prog_RANLIB" | |
1213 | if test -n "$RANLIB"; then | |
1214 | echo "$ac_t""$RANLIB" 1>&6 | |
1215 | else | |
1216 | echo "$ac_t""no" 1>&6 | |
1217 | fi | |
1218 | ||
1219 | ||
1220 | # Extract the first word of "ar", so it can be a program name with args. | |
1221 | set dummy ar; ac_word=$2 | |
1222 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
cf447356 | 1223 | echo "configure:1224: checking for $ac_word" >&5 |
c801d85f KB |
1224 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
1225 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1226 | else | |
1227 | if test -n "$AR"; then | |
1228 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
1229 | else | |
1230 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1231 | for ac_dir in $PATH; do | |
1232 | test -z "$ac_dir" && ac_dir=. | |
1233 | if test -f $ac_dir/$ac_word; then | |
1234 | ac_cv_prog_AR="ar" | |
1235 | break | |
1236 | fi | |
1237 | done | |
1238 | IFS="$ac_save_ifs" | |
1239 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
1240 | fi | |
1241 | fi | |
1242 | AR="$ac_cv_prog_AR" | |
1243 | if test -n "$AR"; then | |
1244 | echo "$ac_t""$AR" 1>&6 | |
1245 | else | |
1246 | echo "$ac_t""no" 1>&6 | |
1247 | fi | |
1248 | ||
1249 | ||
1250 | ac_aux_dir= | |
1251 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1252 | if test -f $ac_dir/install-sh; then | |
1253 | ac_aux_dir=$ac_dir | |
1254 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1255 | break | |
1256 | elif test -f $ac_dir/install.sh; then | |
1257 | ac_aux_dir=$ac_dir | |
1258 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1259 | break | |
1260 | fi | |
1261 | done | |
1262 | if test -z "$ac_aux_dir"; then | |
1263 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
1264 | fi | |
1265 | ac_config_guess=$ac_aux_dir/config.guess | |
1266 | ac_config_sub=$ac_aux_dir/config.sub | |
1267 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
1268 | ||
1269 | # Find a good install program. We prefer a C program (faster), | |
1270 | # so one script is as good as another. But avoid the broken or | |
1271 | # incompatible versions: | |
1272 | # SysV /etc/install, /usr/sbin/install | |
1273 | # SunOS /usr/etc/install | |
1274 | # IRIX /sbin/install | |
1275 | # AIX /bin/install | |
1276 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1277 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1278 | # ./install, which can be erroneously created by make from ./install.sh. | |
1279 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
cf447356 | 1280 | echo "configure:1281: checking for a BSD compatible install" >&5 |
c801d85f KB |
1281 | if test -z "$INSTALL"; then |
1282 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1283 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1284 | else | |
1285 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
1286 | for ac_dir in $PATH; do | |
1287 | # Account for people who put trailing slashes in PATH elements. | |
1288 | case "$ac_dir/" in | |
1289 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1290 | *) | |
1291 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1292 | for ac_prog in ginstall installbsd scoinst install; do | |
1293 | if test -f $ac_dir/$ac_prog; then | |
1294 | if test $ac_prog = install && | |
1295 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1296 | # AIX install. It has an incompatible calling convention. | |
1297 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
1298 | : | |
1299 | else | |
1300 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1301 | break 2 | |
1302 | fi | |
1303 | fi | |
1304 | done | |
1305 | ;; | |
1306 | esac | |
1307 | done | |
1308 | IFS="$ac_save_IFS" | |
1309 | ||
1310 | fi | |
1311 | if test "${ac_cv_path_install+set}" = set; then | |
1312 | INSTALL="$ac_cv_path_install" | |
1313 | else | |
1314 | # As a last resort, use the slow shell script. We don't cache a | |
1315 | # path for INSTALL within a source directory, because that will | |
1316 | # break other packages using the cache if that directory is | |
1317 | # removed, or if the path is relative. | |
1318 | INSTALL="$ac_install_sh" | |
1319 | fi | |
1320 | fi | |
1321 | echo "$ac_t""$INSTALL" 1>&6 | |
1322 | ||
1323 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1324 | # It thinks the first close brace ends the variable substitution. | |
1325 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1326 | ||
1327 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1328 | ||
1329 | ||
1330 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
cf447356 | 1331 | echo "configure:1332: checking whether ln -s works" >&5 |
c801d85f KB |
1332 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1333 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1334 | else | |
1335 | rm -f conftestdata | |
1336 | if ln -s X conftestdata 2>/dev/null | |
1337 | then | |
1338 | rm -f conftestdata | |
1339 | ac_cv_prog_LN_S="ln -s" | |
1340 | else | |
1341 | ac_cv_prog_LN_S=ln | |
1342 | fi | |
1343 | fi | |
1344 | LN_S="$ac_cv_prog_LN_S" | |
1345 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1346 | echo "$ac_t""yes" 1>&6 | |
1347 | else | |
1348 | echo "$ac_t""no" 1>&6 | |
1349 | fi | |
1350 | ||
1351 | ||
1352 | for ac_prog in mawk gawk nawk awk | |
1353 | do | |
1354 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1355 | set dummy $ac_prog; ac_word=$2 | |
1356 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
cf447356 | 1357 | echo "configure:1358: checking for $ac_word" >&5 |
c801d85f KB |
1358 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
1359 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1360 | else | |
1361 | if test -n "$AWK"; then | |
1362 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1363 | else | |
1364 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1365 | for ac_dir in $PATH; do | |
1366 | test -z "$ac_dir" && ac_dir=. | |
1367 | if test -f $ac_dir/$ac_word; then | |
1368 | ac_cv_prog_AWK="$ac_prog" | |
1369 | break | |
1370 | fi | |
1371 | done | |
1372 | IFS="$ac_save_ifs" | |
1373 | fi | |
1374 | fi | |
1375 | AWK="$ac_cv_prog_AWK" | |
1376 | if test -n "$AWK"; then | |
1377 | echo "$ac_t""$AWK" 1>&6 | |
1378 | else | |
1379 | echo "$ac_t""no" 1>&6 | |
1380 | fi | |
1381 | ||
1382 | test -n "$AWK" && break | |
1383 | done | |
1384 | ||
1385 | ||
1386 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 | |
cf447356 | 1387 | echo "configure:1388: checking "make for VPATH support"" >&5 |
c801d85f KB |
1388 | cat - << EOF > confMake |
1389 | check : file | |
1390 | cp \$? \$@ | |
1391 | cp \$? final_file | |
1392 | EOF | |
1393 | ||
1394 | if test ! -d sub ; then | |
1395 | mkdir sub | |
1396 | fi | |
1397 | echo dummy > sub/file | |
1398 | ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null | |
1399 | RESULT=$? | |
1400 | rm -f sub/file check final_file config.log confMake | |
1401 | rmdir sub | |
1402 | if test "$RESULT" = 0; then | |
1403 | echo "$ac_t""yes" 1>&6 | |
1404 | else | |
1405 | echo "$ac_t""no" 1>&6 | |
1406 | { echo "configure: error: You need a make-utility that is able to use the variable | |
1407 | VPATH correctly. | |
1408 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } | |
1409 | fi | |
1410 | ||
1411 | ||
1412 | # If we find X, set shell vars x_includes and x_libraries to the | |
1413 | # paths, otherwise set no_x=yes. | |
1414 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
1415 | # --without-x overrides everything else, but does not touch the cache. | |
1416 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
cf447356 | 1417 | echo "configure:1418: checking for X" >&5 |
c801d85f KB |
1418 | |
1419 | # Check whether --with-x or --without-x was given. | |
1420 | if test "${with_x+set}" = set; then | |
1421 | withval="$with_x" | |
1422 | : | |
1423 | fi | |
1424 | ||
1425 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
1426 | if test "x$with_x" = xno; then | |
1427 | # The user explicitly disabled X. | |
1428 | have_x=disabled | |
1429 | else | |
1430 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
1431 | # Both variables are already set. | |
1432 | have_x=yes | |
1433 | else | |
1434 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
1435 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1436 | else | |
1437 | # One or both of the vars are not set, and there is no cached value. | |
1438 | ac_x_includes=NO ac_x_libraries=NO | |
1439 | rm -fr conftestdir | |
1440 | if mkdir conftestdir; then | |
1441 | cd conftestdir | |
1442 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
1443 | cat > Imakefile <<'EOF' | |
1444 | acfindx: | |
1445 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
1446 | EOF | |
1447 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
1448 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1449 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
1450 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
1451 | for ac_extension in a so sl; do | |
1452 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
1453 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
1454 | ac_im_usrlibdir=$ac_im_libdir; break | |
1455 | fi | |
1456 | done | |
1457 | # Screen out bogus values from the imake configuration. They are | |
1458 | # bogus both because they are the default anyway, and because | |
1459 | # using them would break gcc on systems where it needs fixed includes. | |
1460 | case "$ac_im_incroot" in | |
1461 | /usr/include) ;; | |
1462 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
1463 | esac | |
1464 | case "$ac_im_usrlibdir" in | |
1465 | /usr/lib | /lib) ;; | |
1466 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
1467 | esac | |
1468 | fi | |
1469 | cd .. | |
1470 | rm -fr conftestdir | |
1471 | fi | |
1472 | ||
1473 | if test "$ac_x_includes" = NO; then | |
1474 | # Guess where to find include files, by looking for this one X11 .h file. | |
1475 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
1476 | ||
1477 | # First, try using that file with no special directory specified. | |
1478 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 1479 | #line 1480 "configure" |
c801d85f KB |
1480 | #include "confdefs.h" |
1481 | #include <$x_direct_test_include> | |
1482 | EOF | |
1483 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cf447356 | 1484 | { (eval echo configure:1485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
1485 | ac_err=`grep -v '^ *+' conftest.out` |
1486 | if test -z "$ac_err"; then | |
1487 | rm -rf conftest* | |
1488 | # We can compile using X headers with no special include directory. | |
1489 | ac_x_includes= | |
1490 | else | |
1491 | echo "$ac_err" >&5 | |
1492 | echo "configure: failed program was:" >&5 | |
1493 | cat conftest.$ac_ext >&5 | |
1494 | rm -rf conftest* | |
1495 | # Look for the header file in a standard set of common directories. | |
1496 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
1497 | for ac_dir in \ | |
1498 | /usr/X11/include \ | |
1499 | /usr/X11R6/include \ | |
1500 | /usr/X11R5/include \ | |
1501 | /usr/X11R4/include \ | |
1502 | \ | |
1503 | /usr/include/X11 \ | |
1504 | /usr/include/X11R6 \ | |
1505 | /usr/include/X11R5 \ | |
1506 | /usr/include/X11R4 \ | |
1507 | \ | |
1508 | /usr/local/X11/include \ | |
1509 | /usr/local/X11R6/include \ | |
1510 | /usr/local/X11R5/include \ | |
1511 | /usr/local/X11R4/include \ | |
1512 | \ | |
1513 | /usr/local/include/X11 \ | |
1514 | /usr/local/include/X11R6 \ | |
1515 | /usr/local/include/X11R5 \ | |
1516 | /usr/local/include/X11R4 \ | |
1517 | \ | |
1518 | /usr/X386/include \ | |
1519 | /usr/x386/include \ | |
1520 | /usr/XFree86/include/X11 \ | |
1521 | \ | |
1522 | /usr/include \ | |
1523 | /usr/local/include \ | |
1524 | /usr/unsupported/include \ | |
1525 | /usr/athena/include \ | |
1526 | /usr/local/x11r5/include \ | |
1527 | /usr/lpp/Xamples/include \ | |
1528 | \ | |
1529 | /usr/openwin/include \ | |
1530 | /usr/openwin/share/include \ | |
1531 | ; \ | |
1532 | do | |
1533 | if test -r "$ac_dir/$x_direct_test_include"; then | |
1534 | ac_x_includes=$ac_dir | |
1535 | break | |
1536 | fi | |
1537 | done | |
1538 | fi | |
1539 | rm -f conftest* | |
1540 | fi # $ac_x_includes = NO | |
1541 | ||
1542 | if test "$ac_x_libraries" = NO; then | |
1543 | # Check for the libraries. | |
1544 | ||
1545 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
1546 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
1547 | ||
1548 | # See if we find them without any special options. | |
1549 | # Don't add to $LIBS permanently. | |
1550 | ac_save_LIBS="$LIBS" | |
1551 | LIBS="-l$x_direct_test_library $LIBS" | |
1552 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 1553 | #line 1554 "configure" |
c801d85f KB |
1554 | #include "confdefs.h" |
1555 | ||
1556 | int main() { | |
1557 | ${x_direct_test_function}() | |
1558 | ; return 0; } | |
1559 | EOF | |
cf447356 | 1560 | if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1561 | rm -rf conftest* |
1562 | LIBS="$ac_save_LIBS" | |
1563 | # We can link X programs with no special library path. | |
1564 | ac_x_libraries= | |
1565 | else | |
1566 | echo "configure: failed program was:" >&5 | |
1567 | cat conftest.$ac_ext >&5 | |
1568 | rm -rf conftest* | |
1569 | LIBS="$ac_save_LIBS" | |
1570 | # First see if replacing the include by lib works. | |
1571 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
1572 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
1573 | /usr/X11/lib \ | |
1574 | /usr/X11R6/lib \ | |
1575 | /usr/X11R5/lib \ | |
1576 | /usr/X11R4/lib \ | |
1577 | \ | |
1578 | /usr/lib/X11 \ | |
1579 | /usr/lib/X11R6 \ | |
1580 | /usr/lib/X11R5 \ | |
1581 | /usr/lib/X11R4 \ | |
1582 | \ | |
1583 | /usr/local/X11/lib \ | |
1584 | /usr/local/X11R6/lib \ | |
1585 | /usr/local/X11R5/lib \ | |
1586 | /usr/local/X11R4/lib \ | |
1587 | \ | |
1588 | /usr/local/lib/X11 \ | |
1589 | /usr/local/lib/X11R6 \ | |
1590 | /usr/local/lib/X11R5 \ | |
1591 | /usr/local/lib/X11R4 \ | |
1592 | \ | |
1593 | /usr/X386/lib \ | |
1594 | /usr/x386/lib \ | |
1595 | /usr/XFree86/lib/X11 \ | |
1596 | \ | |
1597 | /usr/lib \ | |
1598 | /usr/local/lib \ | |
1599 | /usr/unsupported/lib \ | |
1600 | /usr/athena/lib \ | |
1601 | /usr/local/x11r5/lib \ | |
1602 | /usr/lpp/Xamples/lib \ | |
1603 | /lib/usr/lib/X11 \ | |
1604 | \ | |
1605 | /usr/openwin/lib \ | |
1606 | /usr/openwin/share/lib \ | |
1607 | ; \ | |
1608 | do | |
1609 | for ac_extension in a so sl; do | |
1610 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
1611 | ac_x_libraries=$ac_dir | |
1612 | break 2 | |
1613 | fi | |
1614 | done | |
1615 | done | |
1616 | fi | |
1617 | rm -f conftest* | |
1618 | fi # $ac_x_libraries = NO | |
1619 | ||
1620 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
1621 | # Didn't find X anywhere. Cache the known absence of X. | |
1622 | ac_cv_have_x="have_x=no" | |
1623 | else | |
1624 | # Record where we found X for the cache. | |
1625 | ac_cv_have_x="have_x=yes \ | |
1626 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
1627 | fi | |
1628 | fi | |
1629 | fi | |
1630 | eval "$ac_cv_have_x" | |
1631 | fi # $with_x != no | |
1632 | ||
1633 | if test "$have_x" != yes; then | |
1634 | echo "$ac_t""$have_x" 1>&6 | |
1635 | no_x=yes | |
1636 | else | |
1637 | # If each of the values was on the command line, it overrides each guess. | |
1638 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
1639 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
1640 | # Update the cache value to reflect the command line values. | |
1641 | ac_cv_have_x="have_x=yes \ | |
1642 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
1643 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
1644 | fi | |
1645 | ||
1646 | if test "$no_x" = yes; then | |
1647 | # Not all programs may use this symbol, but it does not hurt to define it. | |
1648 | cat >> confdefs.h <<\EOF | |
1649 | #define X_DISPLAY_MISSING 1 | |
1650 | EOF | |
1651 | ||
1652 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
1653 | else | |
1654 | if test -n "$x_includes"; then | |
1655 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
1656 | fi | |
1657 | ||
1658 | # It would also be nice to do this for all -L options, not just this one. | |
1659 | if test -n "$x_libraries"; then | |
1660 | X_LIBS="$X_LIBS -L$x_libraries" | |
1661 | # For Solaris; some versions of Sun CC require a space after -R and | |
1662 | # others require no space. Words are not sufficient . . . . | |
1663 | case "`(uname -sr) 2>/dev/null`" in | |
1664 | "SunOS 5"*) | |
1665 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
cf447356 | 1666 | echo "configure:1667: checking whether -R must be followed by a space" >&5 |
c801d85f KB |
1667 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
1668 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 1669 | #line 1670 "configure" |
c801d85f KB |
1670 | #include "confdefs.h" |
1671 | ||
1672 | int main() { | |
1673 | ||
1674 | ; return 0; } | |
1675 | EOF | |
cf447356 | 1676 | if { (eval echo configure:1677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1677 | rm -rf conftest* |
1678 | ac_R_nospace=yes | |
1679 | else | |
1680 | echo "configure: failed program was:" >&5 | |
1681 | cat conftest.$ac_ext >&5 | |
1682 | rm -rf conftest* | |
1683 | ac_R_nospace=no | |
1684 | fi | |
1685 | rm -f conftest* | |
1686 | if test $ac_R_nospace = yes; then | |
1687 | echo "$ac_t""no" 1>&6 | |
1688 | X_LIBS="$X_LIBS -R$x_libraries" | |
1689 | else | |
1690 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
1691 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 1692 | #line 1693 "configure" |
c801d85f KB |
1693 | #include "confdefs.h" |
1694 | ||
1695 | int main() { | |
1696 | ||
1697 | ; return 0; } | |
1698 | EOF | |
cf447356 | 1699 | if { (eval echo configure:1700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1700 | rm -rf conftest* |
1701 | ac_R_space=yes | |
1702 | else | |
1703 | echo "configure: failed program was:" >&5 | |
1704 | cat conftest.$ac_ext >&5 | |
1705 | rm -rf conftest* | |
1706 | ac_R_space=no | |
1707 | fi | |
1708 | rm -f conftest* | |
1709 | if test $ac_R_space = yes; then | |
1710 | echo "$ac_t""yes" 1>&6 | |
1711 | X_LIBS="$X_LIBS -R $x_libraries" | |
1712 | else | |
1713 | echo "$ac_t""neither works" 1>&6 | |
1714 | fi | |
1715 | fi | |
1716 | LIBS="$ac_xsave_LIBS" | |
1717 | esac | |
1718 | fi | |
1719 | ||
1720 | # Check for system-dependent libraries X programs must link with. | |
1721 | # Do this before checking for the system-independent R6 libraries | |
1722 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
1723 | ||
1724 | if test "$ISC" = yes; then | |
1725 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
1726 | else | |
1727 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
1728 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
1729 | # the Alpha needs dnet_stub (dnet does not exist). | |
1730 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
cf447356 | 1731 | echo "configure:1732: checking for dnet_ntoa in -ldnet" >&5 |
c801d85f KB |
1732 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
1733 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1734 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1735 | else | |
1736 | ac_save_LIBS="$LIBS" | |
1737 | LIBS="-ldnet $LIBS" | |
1738 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 1739 | #line 1740 "configure" |
c801d85f KB |
1740 | #include "confdefs.h" |
1741 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1742 | /* We use char because int might match the return type of a gcc2 | |
1743 | builtin and then its argument prototype would still apply. */ | |
1744 | char dnet_ntoa(); | |
1745 | ||
1746 | int main() { | |
1747 | dnet_ntoa() | |
1748 | ; return 0; } | |
1749 | EOF | |
cf447356 | 1750 | if { (eval echo configure:1751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1751 | rm -rf conftest* |
1752 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1753 | else | |
1754 | echo "configure: failed program was:" >&5 | |
1755 | cat conftest.$ac_ext >&5 | |
1756 | rm -rf conftest* | |
1757 | eval "ac_cv_lib_$ac_lib_var=no" | |
1758 | fi | |
1759 | rm -f conftest* | |
1760 | LIBS="$ac_save_LIBS" | |
1761 | ||
1762 | fi | |
1763 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1764 | echo "$ac_t""yes" 1>&6 | |
1765 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
1766 | else | |
1767 | echo "$ac_t""no" 1>&6 | |
1768 | fi | |
1769 | ||
1770 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
1771 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
cf447356 | 1772 | echo "configure:1773: checking for dnet_ntoa in -ldnet_stub" >&5 |
c801d85f KB |
1773 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
1774 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1776 | else | |
1777 | ac_save_LIBS="$LIBS" | |
1778 | LIBS="-ldnet_stub $LIBS" | |
1779 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 1780 | #line 1781 "configure" |
c801d85f KB |
1781 | #include "confdefs.h" |
1782 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1783 | /* We use char because int might match the return type of a gcc2 | |
1784 | builtin and then its argument prototype would still apply. */ | |
1785 | char dnet_ntoa(); | |
1786 | ||
1787 | int main() { | |
1788 | dnet_ntoa() | |
1789 | ; return 0; } | |
1790 | EOF | |
cf447356 | 1791 | if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1792 | rm -rf conftest* |
1793 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1794 | else | |
1795 | echo "configure: failed program was:" >&5 | |
1796 | cat conftest.$ac_ext >&5 | |
1797 | rm -rf conftest* | |
1798 | eval "ac_cv_lib_$ac_lib_var=no" | |
1799 | fi | |
1800 | rm -f conftest* | |
1801 | LIBS="$ac_save_LIBS" | |
1802 | ||
1803 | fi | |
1804 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1805 | echo "$ac_t""yes" 1>&6 | |
1806 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
1807 | else | |
1808 | echo "$ac_t""no" 1>&6 | |
1809 | fi | |
1810 | ||
1811 | fi | |
1812 | ||
1813 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
1814 | # to get the SysV transport functions. | |
1815 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
1816 | # needs -lnsl. | |
1817 | # The nsl library prevents programs from opening the X display | |
1818 | # on Irix 5.2, according to dickey@clark.net. | |
1819 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
cf447356 | 1820 | echo "configure:1821: checking for gethostbyname" >&5 |
c801d85f KB |
1821 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
1822 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1823 | else | |
1824 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 1825 | #line 1826 "configure" |
c801d85f KB |
1826 | #include "confdefs.h" |
1827 | /* System header to define __stub macros and hopefully few prototypes, | |
1828 | which can conflict with char gethostbyname(); below. */ | |
1829 | #include <assert.h> | |
1830 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1831 | /* We use char because int might match the return type of a gcc2 | |
1832 | builtin and then its argument prototype would still apply. */ | |
1833 | char gethostbyname(); | |
1834 | ||
1835 | int main() { | |
1836 | ||
1837 | /* The GNU C library defines this for functions which it implements | |
1838 | to always fail with ENOSYS. Some functions are actually named | |
1839 | something starting with __ and the normal name is an alias. */ | |
1840 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
1841 | choke me | |
1842 | #else | |
1843 | gethostbyname(); | |
1844 | #endif | |
1845 | ||
1846 | ; return 0; } | |
1847 | EOF | |
cf447356 | 1848 | if { (eval echo configure:1849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1849 | rm -rf conftest* |
1850 | eval "ac_cv_func_gethostbyname=yes" | |
1851 | else | |
1852 | echo "configure: failed program was:" >&5 | |
1853 | cat conftest.$ac_ext >&5 | |
1854 | rm -rf conftest* | |
1855 | eval "ac_cv_func_gethostbyname=no" | |
1856 | fi | |
1857 | rm -f conftest* | |
1858 | fi | |
1859 | ||
1860 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
1861 | echo "$ac_t""yes" 1>&6 | |
1862 | : | |
1863 | else | |
1864 | echo "$ac_t""no" 1>&6 | |
1865 | fi | |
1866 | ||
1867 | if test $ac_cv_func_gethostbyname = no; then | |
1868 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
cf447356 | 1869 | echo "configure:1870: checking for gethostbyname in -lnsl" >&5 |
c801d85f KB |
1870 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
1871 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1872 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1873 | else | |
1874 | ac_save_LIBS="$LIBS" | |
1875 | LIBS="-lnsl $LIBS" | |
1876 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 1877 | #line 1878 "configure" |
c801d85f KB |
1878 | #include "confdefs.h" |
1879 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1880 | /* We use char because int might match the return type of a gcc2 | |
1881 | builtin and then its argument prototype would still apply. */ | |
1882 | char gethostbyname(); | |
1883 | ||
1884 | int main() { | |
1885 | gethostbyname() | |
1886 | ; return 0; } | |
1887 | EOF | |
cf447356 | 1888 | if { (eval echo configure:1889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1889 | rm -rf conftest* |
1890 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1891 | else | |
1892 | echo "configure: failed program was:" >&5 | |
1893 | cat conftest.$ac_ext >&5 | |
1894 | rm -rf conftest* | |
1895 | eval "ac_cv_lib_$ac_lib_var=no" | |
1896 | fi | |
1897 | rm -f conftest* | |
1898 | LIBS="$ac_save_LIBS" | |
1899 | ||
1900 | fi | |
1901 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1902 | echo "$ac_t""yes" 1>&6 | |
1903 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
1904 | else | |
1905 | echo "$ac_t""no" 1>&6 | |
1906 | fi | |
1907 | ||
1908 | fi | |
1909 | ||
1910 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
1911 | # socket/setsockopt and other routines are undefined under SCO ODT | |
1912 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
1913 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
1914 | # gethostby* variants that don't use the nameserver (or something). | |
1915 | # -lsocket must be given before -lnsl if both are needed. | |
1916 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
1917 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
cf447356 | 1918 | echo "configure:1919: checking for connect" >&5 |
c801d85f KB |
1919 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
1920 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1921 | else | |
1922 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 1923 | #line 1924 "configure" |
c801d85f KB |
1924 | #include "confdefs.h" |
1925 | /* System header to define __stub macros and hopefully few prototypes, | |
1926 | which can conflict with char connect(); below. */ | |
1927 | #include <assert.h> | |
1928 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1929 | /* We use char because int might match the return type of a gcc2 | |
1930 | builtin and then its argument prototype would still apply. */ | |
1931 | char connect(); | |
1932 | ||
1933 | int main() { | |
1934 | ||
1935 | /* The GNU C library defines this for functions which it implements | |
1936 | to always fail with ENOSYS. Some functions are actually named | |
1937 | something starting with __ and the normal name is an alias. */ | |
1938 | #if defined (__stub_connect) || defined (__stub___connect) | |
1939 | choke me | |
1940 | #else | |
1941 | connect(); | |
1942 | #endif | |
1943 | ||
1944 | ; return 0; } | |
1945 | EOF | |
cf447356 | 1946 | if { (eval echo configure:1947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1947 | rm -rf conftest* |
1948 | eval "ac_cv_func_connect=yes" | |
1949 | else | |
1950 | echo "configure: failed program was:" >&5 | |
1951 | cat conftest.$ac_ext >&5 | |
1952 | rm -rf conftest* | |
1953 | eval "ac_cv_func_connect=no" | |
1954 | fi | |
1955 | rm -f conftest* | |
1956 | fi | |
1957 | ||
1958 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
1959 | echo "$ac_t""yes" 1>&6 | |
1960 | : | |
1961 | else | |
1962 | echo "$ac_t""no" 1>&6 | |
1963 | fi | |
1964 | ||
1965 | if test $ac_cv_func_connect = no; then | |
1966 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
cf447356 | 1967 | echo "configure:1968: checking for connect in -lsocket" >&5 |
c801d85f KB |
1968 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
1969 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1970 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1971 | else | |
1972 | ac_save_LIBS="$LIBS" | |
1973 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
1974 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 1975 | #line 1976 "configure" |
c801d85f KB |
1976 | #include "confdefs.h" |
1977 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1978 | /* We use char because int might match the return type of a gcc2 | |
1979 | builtin and then its argument prototype would still apply. */ | |
1980 | char connect(); | |
1981 | ||
1982 | int main() { | |
1983 | connect() | |
1984 | ; return 0; } | |
1985 | EOF | |
cf447356 | 1986 | if { (eval echo configure:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1987 | rm -rf conftest* |
1988 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1989 | else | |
1990 | echo "configure: failed program was:" >&5 | |
1991 | cat conftest.$ac_ext >&5 | |
1992 | rm -rf conftest* | |
1993 | eval "ac_cv_lib_$ac_lib_var=no" | |
1994 | fi | |
1995 | rm -f conftest* | |
1996 | LIBS="$ac_save_LIBS" | |
1997 | ||
1998 | fi | |
1999 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2000 | echo "$ac_t""yes" 1>&6 | |
2001 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
2002 | else | |
2003 | echo "$ac_t""no" 1>&6 | |
2004 | fi | |
2005 | ||
2006 | fi | |
2007 | ||
2008 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
2009 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
cf447356 | 2010 | echo "configure:2011: checking for remove" >&5 |
c801d85f KB |
2011 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
2012 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2013 | else | |
2014 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2015 | #line 2016 "configure" |
c801d85f KB |
2016 | #include "confdefs.h" |
2017 | /* System header to define __stub macros and hopefully few prototypes, | |
2018 | which can conflict with char remove(); below. */ | |
2019 | #include <assert.h> | |
2020 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2021 | /* We use char because int might match the return type of a gcc2 | |
2022 | builtin and then its argument prototype would still apply. */ | |
2023 | char remove(); | |
2024 | ||
2025 | int main() { | |
2026 | ||
2027 | /* The GNU C library defines this for functions which it implements | |
2028 | to always fail with ENOSYS. Some functions are actually named | |
2029 | something starting with __ and the normal name is an alias. */ | |
2030 | #if defined (__stub_remove) || defined (__stub___remove) | |
2031 | choke me | |
2032 | #else | |
2033 | remove(); | |
2034 | #endif | |
2035 | ||
2036 | ; return 0; } | |
2037 | EOF | |
cf447356 | 2038 | if { (eval echo configure:2039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2039 | rm -rf conftest* |
2040 | eval "ac_cv_func_remove=yes" | |
2041 | else | |
2042 | echo "configure: failed program was:" >&5 | |
2043 | cat conftest.$ac_ext >&5 | |
2044 | rm -rf conftest* | |
2045 | eval "ac_cv_func_remove=no" | |
2046 | fi | |
2047 | rm -f conftest* | |
2048 | fi | |
2049 | ||
2050 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
2051 | echo "$ac_t""yes" 1>&6 | |
2052 | : | |
2053 | else | |
2054 | echo "$ac_t""no" 1>&6 | |
2055 | fi | |
2056 | ||
2057 | if test $ac_cv_func_remove = no; then | |
2058 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
cf447356 | 2059 | echo "configure:2060: checking for remove in -lposix" >&5 |
c801d85f KB |
2060 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
2061 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2062 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2063 | else | |
2064 | ac_save_LIBS="$LIBS" | |
2065 | LIBS="-lposix $LIBS" | |
2066 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2067 | #line 2068 "configure" |
c801d85f KB |
2068 | #include "confdefs.h" |
2069 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2070 | /* We use char because int might match the return type of a gcc2 | |
2071 | builtin and then its argument prototype would still apply. */ | |
2072 | char remove(); | |
2073 | ||
2074 | int main() { | |
2075 | remove() | |
2076 | ; return 0; } | |
2077 | EOF | |
cf447356 | 2078 | if { (eval echo configure:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2079 | rm -rf conftest* |
2080 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2081 | else | |
2082 | echo "configure: failed program was:" >&5 | |
2083 | cat conftest.$ac_ext >&5 | |
2084 | rm -rf conftest* | |
2085 | eval "ac_cv_lib_$ac_lib_var=no" | |
2086 | fi | |
2087 | rm -f conftest* | |
2088 | LIBS="$ac_save_LIBS" | |
2089 | ||
2090 | fi | |
2091 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2092 | echo "$ac_t""yes" 1>&6 | |
2093 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
2094 | else | |
2095 | echo "$ac_t""no" 1>&6 | |
2096 | fi | |
2097 | ||
2098 | fi | |
2099 | ||
2100 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
2101 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
cf447356 | 2102 | echo "configure:2103: checking for shmat" >&5 |
c801d85f KB |
2103 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
2104 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2105 | else | |
2106 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2107 | #line 2108 "configure" |
c801d85f KB |
2108 | #include "confdefs.h" |
2109 | /* System header to define __stub macros and hopefully few prototypes, | |
2110 | which can conflict with char shmat(); below. */ | |
2111 | #include <assert.h> | |
2112 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2113 | /* We use char because int might match the return type of a gcc2 | |
2114 | builtin and then its argument prototype would still apply. */ | |
2115 | char shmat(); | |
2116 | ||
2117 | int main() { | |
2118 | ||
2119 | /* The GNU C library defines this for functions which it implements | |
2120 | to always fail with ENOSYS. Some functions are actually named | |
2121 | something starting with __ and the normal name is an alias. */ | |
2122 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
2123 | choke me | |
2124 | #else | |
2125 | shmat(); | |
2126 | #endif | |
2127 | ||
2128 | ; return 0; } | |
2129 | EOF | |
cf447356 | 2130 | if { (eval echo configure:2131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2131 | rm -rf conftest* |
2132 | eval "ac_cv_func_shmat=yes" | |
2133 | else | |
2134 | echo "configure: failed program was:" >&5 | |
2135 | cat conftest.$ac_ext >&5 | |
2136 | rm -rf conftest* | |
2137 | eval "ac_cv_func_shmat=no" | |
2138 | fi | |
2139 | rm -f conftest* | |
2140 | fi | |
2141 | ||
2142 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
2143 | echo "$ac_t""yes" 1>&6 | |
2144 | : | |
2145 | else | |
2146 | echo "$ac_t""no" 1>&6 | |
2147 | fi | |
2148 | ||
2149 | if test $ac_cv_func_shmat = no; then | |
2150 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
cf447356 | 2151 | echo "configure:2152: checking for shmat in -lipc" >&5 |
c801d85f KB |
2152 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
2153 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2154 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2155 | else | |
2156 | ac_save_LIBS="$LIBS" | |
2157 | LIBS="-lipc $LIBS" | |
2158 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2159 | #line 2160 "configure" |
c801d85f KB |
2160 | #include "confdefs.h" |
2161 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2162 | /* We use char because int might match the return type of a gcc2 | |
2163 | builtin and then its argument prototype would still apply. */ | |
2164 | char shmat(); | |
2165 | ||
2166 | int main() { | |
2167 | shmat() | |
2168 | ; return 0; } | |
2169 | EOF | |
cf447356 | 2170 | if { (eval echo configure:2171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2171 | rm -rf conftest* |
2172 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2173 | else | |
2174 | echo "configure: failed program was:" >&5 | |
2175 | cat conftest.$ac_ext >&5 | |
2176 | rm -rf conftest* | |
2177 | eval "ac_cv_lib_$ac_lib_var=no" | |
2178 | fi | |
2179 | rm -f conftest* | |
2180 | LIBS="$ac_save_LIBS" | |
2181 | ||
2182 | fi | |
2183 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2184 | echo "$ac_t""yes" 1>&6 | |
2185 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
2186 | else | |
2187 | echo "$ac_t""no" 1>&6 | |
2188 | fi | |
2189 | ||
2190 | fi | |
2191 | fi | |
2192 | ||
2193 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
2194 | ac_save_LDFLAGS="$LDFLAGS" | |
2195 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
2196 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
2197 | # check for ICE first), but we must link in the order -lSM -lICE or | |
2198 | # we get undefined symbols. So assume we have SM if we have ICE. | |
2199 | # These have to be linked with before -lX11, unlike the other | |
2200 | # libraries we check for below, so use a different variable. | |
2201 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
2202 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
cf447356 | 2203 | echo "configure:2204: checking for IceConnectionNumber in -lICE" >&5 |
c801d85f KB |
2204 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
2205 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2206 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2207 | else | |
2208 | ac_save_LIBS="$LIBS" | |
2209 | LIBS="-lICE $LIBS" | |
2210 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2211 | #line 2212 "configure" |
c801d85f KB |
2212 | #include "confdefs.h" |
2213 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2214 | /* We use char because int might match the return type of a gcc2 | |
2215 | builtin and then its argument prototype would still apply. */ | |
2216 | char IceConnectionNumber(); | |
2217 | ||
2218 | int main() { | |
2219 | IceConnectionNumber() | |
2220 | ; return 0; } | |
2221 | EOF | |
cf447356 | 2222 | if { (eval echo configure:2223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2223 | rm -rf conftest* |
2224 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2225 | else | |
2226 | echo "configure: failed program was:" >&5 | |
2227 | cat conftest.$ac_ext >&5 | |
2228 | rm -rf conftest* | |
2229 | eval "ac_cv_lib_$ac_lib_var=no" | |
2230 | fi | |
2231 | rm -f conftest* | |
2232 | LIBS="$ac_save_LIBS" | |
2233 | ||
2234 | fi | |
2235 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2236 | echo "$ac_t""yes" 1>&6 | |
2237 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
2238 | else | |
2239 | echo "$ac_t""no" 1>&6 | |
2240 | fi | |
2241 | ||
2242 | LDFLAGS="$ac_save_LDFLAGS" | |
2243 | ||
2244 | fi | |
2245 | ||
2246 | ||
2247 | ac_header_dirent=no | |
2248 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h | |
2249 | do | |
2250 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2251 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 | |
cf447356 | 2252 | echo "configure:2253: checking for $ac_hdr that defines DIR" >&5 |
c801d85f KB |
2253 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
2254 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2255 | else | |
2256 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2257 | #line 2258 "configure" |
c801d85f KB |
2258 | #include "confdefs.h" |
2259 | #include <sys/types.h> | |
2260 | #include <$ac_hdr> | |
2261 | int main() { | |
2262 | DIR *dirp = 0; | |
2263 | ; return 0; } | |
2264 | EOF | |
cf447356 | 2265 | if { (eval echo configure:2266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
2266 | rm -rf conftest* |
2267 | eval "ac_cv_header_dirent_$ac_safe=yes" | |
2268 | else | |
2269 | echo "configure: failed program was:" >&5 | |
2270 | cat conftest.$ac_ext >&5 | |
2271 | rm -rf conftest* | |
2272 | eval "ac_cv_header_dirent_$ac_safe=no" | |
2273 | fi | |
2274 | rm -f conftest* | |
2275 | fi | |
2276 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then | |
2277 | echo "$ac_t""yes" 1>&6 | |
2278 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2279 | cat >> confdefs.h <<EOF | |
2280 | #define $ac_tr_hdr 1 | |
2281 | EOF | |
2282 | ac_header_dirent=$ac_hdr; break | |
2283 | else | |
2284 | echo "$ac_t""no" 1>&6 | |
2285 | fi | |
2286 | done | |
2287 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
2288 | if test $ac_header_dirent = dirent.h; then | |
2289 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 | |
cf447356 | 2290 | echo "configure:2291: checking for opendir in -ldir" >&5 |
c801d85f KB |
2291 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
2292 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2293 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2294 | else | |
2295 | ac_save_LIBS="$LIBS" | |
2296 | LIBS="-ldir $LIBS" | |
2297 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2298 | #line 2299 "configure" |
c801d85f KB |
2299 | #include "confdefs.h" |
2300 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2301 | /* We use char because int might match the return type of a gcc2 | |
2302 | builtin and then its argument prototype would still apply. */ | |
2303 | char opendir(); | |
2304 | ||
2305 | int main() { | |
2306 | opendir() | |
2307 | ; return 0; } | |
2308 | EOF | |
cf447356 | 2309 | if { (eval echo configure:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2310 | rm -rf conftest* |
2311 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2312 | else | |
2313 | echo "configure: failed program was:" >&5 | |
2314 | cat conftest.$ac_ext >&5 | |
2315 | rm -rf conftest* | |
2316 | eval "ac_cv_lib_$ac_lib_var=no" | |
2317 | fi | |
2318 | rm -f conftest* | |
2319 | LIBS="$ac_save_LIBS" | |
2320 | ||
2321 | fi | |
2322 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2323 | echo "$ac_t""yes" 1>&6 | |
2324 | LIBS="$LIBS -ldir" | |
2325 | else | |
2326 | echo "$ac_t""no" 1>&6 | |
2327 | fi | |
2328 | ||
2329 | else | |
2330 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 | |
cf447356 | 2331 | echo "configure:2332: checking for opendir in -lx" >&5 |
c801d85f KB |
2332 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
2333 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2334 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2335 | else | |
2336 | ac_save_LIBS="$LIBS" | |
2337 | LIBS="-lx $LIBS" | |
2338 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2339 | #line 2340 "configure" |
c801d85f KB |
2340 | #include "confdefs.h" |
2341 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2342 | /* We use char because int might match the return type of a gcc2 | |
2343 | builtin and then its argument prototype would still apply. */ | |
2344 | char opendir(); | |
2345 | ||
2346 | int main() { | |
2347 | opendir() | |
2348 | ; return 0; } | |
2349 | EOF | |
cf447356 | 2350 | if { (eval echo configure:2351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2351 | rm -rf conftest* |
2352 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2353 | else | |
2354 | echo "configure: failed program was:" >&5 | |
2355 | cat conftest.$ac_ext >&5 | |
2356 | rm -rf conftest* | |
2357 | eval "ac_cv_lib_$ac_lib_var=no" | |
2358 | fi | |
2359 | rm -f conftest* | |
2360 | LIBS="$ac_save_LIBS" | |
2361 | ||
2362 | fi | |
2363 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2364 | echo "$ac_t""yes" 1>&6 | |
2365 | LIBS="$LIBS -lx" | |
2366 | else | |
2367 | echo "$ac_t""no" 1>&6 | |
2368 | fi | |
2369 | ||
2370 | fi | |
2371 | ||
2372 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
cf447356 | 2373 | echo "configure:2374: checking for ANSI C header files" >&5 |
c801d85f KB |
2374 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2375 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2376 | else | |
2377 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2378 | #line 2379 "configure" |
c801d85f KB |
2379 | #include "confdefs.h" |
2380 | #include <stdlib.h> | |
2381 | #include <stdarg.h> | |
2382 | #include <string.h> | |
2383 | #include <float.h> | |
2384 | EOF | |
2385 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cf447356 | 2386 | { (eval echo configure:2387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
2387 | ac_err=`grep -v '^ *+' conftest.out` |
2388 | if test -z "$ac_err"; then | |
2389 | rm -rf conftest* | |
2390 | ac_cv_header_stdc=yes | |
2391 | else | |
2392 | echo "$ac_err" >&5 | |
2393 | echo "configure: failed program was:" >&5 | |
2394 | cat conftest.$ac_ext >&5 | |
2395 | rm -rf conftest* | |
2396 | ac_cv_header_stdc=no | |
2397 | fi | |
2398 | rm -f conftest* | |
2399 | ||
2400 | if test $ac_cv_header_stdc = yes; then | |
2401 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2402 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2403 | #line 2404 "configure" |
c801d85f KB |
2404 | #include "confdefs.h" |
2405 | #include <string.h> | |
2406 | EOF | |
2407 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2408 | egrep "memchr" >/dev/null 2>&1; then | |
2409 | : | |
2410 | else | |
2411 | rm -rf conftest* | |
2412 | ac_cv_header_stdc=no | |
2413 | fi | |
2414 | rm -f conftest* | |
2415 | ||
2416 | fi | |
2417 | ||
2418 | if test $ac_cv_header_stdc = yes; then | |
2419 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2420 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2421 | #line 2422 "configure" |
c801d85f KB |
2422 | #include "confdefs.h" |
2423 | #include <stdlib.h> | |
2424 | EOF | |
2425 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2426 | egrep "free" >/dev/null 2>&1; then | |
2427 | : | |
2428 | else | |
2429 | rm -rf conftest* | |
2430 | ac_cv_header_stdc=no | |
2431 | fi | |
2432 | rm -f conftest* | |
2433 | ||
2434 | fi | |
2435 | ||
2436 | if test $ac_cv_header_stdc = yes; then | |
2437 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2438 | if test "$cross_compiling" = yes; then | |
2439 | : | |
2440 | else | |
2441 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2442 | #line 2443 "configure" |
c801d85f KB |
2443 | #include "confdefs.h" |
2444 | #include <ctype.h> | |
2445 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2446 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2447 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2448 | int main () { int i; for (i = 0; i < 256; i++) | |
2449 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
2450 | exit (0); } | |
2451 | ||
2452 | EOF | |
cf447356 | 2453 | if { (eval echo configure:2454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
2454 | then |
2455 | : | |
2456 | else | |
2457 | echo "configure: failed program was:" >&5 | |
2458 | cat conftest.$ac_ext >&5 | |
2459 | rm -fr conftest* | |
2460 | ac_cv_header_stdc=no | |
2461 | fi | |
2462 | rm -fr conftest* | |
2463 | fi | |
2464 | ||
2465 | fi | |
2466 | fi | |
2467 | ||
2468 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
2469 | if test $ac_cv_header_stdc = yes; then | |
2470 | cat >> confdefs.h <<\EOF | |
2471 | #define STDC_HEADERS 1 | |
2472 | EOF | |
2473 | ||
2474 | fi | |
2475 | ||
2476 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 | |
cf447356 | 2477 | echo "configure:2478: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
c801d85f KB |
2478 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
2479 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2480 | else | |
2481 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2482 | #line 2483 "configure" |
c801d85f KB |
2483 | #include "confdefs.h" |
2484 | #include <sys/types.h> | |
2485 | #include <sys/wait.h> | |
2486 | #ifndef WEXITSTATUS | |
2487 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
2488 | #endif | |
2489 | #ifndef WIFEXITED | |
2490 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
2491 | #endif | |
2492 | int main() { | |
2493 | int s; | |
2494 | wait (&s); | |
2495 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
2496 | ; return 0; } | |
2497 | EOF | |
cf447356 | 2498 | if { (eval echo configure:2499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
2499 | rm -rf conftest* |
2500 | ac_cv_header_sys_wait_h=yes | |
2501 | else | |
2502 | echo "configure: failed program was:" >&5 | |
2503 | cat conftest.$ac_ext >&5 | |
2504 | rm -rf conftest* | |
2505 | ac_cv_header_sys_wait_h=no | |
2506 | fi | |
2507 | rm -f conftest* | |
2508 | fi | |
2509 | ||
2510 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 | |
2511 | if test $ac_cv_header_sys_wait_h = yes; then | |
2512 | cat >> confdefs.h <<\EOF | |
2513 | #define HAVE_SYS_WAIT_H 1 | |
2514 | EOF | |
2515 | ||
2516 | fi | |
2517 | ||
2518 | ac_safe=`echo "fcntl.h" | sed 'y%./+-%__p_%'` | |
2519 | echo $ac_n "checking for fcntl.h""... $ac_c" 1>&6 | |
cf447356 | 2520 | echo "configure:2521: checking for fcntl.h" >&5 |
c801d85f KB |
2521 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2522 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2523 | else | |
2524 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2525 | #line 2526 "configure" |
c801d85f KB |
2526 | #include "confdefs.h" |
2527 | #include <fcntl.h> | |
2528 | EOF | |
2529 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cf447356 | 2530 | { (eval echo configure:2531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
2531 | ac_err=`grep -v '^ *+' conftest.out` |
2532 | if test -z "$ac_err"; then | |
2533 | rm -rf conftest* | |
2534 | eval "ac_cv_header_$ac_safe=yes" | |
2535 | else | |
2536 | echo "$ac_err" >&5 | |
2537 | echo "configure: failed program was:" >&5 | |
2538 | cat conftest.$ac_ext >&5 | |
2539 | rm -rf conftest* | |
2540 | eval "ac_cv_header_$ac_safe=no" | |
2541 | fi | |
2542 | rm -f conftest* | |
2543 | fi | |
2544 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2545 | echo "$ac_t""yes" 1>&6 | |
2546 | : | |
2547 | else | |
2548 | echo "$ac_t""no" 1>&6 | |
2549 | fi | |
2550 | ||
2551 | ac_safe=`echo "limits.h" | sed 'y%./+-%__p_%'` | |
2552 | echo $ac_n "checking for limits.h""... $ac_c" 1>&6 | |
cf447356 | 2553 | echo "configure:2554: checking for limits.h" >&5 |
c801d85f KB |
2554 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2555 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2556 | else | |
2557 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2558 | #line 2559 "configure" |
c801d85f KB |
2559 | #include "confdefs.h" |
2560 | #include <limits.h> | |
2561 | EOF | |
2562 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cf447356 | 2563 | { (eval echo configure:2564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
2564 | ac_err=`grep -v '^ *+' conftest.out` |
2565 | if test -z "$ac_err"; then | |
2566 | rm -rf conftest* | |
2567 | eval "ac_cv_header_$ac_safe=yes" | |
2568 | else | |
2569 | echo "$ac_err" >&5 | |
2570 | echo "configure: failed program was:" >&5 | |
2571 | cat conftest.$ac_ext >&5 | |
2572 | rm -rf conftest* | |
2573 | eval "ac_cv_header_$ac_safe=no" | |
2574 | fi | |
2575 | rm -f conftest* | |
2576 | fi | |
2577 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2578 | echo "$ac_t""yes" 1>&6 | |
2579 | : | |
2580 | else | |
2581 | echo "$ac_t""no" 1>&6 | |
2582 | fi | |
2583 | ||
2584 | ac_safe=`echo "sys/file.h" | sed 'y%./+-%__p_%'` | |
2585 | echo $ac_n "checking for sys/file.h""... $ac_c" 1>&6 | |
cf447356 | 2586 | echo "configure:2587: checking for sys/file.h" >&5 |
c801d85f KB |
2587 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2588 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2589 | else | |
2590 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2591 | #line 2592 "configure" |
c801d85f KB |
2592 | #include "confdefs.h" |
2593 | #include <sys/file.h> | |
2594 | EOF | |
2595 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cf447356 | 2596 | { (eval echo configure:2597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
2597 | ac_err=`grep -v '^ *+' conftest.out` |
2598 | if test -z "$ac_err"; then | |
2599 | rm -rf conftest* | |
2600 | eval "ac_cv_header_$ac_safe=yes" | |
2601 | else | |
2602 | echo "$ac_err" >&5 | |
2603 | echo "configure: failed program was:" >&5 | |
2604 | cat conftest.$ac_ext >&5 | |
2605 | rm -rf conftest* | |
2606 | eval "ac_cv_header_$ac_safe=no" | |
2607 | fi | |
2608 | rm -f conftest* | |
2609 | fi | |
2610 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2611 | echo "$ac_t""yes" 1>&6 | |
2612 | : | |
2613 | else | |
2614 | echo "$ac_t""no" 1>&6 | |
2615 | fi | |
2616 | ||
2617 | ac_safe=`echo "sys/time.h" | sed 'y%./+-%__p_%'` | |
2618 | echo $ac_n "checking for sys/time.h""... $ac_c" 1>&6 | |
cf447356 | 2619 | echo "configure:2620: checking for sys/time.h" >&5 |
c801d85f KB |
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 | |
cf447356 | 2624 | #line 2625 "configure" |
c801d85f KB |
2625 | #include "confdefs.h" |
2626 | #include <sys/time.h> | |
2627 | EOF | |
2628 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cf447356 | 2629 | { (eval echo configure:2630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
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 | : | |
2646 | else | |
2647 | echo "$ac_t""no" 1>&6 | |
2648 | fi | |
2649 | ||
2650 | ac_safe=`echo "unistd.h" | sed 'y%./+-%__p_%'` | |
2651 | echo $ac_n "checking for unistd.h""... $ac_c" 1>&6 | |
cf447356 | 2652 | echo "configure:2653: checking for unistd.h" >&5 |
c801d85f KB |
2653 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2654 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2655 | else | |
2656 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2657 | #line 2658 "configure" |
c801d85f KB |
2658 | #include "confdefs.h" |
2659 | #include <unistd.h> | |
2660 | EOF | |
2661 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cf447356 | 2662 | { (eval echo configure:2663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
2663 | ac_err=`grep -v '^ *+' conftest.out` |
2664 | if test -z "$ac_err"; then | |
2665 | rm -rf conftest* | |
2666 | eval "ac_cv_header_$ac_safe=yes" | |
2667 | else | |
2668 | echo "$ac_err" >&5 | |
2669 | echo "configure: failed program was:" >&5 | |
2670 | cat conftest.$ac_ext >&5 | |
2671 | rm -rf conftest* | |
2672 | eval "ac_cv_header_$ac_safe=no" | |
2673 | fi | |
2674 | rm -f conftest* | |
2675 | fi | |
2676 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2677 | echo "$ac_t""yes" 1>&6 | |
2678 | : | |
2679 | else | |
2680 | echo "$ac_t""no" 1>&6 | |
2681 | fi | |
2682 | ||
7c351dad GL |
2683 | ac_safe=`echo "linux/joystick.h" | sed 'y%./+-%__p_%'` |
2684 | echo $ac_n "checking for linux/joystick.h""... $ac_c" 1>&6 | |
cf447356 | 2685 | echo "configure:2686: checking for linux/joystick.h" >&5 |
7c351dad GL |
2686 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2687 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2688 | else | |
2689 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2690 | #line 2691 "configure" |
7c351dad GL |
2691 | #include "confdefs.h" |
2692 | #include <linux/joystick.h> | |
2693 | EOF | |
2694 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cf447356 | 2695 | { (eval echo configure:2696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7c351dad GL |
2696 | ac_err=`grep -v '^ *+' conftest.out` |
2697 | if test -z "$ac_err"; then | |
2698 | rm -rf conftest* | |
2699 | eval "ac_cv_header_$ac_safe=yes" | |
2700 | else | |
2701 | echo "$ac_err" >&5 | |
2702 | echo "configure: failed program was:" >&5 | |
2703 | cat conftest.$ac_ext >&5 | |
2704 | rm -rf conftest* | |
2705 | eval "ac_cv_header_$ac_safe=no" | |
2706 | fi | |
2707 | rm -f conftest* | |
2708 | fi | |
2709 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2710 | echo "$ac_t""yes" 1>&6 | |
2711 | : | |
2712 | else | |
2713 | echo "$ac_t""no" 1>&6 | |
2714 | fi | |
2715 | ||
2716 | GTK_JOYSTICK="" | |
8d31c138 | 2717 | if test "$ac_cv_header_linux_joystick_h" = "yes"; then |
7c351dad GL |
2718 | GTK_JOYSTICK="gtk/joystick.cpp" |
2719 | fi | |
2720 | ||
c801d85f KB |
2721 | |
2722 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
cf447356 | 2723 | echo "configure:2724: checking for uid_t in sys/types.h" >&5 |
c801d85f KB |
2724 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
2725 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2726 | else | |
2727 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2728 | #line 2729 "configure" |
c801d85f KB |
2729 | #include "confdefs.h" |
2730 | #include <sys/types.h> | |
2731 | EOF | |
2732 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2733 | egrep "uid_t" >/dev/null 2>&1; then | |
2734 | rm -rf conftest* | |
2735 | ac_cv_type_uid_t=yes | |
2736 | else | |
2737 | rm -rf conftest* | |
2738 | ac_cv_type_uid_t=no | |
2739 | fi | |
2740 | rm -f conftest* | |
2741 | ||
2742 | fi | |
2743 | ||
2744 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
2745 | if test $ac_cv_type_uid_t = no; then | |
2746 | cat >> confdefs.h <<\EOF | |
2747 | #define uid_t int | |
2748 | EOF | |
2749 | ||
2750 | cat >> confdefs.h <<\EOF | |
2751 | #define gid_t int | |
2752 | EOF | |
2753 | ||
2754 | fi | |
2755 | ||
2756 | echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6 | |
cf447356 | 2757 | echo "configure:2758: checking type of array argument to getgroups" >&5 |
c801d85f KB |
2758 | if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then |
2759 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2760 | else | |
2761 | if test "$cross_compiling" = yes; then | |
2762 | ac_cv_type_getgroups=cross | |
2763 | else | |
2764 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2765 | #line 2766 "configure" |
c801d85f KB |
2766 | #include "confdefs.h" |
2767 | ||
2768 | /* Thanks to Mike Rendell for this test. */ | |
2769 | #include <sys/types.h> | |
2770 | #define NGID 256 | |
2771 | #undef MAX | |
2772 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) | |
2773 | main() | |
2774 | { | |
2775 | gid_t gidset[NGID]; | |
2776 | int i, n; | |
2777 | union { gid_t gval; long lval; } val; | |
2778 | ||
2779 | val.lval = -1; | |
2780 | for (i = 0; i < NGID; i++) | |
2781 | gidset[i] = val.gval; | |
2782 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, | |
2783 | gidset); | |
2784 | /* Exit non-zero if getgroups seems to require an array of ints. This | |
2785 | happens when gid_t is short but getgroups modifies an array of ints. */ | |
2786 | exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0); | |
2787 | } | |
2788 | ||
2789 | EOF | |
cf447356 | 2790 | if { (eval echo configure:2791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
2791 | then |
2792 | ac_cv_type_getgroups=gid_t | |
2793 | else | |
2794 | echo "configure: failed program was:" >&5 | |
2795 | cat conftest.$ac_ext >&5 | |
2796 | rm -fr conftest* | |
2797 | ac_cv_type_getgroups=int | |
2798 | fi | |
2799 | rm -fr conftest* | |
2800 | fi | |
2801 | ||
2802 | if test $ac_cv_type_getgroups = cross; then | |
2803 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2804 | #line 2805 "configure" |
c801d85f KB |
2805 | #include "confdefs.h" |
2806 | #include <unistd.h> | |
2807 | EOF | |
2808 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2809 | egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then | |
2810 | rm -rf conftest* | |
2811 | ac_cv_type_getgroups=gid_t | |
2812 | else | |
2813 | rm -rf conftest* | |
2814 | ac_cv_type_getgroups=int | |
2815 | fi | |
2816 | rm -f conftest* | |
2817 | ||
2818 | fi | |
2819 | fi | |
2820 | ||
2821 | echo "$ac_t""$ac_cv_type_getgroups" 1>&6 | |
2822 | cat >> confdefs.h <<EOF | |
2823 | #define GETGROUPS_T $ac_cv_type_getgroups | |
2824 | EOF | |
2825 | ||
2826 | ||
2827 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
cf447356 | 2828 | echo "configure:2829: checking for mode_t" >&5 |
c801d85f KB |
2829 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
2830 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2831 | else | |
2832 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2833 | #line 2834 "configure" |
c801d85f KB |
2834 | #include "confdefs.h" |
2835 | #include <sys/types.h> | |
2836 | #if STDC_HEADERS | |
2837 | #include <stdlib.h> | |
2838 | #include <stddef.h> | |
2839 | #endif | |
2840 | EOF | |
2841 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2842 | egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2843 | rm -rf conftest* | |
2844 | ac_cv_type_mode_t=yes | |
2845 | else | |
2846 | rm -rf conftest* | |
2847 | ac_cv_type_mode_t=no | |
2848 | fi | |
2849 | rm -f conftest* | |
2850 | ||
2851 | fi | |
2852 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
2853 | if test $ac_cv_type_mode_t = no; then | |
2854 | cat >> confdefs.h <<\EOF | |
2855 | #define mode_t int | |
2856 | EOF | |
2857 | ||
2858 | fi | |
2859 | ||
2860 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
cf447356 | 2861 | echo "configure:2862: checking for off_t" >&5 |
c801d85f KB |
2862 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
2863 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2864 | else | |
2865 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2866 | #line 2867 "configure" |
c801d85f KB |
2867 | #include "confdefs.h" |
2868 | #include <sys/types.h> | |
2869 | #if STDC_HEADERS | |
2870 | #include <stdlib.h> | |
2871 | #include <stddef.h> | |
2872 | #endif | |
2873 | EOF | |
2874 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2875 | egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2876 | rm -rf conftest* | |
2877 | ac_cv_type_off_t=yes | |
2878 | else | |
2879 | rm -rf conftest* | |
2880 | ac_cv_type_off_t=no | |
2881 | fi | |
2882 | rm -f conftest* | |
2883 | ||
2884 | fi | |
2885 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
2886 | if test $ac_cv_type_off_t = no; then | |
2887 | cat >> confdefs.h <<\EOF | |
2888 | #define off_t long | |
2889 | EOF | |
2890 | ||
2891 | fi | |
2892 | ||
2893 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
cf447356 | 2894 | echo "configure:2895: checking for pid_t" >&5 |
c801d85f KB |
2895 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
2896 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2897 | else | |
2898 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2899 | #line 2900 "configure" |
c801d85f KB |
2900 | #include "confdefs.h" |
2901 | #include <sys/types.h> | |
2902 | #if STDC_HEADERS | |
2903 | #include <stdlib.h> | |
2904 | #include <stddef.h> | |
2905 | #endif | |
2906 | EOF | |
2907 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2908 | egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2909 | rm -rf conftest* | |
2910 | ac_cv_type_pid_t=yes | |
2911 | else | |
2912 | rm -rf conftest* | |
2913 | ac_cv_type_pid_t=no | |
2914 | fi | |
2915 | rm -f conftest* | |
2916 | ||
2917 | fi | |
2918 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
2919 | if test $ac_cv_type_pid_t = no; then | |
2920 | cat >> confdefs.h <<\EOF | |
2921 | #define pid_t int | |
2922 | EOF | |
2923 | ||
2924 | fi | |
2925 | ||
2926 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | |
cf447356 | 2927 | echo "configure:2928: checking return type of signal handlers" >&5 |
c801d85f KB |
2928 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
2929 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2930 | else | |
2931 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2932 | #line 2933 "configure" |
c801d85f KB |
2933 | #include "confdefs.h" |
2934 | #include <sys/types.h> | |
2935 | #include <signal.h> | |
2936 | #ifdef signal | |
2937 | #undef signal | |
2938 | #endif | |
2939 | #ifdef __cplusplus | |
2940 | extern "C" void (*signal (int, void (*)(int)))(int); | |
2941 | #else | |
2942 | void (*signal ()) (); | |
2943 | #endif | |
2944 | ||
2945 | int main() { | |
2946 | int i; | |
2947 | ; return 0; } | |
2948 | EOF | |
cf447356 | 2949 | if { (eval echo configure:2950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
2950 | rm -rf conftest* |
2951 | ac_cv_type_signal=void | |
2952 | else | |
2953 | echo "configure: failed program was:" >&5 | |
2954 | cat conftest.$ac_ext >&5 | |
2955 | rm -rf conftest* | |
2956 | ac_cv_type_signal=int | |
2957 | fi | |
2958 | rm -f conftest* | |
2959 | fi | |
2960 | ||
2961 | echo "$ac_t""$ac_cv_type_signal" 1>&6 | |
2962 | cat >> confdefs.h <<EOF | |
2963 | #define RETSIGTYPE $ac_cv_type_signal | |
2964 | EOF | |
2965 | ||
2966 | ||
2967 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
cf447356 | 2968 | echo "configure:2969: checking for size_t" >&5 |
c801d85f KB |
2969 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
2970 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2971 | else | |
2972 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 2973 | #line 2974 "configure" |
c801d85f KB |
2974 | #include "confdefs.h" |
2975 | #include <sys/types.h> | |
2976 | #if STDC_HEADERS | |
2977 | #include <stdlib.h> | |
2978 | #include <stddef.h> | |
2979 | #endif | |
2980 | EOF | |
2981 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2982 | egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2983 | rm -rf conftest* | |
2984 | ac_cv_type_size_t=yes | |
2985 | else | |
2986 | rm -rf conftest* | |
2987 | ac_cv_type_size_t=no | |
2988 | fi | |
2989 | rm -f conftest* | |
2990 | ||
2991 | fi | |
2992 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
2993 | if test $ac_cv_type_size_t = no; then | |
2994 | cat >> confdefs.h <<\EOF | |
2995 | #define size_t unsigned | |
2996 | EOF | |
2997 | ||
2998 | fi | |
2999 | ||
3000 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
cf447356 | 3001 | echo "configure:3002: checking for uid_t in sys/types.h" >&5 |
c801d85f KB |
3002 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
3003 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3004 | else | |
3005 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3006 | #line 3007 "configure" |
c801d85f KB |
3007 | #include "confdefs.h" |
3008 | #include <sys/types.h> | |
3009 | EOF | |
3010 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3011 | egrep "uid_t" >/dev/null 2>&1; then | |
3012 | rm -rf conftest* | |
3013 | ac_cv_type_uid_t=yes | |
3014 | else | |
3015 | rm -rf conftest* | |
3016 | ac_cv_type_uid_t=no | |
3017 | fi | |
3018 | rm -f conftest* | |
3019 | ||
3020 | fi | |
3021 | ||
3022 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
3023 | if test $ac_cv_type_uid_t = no; then | |
3024 | cat >> confdefs.h <<\EOF | |
3025 | #define uid_t int | |
3026 | EOF | |
3027 | ||
3028 | cat >> confdefs.h <<\EOF | |
3029 | #define gid_t int | |
3030 | EOF | |
3031 | ||
3032 | fi | |
3033 | ||
3034 | ||
3035 | ||
3036 | echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 | |
cf447356 | 3037 | echo "configure:3038: checking whether stat file-mode macros are broken" >&5 |
c801d85f KB |
3038 | if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then |
3039 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3040 | else | |
3041 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3042 | #line 3043 "configure" |
c801d85f KB |
3043 | #include "confdefs.h" |
3044 | #include <sys/types.h> | |
3045 | #include <sys/stat.h> | |
3046 | ||
3047 | #if defined(S_ISBLK) && defined(S_IFDIR) | |
3048 | # if S_ISBLK (S_IFDIR) | |
3049 | You lose. | |
3050 | # endif | |
3051 | #endif | |
3052 | ||
3053 | #if defined(S_ISBLK) && defined(S_IFCHR) | |
3054 | # if S_ISBLK (S_IFCHR) | |
3055 | You lose. | |
3056 | # endif | |
3057 | #endif | |
3058 | ||
3059 | #if defined(S_ISLNK) && defined(S_IFREG) | |
3060 | # if S_ISLNK (S_IFREG) | |
3061 | You lose. | |
3062 | # endif | |
3063 | #endif | |
3064 | ||
3065 | #if defined(S_ISSOCK) && defined(S_IFREG) | |
3066 | # if S_ISSOCK (S_IFREG) | |
3067 | You lose. | |
3068 | # endif | |
3069 | #endif | |
3070 | ||
3071 | EOF | |
3072 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3073 | egrep "You lose" >/dev/null 2>&1; then | |
3074 | rm -rf conftest* | |
3075 | ac_cv_header_stat_broken=yes | |
3076 | else | |
3077 | rm -rf conftest* | |
3078 | ac_cv_header_stat_broken=no | |
3079 | fi | |
3080 | rm -f conftest* | |
3081 | ||
3082 | fi | |
3083 | ||
3084 | echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 | |
3085 | if test $ac_cv_header_stat_broken = yes; then | |
3086 | cat >> confdefs.h <<\EOF | |
3087 | #define STAT_MACROS_BROKEN 1 | |
3088 | EOF | |
3089 | ||
3090 | fi | |
3091 | ||
3092 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
cf447356 | 3093 | echo "configure:3094: checking whether time.h and sys/time.h may both be included" >&5 |
c801d85f KB |
3094 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
3095 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3096 | else | |
3097 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3098 | #line 3099 "configure" |
c801d85f KB |
3099 | #include "confdefs.h" |
3100 | #include <sys/types.h> | |
3101 | #include <sys/time.h> | |
3102 | #include <time.h> | |
3103 | int main() { | |
3104 | struct tm *tp; | |
3105 | ; return 0; } | |
3106 | EOF | |
cf447356 | 3107 | if { (eval echo configure:3108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3108 | rm -rf conftest* |
3109 | ac_cv_header_time=yes | |
3110 | else | |
3111 | echo "configure: failed program was:" >&5 | |
3112 | cat conftest.$ac_ext >&5 | |
3113 | rm -rf conftest* | |
3114 | ac_cv_header_time=no | |
3115 | fi | |
3116 | rm -f conftest* | |
3117 | fi | |
3118 | ||
3119 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
3120 | if test $ac_cv_header_time = yes; then | |
3121 | cat >> confdefs.h <<\EOF | |
3122 | #define TIME_WITH_SYS_TIME 1 | |
3123 | EOF | |
3124 | ||
3125 | fi | |
3126 | ||
3127 | echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 | |
cf447356 | 3128 | echo "configure:3129: checking for st_blksize in struct stat" >&5 |
c801d85f KB |
3129 | if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then |
3130 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3131 | else | |
3132 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3133 | #line 3134 "configure" |
c801d85f KB |
3134 | #include "confdefs.h" |
3135 | #include <sys/types.h> | |
3136 | #include <sys/stat.h> | |
3137 | int main() { | |
3138 | struct stat s; s.st_blksize; | |
3139 | ; return 0; } | |
3140 | EOF | |
cf447356 | 3141 | if { (eval echo configure:3142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3142 | rm -rf conftest* |
3143 | ac_cv_struct_st_blksize=yes | |
3144 | else | |
3145 | echo "configure: failed program was:" >&5 | |
3146 | cat conftest.$ac_ext >&5 | |
3147 | rm -rf conftest* | |
3148 | ac_cv_struct_st_blksize=no | |
3149 | fi | |
3150 | rm -f conftest* | |
3151 | fi | |
3152 | ||
3153 | echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 | |
3154 | if test $ac_cv_struct_st_blksize = yes; then | |
3155 | cat >> confdefs.h <<\EOF | |
3156 | #define HAVE_ST_BLKSIZE 1 | |
3157 | EOF | |
3158 | ||
3159 | fi | |
3160 | ||
3161 | echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6 | |
cf447356 | 3162 | echo "configure:3163: checking for st_blocks in struct stat" >&5 |
c801d85f KB |
3163 | if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then |
3164 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3165 | else | |
3166 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3167 | #line 3168 "configure" |
c801d85f KB |
3168 | #include "confdefs.h" |
3169 | #include <sys/types.h> | |
3170 | #include <sys/stat.h> | |
3171 | int main() { | |
3172 | struct stat s; s.st_blocks; | |
3173 | ; return 0; } | |
3174 | EOF | |
cf447356 | 3175 | if { (eval echo configure:3176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3176 | rm -rf conftest* |
3177 | ac_cv_struct_st_blocks=yes | |
3178 | else | |
3179 | echo "configure: failed program was:" >&5 | |
3180 | cat conftest.$ac_ext >&5 | |
3181 | rm -rf conftest* | |
3182 | ac_cv_struct_st_blocks=no | |
3183 | fi | |
3184 | rm -f conftest* | |
3185 | fi | |
3186 | ||
3187 | echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6 | |
3188 | if test $ac_cv_struct_st_blocks = yes; then | |
3189 | cat >> confdefs.h <<\EOF | |
3190 | #define HAVE_ST_BLOCKS 1 | |
3191 | EOF | |
3192 | ||
3193 | else | |
3194 | LIBOBJS="$LIBOBJS fileblocks.o" | |
3195 | fi | |
3196 | ||
3197 | echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6 | |
cf447356 | 3198 | echo "configure:3199: checking for st_rdev in struct stat" >&5 |
c801d85f KB |
3199 | if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then |
3200 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3201 | else | |
3202 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3203 | #line 3204 "configure" |
c801d85f KB |
3204 | #include "confdefs.h" |
3205 | #include <sys/types.h> | |
3206 | #include <sys/stat.h> | |
3207 | int main() { | |
3208 | struct stat s; s.st_rdev; | |
3209 | ; return 0; } | |
3210 | EOF | |
cf447356 | 3211 | if { (eval echo configure:3212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3212 | rm -rf conftest* |
3213 | ac_cv_struct_st_rdev=yes | |
3214 | else | |
3215 | echo "configure: failed program was:" >&5 | |
3216 | cat conftest.$ac_ext >&5 | |
3217 | rm -rf conftest* | |
3218 | ac_cv_struct_st_rdev=no | |
3219 | fi | |
3220 | rm -f conftest* | |
3221 | fi | |
3222 | ||
3223 | echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6 | |
3224 | if test $ac_cv_struct_st_rdev = yes; then | |
3225 | cat >> confdefs.h <<\EOF | |
3226 | #define HAVE_ST_RDEV 1 | |
3227 | EOF | |
3228 | ||
3229 | fi | |
3230 | ||
3231 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | |
cf447356 | 3232 | echo "configure:3233: checking whether struct tm is in sys/time.h or time.h" >&5 |
c801d85f KB |
3233 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
3234 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3235 | else | |
3236 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3237 | #line 3238 "configure" |
c801d85f KB |
3238 | #include "confdefs.h" |
3239 | #include <sys/types.h> | |
3240 | #include <time.h> | |
3241 | int main() { | |
3242 | struct tm *tp; tp->tm_sec; | |
3243 | ; return 0; } | |
3244 | EOF | |
cf447356 | 3245 | if { (eval echo configure:3246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3246 | rm -rf conftest* |
3247 | ac_cv_struct_tm=time.h | |
3248 | else | |
3249 | echo "configure: failed program was:" >&5 | |
3250 | cat conftest.$ac_ext >&5 | |
3251 | rm -rf conftest* | |
3252 | ac_cv_struct_tm=sys/time.h | |
3253 | fi | |
3254 | rm -f conftest* | |
3255 | fi | |
3256 | ||
3257 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 | |
3258 | if test $ac_cv_struct_tm = sys/time.h; then | |
3259 | cat >> confdefs.h <<\EOF | |
3260 | #define TM_IN_SYS_TIME 1 | |
3261 | EOF | |
3262 | ||
3263 | fi | |
3264 | ||
3265 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | |
cf447356 | 3266 | echo "configure:3267: checking for tm_zone in struct tm" >&5 |
c801d85f KB |
3267 | if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
3268 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3269 | else | |
3270 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3271 | #line 3272 "configure" |
c801d85f KB |
3272 | #include "confdefs.h" |
3273 | #include <sys/types.h> | |
3274 | #include <$ac_cv_struct_tm> | |
3275 | int main() { | |
3276 | struct tm tm; tm.tm_zone; | |
3277 | ; return 0; } | |
3278 | EOF | |
cf447356 | 3279 | if { (eval echo configure:3280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3280 | rm -rf conftest* |
3281 | ac_cv_struct_tm_zone=yes | |
3282 | else | |
3283 | echo "configure: failed program was:" >&5 | |
3284 | cat conftest.$ac_ext >&5 | |
3285 | rm -rf conftest* | |
3286 | ac_cv_struct_tm_zone=no | |
3287 | fi | |
3288 | rm -f conftest* | |
3289 | fi | |
3290 | ||
3291 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 | |
3292 | if test "$ac_cv_struct_tm_zone" = yes; then | |
3293 | cat >> confdefs.h <<\EOF | |
3294 | #define HAVE_TM_ZONE 1 | |
3295 | EOF | |
3296 | ||
3297 | else | |
3298 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 | |
cf447356 | 3299 | echo "configure:3300: checking for tzname" >&5 |
c801d85f KB |
3300 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
3301 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3302 | else | |
3303 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3304 | #line 3305 "configure" |
c801d85f KB |
3305 | #include "confdefs.h" |
3306 | #include <time.h> | |
3307 | #ifndef tzname /* For SGI. */ | |
3308 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
3309 | #endif | |
3310 | int main() { | |
3311 | atoi(*tzname); | |
3312 | ; return 0; } | |
3313 | EOF | |
cf447356 | 3314 | if { (eval echo configure:3315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
3315 | rm -rf conftest* |
3316 | ac_cv_var_tzname=yes | |
3317 | else | |
3318 | echo "configure: failed program was:" >&5 | |
3319 | cat conftest.$ac_ext >&5 | |
3320 | rm -rf conftest* | |
3321 | ac_cv_var_tzname=no | |
3322 | fi | |
3323 | rm -f conftest* | |
3324 | fi | |
3325 | ||
3326 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 | |
3327 | if test $ac_cv_var_tzname = yes; then | |
3328 | cat >> confdefs.h <<\EOF | |
3329 | #define HAVE_TZNAME 1 | |
3330 | EOF | |
3331 | ||
3332 | fi | |
3333 | fi | |
3334 | ||
3335 | ||
3336 | ||
3337 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
cf447356 | 3338 | echo "configure:3339: checking for working const" >&5 |
c801d85f KB |
3339 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
3340 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3341 | else | |
3342 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3343 | #line 3344 "configure" |
c801d85f KB |
3344 | #include "confdefs.h" |
3345 | ||
3346 | int main() { | |
3347 | ||
3348 | /* Ultrix mips cc rejects this. */ | |
3349 | typedef int charset[2]; const charset x; | |
3350 | /* SunOS 4.1.1 cc rejects this. */ | |
3351 | char const *const *ccp; | |
3352 | char **p; | |
3353 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3354 | struct point {int x, y;}; | |
3355 | static struct point const zero = {0,0}; | |
3356 | /* AIX XL C 1.02.0.0 rejects this. | |
3357 | It does not let you subtract one const X* pointer from another in an arm | |
3358 | of an if-expression whose if-part is not a constant expression */ | |
3359 | const char *g = "string"; | |
3360 | ccp = &g + (g ? g-g : 0); | |
3361 | /* HPUX 7.0 cc rejects these. */ | |
3362 | ++ccp; | |
3363 | p = (char**) ccp; | |
3364 | ccp = (char const *const *) p; | |
3365 | { /* SCO 3.2v4 cc rejects this. */ | |
3366 | char *t; | |
3367 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3368 | ||
3369 | *t++ = 0; | |
3370 | } | |
3371 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3372 | int x[] = {25, 17}; | |
3373 | const int *foo = &x[0]; | |
3374 | ++foo; | |
3375 | } | |
3376 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3377 | typedef const int *iptr; | |
3378 | iptr p = 0; | |
3379 | ++p; | |
3380 | } | |
3381 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3382 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3383 | struct s { int j; const int *ap[3]; }; | |
3384 | struct s *b; b->j = 5; | |
3385 | } | |
3386 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3387 | const int foo = 10; | |
3388 | } | |
3389 | ||
3390 | ; return 0; } | |
3391 | EOF | |
cf447356 | 3392 | if { (eval echo configure:3393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3393 | rm -rf conftest* |
3394 | ac_cv_c_const=yes | |
3395 | else | |
3396 | echo "configure: failed program was:" >&5 | |
3397 | cat conftest.$ac_ext >&5 | |
3398 | rm -rf conftest* | |
3399 | ac_cv_c_const=no | |
3400 | fi | |
3401 | rm -f conftest* | |
3402 | fi | |
3403 | ||
3404 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
3405 | if test $ac_cv_c_const = no; then | |
3406 | cat >> confdefs.h <<\EOF | |
3407 | #define const | |
3408 | EOF | |
3409 | ||
3410 | fi | |
3411 | ||
3412 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
cf447356 | 3413 | echo "configure:3414: checking for inline" >&5 |
c801d85f KB |
3414 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
3415 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3416 | else | |
3417 | ac_cv_c_inline=no | |
3418 | for ac_kw in inline __inline__ __inline; do | |
3419 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3420 | #line 3421 "configure" |
c801d85f KB |
3421 | #include "confdefs.h" |
3422 | ||
3423 | int main() { | |
3424 | } $ac_kw foo() { | |
3425 | ; return 0; } | |
3426 | EOF | |
cf447356 | 3427 | if { (eval echo configure:3428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3428 | rm -rf conftest* |
3429 | ac_cv_c_inline=$ac_kw; break | |
3430 | else | |
3431 | echo "configure: failed program was:" >&5 | |
3432 | cat conftest.$ac_ext >&5 | |
3433 | fi | |
3434 | rm -f conftest* | |
3435 | done | |
3436 | ||
3437 | fi | |
3438 | ||
3439 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
3440 | case "$ac_cv_c_inline" in | |
3441 | inline | yes) ;; | |
3442 | no) cat >> confdefs.h <<\EOF | |
3443 | #define inline | |
3444 | EOF | |
3445 | ;; | |
3446 | *) cat >> confdefs.h <<EOF | |
3447 | #define inline $ac_cv_c_inline | |
3448 | EOF | |
3449 | ;; | |
3450 | esac | |
3451 | ||
3452 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 | |
cf447356 | 3453 | echo "configure:3454: checking whether char is unsigned" >&5 |
c801d85f KB |
3454 | if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then |
3455 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3456 | else | |
3457 | if test "$GCC" = yes; then | |
3458 | # GCC predefines this symbol on systems where it applies. | |
3459 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3460 | #line 3461 "configure" |
c801d85f KB |
3461 | #include "confdefs.h" |
3462 | #ifdef __CHAR_UNSIGNED__ | |
3463 | yes | |
3464 | #endif | |
3465 | ||
3466 | EOF | |
3467 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3468 | egrep "yes" >/dev/null 2>&1; then | |
3469 | rm -rf conftest* | |
3470 | ac_cv_c_char_unsigned=yes | |
3471 | else | |
3472 | rm -rf conftest* | |
3473 | ac_cv_c_char_unsigned=no | |
3474 | fi | |
3475 | rm -f conftest* | |
3476 | ||
3477 | else | |
3478 | if test "$cross_compiling" = yes; then | |
3479 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
3480 | else | |
3481 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3482 | #line 3483 "configure" |
c801d85f KB |
3483 | #include "confdefs.h" |
3484 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ | |
3485 | #if !defined(__STDC__) || __STDC__ != 1 | |
3486 | #define volatile | |
3487 | #endif | |
3488 | main() { | |
3489 | volatile char c = 255; exit(c < 0); | |
3490 | } | |
3491 | EOF | |
cf447356 | 3492 | if { (eval echo configure:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
3493 | then |
3494 | ac_cv_c_char_unsigned=yes | |
3495 | else | |
3496 | echo "configure: failed program was:" >&5 | |
3497 | cat conftest.$ac_ext >&5 | |
3498 | rm -fr conftest* | |
3499 | ac_cv_c_char_unsigned=no | |
3500 | fi | |
3501 | rm -fr conftest* | |
3502 | fi | |
3503 | ||
3504 | fi | |
3505 | fi | |
3506 | ||
3507 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 | |
3508 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | |
3509 | cat >> confdefs.h <<\EOF | |
3510 | #define __CHAR_UNSIGNED__ 1 | |
3511 | EOF | |
3512 | ||
3513 | fi | |
3514 | ||
3515 | echo $ac_n "checking for long double""... $ac_c" 1>&6 | |
cf447356 | 3516 | echo "configure:3517: checking for long double" >&5 |
c801d85f KB |
3517 | if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then |
3518 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3519 | else | |
3520 | if test "$GCC" = yes; then | |
3521 | ac_cv_c_long_double=yes | |
3522 | else | |
3523 | if test "$cross_compiling" = yes; then | |
3524 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
3525 | else | |
3526 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3527 | #line 3528 "configure" |
c801d85f KB |
3528 | #include "confdefs.h" |
3529 | int main() { | |
3530 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ | |
3531 | long double foo = 0.0; | |
3532 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ | |
3533 | exit(sizeof(long double) < sizeof(double)); } | |
3534 | EOF | |
cf447356 | 3535 | if { (eval echo configure:3536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
3536 | then |
3537 | ac_cv_c_long_double=yes | |
3538 | else | |
3539 | echo "configure: failed program was:" >&5 | |
3540 | cat conftest.$ac_ext >&5 | |
3541 | rm -fr conftest* | |
3542 | ac_cv_c_long_double=no | |
3543 | fi | |
3544 | rm -fr conftest* | |
3545 | fi | |
3546 | ||
3547 | fi | |
3548 | fi | |
3549 | ||
3550 | echo "$ac_t""$ac_cv_c_long_double" 1>&6 | |
3551 | if test $ac_cv_c_long_double = yes; then | |
3552 | cat >> confdefs.h <<\EOF | |
3553 | #define HAVE_LONG_DOUBLE 1 | |
3554 | EOF | |
3555 | ||
3556 | fi | |
3557 | ||
3558 | ||
3559 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
cf447356 | 3560 | echo "configure:3561: checking whether byte ordering is bigendian" >&5 |
c801d85f KB |
3561 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
3562 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3563 | else | |
3564 | ac_cv_c_bigendian=unknown | |
3565 | # See if sys/param.h defines the BYTE_ORDER macro. | |
3566 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3567 | #line 3568 "configure" |
c801d85f KB |
3568 | #include "confdefs.h" |
3569 | #include <sys/types.h> | |
3570 | #include <sys/param.h> | |
3571 | int main() { | |
3572 | ||
3573 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
3574 | bogus endian macros | |
3575 | #endif | |
3576 | ; return 0; } | |
3577 | EOF | |
cf447356 | 3578 | if { (eval echo configure:3579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3579 | rm -rf conftest* |
3580 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
3581 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3582 | #line 3583 "configure" |
c801d85f KB |
3583 | #include "confdefs.h" |
3584 | #include <sys/types.h> | |
3585 | #include <sys/param.h> | |
3586 | int main() { | |
3587 | ||
3588 | #if BYTE_ORDER != BIG_ENDIAN | |
3589 | not big endian | |
3590 | #endif | |
3591 | ; return 0; } | |
3592 | EOF | |
cf447356 | 3593 | if { (eval echo configure:3594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3594 | rm -rf conftest* |
3595 | ac_cv_c_bigendian=yes | |
3596 | else | |
3597 | echo "configure: failed program was:" >&5 | |
3598 | cat conftest.$ac_ext >&5 | |
3599 | rm -rf conftest* | |
3600 | ac_cv_c_bigendian=no | |
3601 | fi | |
3602 | rm -f conftest* | |
3603 | else | |
3604 | echo "configure: failed program was:" >&5 | |
3605 | cat conftest.$ac_ext >&5 | |
3606 | fi | |
3607 | rm -f conftest* | |
3608 | if test $ac_cv_c_bigendian = unknown; then | |
3609 | if test "$cross_compiling" = yes; then | |
3610 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
3611 | else | |
3612 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3613 | #line 3614 "configure" |
c801d85f KB |
3614 | #include "confdefs.h" |
3615 | main () { | |
3616 | /* Are we little or big endian? From Harbison&Steele. */ | |
3617 | union | |
3618 | { | |
3619 | long l; | |
3620 | char c[sizeof (long)]; | |
3621 | } u; | |
3622 | u.l = 1; | |
3623 | exit (u.c[sizeof (long) - 1] == 1); | |
3624 | } | |
3625 | EOF | |
cf447356 | 3626 | if { (eval echo configure:3627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
3627 | then |
3628 | ac_cv_c_bigendian=no | |
3629 | else | |
3630 | echo "configure: failed program was:" >&5 | |
3631 | cat conftest.$ac_ext >&5 | |
3632 | rm -fr conftest* | |
3633 | ac_cv_c_bigendian=yes | |
3634 | fi | |
3635 | rm -fr conftest* | |
3636 | fi | |
3637 | ||
3638 | fi | |
3639 | fi | |
3640 | ||
3641 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
3642 | if test $ac_cv_c_bigendian = yes; then | |
3643 | cat >> confdefs.h <<\EOF | |
3644 | #define WORDS_BIGENDIAN 1 | |
3645 | EOF | |
3646 | ||
3647 | fi | |
3648 | ||
3649 | ||
3650 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
cf447356 | 3651 | echo "configure:3652: checking size of int *" >&5 |
c801d85f KB |
3652 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
3653 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3654 | else | |
3655 | if test "$cross_compiling" = yes; then | |
3656 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
3657 | else | |
3658 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3659 | #line 3660 "configure" |
c801d85f KB |
3660 | #include "confdefs.h" |
3661 | #include <stdio.h> | |
3662 | main() | |
3663 | { | |
3664 | FILE *f=fopen("conftestval", "w"); | |
3665 | if (!f) exit(1); | |
3666 | fprintf(f, "%d\n", sizeof(int *)); | |
3667 | exit(0); | |
3668 | } | |
3669 | EOF | |
cf447356 | 3670 | if { (eval echo configure:3671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
3671 | then |
3672 | ac_cv_sizeof_int_p=`cat conftestval` | |
3673 | else | |
3674 | echo "configure: failed program was:" >&5 | |
3675 | cat conftest.$ac_ext >&5 | |
3676 | rm -fr conftest* | |
3677 | ac_cv_sizeof_int_p=0 | |
3678 | fi | |
3679 | rm -fr conftest* | |
3680 | fi | |
3681 | ||
3682 | fi | |
3683 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
3684 | cat >> confdefs.h <<EOF | |
3685 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
3686 | EOF | |
3687 | ||
3688 | ||
3689 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
cf447356 | 3690 | echo "configure:3691: checking size of int" >&5 |
c801d85f KB |
3691 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
3692 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3693 | else | |
3694 | if test "$cross_compiling" = yes; then | |
3695 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
3696 | else | |
3697 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3698 | #line 3699 "configure" |
c801d85f KB |
3699 | #include "confdefs.h" |
3700 | #include <stdio.h> | |
3701 | main() | |
3702 | { | |
3703 | FILE *f=fopen("conftestval", "w"); | |
3704 | if (!f) exit(1); | |
3705 | fprintf(f, "%d\n", sizeof(int)); | |
3706 | exit(0); | |
3707 | } | |
3708 | EOF | |
cf447356 | 3709 | if { (eval echo configure:3710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
3710 | then |
3711 | ac_cv_sizeof_int=`cat conftestval` | |
3712 | else | |
3713 | echo "configure: failed program was:" >&5 | |
3714 | cat conftest.$ac_ext >&5 | |
3715 | rm -fr conftest* | |
3716 | ac_cv_sizeof_int=0 | |
3717 | fi | |
3718 | rm -fr conftest* | |
3719 | fi | |
3720 | ||
3721 | fi | |
3722 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
3723 | cat >> confdefs.h <<EOF | |
3724 | #define SIZEOF_INT $ac_cv_sizeof_int | |
3725 | EOF | |
3726 | ||
3727 | ||
3728 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
cf447356 | 3729 | echo "configure:3730: checking size of long" >&5 |
c801d85f KB |
3730 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
3731 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3732 | else | |
3733 | if test "$cross_compiling" = yes; then | |
3734 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
3735 | else | |
3736 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3737 | #line 3738 "configure" |
c801d85f KB |
3738 | #include "confdefs.h" |
3739 | #include <stdio.h> | |
3740 | main() | |
3741 | { | |
3742 | FILE *f=fopen("conftestval", "w"); | |
3743 | if (!f) exit(1); | |
3744 | fprintf(f, "%d\n", sizeof(long)); | |
3745 | exit(0); | |
3746 | } | |
3747 | EOF | |
cf447356 | 3748 | if { (eval echo configure:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
3749 | then |
3750 | ac_cv_sizeof_long=`cat conftestval` | |
3751 | else | |
3752 | echo "configure: failed program was:" >&5 | |
3753 | cat conftest.$ac_ext >&5 | |
3754 | rm -fr conftest* | |
3755 | ac_cv_sizeof_long=0 | |
3756 | fi | |
3757 | rm -fr conftest* | |
3758 | fi | |
3759 | ||
3760 | fi | |
3761 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
3762 | cat >> confdefs.h <<EOF | |
3763 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
3764 | EOF | |
3765 | ||
3766 | ||
3767 | ||
3768 | ||
82052aff GL |
3769 | |
3770 | ||
bdc6fff9 GL |
3771 | USE_THREADS=1 |
3772 | THREADS_LINK="" | |
3773 | UNIX_THREAD="" | |
3774 | ||
3775 | # Check whether --with-threads or --without-threads was given. | |
3776 | if test "${with_threads+set}" = set; then | |
3777 | withval="$with_threads" | |
3778 | USE_THREADS="$withval" | |
3779 | fi | |
3780 | ||
3781 | ||
3782 | if test "$USE_THREADS" = "1"; then | |
3783 | UNIX_THREAD="gtk/threadno.cpp" | |
3784 | ||
3785 | ||
3786 | echo $ac_n "checking for pthread_create in -lpthread-0.7""... $ac_c" 1>&6 | |
cf447356 | 3787 | echo "configure:3788: checking for pthread_create in -lpthread-0.7" >&5 |
bdc6fff9 GL |
3788 | ac_lib_var=`echo pthread-0.7'_'pthread_create | sed 'y%./+-%__p_%'` |
3789 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3790 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3791 | else | |
3792 | ac_save_LIBS="$LIBS" | |
3793 | LIBS="-lpthread-0.7 $LIBS" | |
3794 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3795 | #line 3796 "configure" |
bdc6fff9 GL |
3796 | #include "confdefs.h" |
3797 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3798 | /* We use char because int might match the return type of a gcc2 | |
3799 | builtin and then its argument prototype would still apply. */ | |
3800 | char pthread_create(); | |
3801 | ||
3802 | int main() { | |
3803 | pthread_create() | |
3804 | ; return 0; } | |
3805 | EOF | |
cf447356 | 3806 | if { (eval echo configure:3807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
bdc6fff9 GL |
3807 | rm -rf conftest* |
3808 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3809 | else | |
3810 | echo "configure: failed program was:" >&5 | |
3811 | cat conftest.$ac_ext >&5 | |
3812 | rm -rf conftest* | |
3813 | eval "ac_cv_lib_$ac_lib_var=no" | |
3814 | fi | |
3815 | rm -f conftest* | |
3816 | LIBS="$ac_save_LIBS" | |
3817 | ||
3818 | fi | |
3819 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3820 | echo "$ac_t""yes" 1>&6 | |
3821 | ||
3822 | UNIX_THREAD="gtk/threadpsx.cpp" | |
3823 | THREADS_LINK="-lpthread-0.7" | |
3824 | cat >> confdefs.h <<\EOF | |
3825 | #define USE_THREADS 1 | |
3826 | EOF | |
3827 | ||
3828 | ||
3829 | else | |
3830 | echo "$ac_t""no" 1>&6 | |
3831 | ||
3832 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 | |
cf447356 | 3833 | echo "configure:3834: checking for pthread_create in -lpthread" >&5 |
7c351dad GL |
3834 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
3835 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3836 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3837 | else | |
3838 | ac_save_LIBS="$LIBS" | |
3839 | LIBS="-lpthread $LIBS" | |
3840 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3841 | #line 3842 "configure" |
7c351dad GL |
3842 | #include "confdefs.h" |
3843 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3844 | /* We use char because int might match the return type of a gcc2 | |
3845 | builtin and then its argument prototype would still apply. */ | |
3846 | char pthread_create(); | |
3847 | ||
3848 | int main() { | |
3849 | pthread_create() | |
3850 | ; return 0; } | |
3851 | EOF | |
cf447356 | 3852 | if { (eval echo configure:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
7c351dad GL |
3853 | rm -rf conftest* |
3854 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3855 | else | |
3856 | echo "configure: failed program was:" >&5 | |
3857 | cat conftest.$ac_ext >&5 | |
3858 | rm -rf conftest* | |
3859 | eval "ac_cv_lib_$ac_lib_var=no" | |
3860 | fi | |
3861 | rm -f conftest* | |
3862 | LIBS="$ac_save_LIBS" | |
3863 | ||
3864 | fi | |
3865 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3866 | echo "$ac_t""yes" 1>&6 | |
82052aff | 3867 | |
bdc6fff9 GL |
3868 | UNIX_THREAD="gtk/threadpsx.cpp" |
3869 | THREADS_LINK="-lpthread" | |
3870 | cat >> confdefs.h <<\EOF | |
82052aff | 3871 | #define USE_THREADS 1 |
7c351dad | 3872 | EOF |
7c351dad | 3873 | |
bdc6fff9 | 3874 | |
7c351dad GL |
3875 | else |
3876 | echo "$ac_t""no" 1>&6 | |
3877 | fi | |
3878 | ||
bdc6fff9 GL |
3879 | |
3880 | fi | |
3881 | ||
3882 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 | |
cf447356 | 3883 | echo "configure:3884: checking for pthread_create in -lpthreads" >&5 |
7c351dad GL |
3884 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
3885 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3886 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3887 | else | |
3888 | ac_save_LIBS="$LIBS" | |
3889 | LIBS="-lpthreads $LIBS" | |
3890 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3891 | #line 3892 "configure" |
7c351dad GL |
3892 | #include "confdefs.h" |
3893 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3894 | /* We use char because int might match the return type of a gcc2 | |
3895 | builtin and then its argument prototype would still apply. */ | |
3896 | char pthread_create(); | |
3897 | ||
3898 | int main() { | |
3899 | pthread_create() | |
3900 | ; return 0; } | |
3901 | EOF | |
cf447356 | 3902 | if { (eval echo configure:3903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
7c351dad GL |
3903 | rm -rf conftest* |
3904 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3905 | else | |
3906 | echo "configure: failed program was:" >&5 | |
3907 | cat conftest.$ac_ext >&5 | |
3908 | rm -rf conftest* | |
3909 | eval "ac_cv_lib_$ac_lib_var=no" | |
3910 | fi | |
3911 | rm -f conftest* | |
3912 | LIBS="$ac_save_LIBS" | |
3913 | ||
3914 | fi | |
3915 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3916 | echo "$ac_t""yes" 1>&6 | |
82052aff | 3917 | |
bdc6fff9 GL |
3918 | UNIX_THREAD="gtk/threadpsx.cpp" |
3919 | THREADS_LINK="-lpthreads" | |
3920 | cat >> confdefs.h <<\EOF | |
82052aff GL |
3921 | #define USE_THREADS 1 |
3922 | EOF | |
3923 | ||
bdc6fff9 | 3924 | |
7c351dad GL |
3925 | else |
3926 | echo "$ac_t""no" 1>&6 | |
3927 | fi | |
3928 | ||
bdc6fff9 | 3929 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
7c351dad | 3930 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 |
cf447356 | 3931 | echo "configure:3932: checking for sys/prctl.h" >&5 |
7c351dad GL |
3932 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3933 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3934 | else | |
3935 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 3936 | #line 3937 "configure" |
7c351dad GL |
3937 | #include "confdefs.h" |
3938 | #include <sys/prctl.h> | |
3939 | EOF | |
3940 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
cf447356 | 3941 | { (eval echo configure:3942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7c351dad GL |
3942 | ac_err=`grep -v '^ *+' conftest.out` |
3943 | if test -z "$ac_err"; then | |
3944 | rm -rf conftest* | |
3945 | eval "ac_cv_header_$ac_safe=yes" | |
3946 | else | |
3947 | echo "$ac_err" >&5 | |
3948 | echo "configure: failed program was:" >&5 | |
3949 | cat conftest.$ac_ext >&5 | |
3950 | rm -rf conftest* | |
3951 | eval "ac_cv_header_$ac_safe=no" | |
3952 | fi | |
3953 | rm -f conftest* | |
3954 | fi | |
3955 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3956 | echo "$ac_t""yes" 1>&6 | |
82052aff | 3957 | |
bdc6fff9 GL |
3958 | UNIX_THREAD="gtk/threadsgi.cpp" |
3959 | cat >> confdefs.h <<\EOF | |
82052aff GL |
3960 | #define USE_THREADS 1 |
3961 | EOF | |
3962 | ||
bdc6fff9 | 3963 | |
7c351dad GL |
3964 | else |
3965 | echo "$ac_t""no" 1>&6 | |
3966 | fi | |
3967 | ||
bdc6fff9 GL |
3968 | fi |
3969 | ||
7c351dad | 3970 | |
c801d85f | 3971 | |
82052aff | 3972 | |
c801d85f | 3973 | echo $ac_n "checking for long file names""... $ac_c" 1>&6 |
cf447356 | 3974 | echo "configure:3975: checking for long file names" >&5 |
c801d85f KB |
3975 | if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then |
3976 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3977 | else | |
3978 | ac_cv_sys_long_file_names=yes | |
3979 | # Test for long file names in all the places we know might matter: | |
3980 | # . the current directory, where building will happen | |
3981 | # $prefix/lib where we will be installing things | |
3982 | # $exec_prefix/lib likewise | |
3983 | # eval it to expand exec_prefix. | |
3984 | # $TMPDIR if set, where it might want to write temporary files | |
3985 | # if $TMPDIR is not set: | |
3986 | # /tmp where it might want to write temporary files | |
3987 | # /var/tmp likewise | |
3988 | # /usr/tmp likewise | |
3989 | if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
3990 | ac_tmpdirs="$TMPDIR" | |
3991 | else | |
3992 | ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
3993 | fi | |
3994 | for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
3995 | test -d $ac_dir || continue | |
3996 | test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
3997 | (echo 1 > $ac_dir/conftest9012345) 2>/dev/null | |
3998 | (echo 2 > $ac_dir/conftest9012346) 2>/dev/null | |
3999 | val=`cat $ac_dir/conftest9012345 2>/dev/null` | |
4000 | if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then | |
4001 | ac_cv_sys_long_file_names=no | |
4002 | rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
4003 | break | |
4004 | fi | |
4005 | rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
4006 | done | |
4007 | fi | |
4008 | ||
4009 | echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6 | |
4010 | if test $ac_cv_sys_long_file_names = yes; then | |
4011 | cat >> confdefs.h <<\EOF | |
4012 | #define HAVE_LONG_FILE_NAMES 1 | |
4013 | EOF | |
4014 | ||
4015 | fi | |
4016 | ||
4017 | ||
4018 | ||
4019 | ||
4020 | for ac_prog in 'bison -y' byacc | |
4021 | do | |
4022 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4023 | set dummy $ac_prog; ac_word=$2 | |
4024 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
cf447356 | 4025 | echo "configure:4026: checking for $ac_word" >&5 |
c801d85f KB |
4026 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
4027 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4028 | else | |
4029 | if test -n "$YACC"; then | |
4030 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4031 | else | |
4032 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
4033 | for ac_dir in $PATH; do | |
4034 | test -z "$ac_dir" && ac_dir=. | |
4035 | if test -f $ac_dir/$ac_word; then | |
4036 | ac_cv_prog_YACC="$ac_prog" | |
4037 | break | |
4038 | fi | |
4039 | done | |
4040 | IFS="$ac_save_ifs" | |
4041 | fi | |
4042 | fi | |
4043 | YACC="$ac_cv_prog_YACC" | |
4044 | if test -n "$YACC"; then | |
4045 | echo "$ac_t""$YACC" 1>&6 | |
4046 | else | |
4047 | echo "$ac_t""no" 1>&6 | |
4048 | fi | |
4049 | ||
4050 | test -n "$YACC" && break | |
4051 | done | |
4052 | test -n "$YACC" || YACC="yacc" | |
4053 | ||
4054 | ||
4055 | # Extract the first word of "flex", so it can be a program name with args. | |
4056 | set dummy flex; ac_word=$2 | |
4057 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
cf447356 | 4058 | echo "configure:4059: checking for $ac_word" >&5 |
c801d85f KB |
4059 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
4060 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4061 | else | |
4062 | if test -n "$LEX"; then | |
4063 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
4064 | else | |
4065 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
4066 | for ac_dir in $PATH; do | |
4067 | test -z "$ac_dir" && ac_dir=. | |
4068 | if test -f $ac_dir/$ac_word; then | |
4069 | ac_cv_prog_LEX="flex" | |
4070 | break | |
4071 | fi | |
4072 | done | |
4073 | IFS="$ac_save_ifs" | |
4074 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
4075 | fi | |
4076 | fi | |
4077 | LEX="$ac_cv_prog_LEX" | |
4078 | if test -n "$LEX"; then | |
4079 | echo "$ac_t""$LEX" 1>&6 | |
4080 | else | |
4081 | echo "$ac_t""no" 1>&6 | |
4082 | fi | |
4083 | ||
4084 | if test -z "$LEXLIB" | |
4085 | then | |
4086 | case "$LEX" in | |
4087 | flex*) ac_lib=fl ;; | |
4088 | *) ac_lib=l ;; | |
4089 | esac | |
4090 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
cf447356 | 4091 | echo "configure:4092: checking for yywrap in -l$ac_lib" >&5 |
c801d85f KB |
4092 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
4093 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4094 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4095 | else | |
4096 | ac_save_LIBS="$LIBS" | |
4097 | LIBS="-l$ac_lib $LIBS" | |
4098 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 4099 | #line 4100 "configure" |
c801d85f KB |
4100 | #include "confdefs.h" |
4101 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4102 | /* We use char because int might match the return type of a gcc2 | |
4103 | builtin and then its argument prototype would still apply. */ | |
4104 | char yywrap(); | |
4105 | ||
4106 | int main() { | |
4107 | yywrap() | |
4108 | ; return 0; } | |
4109 | EOF | |
cf447356 | 4110 | if { (eval echo configure:4111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
4111 | rm -rf conftest* |
4112 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4113 | else | |
4114 | echo "configure: failed program was:" >&5 | |
4115 | cat conftest.$ac_ext >&5 | |
4116 | rm -rf conftest* | |
4117 | eval "ac_cv_lib_$ac_lib_var=no" | |
4118 | fi | |
4119 | rm -f conftest* | |
4120 | LIBS="$ac_save_LIBS" | |
4121 | ||
4122 | fi | |
4123 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4124 | echo "$ac_t""yes" 1>&6 | |
4125 | LEXLIB="-l$ac_lib" | |
4126 | else | |
4127 | echo "$ac_t""no" 1>&6 | |
4128 | fi | |
4129 | ||
4130 | fi | |
4131 | ||
4132 | echo $ac_n "checking lex output file root""... $ac_c" 1>&6 | |
cf447356 | 4133 | echo "configure:4134: checking lex output file root" >&5 |
c801d85f KB |
4134 | if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then |
4135 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4136 | else | |
4137 | # The minimal lex program is just a single line: %%. But some broken lexes | |
4138 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
4139 | echo '%% | |
4140 | %%' | $LEX | |
4141 | if test -f lex.yy.c; then | |
4142 | ac_cv_prog_lex_root=lex.yy | |
4143 | elif test -f lexyy.c; then | |
4144 | ac_cv_prog_lex_root=lexyy | |
4145 | else | |
4146 | { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; } | |
4147 | fi | |
4148 | fi | |
4149 | ||
4150 | echo "$ac_t""$ac_cv_prog_lex_root" 1>&6 | |
4151 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
4152 | ||
4153 | echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 | |
cf447356 | 4154 | echo "configure:4155: checking whether yytext is a pointer" >&5 |
c801d85f KB |
4155 | if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then |
4156 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4157 | else | |
4158 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
4159 | # default is implementation-dependent. Figure out which it is, since | |
4160 | # not all implementations provide the %pointer and %array declarations. | |
4161 | ac_cv_prog_lex_yytext_pointer=no | |
4162 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
4163 | ac_save_LIBS="$LIBS" | |
4164 | LIBS="$LIBS $LEXLIB" | |
4165 | cat > conftest.$ac_ext <<EOF | |
cf447356 | 4166 | #line 4167 "configure" |
c801d85f KB |
4167 | #include "confdefs.h" |
4168 | `cat $LEX_OUTPUT_ROOT.c` | |
4169 | int main() { | |
4170 | ||
4171 | ; return 0; } | |
4172 | EOF | |
cf447356 | 4173 | if { (eval echo configure:4174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
4174 | rm -rf conftest* |
4175 | ac_cv_prog_lex_yytext_pointer=yes | |
4176 | else | |
4177 | echo "configure: failed program was:" >&5 | |
4178 | cat conftest.$ac_ext >&5 | |
4179 | fi | |
4180 | rm -f conftest* | |
4181 | LIBS="$ac_save_LIBS" | |
4182 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
4183 | ||
4184 | fi | |
4185 | ||
4186 | echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6 | |
4187 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
4188 | cat >> confdefs.h <<\EOF | |
4189 | #define YYTEXT_POINTER 1 | |
4190 | EOF | |
4191 | ||
4192 | fi | |
4193 | ||
4194 | ||
4195 | ||
4196 | CHECK_INCLUDE="-I/usr/include $X_CFLAGS" | |
4197 | CHECK_LIB="-L/lib -L/usr/lib $X_LIBS" | |
4198 | ||
4199 | ||
4200 | ||
4201 | # Make sure we can run config.sub. | |
4202 | if $ac_config_sub sun4 >/dev/null 2>&1; then : | |
4203 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
4204 | fi | |
4205 | ||
4206 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
cf447356 | 4207 | echo "configure:4208: checking host system type" >&5 |
c801d85f KB |
4208 | |
4209 | host_alias=$host | |
4210 | case "$host_alias" in | |
4211 | NONE) | |
4212 | case $nonopt in | |
4213 | NONE) | |
4214 | if host_alias=`$ac_config_guess`; then : | |
4215 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
4216 | fi ;; | |
4217 | *) host_alias=$nonopt ;; | |
4218 | esac ;; | |
4219 | esac | |
4220 | ||
4221 | host=`$ac_config_sub $host_alias` | |
4222 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
4223 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
4224 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
4225 | echo "$ac_t""$host" 1>&6 | |
4226 | ||
4227 | canonical=$host | |
4228 | configuration=$host_alias | |
4229 | ||
4230 | ||
4231 | USE_GTK=1 | |
4232 | USE_UNIX=1 | |
4233 | ||
4234 | TOOLKIT=GTK | |
2049ba38 | 4235 | TOOLKIT_DEF=__WXGTK__ |
c801d85f KB |
4236 | |
4237 | USE_LINUX= | |
4238 | USE_SGI= | |
4239 | USE_HPUX= | |
4240 | USE_SYSV= | |
4241 | USE_SVR4= | |
4242 | USE_AIX= | |
4243 | USE_SUN= | |
4244 | USE_SOLARIS= | |
4245 | USE_SUNOS= | |
4246 | USE_ALPHA= | |
4247 | USE_OSF= | |
4248 | USE_BSD= | |
4249 | USE_FREEBSD= | |
4250 | USE_VMS= | |
4251 | USE_ULTRIX= | |
4252 | USE_DATA_GENERAL= | |
4253 | ||
4254 | case "${canonical}" in | |
4255 | *-hp-hpux* ) | |
4256 | USE_HPUX=1 | |
4257 | cat >> confdefs.h <<\EOF | |
4258 | #define __HPUX__ 1 | |
4259 | EOF | |
4260 | ||
4261 | ;; | |
4262 | *-*-linux* ) | |
4263 | USE_LINUX=1 | |
4264 | cat >> confdefs.h <<\EOF | |
4265 | #define __LINUX__ 1 | |
4266 | EOF | |
4267 | ||
4268 | ;; | |
4269 | *-*-irix5* | *-*-irix6* ) | |
4270 | USE_SGI=1 | |
4271 | USE_SVR4=1 | |
4272 | cat >> confdefs.h <<\EOF | |
4273 | #define __SGI__ 1 | |
4274 | EOF | |
4275 | ||
4276 | cat >> confdefs.h <<\EOF | |
4277 | #define __SVR4__ 1 | |
4278 | EOF | |
4279 | ||
4280 | ;; | |
4281 | *-*-solaris2* ) | |
4282 | USE_SUN=1 | |
4283 | USE_SOLARIS=1 | |
4284 | USE_SVR4=1 | |
4285 | cat >> confdefs.h <<\EOF | |
4286 | #define __SUN__ 1 | |
4287 | EOF | |
4288 | ||
4289 | cat >> confdefs.h <<\EOF | |
4290 | #define __SOLARIS__ 1 | |
4291 | EOF | |
4292 | ||
4293 | cat >> confdefs.h <<\EOF | |
4294 | #define __SVR4__ 1 | |
4295 | EOF | |
4296 | ||
4297 | ;; | |
4298 | *-*-sunos4* ) | |
4299 | USE_SUN=1 | |
4300 | USE_SUNOS=1 | |
4301 | USE_BSD=1 | |
4302 | cat >> confdefs.h <<\EOF | |
4303 | #define __SUN__ 1 | |
4304 | EOF | |
4305 | ||
4306 | cat >> confdefs.h <<\EOF | |
4307 | #define __SUNOS__ 1 | |
4308 | EOF | |
4309 | ||
4310 | cat >> confdefs.h <<\EOF | |
4311 | #define __BSD__ 1 | |
4312 | EOF | |
4313 | ||
4314 | ;; | |
4315 | *-*-freebsd* | *-*-netbsd*) | |
4316 | USE_BSD=1 | |
4317 | USE_FREEBSD=1 | |
4318 | cat >> confdefs.h <<\EOF | |
4319 | #define __FREEBSD__ 1 | |
4320 | EOF | |
4321 | ||
4322 | cat >> confdefs.h <<\EOF | |
4323 | #define __BSD__ 1 | |
4324 | EOF | |
4325 | ||
4326 | ;; | |
4327 | *-*-osf* ) | |
4328 | USE_ALPHA=1 | |
4329 | USE_OSF=1 | |
4330 | cat >> confdefs.h <<\EOF | |
4331 | #define __ALPHA__ 1 | |
4332 | EOF | |
4333 | ||
4334 | cat >> confdefs.h <<\EOF | |
4335 | #define __OSF__ 1 | |
4336 | EOF | |
4337 | ||
4338 | ;; | |
4339 | *-*-dgux5* ) | |
4340 | USE_ALPHA=1 | |
4341 | USE_SVR4=1 | |
4342 | cat >> confdefs.h <<\EOF | |
4343 | #define __ALPHA__ 1 | |
4344 | EOF | |
4345 | ||
4346 | cat >> confdefs.h <<\EOF | |
4347 | #define __SVR4__ 1 | |
4348 | EOF | |
4349 | ||
4350 | ;; | |
4351 | *-*-sysv5* ) | |
4352 | USE_SYSV=1 | |
4353 | USE_SVR4=1 | |
4354 | cat >> confdefs.h <<\EOF | |
4355 | #define __SYSV__ 1 | |
4356 | EOF | |
4357 | ||
4358 | cat >> confdefs.h <<\EOF | |
4359 | #define __SVR4__ 1 | |
4360 | EOF | |
4361 | ||
4362 | ;; | |
4363 | *-*-aix* ) | |
4364 | USE_AIX=1 | |
4365 | USE_SYSV=1 | |
4366 | USE_SVR4=1 | |
4367 | cat >> confdefs.h <<\EOF | |
4368 | #define __AIX__ 1 | |
4369 | EOF | |
4370 | ||
4371 | cat >> confdefs.h <<\EOF | |
4372 | #define __SYSV__ 1 | |
4373 | EOF | |
4374 | ||
4375 | cat >> confdefs.h <<\EOF | |
4376 | #define __SVR4__ 1 | |
4377 | EOF | |
4378 | ||
4379 | ;; | |
4380 | *) | |
4381 | { echo "configure: error: I don't know your system type." 1>&2; exit 1; } | |
4382 | esac | |
4383 | ||
4384 | ||
4385 | ||
4386 | rm -f ${OSTYPE}.system.cache.tmp | |
4387 | touch ${OSTYPE}.system.cache.tmp | |
4388 | touch ${OSTYPE}.system.cache | |
4389 | ||
4390 | ||
4391 | DEFAULT_USE_SHARED=0 | |
4392 | DEFAULT_USE_OPTIMISE=1 | |
4393 | DEFAULT_USE_PROFILE=0 | |
4394 | DEFAULT_USE_DEBUG_FLAG=0 | |
4395 | DEFAULT_USE_DEBUG_INFO=0 | |
4396 | DEFAULT_USE_MEM_TRACING=0 | |
4397 | ||
4398 | DEFAULT_USE_ZLIB=1 | |
4399 | DEFAULT_USE_GDK_IMLIB=1 | |
4400 | DEFAULT_USE_LIBPNG=1 | |
4401 | ||
cf447356 | 4402 | DEFAULT_USE_APPLE_IEEE=1 |
c801d85f KB |
4403 | DEFAULT_USE_STORABLE_CLASSES=1 |
4404 | DEFAULT_USE_AUTOTRANS=1 | |
4405 | DEFAULT_USE_AFM_FOR_POSTSCRIPT=1 | |
4406 | DEFAULT_WX_NORMALIZED_PS_FONTS=1 | |
4407 | ||
4408 | DEFAULT_USE_IOSTREAMH=1 | |
4409 | ||
c801d85f KB |
4410 | DEFAULT_USE_OPENGL=0 |
4411 | ||
53b28675 | 4412 | DEFAULT_USE_WXCONFIG=1 |
c801d85f KB |
4413 | DEFAULT_USE_POSTSCRIPT=1 |
4414 | DEFAULT_USE_IPC=1 | |
4415 | DEFAULT_USE_RESOURCES=1 | |
4416 | DEFAULT_USE_TIMEDATE=1 | |
4417 | DEFAULT_USE_FRACTION=1 | |
4418 | DEFAULT_USE_CONSTRAINTS=1 | |
4419 | DEFAULT_USE_TOOLBAR=1 | |
4420 | DEFAULT_USE_GAUGE=1 | |
4421 | DEFAULT_USE_SCROLLBAR=1 | |
4422 | DEFAULT_USE_DOC_VIEW_ARCHITECTURE=1 | |
4423 | DEFAULT_USE_PRINTING_ARCHITECTURE=1 | |
4424 | ||
4425 | DEFAULT_USE_METAFILE=0 | |
4426 | DEFAULT_USE_HELP=0 | |
4427 | DEFAULT_USE_CLIPBOARD=0 | |
4428 | DEFAULT_USE_VLBOX=0 | |
4429 | DEFAULT_USE_WXGRAPH=0 | |
4430 | DEFAULT_USE_WXTREE=0 | |
4431 | DEFAULT_USE_ENHANCED_DIALOG=0 | |
4432 | ||
4433 | DEFAULT_USE_FORM=0 | |
53b28675 | 4434 | DEFAULT_USE_PROLOGIO=1 |
c801d85f KB |
4435 | DEFAULT_USE_RPC=0 |
4436 | DEFAULT_USE_WX_RESOURCES=1 | |
4437 | ||
4438 | ||
4439 | ||
4440 | echo $ac_n "checking "for shared"""... $ac_c" 1>&6 | |
cf447356 | 4441 | echo "configure:4442: checking "for shared"" >&5 |
c801d85f KB |
4442 | # Check whether --with-shared or --without-shared was given. |
4443 | if test "${with_shared+set}" = set; then | |
4444 | withval="$with_shared" | |
4445 | if test "x$with_shared" = xyes; then | |
4446 | ac_cv_use_shared='USE_SHARED="1"' | |
4447 | else | |
4448 | ac_cv_use_shared='USE_SHARED="0"' | |
4449 | fi | |
4450 | else | |
4451 | ||
4452 | LINE=`grep "USE_SHARED" ${OSTYPE}.system.cache` | |
4453 | if test "x$LINE" != x ; then | |
4454 | eval "DEFAULT_$LINE" | |
4455 | fi | |
4456 | ac_cv_use_shared='USE_SHARED='$DEFAULT_USE_SHARED | |
4457 | ||
4458 | fi | |
4459 | ||
4460 | eval "$ac_cv_use_shared" | |
4461 | echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp | |
4462 | if test "$USE_SHARED" = 1; then | |
4463 | echo "$ac_t""yes" 1>&6 | |
4464 | else | |
4465 | echo "$ac_t""no" 1>&6 | |
4466 | fi | |
4467 | ||
4468 | ||
4469 | ||
4470 | echo $ac_n "checking "for optimise"""... $ac_c" 1>&6 | |
cf447356 | 4471 | echo "configure:4472: checking "for optimise"" >&5 |
c801d85f KB |
4472 | # Check whether --with-optimise or --without-optimise was given. |
4473 | if test "${with_optimise+set}" = set; then | |
4474 | withval="$with_optimise" | |
4475 | if test "x$with_optimise" = xyes; then | |
4476 | ac_cv_use_optimise='USE_OPTIMISE="1"' | |
4477 | else | |
4478 | ac_cv_use_optimise='USE_OPTIMISE="0"' | |
4479 | fi | |
4480 | else | |
4481 | ||
4482 | LINE=`grep "USE_OPTIMISE" ${OSTYPE}.system.cache` | |
4483 | if test "x$LINE" != x ; then | |
4484 | eval "DEFAULT_$LINE" | |
4485 | fi | |
4486 | ac_cv_use_optimise='USE_OPTIMISE='$DEFAULT_USE_OPTIMISE | |
4487 | ||
4488 | fi | |
4489 | ||
4490 | eval "$ac_cv_use_optimise" | |
4491 | echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp | |
4492 | if test "$USE_OPTIMISE" = 1; then | |
4493 | echo "$ac_t""yes" 1>&6 | |
4494 | else | |
4495 | echo "$ac_t""no" 1>&6 | |
4496 | fi | |
4497 | ||
4498 | ||
4499 | ||
4500 | echo $ac_n "checking "for debug_flag"""... $ac_c" 1>&6 | |
cf447356 | 4501 | echo "configure:4502: checking "for debug_flag"" >&5 |
c801d85f KB |
4502 | # Check whether --with-debug_flag or --without-debug_flag was given. |
4503 | if test "${with_debug_flag+set}" = set; then | |
4504 | withval="$with_debug_flag" | |
4505 | if test "x$with_debug_flag" = xyes; then | |
4506 | ac_cv_use_debug_flag='USE_DEBUG_FLAG="1"' | |
4507 | else | |
4508 | ac_cv_use_debug_flag='USE_DEBUG_FLAG="0"' | |
4509 | fi | |
4510 | else | |
4511 | ||
4512 | LINE=`grep "USE_DEBUG_FLAG" ${OSTYPE}.system.cache` | |
4513 | if test "x$LINE" != x ; then | |
4514 | eval "DEFAULT_$LINE" | |
4515 | fi | |
4516 | ac_cv_use_debug_flag='USE_DEBUG_FLAG='$DEFAULT_USE_DEBUG_FLAG | |
4517 | ||
4518 | fi | |
4519 | ||
4520 | eval "$ac_cv_use_debug_flag" | |
4521 | echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp | |
4522 | if test "$USE_DEBUG_FLAG" = 1; then | |
4523 | echo "$ac_t""yes" 1>&6 | |
4524 | else | |
4525 | echo "$ac_t""no" 1>&6 | |
4526 | fi | |
4527 | ||
4528 | ||
4529 | ||
4530 | echo $ac_n "checking "for debug_info"""... $ac_c" 1>&6 | |
cf447356 | 4531 | echo "configure:4532: checking "for debug_info"" >&5 |
c801d85f KB |
4532 | # Check whether --with-debug_info or --without-debug_info was given. |
4533 | if test "${with_debug_info+set}" = set; then | |
4534 | withval="$with_debug_info" | |
4535 | if test "x$with_debug_info" = xyes; then | |
4536 | ac_cv_use_debug_info='USE_DEBUG_INFO="1"' | |
4537 | else | |
4538 | ac_cv_use_debug_info='USE_DEBUG_INFO="0"' | |
4539 | fi | |
4540 | else | |
4541 | ||
4542 | LINE=`grep "USE_DEBUG_INFO" ${OSTYPE}.system.cache` | |
4543 | if test "x$LINE" != x ; then | |
4544 | eval "DEFAULT_$LINE" | |
4545 | fi | |
4546 | ac_cv_use_debug_info='USE_DEBUG_INFO='$DEFAULT_USE_DEBUG_INFO | |
4547 | ||
4548 | fi | |
4549 | ||
4550 | eval "$ac_cv_use_debug_info" | |
4551 | echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp | |
4552 | if test "$USE_DEBUG_INFO" = 1; then | |
4553 | echo "$ac_t""yes" 1>&6 | |
4554 | else | |
4555 | echo "$ac_t""no" 1>&6 | |
4556 | fi | |
4557 | ||
4558 | ||
4559 | ||
4560 | echo $ac_n "checking "for mem_tracing"""... $ac_c" 1>&6 | |
cf447356 | 4561 | echo "configure:4562: checking "for mem_tracing"" >&5 |
c801d85f KB |
4562 | # Check whether --with-mem_tracing or --without-mem_tracing was given. |
4563 | if test "${with_mem_tracing+set}" = set; then | |
4564 | withval="$with_mem_tracing" | |
4565 | if test "x$with_mem_tracing" = xyes; then | |
4566 | ac_cv_use_mem_tracing='USE_MEM_TRACING="1"' | |
4567 | else | |
4568 | ac_cv_use_mem_tracing='USE_MEM_TRACING="0"' | |
4569 | fi | |
4570 | else | |
4571 | ||
4572 | LINE=`grep "USE_MEM_TRACING" ${OSTYPE}.system.cache` | |
4573 | if test "x$LINE" != x ; then | |
4574 | eval "DEFAULT_$LINE" | |
4575 | fi | |
4576 | ac_cv_use_mem_tracing='USE_MEM_TRACING='$DEFAULT_USE_MEM_TRACING | |
4577 | ||
4578 | fi | |
4579 | ||
4580 | eval "$ac_cv_use_mem_tracing" | |
4581 | echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp | |
4582 | if test "$USE_MEM_TRACING" = 1; then | |
4583 | echo "$ac_t""yes" 1>&6 | |
4584 | else | |
4585 | echo "$ac_t""no" 1>&6 | |
4586 | fi | |
4587 | ||
4588 | ||
4589 | ||
4590 | echo $ac_n "checking "for profile"""... $ac_c" 1>&6 | |
cf447356 | 4591 | echo "configure:4592: checking "for profile"" >&5 |
c801d85f KB |
4592 | # Check whether --with-profile or --without-profile was given. |
4593 | if test "${with_profile+set}" = set; then | |
4594 | withval="$with_profile" | |
4595 | if test "x$with_profile" = xyes; then | |
4596 | ac_cv_use_profile='USE_PROFILE="1"' | |
4597 | else | |
4598 | ac_cv_use_profile='USE_PROFILE="0"' | |
4599 | fi | |
4600 | else | |
4601 | ||
4602 | LINE=`grep "USE_PROFILE" ${OSTYPE}.system.cache` | |
4603 | if test "x$LINE" != x ; then | |
4604 | eval "DEFAULT_$LINE" | |
4605 | fi | |
4606 | ac_cv_use_profile='USE_PROFILE='$DEFAULT_USE_PROFILE | |
4607 | ||
4608 | fi | |
4609 | ||
4610 | eval "$ac_cv_use_profile" | |
4611 | echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp | |
4612 | if test "$USE_PROFILE" = 1; then | |
4613 | echo "$ac_t""yes" 1>&6 | |
4614 | else | |
4615 | echo "$ac_t""no" 1>&6 | |
4616 | fi | |
4617 | ||
4618 | ||
4619 | ||
4620 | ||
4621 | echo $ac_n "checking "for zlib"""... $ac_c" 1>&6 | |
cf447356 | 4622 | echo "configure:4623: checking "for zlib"" >&5 |
c801d85f KB |
4623 | # Check whether --with-zlib or --without-zlib was given. |
4624 | if test "${with_zlib+set}" = set; then | |
4625 | withval="$with_zlib" | |
4626 | if test "x$with_zlib" = xyes; then | |
4627 | ac_cv_use_zlib='USE_ZLIB="1"' | |
4628 | else | |
4629 | ac_cv_use_zlib='USE_ZLIB="0"' | |
4630 | fi | |
4631 | else | |
4632 | ||
4633 | LINE=`grep "USE_ZLIB" ${OSTYPE}.system.cache` | |
4634 | if test "x$LINE" != x ; then | |
4635 | eval "DEFAULT_$LINE" | |
4636 | fi | |
4637 | ac_cv_use_zlib='USE_ZLIB='$DEFAULT_USE_ZLIB | |
4638 | ||
4639 | fi | |
4640 | ||
4641 | eval "$ac_cv_use_zlib" | |
4642 | echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp | |
4643 | if test "$USE_ZLIB" = 1; then | |
4644 | echo "$ac_t""yes" 1>&6 | |
4645 | else | |
4646 | echo "$ac_t""no" 1>&6 | |
4647 | fi | |
4648 | ||
4649 | ||
4650 | ||
4651 | echo $ac_n "checking "for gdk_imlib"""... $ac_c" 1>&6 | |
cf447356 | 4652 | echo "configure:4653: checking "for gdk_imlib"" >&5 |
c801d85f KB |
4653 | # Check whether --with-gdk_imlib or --without-gdk_imlib was given. |
4654 | if test "${with_gdk_imlib+set}" = set; then | |
4655 | withval="$with_gdk_imlib" | |
4656 | if test "x$with_gdk_imlib" = xyes; then | |
4657 | ac_cv_use_gdk_imlib='USE_GDK_IMLIB="1"' | |
4658 | else | |
4659 | ac_cv_use_gdk_imlib='USE_GDK_IMLIB="0"' | |
4660 | fi | |
4661 | else | |
4662 | ||
4663 | LINE=`grep "USE_GDK_IMLIB" ${OSTYPE}.system.cache` | |
4664 | if test "x$LINE" != x ; then | |
4665 | eval "DEFAULT_$LINE" | |
4666 | fi | |
4667 | ac_cv_use_gdk_imlib='USE_GDK_IMLIB='$DEFAULT_USE_GDK_IMLIB | |
4668 | ||
4669 | fi | |
4670 | ||
4671 | eval "$ac_cv_use_gdk_imlib" | |
4672 | echo $ac_cv_use_gdk_imlib >> ${OSTYPE}.system.cache.tmp | |
4673 | if test "$USE_GDK_IMLIB" = 1; then | |
4674 | echo "$ac_t""yes" 1>&6 | |
4675 | else | |
4676 | echo "$ac_t""no" 1>&6 | |
4677 | fi | |
4678 | ||
4679 | ||
4680 | ||
4681 | echo $ac_n "checking "for libpng"""... $ac_c" 1>&6 | |
cf447356 | 4682 | echo "configure:4683: checking "for libpng"" >&5 |
c801d85f KB |
4683 | # Check whether --with-libpng or --without-libpng was given. |
4684 | if test "${with_libpng+set}" = set; then | |
4685 | withval="$with_libpng" | |
4686 | if test "x$with_libpng" = xyes; then | |
4687 | ac_cv_use_libpng='USE_LIBPNG="1"' | |
4688 | else | |
4689 | ac_cv_use_libpng='USE_LIBPNG="0"' | |
4690 | fi | |
4691 | else | |
4692 | ||
4693 | LINE=`grep "USE_LIBPNG" ${OSTYPE}.system.cache` | |
4694 | if test "x$LINE" != x ; then | |
4695 | eval "DEFAULT_$LINE" | |
4696 | fi | |
4697 | ac_cv_use_libpng='USE_LIBPNG='$DEFAULT_USE_LIBPNG | |
4698 | ||
4699 | fi | |
4700 | ||
4701 | eval "$ac_cv_use_libpng" | |
4702 | echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp | |
4703 | if test "$USE_LIBPNG" = 1; then | |
4704 | echo "$ac_t""yes" 1>&6 | |
4705 | else | |
4706 | echo "$ac_t""no" 1>&6 | |
4707 | fi | |
4708 | ||
4709 | ||
4710 | ||
c801d85f | 4711 | echo $ac_n "checking "for opengl"""... $ac_c" 1>&6 |
cf447356 | 4712 | echo "configure:4713: checking "for opengl"" >&5 |
c801d85f KB |
4713 | # Check whether --with-opengl or --without-opengl was given. |
4714 | if test "${with_opengl+set}" = set; then | |
4715 | withval="$with_opengl" | |
4716 | if test "x$with_opengl" = xyes; then | |
4717 | ac_cv_use_opengl='USE_OPENGL="1"' | |
4718 | else | |
4719 | ac_cv_use_opengl='USE_OPENGL="0"' | |
4720 | fi | |
4721 | else | |
4722 | ||
4723 | LINE=`grep "USE_OPENGL" ${OSTYPE}.system.cache` | |
4724 | if test "x$LINE" != x ; then | |
4725 | eval "DEFAULT_$LINE" | |
4726 | fi | |
4727 | ac_cv_use_opengl='USE_OPENGL='$DEFAULT_USE_OPENGL | |
4728 | ||
4729 | fi | |
4730 | ||
4731 | eval "$ac_cv_use_opengl" | |
4732 | echo $ac_cv_use_opengl >> ${OSTYPE}.system.cache.tmp | |
4733 | if test "$USE_OPENGL" = 1; then | |
4734 | echo "$ac_t""yes" 1>&6 | |
4735 | else | |
4736 | echo "$ac_t""no" 1>&6 | |
4737 | fi | |
4738 | ||
4739 | ||
4740 | ||
4741 | ||
595bcfe9 KB |
4742 | echo $ac_n "checking "for apple_ieee"""... $ac_c" 1>&6 |
4743 | echo "configure:4744: checking "for apple_ieee"" >&5 | |
4744 | # Check whether --with-apple_ieee or --without-apple_ieee was given. | |
cf447356 GL |
4745 | if test "${with_apple_ieee+set}" = set; then |
4746 | withval="$with_apple_ieee" | |
595bcfe9 KB |
4747 | if test "x$with_apple_ieee" = xyes; then |
4748 | ac_cv_use_apple_ieee='USE_APPLE_IEEE="1"' | |
cf447356 | 4749 | else |
595bcfe9 | 4750 | ac_cv_use_apple_ieee='USE_APPLE_IEEE="0"' |
cf447356 GL |
4751 | fi |
4752 | else | |
4753 | ||
4754 | LINE=`grep "USE_APPLE_IEEE" ${OSTYPE}.system.cache` | |
4755 | if test "x$LINE" != x ; then | |
4756 | eval "DEFAULT_$LINE" | |
4757 | fi | |
595bcfe9 | 4758 | ac_cv_use_apple_ieee='USE_APPLE_IEEE='$DEFAULT_USE_APPLE_IEEE |
cf447356 GL |
4759 | |
4760 | fi | |
4761 | ||
595bcfe9 KB |
4762 | eval "$ac_cv_use_apple_ieee" |
4763 | echo $ac_cv_use_apple_ieee >> ${OSTYPE}.system.cache.tmp | |
cf447356 GL |
4764 | if test "$USE_APPLE_IEEE" = 1; then |
4765 | echo "$ac_t""yes" 1>&6 | |
4766 | else | |
4767 | echo "$ac_t""no" 1>&6 | |
4768 | fi | |
4769 | ||
4770 | ||
4771 | ||
c801d85f | 4772 | echo $ac_n "checking "for storable"""... $ac_c" 1>&6 |
cf447356 | 4773 | echo "configure:4774: checking "for storable"" >&5 |
c801d85f KB |
4774 | # Check whether --with-storable or --without-storable was given. |
4775 | if test "${with_storable+set}" = set; then | |
4776 | withval="$with_storable" | |
4777 | if test "x$with_storable" = xyes; then | |
4778 | ac_cv_use_storable='USE_STORABLE_CLASSES="1"' | |
4779 | else | |
4780 | ac_cv_use_storable='USE_STORABLE_CLASSES="0"' | |
4781 | fi | |
4782 | else | |
4783 | ||
4784 | LINE=`grep "USE_STORABLE_CLASSES" ${OSTYPE}.system.cache` | |
4785 | if test "x$LINE" != x ; then | |
4786 | eval "DEFAULT_$LINE" | |
4787 | fi | |
4788 | ac_cv_use_storable='USE_STORABLE_CLASSES='$DEFAULT_USE_STORABLE_CLASSES | |
4789 | ||
4790 | fi | |
4791 | ||
4792 | eval "$ac_cv_use_storable" | |
4793 | echo $ac_cv_use_storable >> ${OSTYPE}.system.cache.tmp | |
4794 | if test "$USE_STORABLE_CLASSES" = 1; then | |
4795 | echo "$ac_t""yes" 1>&6 | |
4796 | else | |
4797 | echo "$ac_t""no" 1>&6 | |
4798 | fi | |
4799 | ||
4800 | ||
4801 | ||
4802 | echo $ac_n "checking "for autotrans"""... $ac_c" 1>&6 | |
cf447356 | 4803 | echo "configure:4804: checking "for autotrans"" >&5 |
c801d85f KB |
4804 | # Check whether --with-autotrans or --without-autotrans was given. |
4805 | if test "${with_autotrans+set}" = set; then | |
4806 | withval="$with_autotrans" | |
4807 | if test "x$with_autotrans" = xyes; then | |
4808 | ac_cv_use_autotrans='USE_AUTOTRANS="1"' | |
4809 | else | |
4810 | ac_cv_use_autotrans='USE_AUTOTRANS="0"' | |
4811 | fi | |
4812 | else | |
4813 | ||
4814 | LINE=`grep "USE_AUTOTRANS" ${OSTYPE}.system.cache` | |
4815 | if test "x$LINE" != x ; then | |
4816 | eval "DEFAULT_$LINE" | |
4817 | fi | |
4818 | ac_cv_use_autotrans='USE_AUTOTRANS='$DEFAULT_USE_AUTOTRANS | |
4819 | ||
4820 | fi | |
4821 | ||
4822 | eval "$ac_cv_use_autotrans" | |
4823 | echo $ac_cv_use_autotrans >> ${OSTYPE}.system.cache.tmp | |
4824 | if test "$USE_AUTOTRANS" = 1; then | |
4825 | echo "$ac_t""yes" 1>&6 | |
4826 | else | |
4827 | echo "$ac_t""no" 1>&6 | |
4828 | fi | |
4829 | ||
4830 | ||
4831 | ||
4832 | echo $ac_n "checking "for afmfonts"""... $ac_c" 1>&6 | |
cf447356 | 4833 | echo "configure:4834: checking "for afmfonts"" >&5 |
c801d85f KB |
4834 | # Check whether --with-afmfonts or --without-afmfonts was given. |
4835 | if test "${with_afmfonts+set}" = set; then | |
4836 | withval="$with_afmfonts" | |
4837 | if test "x$with_afmfonts" = xyes; then | |
4838 | ac_cv_use_afmfonts='USE_AFM_FOR_POSTSCRIPT="1"' | |
4839 | else | |
4840 | ac_cv_use_afmfonts='USE_AFM_FOR_POSTSCRIPT="0"' | |
4841 | fi | |
4842 | else | |
4843 | ||
4844 | LINE=`grep "USE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache` | |
4845 | if test "x$LINE" != x ; then | |
4846 | eval "DEFAULT_$LINE" | |
4847 | fi | |
4848 | ac_cv_use_afmfonts='USE_AFM_FOR_POSTSCRIPT='$DEFAULT_USE_AFM_FOR_POSTSCRIPT | |
4849 | ||
4850 | fi | |
4851 | ||
4852 | eval "$ac_cv_use_afmfonts" | |
4853 | echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp | |
4854 | if test "$USE_AFM_FOR_POSTSCRIPT" = 1; then | |
4855 | echo "$ac_t""yes" 1>&6 | |
4856 | else | |
4857 | echo "$ac_t""no" 1>&6 | |
4858 | fi | |
4859 | ||
4860 | ||
4861 | ||
4862 | echo $ac_n "checking "for normalized"""... $ac_c" 1>&6 | |
cf447356 | 4863 | echo "configure:4864: checking "for normalized"" >&5 |
c801d85f KB |
4864 | # Check whether --with-normalized or --without-normalized was given. |
4865 | if test "${with_normalized+set}" = set; then | |
4866 | withval="$with_normalized" | |
4867 | if test "x$with_normalized" = xyes; then | |
4868 | ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS="1"' | |
4869 | else | |
4870 | ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS="0"' | |
4871 | fi | |
4872 | else | |
4873 | ||
4874 | LINE=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache` | |
4875 | if test "x$LINE" != x ; then | |
4876 | eval "DEFAULT_$LINE" | |
4877 | fi | |
4878 | ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS | |
4879 | ||
4880 | fi | |
4881 | ||
4882 | eval "$ac_cv_use_normalized" | |
4883 | echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp | |
4884 | if test "$WX_NORMALIZED_PS_FONTS" = 1; then | |
4885 | echo "$ac_t""yes" 1>&6 | |
4886 | else | |
4887 | echo "$ac_t""no" 1>&6 | |
4888 | fi | |
4889 | ||
4890 | ||
4891 | ||
4892 | echo $ac_n "checking "for RPC"""... $ac_c" 1>&6 | |
cf447356 | 4893 | echo "configure:4894: checking "for RPC"" >&5 |
c801d85f KB |
4894 | # Check whether --with-rpc or --without-rpc was given. |
4895 | if test "${with_rpc+set}" = set; then | |
4896 | withval="$with_rpc" | |
4897 | if test "x$with_rpc" = xyes; then | |
4898 | ac_cv_use_rpc='USE_RPC="1"' | |
4899 | else | |
4900 | ac_cv_use_rpc='USE_RPC="0"' | |
4901 | fi | |
4902 | else | |
4903 | ||
4904 | LINE=`grep "USE_RPC" ${OSTYPE}.system.cache` | |
4905 | if test "x$LINE" != x ; then | |
4906 | eval "DEFAULT_$LINE" | |
4907 | fi | |
4908 | ac_cv_use_rpc='USE_RPC='$DEFAULT_USE_RPC | |
4909 | ||
4910 | fi | |
4911 | ||
4912 | eval "$ac_cv_use_rpc" | |
4913 | echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp | |
4914 | if test "$USE_RPC" = 1; then | |
4915 | echo "$ac_t""yes" 1>&6 | |
4916 | else | |
4917 | echo "$ac_t""no" 1>&6 | |
4918 | fi | |
4919 | ||
4920 | ||
4921 | ||
4922 | echo $ac_n "checking "for wxresources"""... $ac_c" 1>&6 | |
cf447356 | 4923 | echo "configure:4924: checking "for wxresources"" >&5 |
c801d85f KB |
4924 | # Check whether --with-wxresources or --without-wxresources was given. |
4925 | if test "${with_wxresources+set}" = set; then | |
4926 | withval="$with_wxresources" | |
4927 | if test "x$with_wxresources" = xyes; then | |
4928 | ac_cv_use_wxresources='USE_WX_RESOURCES="1"' | |
4929 | else | |
4930 | ac_cv_use_wxresources='USE_WX_RESOURCES="0"' | |
4931 | fi | |
4932 | else | |
4933 | ||
4934 | LINE=`grep "USE_WX_RESOURCES" ${OSTYPE}.system.cache` | |
4935 | if test "x$LINE" != x ; then | |
4936 | eval "DEFAULT_$LINE" | |
4937 | fi | |
4938 | ac_cv_use_wxresources='USE_WX_RESOURCES='$DEFAULT_USE_WX_RESOURCES | |
4939 | ||
4940 | fi | |
4941 | ||
4942 | eval "$ac_cv_use_wxresources" | |
4943 | echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp | |
4944 | if test "$USE_WX_RESOURCES" = 1; then | |
4945 | echo "$ac_t""yes" 1>&6 | |
4946 | else | |
4947 | echo "$ac_t""no" 1>&6 | |
4948 | fi | |
4949 | ||
4950 | ||
4951 | ||
4952 | echo $ac_n "checking "for prologio"""... $ac_c" 1>&6 | |
cf447356 | 4953 | echo "configure:4954: checking "for prologio"" >&5 |
c801d85f KB |
4954 | # Check whether --with-prologio or --without-prologio was given. |
4955 | if test "${with_prologio+set}" = set; then | |
4956 | withval="$with_prologio" | |
4957 | if test "x$with_prologio" = xyes; then | |
4958 | ac_cv_use_prologio='USE_PROLOGIO="1"' | |
4959 | else | |
4960 | ac_cv_use_prologio='USE_PROLOGIO="0"' | |
4961 | fi | |
4962 | else | |
4963 | ||
4964 | LINE=`grep "USE_PROLOGIO" ${OSTYPE}.system.cache` | |
4965 | if test "x$LINE" != x ; then | |
4966 | eval "DEFAULT_$LINE" | |
4967 | fi | |
4968 | ac_cv_use_prologio='USE_PROLOGIO='$DEFAULT_USE_PROLOGIO | |
4969 | ||
4970 | fi | |
4971 | ||
4972 | eval "$ac_cv_use_prologio" | |
4973 | echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp | |
4974 | if test "$USE_PROLOGIO" = 1; then | |
4975 | echo "$ac_t""yes" 1>&6 | |
4976 | else | |
4977 | echo "$ac_t""no" 1>&6 | |
4978 | fi | |
4979 | ||
4980 | ||
4981 | ||
4982 | echo $ac_n "checking "for postscript"""... $ac_c" 1>&6 | |
cf447356 | 4983 | echo "configure:4984: checking "for postscript"" >&5 |
c801d85f KB |
4984 | # Check whether --with-postscript or --without-postscript was given. |
4985 | if test "${with_postscript+set}" = set; then | |
4986 | withval="$with_postscript" | |
4987 | if test "x$with_postscript" = xyes; then | |
4988 | ac_cv_use_postscript='USE_POSTSCRIPT="1"' | |
4989 | else | |
4990 | ac_cv_use_postscript='USE_POSTSCRIPT="0"' | |
4991 | fi | |
4992 | else | |
4993 | ||
4994 | LINE=`grep "USE_POSTSCRIPT" ${OSTYPE}.system.cache` | |
4995 | if test "x$LINE" != x ; then | |
4996 | eval "DEFAULT_$LINE" | |
4997 | fi | |
4998 | ac_cv_use_postscript='USE_POSTSCRIPT='$DEFAULT_USE_POSTSCRIPT | |
4999 | ||
5000 | fi | |
5001 | ||
5002 | eval "$ac_cv_use_postscript" | |
5003 | echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp | |
5004 | if test "$USE_POSTSCRIPT" = 1; then | |
5005 | echo "$ac_t""yes" 1>&6 | |
5006 | else | |
5007 | echo "$ac_t""no" 1>&6 | |
5008 | fi | |
5009 | ||
5010 | ||
5011 | ||
53b28675 | 5012 | echo $ac_n "checking "for wxconfig"""... $ac_c" 1>&6 |
cf447356 | 5013 | echo "configure:5014: checking "for wxconfig"" >&5 |
53b28675 RR |
5014 | # Check whether --with-wxconfig or --without-wxconfig was given. |
5015 | if test "${with_wxconfig+set}" = set; then | |
5016 | withval="$with_wxconfig" | |
5017 | if test "x$with_wxconfig" = xyes; then | |
5018 | ac_cv_use_wxconfig='USE_WXCONFIG="1"' | |
5019 | else | |
5020 | ac_cv_use_wxconfig='USE_WXCONFIG="0"' | |
5021 | fi | |
5022 | else | |
5023 | ||
5024 | LINE=`grep "USE_WXCONFIG" ${OSTYPE}.system.cache` | |
5025 | if test "x$LINE" != x ; then | |
5026 | eval "DEFAULT_$LINE" | |
5027 | fi | |
5028 | ac_cv_use_wxconfig='USE_WXCONFIG='$DEFAULT_USE_WXCONFIG | |
5029 | ||
5030 | fi | |
5031 | ||
5032 | eval "$ac_cv_use_wxconfig" | |
5033 | echo $ac_cv_use_wxconfig >> ${OSTYPE}.system.cache.tmp | |
5034 | if test "$USE_WXCONFIG" = 1; then | |
5035 | echo "$ac_t""yes" 1>&6 | |
5036 | else | |
5037 | echo "$ac_t""no" 1>&6 | |
5038 | fi | |
5039 | ||
5040 | ||
5041 | ||
c801d85f | 5042 | echo $ac_n "checking "for metafile"""... $ac_c" 1>&6 |
cf447356 | 5043 | echo "configure:5044: checking "for metafile"" >&5 |
c801d85f KB |
5044 | # Check whether --with-metafile or --without-metafile was given. |
5045 | if test "${with_metafile+set}" = set; then | |
5046 | withval="$with_metafile" | |
5047 | if test "x$with_metafile" = xyes; then | |
5048 | ac_cv_use_metafile='USE_METAFILE="1"' | |
5049 | else | |
5050 | ac_cv_use_metafile='USE_METAFILE="0"' | |
5051 | fi | |
5052 | else | |
5053 | ||
5054 | LINE=`grep "USE_METAFILE" ${OSTYPE}.system.cache` | |
5055 | if test "x$LINE" != x ; then | |
5056 | eval "DEFAULT_$LINE" | |
5057 | fi | |
5058 | ac_cv_use_metafile='USE_METAFILE='$DEFAULT_USE_METAFILE | |
5059 | ||
5060 | fi | |
5061 | ||
5062 | eval "$ac_cv_use_metafile" | |
5063 | echo $ac_cv_use_metafile >> ${OSTYPE}.system.cache.tmp | |
5064 | if test "$USE_METAFILE" = 1; then | |
5065 | echo "$ac_t""yes" 1>&6 | |
5066 | else | |
5067 | echo "$ac_t""no" 1>&6 | |
5068 | fi | |
5069 | ||
5070 | ||
5071 | ||
5072 | echo $ac_n "checking "for form"""... $ac_c" 1>&6 | |
cf447356 | 5073 | echo "configure:5074: checking "for form"" >&5 |
c801d85f KB |
5074 | # Check whether --with-form or --without-form was given. |
5075 | if test "${with_form+set}" = set; then | |
5076 | withval="$with_form" | |
5077 | if test "x$with_form" = xyes; then | |
5078 | ac_cv_use_form='USE_FORM="1"' | |
5079 | else | |
5080 | ac_cv_use_form='USE_FORM="0"' | |
5081 | fi | |
5082 | else | |
5083 | ||
5084 | LINE=`grep "USE_FORM" ${OSTYPE}.system.cache` | |
5085 | if test "x$LINE" != x ; then | |
5086 | eval "DEFAULT_$LINE" | |
5087 | fi | |
5088 | ac_cv_use_form='USE_FORM='$DEFAULT_USE_FORM | |
5089 | ||
5090 | fi | |
5091 | ||
5092 | eval "$ac_cv_use_form" | |
5093 | echo $ac_cv_use_form >> ${OSTYPE}.system.cache.tmp | |
5094 | if test "$USE_FORM" = 1; then | |
5095 | echo "$ac_t""yes" 1>&6 | |
5096 | else | |
5097 | echo "$ac_t""no" 1>&6 | |
5098 | fi | |
5099 | ||
5100 | ||
5101 | ||
5102 | echo $ac_n "checking "for help"""... $ac_c" 1>&6 | |
cf447356 | 5103 | echo "configure:5104: checking "for help"" >&5 |
c801d85f KB |
5104 | # Check whether --with-help or --without-help was given. |
5105 | if test "${with_help+set}" = set; then | |
5106 | withval="$with_help" | |
5107 | if test "x$with_help" = xyes; then | |
5108 | ac_cv_use_help='USE_HELP="1"' | |
5109 | else | |
5110 | ac_cv_use_help='USE_HELP="0"' | |
5111 | fi | |
5112 | else | |
5113 | ||
5114 | LINE=`grep "USE_HELP" ${OSTYPE}.system.cache` | |
5115 | if test "x$LINE" != x ; then | |
5116 | eval "DEFAULT_$LINE" | |
5117 | fi | |
5118 | ac_cv_use_help='USE_HELP='$DEFAULT_USE_HELP | |
5119 | ||
5120 | fi | |
5121 | ||
5122 | eval "$ac_cv_use_help" | |
5123 | echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp | |
5124 | if test "$USE_HELP" = 1; then | |
5125 | echo "$ac_t""yes" 1>&6 | |
5126 | else | |
5127 | echo "$ac_t""no" 1>&6 | |
5128 | fi | |
5129 | ||
5130 | ||
5131 | ||
5132 | echo $ac_n "checking "for IPC"""... $ac_c" 1>&6 | |
cf447356 | 5133 | echo "configure:5134: checking "for IPC"" >&5 |
c801d85f KB |
5134 | # Check whether --with-ipc or --without-ipc was given. |
5135 | if test "${with_ipc+set}" = set; then | |
5136 | withval="$with_ipc" | |
5137 | if test "x$with_ipc" = xyes; then | |
5138 | ac_cv_use_ipc='USE_IPC="1"' | |
5139 | else | |
5140 | ac_cv_use_ipc='USE_IPC="0"' | |
5141 | fi | |
5142 | else | |
5143 | ||
5144 | LINE=`grep "USE_IPC" ${OSTYPE}.system.cache` | |
5145 | if test "x$LINE" != x ; then | |
5146 | eval "DEFAULT_$LINE" | |
5147 | fi | |
5148 | ac_cv_use_ipc='USE_IPC='$DEFAULT_USE_IPC | |
5149 | ||
5150 | fi | |
5151 | ||
5152 | eval "$ac_cv_use_ipc" | |
5153 | echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp | |
5154 | if test "$USE_IPC" = 1; then | |
5155 | echo "$ac_t""yes" 1>&6 | |
5156 | else | |
5157 | echo "$ac_t""no" 1>&6 | |
5158 | fi | |
5159 | ||
5160 | ||
5161 | ||
5162 | echo $ac_n "checking "for enhanced dialog"""... $ac_c" 1>&6 | |
cf447356 | 5163 | echo "configure:5164: checking "for enhanced dialog"" >&5 |
c801d85f KB |
5164 | # Check whether --with-enhanceddialog or --without-enhanceddialog was given. |
5165 | if test "${with_enhanceddialog+set}" = set; then | |
5166 | withval="$with_enhanceddialog" | |
5167 | if test "x$with_enhanceddialog" = xyes; then | |
5168 | ac_cv_use_enhanceddialog='USE_ENHANCED_DIALOG="1"' | |
5169 | else | |
5170 | ac_cv_use_enhanceddialog='USE_ENHANCED_DIALOG="0"' | |
5171 | fi | |
5172 | else | |
5173 | ||
5174 | LINE=`grep "USE_ENHANCED_DIALOG" ${OSTYPE}.system.cache` | |
5175 | if test "x$LINE" != x ; then | |
5176 | eval "DEFAULT_$LINE" | |
5177 | fi | |
5178 | ac_cv_use_enhanceddialog='USE_ENHANCED_DIALOG='$DEFAULT_USE_ENHANCED_DIALOG | |
5179 | ||
5180 | fi | |
5181 | ||
5182 | eval "$ac_cv_use_enhanceddialog" | |
5183 | echo $ac_cv_use_enhanceddialog >> ${OSTYPE}.system.cache.tmp | |
5184 | if test "$USE_ENHANCED_DIALOG" = 1; then | |
5185 | echo "$ac_t""yes" 1>&6 | |
5186 | else | |
5187 | echo "$ac_t""no" 1>&6 | |
5188 | fi | |
5189 | ||
5190 | ||
5191 | ||
5192 | echo $ac_n "checking "for resources"""... $ac_c" 1>&6 | |
cf447356 | 5193 | echo "configure:5194: checking "for resources"" >&5 |
c801d85f KB |
5194 | # Check whether --with-resources or --without-resources was given. |
5195 | if test "${with_resources+set}" = set; then | |
5196 | withval="$with_resources" | |
5197 | if test "x$with_resources" = xyes; then | |
5198 | ac_cv_use_resources='USE_RESOURCES="1"' | |
5199 | else | |
5200 | ac_cv_use_resources='USE_RESOURCES="0"' | |
5201 | fi | |
5202 | else | |
5203 | ||
5204 | LINE=`grep "USE_RESOURCES" ${OSTYPE}.system.cache` | |
5205 | if test "x$LINE" != x ; then | |
5206 | eval "DEFAULT_$LINE" | |
5207 | fi | |
5208 | ac_cv_use_resources='USE_RESOURCES='$DEFAULT_USE_RESOURCES | |
5209 | ||
5210 | fi | |
5211 | ||
5212 | eval "$ac_cv_use_resources" | |
5213 | echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp | |
5214 | if test "$USE_RESOURCES" = 1; then | |
5215 | echo "$ac_t""yes" 1>&6 | |
5216 | else | |
5217 | echo "$ac_t""no" 1>&6 | |
5218 | fi | |
5219 | ||
5220 | ||
5221 | ||
5222 | echo $ac_n "checking "for clipboard"""... $ac_c" 1>&6 | |
cf447356 | 5223 | echo "configure:5224: checking "for clipboard"" >&5 |
c801d85f KB |
5224 | # Check whether --with-clipboard or --without-clipboard was given. |
5225 | if test "${with_clipboard+set}" = set; then | |
5226 | withval="$with_clipboard" | |
5227 | if test "x$with_clipboard" = xyes; then | |
5228 | ac_cv_use_clipboard='USE_CLIPBOARD="1"' | |
5229 | else | |
5230 | ac_cv_use_clipboard='USE_CLIPBOARD="0"' | |
5231 | fi | |
5232 | else | |
5233 | ||
5234 | LINE=`grep "USE_CLIPBOARD" ${OSTYPE}.system.cache` | |
5235 | if test "x$LINE" != x ; then | |
5236 | eval "DEFAULT_$LINE" | |
5237 | fi | |
5238 | ac_cv_use_clipboard='USE_CLIPBOARD='$DEFAULT_USE_CLIPBOARD | |
5239 | ||
5240 | fi | |
5241 | ||
5242 | eval "$ac_cv_use_clipboard" | |
5243 | echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp | |
5244 | if test "$USE_CLIPBOARD" = 1; then | |
5245 | echo "$ac_t""yes" 1>&6 | |
5246 | else | |
5247 | echo "$ac_t""no" 1>&6 | |
5248 | fi | |
5249 | ||
5250 | ||
5251 | ||
5252 | echo $ac_n "checking "for timedate"""... $ac_c" 1>&6 | |
cf447356 | 5253 | echo "configure:5254: checking "for timedate"" >&5 |
c801d85f KB |
5254 | # Check whether --with-timedate or --without-timedate was given. |
5255 | if test "${with_timedate+set}" = set; then | |
5256 | withval="$with_timedate" | |
5257 | if test "x$with_timedate" = xyes; then | |
5258 | ac_cv_use_timedate='USE_TIMEDATE="1"' | |
5259 | else | |
5260 | ac_cv_use_timedate='USE_TIMEDATE="0"' | |
5261 | fi | |
5262 | else | |
5263 | ||
5264 | LINE=`grep "USE_TIMEDATE" ${OSTYPE}.system.cache` | |
5265 | if test "x$LINE" != x ; then | |
5266 | eval "DEFAULT_$LINE" | |
5267 | fi | |
5268 | ac_cv_use_timedate='USE_TIMEDATE='$DEFAULT_USE_TIMEDATE | |
5269 | ||
5270 | fi | |
5271 | ||
5272 | eval "$ac_cv_use_timedate" | |
5273 | echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp | |
5274 | if test "$USE_TIMEDATE" = 1; then | |
5275 | echo "$ac_t""yes" 1>&6 | |
5276 | else | |
5277 | echo "$ac_t""no" 1>&6 | |
5278 | fi | |
5279 | ||
5280 | ||
5281 | ||
5282 | echo $ac_n "checking "for fraction"""... $ac_c" 1>&6 | |
cf447356 | 5283 | echo "configure:5284: checking "for fraction"" >&5 |
c801d85f KB |
5284 | # Check whether --with-fraction or --without-fraction was given. |
5285 | if test "${with_fraction+set}" = set; then | |
5286 | withval="$with_fraction" | |
5287 | if test "x$with_fraction" = xyes; then | |
5288 | ac_cv_use_fraction='USE_FRACTION="1"' | |
5289 | else | |
5290 | ac_cv_use_fraction='USE_FRACTION="0"' | |
5291 | fi | |
5292 | else | |
5293 | ||
5294 | LINE=`grep "USE_FRACTION" ${OSTYPE}.system.cache` | |
5295 | if test "x$LINE" != x ; then | |
5296 | eval "DEFAULT_$LINE" | |
5297 | fi | |
5298 | ac_cv_use_fraction='USE_FRACTION='$DEFAULT_USE_FRACTION | |
5299 | ||
5300 | fi | |
5301 | ||
5302 | eval "$ac_cv_use_fraction" | |
5303 | echo $ac_cv_use_fraction >> ${OSTYPE}.system.cache.tmp | |
5304 | if test "$USE_FRACTION" = 1; then | |
5305 | echo "$ac_t""yes" 1>&6 | |
5306 | else | |
5307 | echo "$ac_t""no" 1>&6 | |
5308 | fi | |
5309 | ||
5310 | ||
5311 | ||
5312 | echo $ac_n "checking "for constrains"""... $ac_c" 1>&6 | |
cf447356 | 5313 | echo "configure:5314: checking "for constrains"" >&5 |
c801d85f KB |
5314 | # Check whether --with-constraints or --without-constraints was given. |
5315 | if test "${with_constraints+set}" = set; then | |
5316 | withval="$with_constraints" | |
5317 | if test "x$with_constraints" = xyes; then | |
5318 | ac_cv_use_constraints='USE_CONSTRAINTS="1"' | |
5319 | else | |
5320 | ac_cv_use_constraints='USE_CONSTRAINTS="0"' | |
5321 | fi | |
5322 | else | |
5323 | ||
5324 | LINE=`grep "USE_CONSTRAINTS" ${OSTYPE}.system.cache` | |
5325 | if test "x$LINE" != x ; then | |
5326 | eval "DEFAULT_$LINE" | |
5327 | fi | |
5328 | ac_cv_use_constraints='USE_CONSTRAINTS='$DEFAULT_USE_CONSTRAINTS | |
5329 | ||
5330 | fi | |
5331 | ||
5332 | eval "$ac_cv_use_constraints" | |
5333 | echo $ac_cv_use_constraints >> ${OSTYPE}.system.cache.tmp | |
5334 | if test "$USE_CONSTRAINTS" = 1; then | |
5335 | echo "$ac_t""yes" 1>&6 | |
5336 | else | |
5337 | echo "$ac_t""no" 1>&6 | |
5338 | fi | |
5339 | ||
5340 | ||
5341 | ||
5342 | echo $ac_n "checking "for toolbar"""... $ac_c" 1>&6 | |
cf447356 | 5343 | echo "configure:5344: checking "for toolbar"" >&5 |
c801d85f KB |
5344 | # Check whether --with-toolbar or --without-toolbar was given. |
5345 | if test "${with_toolbar+set}" = set; then | |
5346 | withval="$with_toolbar" | |
5347 | if test "x$with_toolbar" = xyes; then | |
5348 | ac_cv_use_toolbar='USE_TOOLBAR="1"' | |
5349 | else | |
5350 | ac_cv_use_toolbar='USE_TOOLBAR="0"' | |
5351 | fi | |
5352 | else | |
5353 | ||
5354 | LINE=`grep "USE_TOOLBAR" ${OSTYPE}.system.cache` | |
5355 | if test "x$LINE" != x ; then | |
5356 | eval "DEFAULT_$LINE" | |
5357 | fi | |
5358 | ac_cv_use_toolbar='USE_TOOLBAR='$DEFAULT_USE_TOOLBAR | |
5359 | ||
5360 | fi | |
5361 | ||
5362 | eval "$ac_cv_use_toolbar" | |
5363 | echo $ac_cv_use_toolbar >> ${OSTYPE}.system.cache.tmp | |
5364 | if test "$USE_TOOLBAR" = 1; then | |
5365 | echo "$ac_t""yes" 1>&6 | |
5366 | else | |
5367 | echo "$ac_t""no" 1>&6 | |
5368 | fi | |
5369 | ||
5370 | ||
5371 | ||
5372 | echo $ac_n "checking "for gauge"""... $ac_c" 1>&6 | |
cf447356 | 5373 | echo "configure:5374: checking "for gauge"" >&5 |
c801d85f KB |
5374 | # Check whether --with-gauge or --without-gauge was given. |
5375 | if test "${with_gauge+set}" = set; then | |
5376 | withval="$with_gauge" | |
5377 | if test "x$with_gauge" = xyes; then | |
5378 | ac_cv_use_gauge='USE_GAUGE="1"' | |
5379 | else | |
5380 | ac_cv_use_gauge='USE_GAUGE="0"' | |
5381 | fi | |
5382 | else | |
5383 | ||
5384 | LINE=`grep "USE_GAUGE" ${OSTYPE}.system.cache` | |
5385 | if test "x$LINE" != x ; then | |
5386 | eval "DEFAULT_$LINE" | |
5387 | fi | |
5388 | ac_cv_use_gauge='USE_GAUGE='$DEFAULT_USE_GAUGE | |
5389 | ||
5390 | fi | |
5391 | ||
5392 | eval "$ac_cv_use_gauge" | |
5393 | echo $ac_cv_use_gauge >> ${OSTYPE}.system.cache.tmp | |
5394 | if test "$USE_GAUGE" = 1; then | |
5395 | echo "$ac_t""yes" 1>&6 | |
5396 | else | |
5397 | echo "$ac_t""no" 1>&6 | |
5398 | fi | |
5399 | ||
5400 | ||
5401 | ||
5402 | echo $ac_n "checking "for vllist"""... $ac_c" 1>&6 | |
cf447356 | 5403 | echo "configure:5404: checking "for vllist"" >&5 |
c801d85f KB |
5404 | # Check whether --with-vllist or --without-vllist was given. |
5405 | if test "${with_vllist+set}" = set; then | |
5406 | withval="$with_vllist" | |
5407 | if test "x$with_vllist" = xyes; then | |
5408 | ac_cv_use_vllist='USE_VLBOX="1"' | |
5409 | else | |
5410 | ac_cv_use_vllist='USE_VLBOX="0"' | |
5411 | fi | |
5412 | else | |
5413 | ||
5414 | LINE=`grep "USE_VLBOX" ${OSTYPE}.system.cache` | |
5415 | if test "x$LINE" != x ; then | |
5416 | eval "DEFAULT_$LINE" | |
5417 | fi | |
5418 | ac_cv_use_vllist='USE_VLBOX='$DEFAULT_USE_VLBOX | |
5419 | ||
5420 | fi | |
5421 | ||
5422 | eval "$ac_cv_use_vllist" | |
5423 | echo $ac_cv_use_vllist >> ${OSTYPE}.system.cache.tmp | |
5424 | if test "$USE_VLBOX" = 1; then | |
5425 | echo "$ac_t""yes" 1>&6 | |
5426 | else | |
5427 | echo "$ac_t""no" 1>&6 | |
5428 | fi | |
5429 | ||
5430 | ||
5431 | ||
5432 | echo $ac_n "checking "for scrollbar"""... $ac_c" 1>&6 | |
cf447356 | 5433 | echo "configure:5434: checking "for scrollbar"" >&5 |
c801d85f KB |
5434 | # Check whether --with-scrollbar or --without-scrollbar was given. |
5435 | if test "${with_scrollbar+set}" = set; then | |
5436 | withval="$with_scrollbar" | |
5437 | if test "x$with_scrollbar" = xyes; then | |
5438 | ac_cv_use_scrollbar='USE_SCROLLBAR="1"' | |
5439 | else | |
5440 | ac_cv_use_scrollbar='USE_SCROLLBAR="0"' | |
5441 | fi | |
5442 | else | |
5443 | ||
5444 | LINE=`grep "USE_SCROLLBAR" ${OSTYPE}.system.cache` | |
5445 | if test "x$LINE" != x ; then | |
5446 | eval "DEFAULT_$LINE" | |
5447 | fi | |
5448 | ac_cv_use_scrollbar='USE_SCROLLBAR='$DEFAULT_USE_SCROLLBAR | |
5449 | ||
5450 | fi | |
5451 | ||
5452 | eval "$ac_cv_use_scrollbar" | |
5453 | echo $ac_cv_use_scrollbar >> ${OSTYPE}.system.cache.tmp | |
5454 | if test "$USE_SCROLLBAR" = 1; then | |
5455 | echo "$ac_t""yes" 1>&6 | |
5456 | else | |
5457 | echo "$ac_t""no" 1>&6 | |
5458 | fi | |
5459 | ||
5460 | ||
5461 | ||
5462 | echo $ac_n "checking "for docview"""... $ac_c" 1>&6 | |
cf447356 | 5463 | echo "configure:5464: checking "for docview"" >&5 |
c801d85f KB |
5464 | # Check whether --with-docview or --without-docview was given. |
5465 | if test "${with_docview+set}" = set; then | |
5466 | withval="$with_docview" | |
5467 | if test "x$with_docview" = xyes; then | |
5468 | ac_cv_use_docview='USE_DOC_VIEW_ARCHITECTURE="1"' | |
5469 | else | |
5470 | ac_cv_use_docview='USE_DOC_VIEW_ARCHITECTURE="0"' | |
5471 | fi | |
5472 | else | |
5473 | ||
5474 | LINE=`grep "USE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache` | |
5475 | if test "x$LINE" != x ; then | |
5476 | eval "DEFAULT_$LINE" | |
5477 | fi | |
5478 | ac_cv_use_docview='USE_DOC_VIEW_ARCHITECTURE='$DEFAULT_USE_DOC_VIEW_ARCHITECTURE | |
5479 | ||
5480 | fi | |
5481 | ||
5482 | eval "$ac_cv_use_docview" | |
5483 | echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp | |
5484 | if test "$USE_DOC_VIEW_ARCHITECTURE" = 1; then | |
5485 | echo "$ac_t""yes" 1>&6 | |
5486 | else | |
5487 | echo "$ac_t""no" 1>&6 | |
5488 | fi | |
5489 | ||
5490 | ||
5491 | ||
5492 | echo $ac_n "checking "for printarch"""... $ac_c" 1>&6 | |
cf447356 | 5493 | echo "configure:5494: checking "for printarch"" >&5 |
c801d85f KB |
5494 | # Check whether --with-printarch or --without-printarch was given. |
5495 | if test "${with_printarch+set}" = set; then | |
5496 | withval="$with_printarch" | |
5497 | if test "x$with_printarch" = xyes; then | |
5498 | ac_cv_use_printarch='USE_PRINTING_ARCHITECTURE="1"' | |
5499 | else | |
5500 | ac_cv_use_printarch='USE_PRINTING_ARCHITECTURE="0"' | |
5501 | fi | |
5502 | else | |
5503 | ||
5504 | LINE=`grep "USE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache` | |
5505 | if test "x$LINE" != x ; then | |
5506 | eval "DEFAULT_$LINE" | |
5507 | fi | |
5508 | ac_cv_use_printarch='USE_PRINTING_ARCHITECTURE='$DEFAULT_USE_PRINTING_ARCHITECTURE | |
5509 | ||
5510 | fi | |
5511 | ||
5512 | eval "$ac_cv_use_printarch" | |
5513 | echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp | |
5514 | if test "$USE_PRINTING_ARCHITECTURE" = 1; then | |
5515 | echo "$ac_t""yes" 1>&6 | |
5516 | else | |
5517 | echo "$ac_t""no" 1>&6 | |
5518 | fi | |
5519 | ||
5520 | ||
5521 | ||
5522 | echo $ac_n "checking "for typetree"""... $ac_c" 1>&6 | |
cf447356 | 5523 | echo "configure:5524: checking "for typetree"" >&5 |
c801d85f KB |
5524 | # Check whether --with-typetree or --without-typetree was given. |
5525 | if test "${with_typetree+set}" = set; then | |
5526 | withval="$with_typetree" | |
5527 | if test "x$with_typetree" = xyes; then | |
5528 | ac_cv_use_typetree='USE_TYPETREE="1"' | |
5529 | else | |
5530 | ac_cv_use_typetree='USE_TYPETREE="0"' | |
5531 | fi | |
5532 | else | |
5533 | ||
5534 | LINE=`grep "USE_TYPETREE" ${OSTYPE}.system.cache` | |
5535 | if test "x$LINE" != x ; then | |
5536 | eval "DEFAULT_$LINE" | |
5537 | fi | |
5538 | ac_cv_use_typetree='USE_TYPETREE='$DEFAULT_USE_TYPETREE | |
5539 | ||
5540 | fi | |
5541 | ||
5542 | eval "$ac_cv_use_typetree" | |
5543 | echo $ac_cv_use_typetree >> ${OSTYPE}.system.cache.tmp | |
5544 | if test "$USE_TYPETREE" = 1; then | |
5545 | echo "$ac_t""yes" 1>&6 | |
5546 | else | |
5547 | echo "$ac_t""no" 1>&6 | |
5548 | fi | |
5549 | ||
5550 | ||
5551 | ||
5552 | echo $ac_n "checking "for wxgraph"""... $ac_c" 1>&6 | |
cf447356 | 5553 | echo "configure:5554: checking "for wxgraph"" >&5 |
c801d85f KB |
5554 | # Check whether --with-wxgraph or --without-wxgraph was given. |
5555 | if test "${with_wxgraph+set}" = set; then | |
5556 | withval="$with_wxgraph" | |
5557 | if test "x$with_wxgraph" = xyes; then | |
5558 | ac_cv_use_wxgraph='USE_WXGRAPH="1"' | |
5559 | else | |
5560 | ac_cv_use_wxgraph='USE_WXGRAPH="0"' | |
5561 | fi | |
5562 | else | |
5563 | ||
5564 | LINE=`grep "USE_WXGRAPH" ${OSTYPE}.system.cache` | |
5565 | if test "x$LINE" != x ; then | |
5566 | eval "DEFAULT_$LINE" | |
5567 | fi | |
5568 | ac_cv_use_wxgraph='USE_WXGRAPH='$DEFAULT_USE_WXGRAPH | |
5569 | ||
5570 | fi | |
5571 | ||
5572 | eval "$ac_cv_use_wxgraph" | |
5573 | echo $ac_cv_use_wxgraph >> ${OSTYPE}.system.cache.tmp | |
5574 | if test "$USE_WXGRAPH" = 1; then | |
5575 | echo "$ac_t""yes" 1>&6 | |
5576 | else | |
5577 | echo "$ac_t""no" 1>&6 | |
5578 | fi | |
5579 | ||
5580 | ||
5581 | ||
5582 | echo $ac_n "checking "for wxtree"""... $ac_c" 1>&6 | |
cf447356 | 5583 | echo "configure:5584: checking "for wxtree"" >&5 |
c801d85f KB |
5584 | # Check whether --with-wxtree or --without-wxtree was given. |
5585 | if test "${with_wxtree+set}" = set; then | |
5586 | withval="$with_wxtree" | |
5587 | if test "x$with_wxtree" = xyes; then | |
5588 | ac_cv_use_wxtree='USE_WXTREE="1"' | |
5589 | else | |
5590 | ac_cv_use_wxtree='USE_WXTREE="0"' | |
5591 | fi | |
5592 | else | |
5593 | ||
5594 | LINE=`grep "USE_WXTREE" ${OSTYPE}.system.cache` | |
5595 | if test "x$LINE" != x ; then | |
5596 | eval "DEFAULT_$LINE" | |
5597 | fi | |
5598 | ac_cv_use_wxtree='USE_WXTREE='$DEFAULT_USE_WXTREE | |
5599 | ||
5600 | fi | |
5601 | ||
5602 | eval "$ac_cv_use_wxtree" | |
5603 | echo $ac_cv_use_wxtree >> ${OSTYPE}.system.cache.tmp | |
5604 | if test "$USE_WXTREE" = 1; then | |
5605 | echo "$ac_t""yes" 1>&6 | |
5606 | else | |
5607 | echo "$ac_t""no" 1>&6 | |
5608 | fi | |
5609 | ||
5610 | ||
5611 | ||
5612 | ||
5613 | ZLIB=NONE | |
5614 | if test "$USE_ZLIB" = 1 ; then | |
5615 | ZLIB="ZLIB" | |
5616 | fi | |
5617 | ||
5618 | GDK_IMLIB=NONE | |
5619 | if test "$USE_GDK_IMLIB" = 1 ; then | |
5620 | GDK_IMLIB="GDK_IMLIB" | |
5621 | fi | |
5622 | ||
5623 | LIBPNG=NONE | |
5624 | if test "$USE_LIBPNG" = 1 ; then | |
5625 | LIBPNG="LIBPNG" | |
5626 | fi | |
5627 | ||
8c46af49 GL |
5628 | APPLE_IEEE=NONE |
5629 | if test "$USE_APPLE_IEEE" = 1 ; then | |
5630 | APPLE_IEEE="APPLE_IEEE" | |
5631 | cat >> confdefs.h <<EOF | |
5632 | #define USE_APPLE_IEEE $USE_APPLE_IEEE | |
5633 | EOF | |
5634 | ||
5635 | fi | |
c801d85f KB |
5636 | |
5637 | STORABLE=NONE | |
5638 | if test "$USE_STORABLE_CLASSES" = 1 ; then | |
5639 | STORABLE="STORABLE" | |
5640 | cat >> confdefs.h <<EOF | |
5641 | #define USE_STORABLE_CLASSES $USE_STORABLE_CLASSES | |
5642 | EOF | |
5643 | ||
5644 | fi | |
5645 | ||
5646 | AUTOTRANS=NONE | |
5647 | if test "$USE_AUTOTRANS" = 1 ; then | |
5648 | AUTOTRANS="AUTOTRANS" | |
5649 | cat >> confdefs.h <<EOF | |
5650 | #define USE_AUTOTRANS $USE_AUTOTRANS | |
5651 | EOF | |
5652 | ||
5653 | fi | |
5654 | ||
2216f571 | 5655 | WXDEBUG= |
c801d85f | 5656 | if test "$USE_DEBUG_INFO" = 1 ; then |
2216f571 | 5657 | WXDEBUG="-g" |
c801d85f KB |
5658 | fi |
5659 | ||
5660 | ||
5661 | if test "$USE_DEBUG_FLAG" = 1 ; then | |
5662 | cat >> confdefs.h <<EOF | |
b2aef89b | 5663 | #define WXDEBUG $USE_DEBUG_FLAG |
c801d85f KB |
5664 | EOF |
5665 | ||
4acbf245 KB |
5666 | cat >> confdefs.h <<EOF |
5667 | #define __WXDEBUG__ $USE_DEBUG_FLAG | |
5668 | EOF | |
5669 | ||
5670 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
5671 | ||
c801d85f KB |
5672 | fi |
5673 | ||
5674 | if test "$USE_MEM_TRACING" = 1 ; then | |
5675 | cat >> confdefs.h <<EOF | |
5676 | #define USE_MEMORY_TRACING $USE_MEM_TRACING | |
5677 | EOF | |
5678 | ||
5679 | cat >> confdefs.h <<EOF | |
5680 | #define USE_GLOBAL_MEMORY_OPERATORS $USE_MEM_TRACING | |
5681 | EOF | |
5682 | ||
5683 | fi | |
5684 | ||
5685 | PROFILE= | |
5686 | if test "$USE_PROFILE" = 1 ; then | |
5687 | PROFILE="-pg" | |
5688 | fi | |
5689 | ||
5690 | ||
5691 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
5692 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
5693 | if test "$USE_OPTIMISE" = 0 ; then | |
5694 | OPTIMISE= | |
5695 | else | |
5696 | if test "$GCC" = yes ; then | |
5697 | OPTIMISE="-O2" | |
5698 | case "${canonical}" in | |
5699 | i586-*-*|i686-*-* ) | |
5700 | OPTIMISE="${OPTIMISE} " | |
5701 | ;; | |
5702 | esac | |
5703 | else | |
5704 | OPTIMISE="-O" | |
5705 | fi | |
5706 | fi | |
5707 | ||
5708 | ||
5709 | USE_IOSTREAMH=$DEFAULT_USE_IOSTREAMH | |
5710 | cat >> confdefs.h <<EOF | |
5711 | #define USE_IOSTREAMH $USE_IOSTREAMH | |
5712 | EOF | |
5713 | ||
5714 | ||
5715 | RPC=NONE | |
5716 | if test "$USE_RPC" = 1 ; then | |
5717 | RPC="RPC" | |
5718 | cat >> confdefs.h <<EOF | |
5719 | #define USE_RPC $USE_RPC | |
5720 | EOF | |
5721 | ||
5722 | fi | |
5723 | ||
5724 | ||
5725 | WXRESOURCES=NONE | |
5726 | if test "$USE_WX_RESOURCES" = 1 ; then | |
5727 | WXRESOURCES="WXRESOURCES" | |
5728 | cat >> confdefs.h <<EOF | |
5729 | #define USE_WX_RESOURCES $USE_WX_RESOURCES | |
5730 | EOF | |
5731 | ||
5732 | fi | |
5733 | ||
5734 | ||
5735 | PROLOGIO=NONE | |
5736 | PROLOGIOSRC=NONE | |
5737 | if test "$USE_PROLOGIO" = 1 ; then | |
5738 | PROLOGIO="PROLOGIO" | |
5739 | PROLOGIOSRC="PROLOGIOSRC" | |
5740 | cat >> confdefs.h <<EOF | |
5741 | #define USE_PROLOGIO 1 | |
5742 | EOF | |
5743 | ||
5744 | fi | |
5745 | ||
5746 | ||
5747 | ||
5748 | POSTSCRIPTDC=NONE | |
5749 | if test "$USE_POSTSCRIPT" = 1 ; then | |
5750 | POSTSCRIPTDC="POSTSCRIPTDC" | |
5751 | cat >> confdefs.h <<EOF | |
5752 | #define USE_POSTSCRIPT 1 | |
5753 | EOF | |
5754 | ||
5755 | fi | |
5756 | ||
5757 | ||
53b28675 RR |
5758 | if test "$USE_WXCONFIG" = 1 ; then |
5759 | cat >> confdefs.h <<EOF | |
5760 | #define USE_WXCONFIG $USE_WXCONFIG | |
5761 | EOF | |
5762 | ||
5763 | fi | |
5764 | ||
c801d85f KB |
5765 | METAFILE=NONE |
5766 | if test "$USE_METAFILE" = 1 ; then | |
5767 | METAFILE="METAFILE" | |
5768 | cat >> confdefs.h <<EOF | |
5769 | #define USE_METAFILE $USE_METAFILE | |
5770 | EOF | |
5771 | ||
5772 | fi | |
5773 | ||
5774 | ||
5775 | FORM=NONE | |
5776 | if test "$USE_FORM" = 1 ; then | |
5777 | FORM="FORM" | |
5778 | cat >> confdefs.h <<EOF | |
5779 | #define USE_FORM $USE_FORM | |
5780 | EOF | |
5781 | ||
5782 | fi | |
5783 | ||
5784 | ||
5785 | HELP=NONE | |
5786 | if test "$USE_HELP" = 1 ; then | |
5787 | HELP="HELP" | |
5788 | cat >> confdefs.h <<EOF | |
5789 | #define USE_HELP $USE_HELP | |
5790 | EOF | |
5791 | ||
5792 | fi | |
5793 | ||
5794 | ||
5795 | IPC=NONE | |
5796 | if test "$USE_IPC" = 1 ; then | |
5797 | IPC="IPC" | |
5798 | cat >> confdefs.h <<EOF | |
5799 | #define USE_IPC 1 | |
5800 | EOF | |
5801 | ||
5802 | fi | |
5803 | ||
5804 | ||
5805 | ENHDIALOGBOX=NONE | |
5806 | if test "$USE_ENHANCED_DIALOG" = 1 ; then | |
5807 | ENHDIALOGBOX="ENHDIALOGBOX" | |
5808 | cat >> confdefs.h <<EOF | |
5809 | #define USE_ENHANCED_DIALOG $USE_ENHANCED_DIALOG | |
5810 | EOF | |
5811 | ||
5812 | fi | |
5813 | ||
5814 | ||
5815 | XRESOURCES=NONE | |
5816 | if test "$USE_RESOURCES" = 1 ; then | |
5817 | XRESOURCES="XRESOURCES" | |
5818 | cat >> confdefs.h <<EOF | |
5819 | #define USE_RESOURCES $USE_RESOURCES | |
5820 | EOF | |
5821 | ||
5822 | fi | |
5823 | ||
5824 | ||
5825 | CLIPBOARD=NONE | |
5826 | if test "$USE_CLIPBOARD" = 1 ; then | |
5827 | CLIPBOARD="CLIPBOARD" | |
5828 | cat >> confdefs.h <<EOF | |
5829 | #define USE_CLIPBOARD $USE_CLIPBOARD | |
5830 | EOF | |
5831 | ||
5832 | fi | |
5833 | ||
5834 | ||
5835 | CONSTRAINTS=NONE | |
5836 | if test "$USE_CONSTRAINTS" = 1 ; then | |
5837 | CONSTRAINTS="CONSTRAINTS" | |
5838 | cat >> confdefs.h <<EOF | |
5839 | #define USE_CONSTRAINTS $USE_CONSTRAINTS | |
5840 | EOF | |
5841 | ||
5842 | fi | |
5843 | ||
5844 | ||
5845 | TIMEDATE=NONE | |
5846 | if test "$USE_TIMEDATE" = 1 ; then | |
5847 | TIMEDATE="TIMEDATE" | |
5848 | cat >> confdefs.h <<EOF | |
5849 | #define USE_TIMEDATE $USE_TIMEDATE | |
5850 | EOF | |
5851 | ||
5852 | fi | |
5853 | ||
5854 | ||
5855 | FRACTION=NONE | |
5856 | if test "$USE_FRACTION" = 1 ; then | |
5857 | FRACTION="FRACTION" | |
5858 | cat >> confdefs.h <<EOF | |
5859 | #define USE_FRACTION $USE_FRACTION | |
5860 | EOF | |
5861 | ||
5862 | fi | |
5863 | ||
5864 | ||
5865 | TOOLBAR=NONE | |
5866 | if test "$USE_TOOLBAR" = 1 ; then | |
5867 | TOOLBAR="TOOLBAR" | |
5868 | cat >> confdefs.h <<EOF | |
5869 | #define USE_TOOLBAR $USE_TOOLBAR | |
5870 | EOF | |
5871 | ||
5872 | cat >> confdefs.h <<EOF | |
5873 | #define USE_XT_TOOLBAR $USE_XT_TOOLBAR | |
5874 | EOF | |
5875 | ||
5876 | fi | |
5877 | ||
5878 | ||
5879 | GAUGE=NONE | |
5880 | if test "$USE_GAUGE" = 1 ; then | |
5881 | GAUGE="GAUGE" | |
5882 | ||
5883 | cat >> confdefs.h <<EOF | |
5884 | #define USE_GAUGE $USE_GAUGE | |
5885 | EOF | |
5886 | ||
5887 | fi | |
5888 | ||
5889 | VIRLISTBOX=NONE | |
5890 | if test "$USE_VLBOX" = 1 ; then | |
5891 | VIRTLISTBOX="VIRLISTBOX" | |
5892 | cat >> confdefs.h <<EOF | |
5893 | #define USE_VIRLISTBOX $USE_VIRLISTBOX | |
5894 | EOF | |
5895 | ||
5896 | fi | |
5897 | ||
5898 | ||
5899 | SCROLLBAR=NONE | |
5900 | if test "$USE_SCROLLBAR" = 1 ; then | |
5901 | SCROLLBAR="SCROLLBAR" | |
5902 | cat >> confdefs.h <<EOF | |
5903 | #define USE_SCROLLBAR $USE_SCROLLBAR | |
5904 | EOF | |
5905 | ||
5906 | fi | |
5907 | ||
5908 | ||
5909 | DOCVIEW=NONE | |
5910 | if test "$USE_DOC_VIEW_ARCHITECTURE" = 1 ; then | |
5911 | DOCVIEW="DOCVIEW" | |
5912 | cat >> confdefs.h <<EOF | |
5913 | #define USE_DOC_VIEW_ARCHITECTURE $USE_DOC_VIEW_ARCHITECTURE | |
5914 | EOF | |
5915 | ||
5916 | fi | |
5917 | ||
5918 | ||
5919 | PRINTPREVIEW=NONE | |
5920 | if test "$USE_PRINTING_ARCHITECTURE" = 1 ; then | |
5921 | PRINTPREVIEW="PRINTPREVIEW" | |
5922 | cat >> confdefs.h <<EOF | |
5923 | #define USE_PRINTING_ARCHITECTURE $USE_PRINTING_ARCHITECTURE | |
5924 | EOF | |
5925 | ||
5926 | fi | |
5927 | ||
5928 | ||
5929 | TYPETREE=NONE | |
5930 | if test "$USE_TYPETREE" = 1 ; then | |
5931 | TYPETREE="TYPETREE" | |
5932 | cat >> confdefs.h <<EOF | |
5933 | #define USE_TYPETREE $USE_TYPETREE | |
5934 | EOF | |
5935 | ||
5936 | fi | |
5937 | ||
5938 | ||
5939 | WXGRAPH=NONE | |
5940 | if test "$USE_WXGRAPH" = 1 ; then | |
5941 | WXGRAPH="WXGRAPH" | |
5942 | cat >> confdefs.h <<EOF | |
5943 | #define USE_WXGRAPH $USE_WXGRAPH | |
5944 | EOF | |
5945 | ||
5946 | fi | |
5947 | ||
5948 | ||
5949 | WXTREE=NONE | |
5950 | if test "$USE_WXTREE" = 1 ; then | |
5951 | WXTREE="WXTREE" | |
5952 | cat >> confdefs.h <<EOF | |
5953 | #define USE_WXTREE $USE_WXTREE | |
5954 | EOF | |
5955 | ||
5956 | fi | |
5957 | ||
5958 | ||
5959 | GLCANVAS=NONE | |
5960 | if test "$USE_OPENGL" = 1 ; then | |
5961 | GLCANVAS="GLCANVAS" | |
5962 | fi | |
5963 | ||
5964 | cat >> confdefs.h <<EOF | |
5965 | #define USE_AFM_FOR_POSTSCRIPT $USE_AFM_FOR_POSTSCRIPT | |
5966 | EOF | |
5967 | ||
5968 | ||
5969 | cat >> confdefs.h <<EOF | |
5970 | #define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS | |
5971 | EOF | |
5972 | ||
5973 | ||
5974 | ||
5975 | if test "$USE_UNIX" = 1 ; then | |
5976 | cat >> confdefs.h <<\EOF | |
5977 | #define __UNIX__ 1 | |
5978 | EOF | |
5979 | ||
5980 | fi | |
5981 | ||
5982 | ||
5983 | GUI_TK_INCLUDE= | |
5984 | GUI_TK_LIBRARY= | |
5985 | GUI_TK_LINK= | |
5986 | ||
5987 | if test "$USE_GTK" = 1; then | |
5988 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
5989 | if test "${with_gtk_prefix+set}" = set; then | |
5990 | withval="$with_gtk_prefix" | |
5991 | gtk_config_prefix="$withval" | |
5992 | else | |
5993 | gtk_config_prefix="" | |
5994 | fi | |
5995 | ||
5996 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
5997 | if test "${with_gtk_exec_prefix+set}" = set; then | |
5998 | withval="$with_gtk_exec_prefix" | |
5999 | gtk_config_exec_prefix="$withval" | |
6000 | else | |
6001 | gtk_config_exec_prefix="" | |
6002 | fi | |
6003 | ||
6004 | ||
6005 | if test x$gtk_config_exec_prefix != x ; then | |
6006 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
6007 | if test x${GTK_CONFIG+set} != xset ; then | |
6008 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
6009 | fi | |
6010 | fi | |
6011 | if test x$gtk_config_prefix != x ; then | |
6012 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
6013 | if test x${GTK_CONFIG+set} != xset ; then | |
6014 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
6015 | fi | |
6016 | fi | |
6017 | ||
6018 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
6019 | set dummy gtk-config; ac_word=$2 | |
6020 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4acbf245 | 6021 | echo "configure:6022: checking for $ac_word" >&5 |
c801d85f KB |
6022 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
6023 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6024 | else | |
6025 | case "$GTK_CONFIG" in | |
6026 | /*) | |
6027 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
6028 | ;; | |
6029 | *) | |
6030 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6031 | for ac_dir in $PATH; do | |
6032 | test -z "$ac_dir" && ac_dir=. | |
6033 | if test -f $ac_dir/$ac_word; then | |
6034 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
6035 | break | |
6036 | fi | |
6037 | done | |
6038 | IFS="$ac_save_ifs" | |
6039 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
6040 | ;; | |
6041 | esac | |
6042 | fi | |
6043 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
6044 | if test -n "$GTK_CONFIG"; then | |
6045 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
6046 | else | |
6047 | echo "$ac_t""no" 1>&6 | |
6048 | fi | |
6049 | ||
6050 | min_gtk_version=0.99.7 | |
6051 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
4acbf245 | 6052 | echo "configure:6053: checking for GTK - version >= $min_gtk_version" >&5 |
c801d85f KB |
6053 | no_gtk="" |
6054 | if test "$GTK_CONFIG" != "no" ; then | |
6055 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
6056 | GTK_LIBS=`$GTK_CONFIG --libs` | |
6057 | ac_save_CFLAGS="$CFLAGS" | |
6058 | ac_save_LIBS="$LIBS" | |
6059 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
6060 | LIBS="$LIBS $GTK_LIBS" | |
6061 | if test "$cross_compiling" = yes; then | |
6062 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
6063 | else | |
6064 | cat > conftest.$ac_ext <<EOF | |
4acbf245 | 6065 | #line 6066 "configure" |
c801d85f KB |
6066 | #include "confdefs.h" |
6067 | ||
6068 | #include <gtk/gtk.h> | |
6069 | #include <stdio.h> | |
6070 | ||
6071 | int | |
6072 | main () | |
6073 | { | |
6074 | int major, minor, micro; | |
6075 | ||
6076 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
6077 | printf("%s, bad version string\n", "$min_gtk_version"); | |
6078 | exit(1); | |
6079 | } | |
6080 | ||
6081 | return !((gtk_major_version > major) || | |
6082 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
6083 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
6084 | } | |
6085 | ||
6086 | EOF | |
4acbf245 | 6087 | if { (eval echo configure:6088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
6088 | then |
6089 | : | |
6090 | else | |
6091 | echo "configure: failed program was:" >&5 | |
6092 | cat conftest.$ac_ext >&5 | |
6093 | rm -fr conftest* | |
6094 | no_gtk=yes | |
6095 | fi | |
6096 | rm -fr conftest* | |
6097 | fi | |
6098 | ||
6099 | CFLAGS="$ac_save_CFLAGS" | |
6100 | LIBS="$ac_save_LIBS" | |
6101 | else | |
6102 | no_gtk=yes | |
6103 | fi | |
6104 | if test "x$no_gtk" = x ; then | |
6105 | echo "$ac_t""yes" 1>&6 | |
6106 | ||
6107 | GUI_TK_INCLUDE="$GTK_CFLAGS" | |
6108 | GUI_TK_LIBRARY="$GTK_LIBS" | |
6109 | ||
6110 | else | |
6111 | echo "$ac_t""no" 1>&6 | |
6112 | GTK_CFLAGS="" | |
6113 | GTK_LIBS="" | |
6114 | { echo "configure: error: Are gtk-config and the GTK in path and up-to-date?" 1>&2; exit 1; } | |
6115 | fi | |
6116 | ||
6117 | ||
6118 | ||
6119 | cat >> confdefs.h <<\EOF | |
2049ba38 | 6120 | #define __WXGTK__ 1 |
c801d85f KB |
6121 | EOF |
6122 | ||
6123 | fi | |
6124 | ||
6125 | ||
6126 | ||
6127 | ||
6128 | ||
6129 | ||
6130 | ||
6131 | ||
6132 | OPENGL_INCLUDE= | |
6133 | OPENGL_LIBRARY= | |
6134 | OPENGL_LINK= | |
6135 | ||
6136 | if test "$USE_OPENGL" = 1; then | |
6137 | echo $ac_n "checking for OpenGL includes""... $ac_c" 1>&6 | |
4acbf245 | 6138 | echo "configure:6139: checking for OpenGL includes" >&5 |
c801d85f KB |
6139 | |
6140 | ac_find_includes= | |
6141 | for ac_dir in $SEARCH_INCLUDE; | |
6142 | do | |
6143 | if test -f "$ac_dir/GL/gl.h"; then | |
6144 | ac_find_includes=$ac_dir | |
6145 | break | |
6146 | fi | |
6147 | done | |
6148 | ||
6149 | if test "$ac_find_includes" != "" ; then | |
6150 | OPENGL_INCLUDE="-I$ac_find_includes" | |
6151 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
6152 | echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6 | |
4acbf245 | 6153 | echo "configure:6154: checking for OpenGL library" >&5 |
c801d85f KB |
6154 | |
6155 | ac_find_libraries= | |
6156 | for ac_dir in $SEARCH_LIB; | |
6157 | do | |
6158 | for ac_extension in a so sl; do | |
6159 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
6160 | ac_find_libraries=$ac_dir | |
6161 | break 2 | |
6162 | fi | |
6163 | done | |
6164 | done | |
6165 | ||
6166 | if test "$ac_find_libraries" != "" ; then | |
6167 | ||
6168 | ac_path_to_include=$ac_find_includes | |
6169 | echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
6170 | result=$? | |
6171 | if test $result = 0; then | |
6172 | ac_path_to_include="" | |
6173 | else | |
6174 | ac_path_to_include="-I$ac_find_includes" | |
6175 | fi | |
6176 | ||
6177 | ||
6178 | echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null | |
6179 | result=$? | |
6180 | if test $result = 0; then | |
6181 | ac_path_to_link="" | |
6182 | else | |
6183 | ac_path_to_link="-L$ac_find_libraries" | |
6184 | fi | |
6185 | ||
6186 | CHECK_LINK="$CHECK_INCLUDE $ac_path_to_link" | |
6187 | CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include" | |
6188 | OPENGL_LIBRARY="$ac_path_to_link" | |
6189 | OPENGL_INCLUDE="$ac_path_to_include" | |
6190 | OPENGL_LINK="-lGL" | |
6191 | echo "$ac_t""found OpenGL at $ac_find_libraries" 1>&6 | |
6192 | else | |
6193 | ||
6194 | ac_find_libraries= | |
6195 | for ac_dir in $SEARCH_LIB; | |
6196 | do | |
6197 | for ac_extension in a so sl; do | |
6198 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
6199 | ac_find_libraries=$ac_dir | |
6200 | break 2 | |
6201 | fi | |
6202 | done | |
6203 | done | |
6204 | ||
6205 | if test "$ac_find_libraries" != "" ; then | |
6206 | ||
6207 | ac_path_to_include=$ac_find_includes | |
6208 | echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
6209 | result=$? | |
6210 | if test $result = 0; then | |
6211 | ac_path_to_include="" | |
6212 | else | |
6213 | ac_path_to_include="-I$ac_find_includes" | |
6214 | fi | |
6215 | ||
6216 | ||
6217 | echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null | |
6218 | result=$? | |
6219 | if test $result = 0; then | |
6220 | ac_path_to_link="" | |
6221 | else | |
6222 | ac_path_to_link="-L$ac_find_libraries" | |
6223 | fi | |
6224 | ||
6225 | CHECK_LINK="$CHECK_INCLUDE $ac_path_to_link" | |
6226 | CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include" | |
6227 | OPENGL_LIBRARY="$ac_path_to_link" | |
6228 | OPENGL_INCLUDE="$ac_path_to_include" | |
6229 | OPENGL_LINK="-lMesaGL" | |
6230 | echo "$ac_t""found MESA at $ac_find_libraries" 1>&6 | |
6231 | else | |
6232 | { echo "configure: error: no" 1>&2; exit 1; } | |
6233 | fi | |
6234 | fi | |
6235 | else | |
6236 | { echo "configure: error: no" 1>&2; exit 1; } | |
6237 | fi | |
6238 | fi | |
6239 | ||
6240 | if test "$USE_GDK_IMLIB" = 1; then | |
6241 | cat >> confdefs.h <<EOF | |
6242 | #define USE_GDK_IMLIB $USE_GDK_IMLIB | |
6243 | EOF | |
6244 | ||
6245 | fi | |
6246 | ||
6247 | if test "$USE_ZLIB" = 1; then | |
6248 | cat >> confdefs.h <<EOF | |
6249 | #define USE_ZLIB $USE_ZLIB | |
6250 | EOF | |
6251 | ||
6252 | fi | |
6253 | ||
6254 | if test "$USE_LIBPNG" = 1; then | |
6255 | cat >> confdefs.h <<EOF | |
6256 | #define USE_LIBPNG $USE_LIBPNG | |
6257 | EOF | |
6258 | ||
6259 | fi | |
6260 | ||
6261 | ||
6262 | ||
6263 | ||
6264 | USE_GLX=$USE_OPENGL | |
6265 | if test "$USE_OPENGL" != 1; then | |
6266 | OPENGL_LIBRARIES= | |
6267 | OPENGL_INCLUDE= | |
6268 | OPENGL_LINK= | |
6269 | GLCANVAS=NONE | |
6270 | fi | |
6271 | ||
6272 | cat >> confdefs.h <<EOF | |
6273 | #define USE_GLX $USE_GLX | |
6274 | EOF | |
6275 | ||
6276 | ||
6277 | ||
6278 | ||
6279 | ||
6280 | ||
6281 | ||
6282 | PICFLAGS= | |
6283 | CREATE_SHARED= | |
6284 | case "${canonical}" in | |
6285 | ||
6286 | *-hp-hpux* ) | |
6287 | if test "${CC}" != "gcc" ; then | |
6288 | CXXFLAGS="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE" | |
6289 | CFLAGS="${CFLAGS} -z -D_HPUX_SOURCE" | |
6290 | PICFLAGS="+z" | |
6291 | else | |
6292 | PICFLAGS="-fPIC" | |
6293 | fi | |
6294 | LDFLAGS="-Wl,+s" | |
6295 | CREATE_SHARED=sharedHpux | |
6296 | ;; | |
6297 | ||
6298 | *-*-linux* ) | |
6299 | PICFLAGS=-fPIC | |
6300 | CREATE_SHARED=sharedLinux | |
6301 | ;; | |
6302 | ||
6303 | *-*-irix5* | *-*-irix6* ) | |
6304 | # PICFLAGS can remain empty, as pic is the default | |
6305 | LDFLAGS="-Wl,+s" | |
6306 | CREATE_SHARED=sharedIrix | |
6307 | cat >> confdefs.h <<\EOF | |
6308 | #define SVR4 1 | |
6309 | EOF | |
6310 | ||
6311 | ;; | |
6312 | ||
6313 | *-*-solaris2* ) | |
6314 | if test "${CC}" != "gcc" ; then | |
6315 | PICFLAGS="-KPIC" | |
6316 | else | |
6317 | PICFLAGS="-fPIC" | |
6318 | fi | |
6319 | CREATE_SHARED=sharedSolaris2 | |
6320 | cat >> confdefs.h <<\EOF | |
6321 | #define SVR4 1 | |
6322 | EOF | |
6323 | ||
6324 | ;; | |
6325 | ||
6326 | *-*-sunos4* ) | |
6327 | if test "${CC}" != "gcc" ; then | |
6328 | PICFLAGS="-PIC" | |
6329 | else | |
6330 | PICFLAGS="-fPIC" | |
6331 | fi | |
6332 | LDFLAGS="-Wl,+s" | |
6333 | CREATE_SHARED=sharedSunos4 | |
6334 | cat >> confdefs.h <<\EOF | |
6335 | #define BSD 1 | |
6336 | EOF | |
6337 | ||
6338 | ;; | |
6339 | ||
6340 | *-*-freebsd* | *-*-netbsd*) | |
6341 | PICFLAGS=-fPIC | |
6342 | CREATE_SHARED=sharedBsd | |
6343 | cat >> confdefs.h <<\EOF | |
6344 | #define BSD 1 | |
6345 | EOF | |
6346 | ||
6347 | ;; | |
6348 | ||
6349 | *-*-osf* ) | |
6350 | PICFLAGS="-fPIC" | |
6351 | CREATE_SHARED=sharedOSF | |
6352 | ;; | |
6353 | ||
6354 | *-*-dgux5* ) | |
6355 | if test "${CC}" != "gcc" ; then | |
6356 | PICFLAGS="-K PIC" | |
6357 | else | |
6358 | PICFLAGS="-fPIC" | |
6359 | fi | |
6360 | CREATE_SHARED=sharedDgux | |
6361 | cat >> confdefs.h <<\EOF | |
6362 | #define SVR4 1 | |
6363 | EOF | |
6364 | ||
6365 | ;; | |
6366 | ||
6367 | *-*-sysv5* ) | |
6368 | if test "${CC}" != "gcc" ; then | |
6369 | PICFLAGS="-K PIC" | |
6370 | else | |
6371 | PICFLAGS="-fPIC" | |
6372 | fi | |
6373 | CREATE_SHARED=sharedSysV | |
6374 | cat >> confdefs.h <<\EOF | |
6375 | #define SVR4 1 | |
6376 | EOF | |
6377 | ||
6378 | ;; | |
6379 | ||
6380 | *-*-aix* ) | |
6381 | if test "${CC}" != "gcc" ; then | |
6382 | PICFLAGS="-bM\:SRE" | |
6383 | else | |
6384 | PICFLAGS="-fPIC" | |
6385 | fi | |
6386 | CREATE_SHARED=sharedAIX | |
6387 | cat >> confdefs.h <<\EOF | |
6388 | #define SYSV 1 | |
6389 | EOF | |
6390 | ||
6391 | ;; | |
6392 | ||
6393 | *) | |
6394 | CREATE_SHARED= | |
6395 | PICFLAGS= | |
6396 | esac | |
6397 | ||
6398 | if test "x$GCC" = xyes; then | |
6399 | CFLAGS="${CFLAGS} -Wall" | |
6400 | fi | |
6401 | ||
6402 | if test "x$GXX" = xyes; then | |
6403 | CXXFLAGS="${CXXFLAGS} -Wall" | |
6404 | fi | |
6405 | ||
6406 | if test "$USE_SHARED" != 1; then | |
6407 | CREATE_SHARED= | |
6408 | PICFLAGS= | |
6409 | fi | |
6410 | ||
6411 | ||
6412 | ||
6413 | ||
6414 | ||
6415 | ||
6416 | echo $OS >> system.list | |
abe1d62e | 6417 | echo $OS >> ../../system.list |
c801d85f KB |
6418 | |
6419 | ||
6420 | trap '' 1 2 15 | |
6421 | cat > confcache <<\EOF | |
6422 | # This file is a shell script that caches the results of configure | |
6423 | # tests run on this system so they can be shared between configure | |
6424 | # scripts and configure runs. It is not useful on other systems. | |
6425 | # If it contains results you don't want to keep, you may remove or edit it. | |
6426 | # | |
6427 | # By default, configure uses ./config.cache as the cache file, | |
6428 | # creating it if it does not exist already. You can give configure | |
6429 | # the --cache-file=FILE option to use a different cache file; that is | |
6430 | # what configure does when it calls configure scripts in | |
6431 | # subdirectories, so they share the cache. | |
6432 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6433 | # config.status only pays attention to the cache file if you give it the | |
6434 | # --recheck option to rerun configure. | |
6435 | # | |
6436 | EOF | |
6437 | # The following way of writing the cache mishandles newlines in values, | |
6438 | # but we know of no workaround that is simple, portable, and efficient. | |
6439 | # So, don't put newlines in cache variables' values. | |
6440 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6441 | # and sets the high bit in the cache file unless we assign to the vars. | |
6442 | (set) 2>&1 | | |
6443 | case `(ac_space=' '; set) 2>&1` in | |
6444 | *ac_space=\ *) | |
6445 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6446 | # turns \\\\ into \\, and sed turns \\ into \). | |
6447 | sed -n \ | |
6448 | -e "s/'/'\\\\''/g" \ | |
6449 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6450 | ;; | |
6451 | *) | |
6452 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6453 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6454 | ;; | |
6455 | esac >> confcache | |
6456 | if cmp -s $cache_file confcache; then | |
6457 | : | |
6458 | else | |
6459 | if test -w $cache_file; then | |
6460 | echo "updating cache $cache_file" | |
6461 | cat confcache > $cache_file | |
6462 | else | |
6463 | echo "not updating unwritable cache $cache_file" | |
6464 | fi | |
6465 | fi | |
6466 | rm -f confcache | |
6467 | ||
6468 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
6469 | ||
6470 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6471 | # Let make expand exec_prefix. | |
6472 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6473 | ||
6474 | # Any assignment to VPATH causes Sun make to only execute | |
6475 | # the first set of double-colon rules, so remove it if not needed. | |
6476 | # If there is a colon in the path, we need to keep it. | |
6477 | if test "x$srcdir" = x.; then | |
6478 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
6479 | fi | |
6480 | ||
6481 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
6482 | ||
6483 | DEFS=-DHAVE_CONFIG_H | |
6484 | ||
6485 | # Without the "./", some shells look in PATH for config.status. | |
6486 | : ${CONFIG_STATUS=./config.status} | |
6487 | ||
6488 | echo creating $CONFIG_STATUS | |
6489 | rm -f $CONFIG_STATUS | |
6490 | cat > $CONFIG_STATUS <<EOF | |
6491 | #! /bin/sh | |
6492 | # Generated automatically by configure. | |
6493 | # Run this file to recreate the current configuration. | |
6494 | # This directory was configured as follows, | |
6495 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
6496 | # | |
6497 | # $0 $ac_configure_args | |
6498 | # | |
6499 | # Compiler output produced by configure, useful for debugging | |
6500 | # configure, is in ./config.log if it exists. | |
6501 | ||
6502 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
6503 | for ac_option | |
6504 | do | |
6505 | case "\$ac_option" in | |
6506 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
6507 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
6508 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
6509 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
6510 | echo "$CONFIG_STATUS generated by autoconf version 2.12" | |
6511 | exit 0 ;; | |
6512 | -help | --help | --hel | --he | --h) | |
6513 | echo "\$ac_cs_usage"; exit 0 ;; | |
6514 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
6515 | esac | |
6516 | done | |
6517 | ||
6518 | ac_given_srcdir=$srcdir | |
6519 | ac_given_INSTALL="$INSTALL" | |
6520 | ||
abe1d62e | 6521 | trap 'rm -fr `echo "../../src/gtk/setup/substit ../../include/wx/gtk/setup.h:../../src/gtk/setup/setup.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
c801d85f KB |
6522 | EOF |
6523 | cat >> $CONFIG_STATUS <<EOF | |
6524 | ||
6525 | # Protect against being on the right side of a sed subst in config.status. | |
6526 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
6527 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
6528 | $ac_vpsub | |
6529 | $extrasub | |
6530 | s%@CFLAGS@%$CFLAGS%g | |
6531 | s%@CPPFLAGS@%$CPPFLAGS%g | |
6532 | s%@CXXFLAGS@%$CXXFLAGS%g | |
6533 | s%@DEFS@%$DEFS%g | |
6534 | s%@LDFLAGS@%$LDFLAGS%g | |
6535 | s%@LIBS@%$LIBS%g | |
6536 | s%@exec_prefix@%$exec_prefix%g | |
6537 | s%@prefix@%$prefix%g | |
6538 | s%@program_transform_name@%$program_transform_name%g | |
6539 | s%@bindir@%$bindir%g | |
6540 | s%@sbindir@%$sbindir%g | |
6541 | s%@libexecdir@%$libexecdir%g | |
6542 | s%@datadir@%$datadir%g | |
6543 | s%@sysconfdir@%$sysconfdir%g | |
6544 | s%@sharedstatedir@%$sharedstatedir%g | |
6545 | s%@localstatedir@%$localstatedir%g | |
6546 | s%@libdir@%$libdir%g | |
6547 | s%@includedir@%$includedir%g | |
6548 | s%@oldincludedir@%$oldincludedir%g | |
6549 | s%@infodir@%$infodir%g | |
6550 | s%@mandir@%$mandir%g | |
6551 | s%@WXBASEDIR@%$WXBASEDIR%g | |
6552 | s%@CC@%$CC%g | |
6553 | s%@CPP@%$CPP%g | |
6554 | s%@CXX@%$CXX%g | |
6555 | s%@CXXCPP@%$CXXCPP%g | |
6556 | s%@RANLIB@%$RANLIB%g | |
6557 | s%@AR@%$AR%g | |
6558 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
6559 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
6560 | s%@LN_S@%$LN_S%g | |
6561 | s%@AWK@%$AWK%g | |
6562 | s%@X_CFLAGS@%$X_CFLAGS%g | |
6563 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
6564 | s%@X_LIBS@%$X_LIBS%g | |
6565 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
7c351dad | 6566 | s%@GTK_JOYSTICK@%$GTK_JOYSTICK%g |
c801d85f | 6567 | s%@LIBOBJS@%$LIBOBJS%g |
7c351dad | 6568 | s%@UNIX_THREAD@%$UNIX_THREAD%g |
82052aff | 6569 | s%@THREADS_LINK@%$THREADS_LINK%g |
c801d85f KB |
6570 | s%@YACC@%$YACC%g |
6571 | s%@LEX@%$LEX%g | |
6572 | s%@LEXLIB@%$LEXLIB%g | |
6573 | s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g | |
6574 | s%@host@%$host%g | |
6575 | s%@host_alias@%$host_alias%g | |
6576 | s%@host_cpu@%$host_cpu%g | |
6577 | s%@host_vendor@%$host_vendor%g | |
6578 | s%@host_os@%$host_os%g | |
2216f571 | 6579 | s%@WXDEBUG@%$WXDEBUG%g |
4acbf245 | 6580 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
c801d85f KB |
6581 | s%@PROFILE@%$PROFILE%g |
6582 | s%@OPTIMISE@%$OPTIMISE%g | |
6583 | s%@RPC@%$RPC%g | |
6584 | s%@WXRESOURCES@%$WXRESOURCES%g | |
6585 | s%@PROLOGIO@%$PROLOGIO%g | |
6586 | s%@PROLOGIOSRC@%$PROLOGIOSRC%g | |
6587 | s%@POSTSCRIPTDC@%$POSTSCRIPTDC%g | |
6588 | s%@METAFILE@%$METAFILE%g | |
6589 | s%@FORM@%$FORM%g | |
6590 | s%@HELP@%$HELP%g | |
6591 | s%@IPC@%$IPC%g | |
6592 | s%@ENHDIALOGBOX@%$ENHDIALOGBOX%g | |
6593 | s%@XRESOURCES@%$XRESOURCES%g | |
6594 | s%@CLIPBOARD@%$CLIPBOARD%g | |
6595 | s%@CONSTRAINTS@%$CONSTRAINTS%g | |
6596 | s%@TIMEDATE@%$TIMEDATE%g | |
6597 | s%@FRACTION@%$FRACTION%g | |
6598 | s%@TOOLBAR@%$TOOLBAR%g | |
6599 | s%@GAUGE@%$GAUGE%g | |
6600 | s%@VIRLISTBOX@%$VIRLISTBOX%g | |
6601 | s%@SCROLLBAR@%$SCROLLBAR%g | |
6602 | s%@DOCVIEW@%$DOCVIEW%g | |
6603 | s%@PRINTPREVIEW@%$PRINTPREVIEW%g | |
6604 | s%@TYPETREE@%$TYPETREE%g | |
6605 | s%@WXGRAPH@%$WXGRAPH%g | |
6606 | s%@WXTREE@%$WXTREE%g | |
6607 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
6608 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
6609 | s%@GTK_LIBS@%$GTK_LIBS%g | |
6610 | s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g | |
6611 | s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g | |
6612 | s%@GUI_TK_LINK@%$GUI_TK_LINK%g | |
6613 | s%@TOOLKIT@%$TOOLKIT%g | |
6614 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
6615 | s%@OPENGL_INCLUDE@%$OPENGL_INCLUDE%g | |
6616 | s%@OPENGL_LIBRARY@%$OPENGL_LIBRARY%g | |
6617 | s%@OPENGL_LINK@%$OPENGL_LINK%g | |
6618 | s%@GLCANVAS@%$GLCANVAS%g | |
6619 | s%@OS@%$OS%g | |
6620 | s%@PICFLAGS@%$PICFLAGS%g | |
6621 | s%@CREATE_SHARED@%$CREATE_SHARED%g | |
6622 | ||
6623 | CEOF | |
6624 | EOF | |
6625 | ||
6626 | cat >> $CONFIG_STATUS <<\EOF | |
6627 | ||
6628 | # Split the substitutions into bite-sized pieces for seds with | |
6629 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
6630 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
6631 | ac_file=1 # Number of current file. | |
6632 | ac_beg=1 # First line for current file. | |
6633 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
6634 | ac_more_lines=: | |
6635 | ac_sed_cmds="" | |
6636 | while $ac_more_lines; do | |
6637 | if test $ac_beg -gt 1; then | |
6638 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
6639 | else | |
6640 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
6641 | fi | |
6642 | if test ! -s conftest.s$ac_file; then | |
6643 | ac_more_lines=false | |
6644 | rm -f conftest.s$ac_file | |
6645 | else | |
6646 | if test -z "$ac_sed_cmds"; then | |
6647 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
6648 | else | |
6649 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
6650 | fi | |
6651 | ac_file=`expr $ac_file + 1` | |
6652 | ac_beg=$ac_end | |
6653 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
6654 | fi | |
6655 | done | |
6656 | if test -z "$ac_sed_cmds"; then | |
6657 | ac_sed_cmds=cat | |
6658 | fi | |
6659 | EOF | |
6660 | ||
6661 | cat >> $CONFIG_STATUS <<EOF | |
6662 | ||
abe1d62e | 6663 | CONFIG_FILES=\${CONFIG_FILES-"../../src/gtk/setup/substit"} |
c801d85f KB |
6664 | EOF |
6665 | cat >> $CONFIG_STATUS <<\EOF | |
6666 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
6667 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
6668 | case "$ac_file" in | |
6669 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
6670 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
6671 | *) ac_file_in="${ac_file}.in" ;; | |
6672 | esac | |
6673 | ||
6674 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
6675 | ||
6676 | # Remove last slash and all that follows it. Not all systems have dirname. | |
6677 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
6678 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
6679 | # The file is in a subdirectory. | |
6680 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
6681 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
6682 | # A "../" for each directory in $ac_dir_suffix. | |
6683 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
6684 | else | |
6685 | ac_dir_suffix= ac_dots= | |
6686 | fi | |
6687 | ||
6688 | case "$ac_given_srcdir" in | |
6689 | .) srcdir=. | |
6690 | if test -z "$ac_dots"; then top_srcdir=. | |
6691 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
6692 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
6693 | *) # Relative path. | |
6694 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
6695 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
6696 | esac | |
6697 | ||
6698 | case "$ac_given_INSTALL" in | |
6699 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
6700 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
6701 | esac | |
6702 | ||
6703 | echo creating "$ac_file" | |
6704 | rm -f "$ac_file" | |
6705 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
6706 | case "$ac_file" in | |
6707 | *Makefile*) ac_comsub="1i\\ | |
6708 | # $configure_input" ;; | |
6709 | *) ac_comsub= ;; | |
6710 | esac | |
6711 | ||
6712 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
6713 | sed -e "$ac_comsub | |
6714 | s%@configure_input@%$configure_input%g | |
6715 | s%@srcdir@%$srcdir%g | |
6716 | s%@top_srcdir@%$top_srcdir%g | |
6717 | s%@INSTALL@%$INSTALL%g | |
6718 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
6719 | fi; done | |
6720 | rm -f conftest.s* | |
6721 | ||
6722 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
6723 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
6724 | # | |
6725 | # ac_d sets the value in "#define NAME VALUE" lines. | |
6726 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
6727 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
6728 | ac_dC='\3' | |
6729 | ac_dD='%g' | |
6730 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
6731 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
6732 | ac_uB='\([ ]\)%\1#\2define\3' | |
6733 | ac_uC=' ' | |
6734 | ac_uD='\4%g' | |
6735 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
6736 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
6737 | ac_eB='$%\1#\2define\3' | |
6738 | ac_eC=' ' | |
6739 | ac_eD='%g' | |
6740 | ||
6741 | if test "${CONFIG_HEADERS+set}" != set; then | |
6742 | EOF | |
6743 | cat >> $CONFIG_STATUS <<EOF | |
abe1d62e | 6744 | CONFIG_HEADERS="../../include/wx/gtk/setup.h:../../src/gtk/setup/setup.hin" |
c801d85f KB |
6745 | EOF |
6746 | cat >> $CONFIG_STATUS <<\EOF | |
6747 | fi | |
6748 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
6749 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
6750 | case "$ac_file" in | |
6751 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
6752 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
6753 | *) ac_file_in="${ac_file}.in" ;; | |
6754 | esac | |
6755 | ||
6756 | echo creating $ac_file | |
6757 | ||
6758 | rm -f conftest.frag conftest.in conftest.out | |
6759 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
6760 | cat $ac_file_inputs > conftest.in | |
6761 | ||
6762 | EOF | |
6763 | ||
6764 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
6765 | # the proper values into config.h.in to produce config.h. And first: | |
6766 | # Protect against being on the right side of a sed subst in config.status. | |
6767 | # Protect against being in an unquoted here document in config.status. | |
6768 | rm -f conftest.vals | |
6769 | cat > conftest.hdr <<\EOF | |
6770 | s/[\\&%]/\\&/g | |
6771 | s%[\\$`]%\\&%g | |
6772 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
6773 | s%ac_d%ac_u%gp | |
6774 | s%ac_u%ac_e%gp | |
6775 | EOF | |
6776 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
6777 | rm -f conftest.hdr | |
6778 | ||
6779 | # This sed command replaces #undef with comments. This is necessary, for | |
6780 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
6781 | # on some systems where configure will not decide to define it. | |
6782 | cat >> conftest.vals <<\EOF | |
6783 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
6784 | EOF | |
6785 | ||
6786 | # Break up conftest.vals because some shells have a limit on | |
6787 | # the size of here documents, and old seds have small limits too. | |
6788 | ||
6789 | rm -f conftest.tail | |
6790 | while : | |
6791 | do | |
6792 | ac_lines=`grep -c . conftest.vals` | |
6793 | # grep -c gives empty output for an empty file on some AIX systems. | |
6794 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
6795 | # Write a limited-size here document to conftest.frag. | |
6796 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
6797 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
6798 | echo 'CEOF | |
6799 | sed -f conftest.frag conftest.in > conftest.out | |
6800 | rm -f conftest.in | |
6801 | mv conftest.out conftest.in | |
6802 | ' >> $CONFIG_STATUS | |
6803 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
6804 | rm -f conftest.vals | |
6805 | mv conftest.tail conftest.vals | |
6806 | done | |
6807 | rm -f conftest.vals | |
6808 | ||
6809 | cat >> $CONFIG_STATUS <<\EOF | |
6810 | rm -f conftest.frag conftest.h | |
6811 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
6812 | cat conftest.in >> conftest.h | |
6813 | rm -f conftest.in | |
6814 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
6815 | echo "$ac_file is unchanged" | |
6816 | rm -f conftest.h | |
6817 | else | |
6818 | # Remove last slash and all that follows it. Not all systems have dirname. | |
6819 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
6820 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
6821 | # The file is in a subdirectory. | |
6822 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
6823 | fi | |
6824 | rm -f $ac_file | |
6825 | mv conftest.h $ac_file | |
6826 | fi | |
6827 | fi; done | |
6828 | ||
6829 | EOF | |
6830 | cat >> $CONFIG_STATUS <<EOF | |
6831 | ||
6832 | EOF | |
6833 | cat >> $CONFIG_STATUS <<\EOF | |
abe1d62e | 6834 | |
c801d85f KB |
6835 | exit 0 |
6836 | EOF | |
6837 | chmod +x $CONFIG_STATUS | |
6838 | rm -fr confdefs* $ac_clean_files | |
6839 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
6840 | ||
6841 | ||
6842 | mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache | |
6843 |