]>
Commit | Line | Data |
---|---|---|
88ac883a VZ |
1 | #! /bin/sh |
2 | ||
3 | # From configure.in Id | |
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | # Do all the work for Automake. This macro actually does too much -- | |
11 | # some checks are only needed if your package does certain things. | |
12 | # But this isn't really a big deal. | |
13 | ||
14 | # serial 1 | |
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | # serial 1 | |
21 | ||
22 | ||
23 | ||
24 | # | |
25 | # Check to make sure that the build environment is sane. | |
26 | # | |
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | # serial 29 AM_PROG_LIBTOOL | |
37 | ||
38 | ||
39 | # AM_ENABLE_SHARED - implement the --enable-shared flag | |
40 | # Usage: AM_ENABLE_SHARED[(DEFAULT)] | |
41 | # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to | |
42 | # `yes'. | |
43 | ||
44 | ||
45 | # AM_DISABLE_SHARED - set the default shared flag to --disable-shared | |
46 | ||
47 | ||
48 | # AM_DISABLE_STATIC - set the default static flag to --disable-static | |
49 | ||
50 | ||
51 | # AM_ENABLE_STATIC - implement the --enable-static flag | |
52 | # Usage: AM_ENABLE_STATIC[(DEFAULT)] | |
53 | # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to | |
54 | # `yes'. | |
55 | ||
56 | ||
57 | ||
58 | # AM_PROG_LD - find the path to the GNU or non-GNU linker | |
59 | ||
60 | ||
61 | ||
62 | ||
63 | # AM_PROG_NM - find the path to a BSD-compatible name lister | |
64 | ||
65 | ||
66 | # AM_SYS_NM_PARSE - Check for command ro grab the raw symbol name followed | |
67 | # by C symbol name from nm. | |
68 | ||
69 | ||
70 | # AM_SYS_LIBTOOL_CYGWIN32 - find tools needed on cygwin32 | |
71 | ||
72 | ||
73 | # AM_SYS_SYMBOL_UNDERSCORE - does the compiler prefix global symbols | |
74 | # with an underscore? | |
75 | ||
76 | ||
77 | ||
78 | ||
79 | ||
80 | ||
81 | ||
82 | ||
83 | ||
84 | ||
85 | ||
86 | ||
87 | ||
88 | ||
89 | ||
90 | ||
91 | ||
92 | ||
93 | ||
94 | ||
95 | ||
96 | ||
97 | ||
98 | ||
99 | # Guess values for system-dependent variables and create Makefiles. | |
100 | # Generated automatically using autoconf version 2.13 | |
101 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
102 | # | |
103 | # This configure script is free software; the Free Software Foundation | |
104 | # gives unlimited permission to copy, distribute and modify it. | |
105 | ||
106 | # Defaults: | |
107 | ac_help= | |
108 | ac_default_prefix=/usr/local | |
109 | # Any additions from configure.in: | |
110 | ac_help="$ac_help | |
111 | --with-gtk-prefix=PFX prefix where GTK is installed" | |
112 | ac_help="$ac_help | |
113 | --with-gtk-exec-prefix=PFX exec prefix where GTK is installed" | |
114 | ac_help="$ac_help | |
115 | --with-gtk use GTK+" | |
116 | ac_help="$ac_help | |
117 | --with-motif use Motif/Lesstif" | |
118 | ac_help="$ac_help | |
119 | --with-cygwin use Cygwin for MS-Windows" | |
120 | ac_help="$ac_help | |
121 | --with-mingw use GCC Minimal MS-Windows" | |
122 | ac_help="$ac_help | |
123 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" | |
124 | ac_help="$ac_help | |
125 | --with-zlib use zlib for LZW compression" | |
126 | ac_help="$ac_help | |
127 | --with-libpng use libpng (PNG image format)" | |
128 | ac_help="$ac_help | |
129 | --with-libgif use libgif (GIF file format)" | |
130 | ac_help="$ac_help | |
131 | --with-libjpeg use libjpeg (JPEG file format)" | |
132 | ac_help="$ac_help | |
133 | --with-opengl use OpenGL (or Mesa)" | |
134 | ac_help="$ac_help | |
135 | --with-odbc use the IODBC and wxODBC classes" | |
136 | ac_help="$ac_help | |
137 | --enable-optimise create optimised code" | |
138 | ac_help="$ac_help | |
139 | --enable-optimize create optimized code" | |
140 | ac_help="$ac_help | |
141 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
142 | ac_help="$ac_help | |
143 | --enable-debug_info create code with debugging information" | |
144 | ac_help="$ac_help | |
145 | --enable-debug_gdb create code with extra GDB debugging information" | |
146 | ac_help="$ac_help | |
147 | --enable-debug_cntxt use wxDebugContext" | |
148 | ac_help="$ac_help | |
149 | --enable-mem_tracing create code with memory tracing" | |
150 | ac_help="$ac_help | |
151 | --enable-profile create code with profiling information" | |
152 | ac_help="$ac_help | |
153 | --enable-gui use GUI classes" | |
154 | ac_help="$ac_help | |
155 | --enable-intl use internationalization system" | |
156 | ac_help="$ac_help | |
157 | --enable-config use wxConfig (and derived) classes" | |
158 | ac_help="$ac_help | |
159 | --enable-sockets use socket/network classes" | |
160 | ac_help="$ac_help | |
161 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
162 | ac_help="$ac_help | |
163 | --enable-apple_ieee use the Apple IEEE codec" | |
164 | ac_help="$ac_help | |
165 | --enable-timedate use date/time classes" | |
166 | ac_help="$ac_help | |
167 | --enable-fraction use wxFraction class" | |
168 | ac_help="$ac_help | |
169 | --enable-dynlib use wxLibrary class for DLL loading" | |
170 | ac_help="$ac_help | |
171 | --enable-longlong use wxLongLong class" | |
172 | ac_help="$ac_help | |
173 | --enable-log use logging system" | |
174 | ac_help="$ac_help | |
175 | --enable-streams use wxStream etc classes" | |
176 | ac_help="$ac_help | |
177 | --enable-file use wxFile classes" | |
178 | ac_help="$ac_help | |
179 | --enable-textfile use wxTextFile classes" | |
180 | ac_help="$ac_help | |
181 | --enable-unicode compile wxString with Unicode support" | |
182 | ac_help="$ac_help | |
183 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" | |
184 | ac_help="$ac_help | |
185 | --enable-joystick compile in joystick support (Linux only)" | |
186 | ac_help="$ac_help | |
187 | --enable-threads use threads" | |
188 | ac_help="$ac_help | |
189 | --enable-serial use class serialization" | |
190 | ac_help="$ac_help | |
191 | --enable-docview use document view architecture" | |
192 | ac_help="$ac_help | |
193 | --enable-help use help (using external browser at present)" | |
194 | ac_help="$ac_help | |
195 | --enable-constraints use layout-constraints system" | |
196 | ac_help="$ac_help | |
197 | --enable-printarch use printing architecture" | |
198 | ac_help="$ac_help | |
199 | --enable-mdi use multiple document interface architecture" | |
200 | ac_help="$ac_help | |
201 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
202 | ac_help="$ac_help | |
203 | --enable-prologio use Prolog IO library" | |
204 | ac_help="$ac_help | |
205 | --enable-resources use wxWindows resources" | |
206 | ac_help="$ac_help | |
207 | --enable-xresources use X resources for save (default for gtk+)" | |
208 | ac_help="$ac_help | |
209 | --enable-clipboard use wxClipboard classes" | |
210 | ac_help="$ac_help | |
211 | --enable-dnd use Drag'n'Drop classes" | |
212 | ac_help="$ac_help | |
213 | --enable-wxtree make wxTree library" | |
214 | ac_help="$ac_help | |
215 | --enable-controls use all usual controls" | |
216 | ac_help="$ac_help | |
217 | --enable-accel use accelerators" | |
218 | ac_help="$ac_help | |
219 | --enable-caret use wxCaret class" | |
220 | ac_help="$ac_help | |
221 | --enable-bmpbutton use wxBitmapButton class" | |
222 | ac_help="$ac_help | |
223 | --enable-checkbox use wxCheckBox class" | |
224 | ac_help="$ac_help | |
225 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
226 | ac_help="$ac_help | |
227 | --enable-combobox use wxChoice and wxComboBox classes" | |
228 | ac_help="$ac_help | |
229 | --enable-gauge use wxGauge class" | |
230 | ac_help="$ac_help | |
231 | --enable-grid use wxGrid class" | |
232 | ac_help="$ac_help | |
233 | --enable-imaglist use wxImageList class" | |
234 | ac_help="$ac_help | |
235 | --enable-listbox use wxListBox class" | |
236 | ac_help="$ac_help | |
237 | --enable-listctrl use wxListCtrl class" | |
238 | ac_help="$ac_help | |
239 | --enable-notebook use wxNotebook class" | |
240 | ac_help="$ac_help | |
241 | --enable-radiobox use wxRadioBox class" | |
242 | ac_help="$ac_help | |
243 | --enable-radiobtn use wxRadioButton class" | |
244 | ac_help="$ac_help | |
245 | --enable-sash use wxSashWindow class" | |
246 | ac_help="$ac_help | |
247 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
248 | ac_help="$ac_help | |
249 | --enable-slider use wxSlider class" | |
250 | ac_help="$ac_help | |
251 | --enable-spinbtn use wxSpinButton class" | |
252 | ac_help="$ac_help | |
253 | --enable-splitter use wxSplitterWindow class" | |
254 | ac_help="$ac_help | |
255 | --enable-statbmp use wxStaticBitmap class" | |
256 | ac_help="$ac_help | |
257 | --enable-statbox use wxStaticBox class" | |
258 | ac_help="$ac_help | |
259 | --enable-statline use wxStaticLine class" | |
260 | ac_help="$ac_help | |
261 | --enable-statusbar use wxStatusBar class" | |
262 | ac_help="$ac_help | |
263 | --enable-tabdialog use wxTabControl class" | |
264 | ac_help="$ac_help | |
265 | --enable-toolbar use wxToolBar class" | |
266 | ac_help="$ac_help | |
267 | --enable-treectrl use wxTreeCtrl class" | |
268 | ac_help="$ac_help | |
269 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" | |
270 | ac_help="$ac_help | |
271 | --enable-miniframe use wxMiniFrame class" | |
272 | ac_help="$ac_help | |
273 | --enable-tooltips use wxToolTip class" | |
274 | ac_help="$ac_help | |
275 | --enable-splines use spline drawing code" | |
276 | ac_help="$ac_help | |
277 | --enable-validators use wxValidator and derived classes" | |
278 | ac_help="$ac_help | |
279 | --enable-static[=PKGS] build static libraries [default=no]" | |
280 | ac_help="$ac_help | |
281 | --enable-shared[=PKGS] build shared libraries [default=yes]" | |
282 | ac_help="$ac_help | |
283 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" | |
284 | ac_help="$ac_help | |
285 | --disable-libtool-lock force libtool not to do file locking" | |
286 | ac_help="$ac_help | |
287 | --with-x use the X Window System" | |
288 | ac_help="$ac_help | |
289 | **--with-gtk-prefix=PFX Prefix where GTK is installed" | |
290 | ac_help="$ac_help | |
291 | **--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed" | |
292 | ac_help="$ac_help | |
293 | **--with-gtk-prefix=PFX Prefix where GTK is installed" | |
294 | ac_help="$ac_help | |
295 | **--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed" | |
296 | ||
297 | # Initialize some variables set by options. | |
298 | # The variables have the same names as the options, with | |
299 | # dashes changed to underlines. | |
300 | build=NONE | |
301 | cache_file=./config.cache | |
302 | exec_prefix=NONE | |
303 | host=NONE | |
304 | no_create= | |
305 | nonopt=NONE | |
306 | no_recursion= | |
307 | prefix=NONE | |
308 | program_prefix=NONE | |
309 | program_suffix=NONE | |
310 | program_transform_name=s,x,x, | |
311 | silent= | |
312 | site= | |
313 | srcdir= | |
314 | target=NONE | |
315 | verbose= | |
316 | x_includes=NONE | |
317 | x_libraries=NONE | |
318 | bindir='${exec_prefix}/bin' | |
319 | sbindir='${exec_prefix}/sbin' | |
320 | libexecdir='${exec_prefix}/libexec' | |
321 | datadir='${prefix}/share' | |
322 | sysconfdir='${prefix}/etc' | |
323 | sharedstatedir='${prefix}/com' | |
324 | localstatedir='${prefix}/var' | |
325 | libdir='${exec_prefix}/lib' | |
326 | includedir='${prefix}/include' | |
327 | oldincludedir='/usr/include' | |
328 | infodir='${prefix}/info' | |
329 | mandir='${prefix}/man' | |
330 | ||
331 | # Initialize some other variables. | |
332 | subdirs= | |
333 | MFLAGS= MAKEFLAGS= | |
334 | SHELL=${CONFIG_SHELL-/bin/sh} | |
335 | # Maximum number of lines to put in a shell here document. | |
336 | ac_max_here_lines=12 | |
337 | ||
338 | ac_prev= | |
339 | for ac_option | |
340 | do | |
341 | ||
342 | # If the previous option needs an argument, assign it. | |
343 | if test -n "$ac_prev"; then | |
344 | eval "$ac_prev=\$ac_option" | |
345 | ac_prev= | |
346 | continue | |
347 | fi | |
348 | ||
349 | case "$ac_option" in | |
350 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
351 | *) ac_optarg= ;; | |
352 | esac | |
353 | ||
354 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
355 | ||
356 | case "$ac_option" in | |
357 | ||
358 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
359 | ac_prev=bindir ;; | |
360 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
361 | bindir="$ac_optarg" ;; | |
362 | ||
363 | -build | --build | --buil | --bui | --bu) | |
364 | ac_prev=build ;; | |
365 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
366 | build="$ac_optarg" ;; | |
367 | ||
368 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
369 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
370 | ac_prev=cache_file ;; | |
371 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
372 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
373 | cache_file="$ac_optarg" ;; | |
374 | ||
375 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
376 | ac_prev=datadir ;; | |
377 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
378 | | --da=*) | |
379 | datadir="$ac_optarg" ;; | |
380 | ||
381 | -disable-* | --disable-*) | |
382 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
383 | # Reject names that are not valid shell variable names. | |
384 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
385 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
386 | fi | |
387 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
388 | eval "enable_${ac_feature}=no" ;; | |
389 | ||
390 | -enable-* | --enable-*) | |
391 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
392 | # Reject names that are not valid shell variable names. | |
393 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
394 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
395 | fi | |
396 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
397 | case "$ac_option" in | |
398 | *=*) ;; | |
399 | *) ac_optarg=yes ;; | |
400 | esac | |
401 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
402 | ||
403 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
404 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
405 | | --exec | --exe | --ex) | |
406 | ac_prev=exec_prefix ;; | |
407 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
408 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
409 | | --exec=* | --exe=* | --ex=*) | |
410 | exec_prefix="$ac_optarg" ;; | |
411 | ||
412 | -gas | --gas | --ga | --g) | |
413 | # Obsolete; use --with-gas. | |
414 | with_gas=yes ;; | |
415 | ||
416 | -help | --help | --hel | --he) | |
417 | # Omit some internal or obsolete options to make the list less imposing. | |
418 | # This message is too long to be a string in the A/UX 3.1 sh. | |
419 | cat << EOF | |
420 | Usage: configure [options] [host] | |
421 | Options: [defaults in brackets after descriptions] | |
422 | Configuration: | |
423 | --cache-file=FILE cache test results in FILE | |
424 | --help print this message | |
425 | --no-create do not create output files | |
426 | --quiet, --silent do not print \`checking...' messages | |
427 | --version print the version of autoconf that created configure | |
428 | Directory and file names: | |
429 | --prefix=PREFIX install architecture-independent files in PREFIX | |
430 | [$ac_default_prefix] | |
431 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
432 | [same as prefix] | |
433 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
434 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
435 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
436 | --datadir=DIR read-only architecture-independent data in DIR | |
437 | [PREFIX/share] | |
438 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
439 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
440 | [PREFIX/com] | |
441 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
442 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
443 | --includedir=DIR C header files in DIR [PREFIX/include] | |
444 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
445 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
446 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
447 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
448 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
449 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
450 | --program-transform-name=PROGRAM | |
451 | run sed PROGRAM on installed program names | |
452 | EOF | |
453 | cat << EOF | |
454 | Host type: | |
455 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
456 | --host=HOST configure for HOST [guessed] | |
457 | --target=TARGET configure for TARGET [TARGET=HOST] | |
458 | Features and packages: | |
459 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
460 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
461 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
462 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
463 | --x-includes=DIR X include files are in DIR | |
464 | --x-libraries=DIR X library files are in DIR | |
465 | EOF | |
466 | if test -n "$ac_help"; then | |
467 | echo "--enable and --with options recognized:$ac_help" | |
468 | fi | |
469 | exit 0 ;; | |
470 | ||
471 | -host | --host | --hos | --ho) | |
472 | ac_prev=host ;; | |
473 | -host=* | --host=* | --hos=* | --ho=*) | |
474 | host="$ac_optarg" ;; | |
475 | ||
476 | -includedir | --includedir | --includedi | --included | --include \ | |
477 | | --includ | --inclu | --incl | --inc) | |
478 | ac_prev=includedir ;; | |
479 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
480 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
481 | includedir="$ac_optarg" ;; | |
482 | ||
483 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
484 | ac_prev=infodir ;; | |
485 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
486 | infodir="$ac_optarg" ;; | |
487 | ||
488 | -libdir | --libdir | --libdi | --libd) | |
489 | ac_prev=libdir ;; | |
490 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
491 | libdir="$ac_optarg" ;; | |
492 | ||
493 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
494 | | --libexe | --libex | --libe) | |
495 | ac_prev=libexecdir ;; | |
496 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
497 | | --libexe=* | --libex=* | --libe=*) | |
498 | libexecdir="$ac_optarg" ;; | |
499 | ||
500 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
501 | | --localstate | --localstat | --localsta | --localst \ | |
502 | | --locals | --local | --loca | --loc | --lo) | |
503 | ac_prev=localstatedir ;; | |
504 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
505 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
506 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
507 | localstatedir="$ac_optarg" ;; | |
508 | ||
509 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
510 | ac_prev=mandir ;; | |
511 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
512 | mandir="$ac_optarg" ;; | |
513 | ||
514 | -nfp | --nfp | --nf) | |
515 | # Obsolete; use --without-fp. | |
516 | with_fp=no ;; | |
517 | ||
518 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
519 | | --no-cr | --no-c) | |
520 | no_create=yes ;; | |
521 | ||
522 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
523 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
524 | no_recursion=yes ;; | |
525 | ||
526 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
527 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
528 | | --oldin | --oldi | --old | --ol | --o) | |
529 | ac_prev=oldincludedir ;; | |
530 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
531 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
532 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
533 | oldincludedir="$ac_optarg" ;; | |
534 | ||
535 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
536 | ac_prev=prefix ;; | |
537 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
538 | prefix="$ac_optarg" ;; | |
539 | ||
540 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
541 | | --program-pre | --program-pr | --program-p) | |
542 | ac_prev=program_prefix ;; | |
543 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
544 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
545 | program_prefix="$ac_optarg" ;; | |
546 | ||
547 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
548 | | --program-suf | --program-su | --program-s) | |
549 | ac_prev=program_suffix ;; | |
550 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
551 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
552 | program_suffix="$ac_optarg" ;; | |
553 | ||
554 | -program-transform-name | --program-transform-name \ | |
555 | | --program-transform-nam | --program-transform-na \ | |
556 | | --program-transform-n | --program-transform- \ | |
557 | | --program-transform | --program-transfor \ | |
558 | | --program-transfo | --program-transf \ | |
559 | | --program-trans | --program-tran \ | |
560 | | --progr-tra | --program-tr | --program-t) | |
561 | ac_prev=program_transform_name ;; | |
562 | -program-transform-name=* | --program-transform-name=* \ | |
563 | | --program-transform-nam=* | --program-transform-na=* \ | |
564 | | --program-transform-n=* | --program-transform-=* \ | |
565 | | --program-transform=* | --program-transfor=* \ | |
566 | | --program-transfo=* | --program-transf=* \ | |
567 | | --program-trans=* | --program-tran=* \ | |
568 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
569 | program_transform_name="$ac_optarg" ;; | |
570 | ||
571 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
572 | | -silent | --silent | --silen | --sile | --sil) | |
573 | silent=yes ;; | |
574 | ||
575 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
576 | ac_prev=sbindir ;; | |
577 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
578 | | --sbi=* | --sb=*) | |
579 | sbindir="$ac_optarg" ;; | |
580 | ||
581 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
582 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
583 | | --sharedst | --shareds | --shared | --share | --shar \ | |
584 | | --sha | --sh) | |
585 | ac_prev=sharedstatedir ;; | |
586 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
587 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
588 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
589 | | --sha=* | --sh=*) | |
590 | sharedstatedir="$ac_optarg" ;; | |
591 | ||
592 | -site | --site | --sit) | |
593 | ac_prev=site ;; | |
594 | -site=* | --site=* | --sit=*) | |
595 | site="$ac_optarg" ;; | |
596 | ||
597 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
598 | ac_prev=srcdir ;; | |
599 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
600 | srcdir="$ac_optarg" ;; | |
601 | ||
602 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
603 | | --syscon | --sysco | --sysc | --sys | --sy) | |
604 | ac_prev=sysconfdir ;; | |
605 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
606 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
607 | sysconfdir="$ac_optarg" ;; | |
608 | ||
609 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
610 | ac_prev=target ;; | |
611 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
612 | target="$ac_optarg" ;; | |
613 | ||
614 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
615 | verbose=yes ;; | |
616 | ||
617 | -version | --version | --versio | --versi | --vers) | |
618 | echo "configure generated by autoconf version 2.13" | |
619 | exit 0 ;; | |
620 | ||
621 | -with-* | --with-*) | |
622 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
623 | # Reject names that are not valid shell variable names. | |
624 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
625 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
626 | fi | |
627 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
628 | case "$ac_option" in | |
629 | *=*) ;; | |
630 | *) ac_optarg=yes ;; | |
631 | esac | |
632 | eval "with_${ac_package}='$ac_optarg'" ;; | |
633 | ||
634 | -without-* | --without-*) | |
635 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
636 | # Reject names that are not valid shell variable names. | |
637 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
638 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
639 | fi | |
640 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
641 | eval "with_${ac_package}=no" ;; | |
642 | ||
643 | --x) | |
644 | # Obsolete; use --with-x. | |
645 | with_x=yes ;; | |
646 | ||
647 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
648 | | --x-incl | --x-inc | --x-in | --x-i) | |
649 | ac_prev=x_includes ;; | |
650 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
651 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
652 | x_includes="$ac_optarg" ;; | |
653 | ||
654 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
655 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
656 | ac_prev=x_libraries ;; | |
657 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
658 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
659 | x_libraries="$ac_optarg" ;; | |
660 | ||
661 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
662 | ;; | |
663 | ||
664 | *) | |
665 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
666 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
667 | fi | |
668 | if test "x$nonopt" != xNONE; then | |
669 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
670 | fi | |
671 | nonopt="$ac_option" | |
672 | ;; | |
673 | ||
674 | esac | |
675 | done | |
676 | ||
677 | if test -n "$ac_prev"; then | |
678 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
679 | fi | |
680 | ||
681 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
682 | ||
683 | # File descriptor usage: | |
684 | # 0 standard input | |
685 | # 1 file creation | |
686 | # 2 errors and warnings | |
687 | # 3 some systems may open it to /dev/tty | |
688 | # 4 used on the Kubota Titan | |
689 | # 6 checking for... messages and results | |
690 | # 5 compiler messages saved in config.log | |
691 | if test "$silent" = yes; then | |
692 | exec 6>/dev/null | |
693 | else | |
694 | exec 6>&1 | |
695 | fi | |
696 | exec 5>./config.log | |
697 | ||
698 | echo "\ | |
699 | This file contains any messages produced by compilers while | |
700 | running configure, to aid debugging if configure makes a mistake. | |
701 | " 1>&5 | |
702 | ||
703 | # Strip out --no-create and --no-recursion so they do not pile up. | |
704 | # Also quote any args containing shell metacharacters. | |
705 | ac_configure_args= | |
706 | for ac_arg | |
707 | do | |
708 | case "$ac_arg" in | |
709 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
710 | | --no-cr | --no-c) ;; | |
711 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
712 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
713 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
714 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
715 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
716 | esac | |
717 | done | |
718 | ||
719 | # NLS nuisances. | |
720 | # Only set these to C if already set. These must not be set unconditionally | |
721 | # because not all systems understand e.g. LANG=C (notably SCO). | |
722 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
723 | # Non-C LC_CTYPE values break the ctype check. | |
724 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
725 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
726 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
727 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
728 | ||
729 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
730 | rm -rf conftest* confdefs.h | |
731 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
732 | echo > confdefs.h | |
733 | ||
734 | # A filename unique to this package, relative to the directory that | |
735 | # configure is in, which we can look for to find out if srcdir is correct. | |
736 | ac_unique_file=wx-config.in | |
737 | ||
738 | # Find the source files, if location was not specified. | |
739 | if test -z "$srcdir"; then | |
740 | ac_srcdir_defaulted=yes | |
741 | # Try the directory containing this script, then its parent. | |
742 | ac_prog=$0 | |
743 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
744 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
745 | srcdir=$ac_confdir | |
746 | if test ! -r $srcdir/$ac_unique_file; then | |
747 | srcdir=.. | |
748 | fi | |
749 | else | |
750 | ac_srcdir_defaulted=no | |
751 | fi | |
752 | if test ! -r $srcdir/$ac_unique_file; then | |
753 | if test "$ac_srcdir_defaulted" = yes; then | |
754 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
755 | else | |
756 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
757 | fi | |
758 | fi | |
759 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
760 | ||
761 | # Prefer explicitly selected file to automatically selected ones. | |
762 | if test -z "$CONFIG_SITE"; then | |
763 | if test "x$prefix" != xNONE; then | |
764 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
765 | else | |
766 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
767 | fi | |
768 | fi | |
769 | for ac_site_file in $CONFIG_SITE; do | |
770 | if test -r "$ac_site_file"; then | |
771 | echo "loading site script $ac_site_file" | |
772 | . "$ac_site_file" | |
773 | fi | |
774 | done | |
775 | ||
776 | if test -r "$cache_file"; then | |
777 | echo "loading cache $cache_file" | |
778 | . $cache_file | |
779 | else | |
780 | echo "creating cache $cache_file" | |
781 | > $cache_file | |
782 | fi | |
783 | ||
784 | ac_ext=c | |
785 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
786 | ac_cpp='$CPP $CPPFLAGS' | |
787 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
788 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
789 | cross_compiling=$ac_cv_prog_cc_cross | |
790 | ||
791 | ac_exeext= | |
792 | ac_objext=o | |
793 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
794 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
795 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
796 | ac_n= ac_c=' | |
797 | ' ac_t=' ' | |
798 | else | |
799 | ac_n=-n ac_c= ac_t= | |
800 | fi | |
801 | else | |
802 | ac_n= ac_c='\c' ac_t= | |
803 | fi | |
804 | ||
805 | ||
806 | ||
807 | ac_aux_dir= | |
808 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
809 | if test -f $ac_dir/install-sh; then | |
810 | ac_aux_dir=$ac_dir | |
811 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
812 | break | |
813 | elif test -f $ac_dir/install.sh; then | |
814 | ac_aux_dir=$ac_dir | |
815 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
816 | break | |
817 | fi | |
818 | done | |
819 | if test -z "$ac_aux_dir"; then | |
820 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
821 | fi | |
822 | ac_config_guess=$ac_aux_dir/config.guess | |
823 | ac_config_sub=$ac_aux_dir/config.sub | |
824 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
825 | ||
826 | ||
827 | # Make sure we can run config.sub. | |
828 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
829 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
830 | fi | |
831 | ||
832 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
833 | echo "configure:834: checking host system type" >&5 | |
834 | ||
835 | host_alias=$host | |
836 | case "$host_alias" in | |
837 | NONE) | |
838 | case $nonopt in | |
839 | NONE) | |
840 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
841 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
842 | fi ;; | |
843 | *) host_alias=$nonopt ;; | |
844 | esac ;; | |
845 | esac | |
846 | ||
847 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
848 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
849 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
850 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
851 | echo "$ac_t""$host" 1>&6 | |
852 | ||
853 | # Find a good install program. We prefer a C program (faster), | |
854 | # so one script is as good as another. But avoid the broken or | |
855 | # incompatible versions: | |
856 | # SysV /etc/install, /usr/sbin/install | |
857 | # SunOS /usr/etc/install | |
858 | # IRIX /sbin/install | |
859 | # AIX /bin/install | |
860 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
861 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
862 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
863 | # ./install, which can be erroneously created by make from ./install.sh. | |
864 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
865 | echo "configure:866: checking for a BSD compatible install" >&5 | |
866 | if test -z "$INSTALL"; then | |
867 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
868 | echo $ac_n "(cached) $ac_c" 1>&6 | |
869 | else | |
870 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
871 | for ac_dir in $PATH; do | |
872 | # Account for people who put trailing slashes in PATH elements. | |
873 | case "$ac_dir/" in | |
874 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
875 | *) | |
876 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
877 | # Don't use installbsd from OSF since it installs stuff as root | |
878 | # by default. | |
879 | for ac_prog in ginstall scoinst install; do | |
880 | if test -f $ac_dir/$ac_prog; then | |
881 | if test $ac_prog = install && | |
882 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
883 | # AIX install. It has an incompatible calling convention. | |
884 | : | |
885 | else | |
886 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
887 | break 2 | |
888 | fi | |
889 | fi | |
890 | done | |
891 | ;; | |
892 | esac | |
893 | done | |
894 | IFS="$ac_save_IFS" | |
895 | ||
896 | fi | |
897 | if test "${ac_cv_path_install+set}" = set; then | |
898 | INSTALL="$ac_cv_path_install" | |
899 | else | |
900 | # As a last resort, use the slow shell script. We don't cache a | |
901 | # path for INSTALL within a source directory, because that will | |
902 | # break other packages using the cache if that directory is | |
903 | # removed, or if the path is relative. | |
904 | INSTALL="$ac_install_sh" | |
905 | fi | |
906 | fi | |
907 | echo "$ac_t""$INSTALL" 1>&6 | |
908 | ||
909 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
910 | # It thinks the first close brace ends the variable substitution. | |
911 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
912 | ||
913 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
914 | ||
915 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
916 | ||
917 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | |
918 | echo "configure:919: checking whether build environment is sane" >&5 | |
919 | # Just in case | |
920 | sleep 1 | |
921 | echo timestamp > conftestfile | |
922 | # Do `set' in a subshell so we don't clobber the current shell's | |
923 | # arguments. Must try -L first in case configure is actually a | |
924 | # symlink; some systems play weird games with the mod time of symlinks | |
925 | # (eg FreeBSD returns the mod time of the symlink's containing | |
926 | # directory). | |
927 | if ( | |
928 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
929 | if test "$*" = "X"; then | |
930 | # -L didn't work. | |
931 | set X `ls -t $srcdir/configure conftestfile` | |
932 | fi | |
933 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
934 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
935 | ||
936 | # If neither matched, then we have a broken ls. This can happen | |
937 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
938 | # broken ls alias from the environment. This has actually | |
939 | # happened. Such a system could not be considered "sane". | |
940 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken | |
941 | alias in your environment" 1>&2; exit 1; } | |
942 | fi | |
943 | ||
944 | test "$2" = conftestfile | |
945 | ) | |
946 | then | |
947 | # Ok. | |
948 | : | |
949 | else | |
950 | { echo "configure: error: newly created file is older than distributed files! | |
951 | Check your system clock" 1>&2; exit 1; } | |
952 | fi | |
953 | rm -f conftest* | |
954 | echo "$ac_t""yes" 1>&6 | |
955 | if test "$program_transform_name" = s,x,x,; then | |
956 | program_transform_name= | |
957 | else | |
958 | # Double any \ or $. echo might interpret backslashes. | |
959 | cat <<\EOF_SED > conftestsed | |
960 | s,\\,\\\\,g; s,\$,$$,g | |
961 | EOF_SED | |
962 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
963 | rm -f conftestsed | |
964 | fi | |
965 | test "$program_prefix" != NONE && | |
966 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
967 | # Use a double $ so make ignores it. | |
968 | test "$program_suffix" != NONE && | |
969 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
970 | ||
971 | # sed with no file args requires a program. | |
972 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
973 | ||
974 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
975 | echo "configure:976: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
976 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | |
977 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
978 | echo $ac_n "(cached) $ac_c" 1>&6 | |
979 | else | |
980 | cat > conftestmake <<\EOF | |
981 | all: | |
982 | @echo 'ac_maketemp="${MAKE}"' | |
983 | EOF | |
984 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
985 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
986 | if test -n "$ac_maketemp"; then | |
987 | eval ac_cv_prog_make_${ac_make}_set=yes | |
988 | else | |
989 | eval ac_cv_prog_make_${ac_make}_set=no | |
990 | fi | |
991 | rm -f conftestmake | |
992 | fi | |
993 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
994 | echo "$ac_t""yes" 1>&6 | |
995 | SET_MAKE= | |
996 | else | |
997 | echo "$ac_t""no" 1>&6 | |
998 | SET_MAKE="MAKE=${MAKE-make}" | |
999 | fi | |
1000 | ||
1001 | ||
1002 | PACKAGE=wxWindows | |
1003 | ||
1004 | VERSION=2.1.0 | |
1005 | ||
1006 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
1007 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | |
1008 | fi | |
1009 | cat >> confdefs.h <<EOF | |
1010 | #define PACKAGE "$PACKAGE" | |
1011 | EOF | |
1012 | ||
1013 | cat >> confdefs.h <<EOF | |
1014 | #define VERSION "$VERSION" | |
1015 | EOF | |
1016 | ||
1017 | ||
1018 | ||
1019 | missing_dir=`cd $ac_aux_dir && pwd` | |
1020 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 | |
1021 | echo "configure:1022: checking for working aclocal" >&5 | |
1022 | # Run test in a subshell; some versions of sh will print an error if | |
1023 | # an executable is not found, even if stderr is redirected. | |
1024 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1025 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
1026 | ACLOCAL=aclocal | |
1027 | echo "$ac_t""found" 1>&6 | |
1028 | else | |
1029 | ACLOCAL="$missing_dir/missing aclocal" | |
1030 | echo "$ac_t""missing" 1>&6 | |
1031 | fi | |
1032 | ||
1033 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | |
1034 | echo "configure:1035: checking for working autoconf" >&5 | |
1035 | # Run test in a subshell; some versions of sh will print an error if | |
1036 | # an executable is not found, even if stderr is redirected. | |
1037 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1038 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
1039 | AUTOCONF=autoconf | |
1040 | echo "$ac_t""found" 1>&6 | |
1041 | else | |
1042 | AUTOCONF="$missing_dir/missing autoconf" | |
1043 | echo "$ac_t""missing" 1>&6 | |
1044 | fi | |
1045 | ||
1046 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 | |
1047 | echo "configure:1048: checking for working automake" >&5 | |
1048 | # Run test in a subshell; some versions of sh will print an error if | |
1049 | # an executable is not found, even if stderr is redirected. | |
1050 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1051 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
1052 | AUTOMAKE=automake | |
1053 | echo "$ac_t""found" 1>&6 | |
1054 | else | |
1055 | AUTOMAKE="$missing_dir/missing automake" | |
1056 | echo "$ac_t""missing" 1>&6 | |
1057 | fi | |
1058 | ||
1059 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | |
1060 | echo "configure:1061: checking for working autoheader" >&5 | |
1061 | # Run test in a subshell; some versions of sh will print an error if | |
1062 | # an executable is not found, even if stderr is redirected. | |
1063 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1064 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
1065 | AUTOHEADER=autoheader | |
1066 | echo "$ac_t""found" 1>&6 | |
1067 | else | |
1068 | AUTOHEADER="$missing_dir/missing autoheader" | |
1069 | echo "$ac_t""missing" 1>&6 | |
1070 | fi | |
1071 | ||
1072 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | |
1073 | echo "configure:1074: checking for working makeinfo" >&5 | |
1074 | # Run test in a subshell; some versions of sh will print an error if | |
1075 | # an executable is not found, even if stderr is redirected. | |
1076 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1077 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
1078 | MAKEINFO=makeinfo | |
1079 | echo "$ac_t""found" 1>&6 | |
1080 | else | |
1081 | MAKEINFO="$missing_dir/missing makeinfo" | |
1082 | echo "$ac_t""missing" 1>&6 | |
1083 | fi | |
1084 | ||
1085 | ||
1086 | ||
1087 | WX_MAJOR_VERSION_NUMBER=2 | |
1088 | WX_MINOR_VERSION_NUMBER=1 | |
1089 | WX_RELEASE_NUMBER=0 | |
1090 | ||
1091 | LIBOBJS= | |
1092 | LIBOBJS="$LIBOBJS common/extended.o" | |
1093 | ||
1094 | ||
1095 | USE_UNIX=1 | |
1096 | USE_LINUX= | |
1097 | USE_SGI= | |
1098 | USE_HPUX= | |
1099 | USE_SYSV= | |
1100 | USE_SVR4= | |
1101 | USE_AIX= | |
1102 | USE_SUN= | |
1103 | USE_SOLARIS= | |
1104 | USE_SUNOS= | |
1105 | USE_ALPHA= | |
1106 | USE_OSF= | |
1107 | USE_BSD= | |
1108 | USE_FREEBSD= | |
1109 | USE_VMS= | |
1110 | USE_ULTRIX= | |
1111 | USE_CYGWIN= | |
1112 | USE_MINGW32= | |
1113 | USE_DATA_GENERAL= | |
1114 | ||
1115 | DEFAULT_wxUSE_GTK=0 | |
1116 | DEFAULT_wxUSE_MOTIF=0 | |
1117 | DEFAULT_wxUSE_MSW=0 | |
1118 | ||
1119 | case "${host}" in | |
1120 | *-hp-hpux* ) | |
1121 | USE_HPUX=1 | |
1122 | DEFAULT_wxUSE_MOTIF=1 | |
1123 | cat >> confdefs.h <<\EOF | |
1124 | #define __HPUX__ 1 | |
1125 | EOF | |
1126 | ||
1127 | ;; | |
1128 | *-*-linux* ) | |
1129 | USE_LINUX=1 | |
1130 | cat >> confdefs.h <<\EOF | |
1131 | #define __LINUX__ 1 | |
1132 | EOF | |
1133 | ||
1134 | TMP=`uname -m` | |
1135 | if test "x$TMP" = "xalpha"; then | |
1136 | USE_ALPHA=1 | |
1137 | cat >> confdefs.h <<\EOF | |
1138 | #define __ALPHA__ 1 | |
1139 | EOF | |
1140 | ||
1141 | fi | |
1142 | DEFAULT_wxUSE_GTK=1 | |
1143 | ;; | |
1144 | *-*-irix5* | *-*-irix6* ) | |
1145 | USE_SGI=1 | |
1146 | USE_SVR4=1 | |
1147 | cat >> confdefs.h <<\EOF | |
1148 | #define __SGI__ 1 | |
1149 | EOF | |
1150 | ||
1151 | cat >> confdefs.h <<\EOF | |
1152 | #define __SVR4__ 1 | |
1153 | EOF | |
1154 | ||
1155 | DEFAULT_wxUSE_MOTIF=1 | |
1156 | ;; | |
1157 | *-*-solaris2* ) | |
1158 | USE_SUN=1 | |
1159 | USE_SOLARIS=1 | |
1160 | USE_SVR4=1 | |
1161 | cat >> confdefs.h <<\EOF | |
1162 | #define __SUN__ 1 | |
1163 | EOF | |
1164 | ||
1165 | cat >> confdefs.h <<\EOF | |
1166 | #define __SOLARIS__ 1 | |
1167 | EOF | |
1168 | ||
1169 | cat >> confdefs.h <<\EOF | |
1170 | #define __SVR4__ 1 | |
1171 | EOF | |
1172 | ||
1173 | DEFAULT_wxUSE_MOTIF=1 | |
1174 | ;; | |
1175 | *-*-sunos4* ) | |
1176 | USE_SUN=1 | |
1177 | USE_SUNOS=1 | |
1178 | USE_BSD=1 | |
1179 | cat >> confdefs.h <<\EOF | |
1180 | #define __SUN__ 1 | |
1181 | EOF | |
1182 | ||
1183 | cat >> confdefs.h <<\EOF | |
1184 | #define __SUNOS__ 1 | |
1185 | EOF | |
1186 | ||
1187 | cat >> confdefs.h <<\EOF | |
1188 | #define __BSD__ 1 | |
1189 | EOF | |
1190 | ||
1191 | DEFAULT_wxUSE_MOTIF=1 | |
1192 | ;; | |
1193 | *-*-freebsd* | *-*-netbsd*) | |
1194 | USE_BSD=1 | |
1195 | USE_FREEBSD=1 | |
1196 | cat >> confdefs.h <<\EOF | |
1197 | #define __FREEBSD__ 1 | |
1198 | EOF | |
1199 | ||
1200 | cat >> confdefs.h <<\EOF | |
1201 | #define __BSD__ 1 | |
1202 | EOF | |
1203 | ||
1204 | DEFAULT_wxUSE_GTK=1 | |
1205 | ;; | |
1206 | *-*-osf* ) | |
1207 | USE_ALPHA=1 | |
1208 | USE_OSF=1 | |
1209 | cat >> confdefs.h <<\EOF | |
1210 | #define __ALPHA__ 1 | |
1211 | EOF | |
1212 | ||
1213 | cat >> confdefs.h <<\EOF | |
1214 | #define __OSF__ 1 | |
1215 | EOF | |
1216 | ||
1217 | DEFAULT_wxUSE_MOTIF=1 | |
1218 | ;; | |
1219 | *-*-dgux5* ) | |
1220 | USE_ALPHA=1 | |
1221 | USE_SVR4=1 | |
1222 | cat >> confdefs.h <<\EOF | |
1223 | #define __ALPHA__ 1 | |
1224 | EOF | |
1225 | ||
1226 | cat >> confdefs.h <<\EOF | |
1227 | #define __SVR4__ 1 | |
1228 | EOF | |
1229 | ||
1230 | DEFAULT_wxUSE_MOTIF=1 | |
1231 | ;; | |
1232 | *-*-sysv5* ) | |
1233 | USE_SYSV=1 | |
1234 | USE_SVR4=1 | |
1235 | cat >> confdefs.h <<\EOF | |
1236 | #define __SYSV__ 1 | |
1237 | EOF | |
1238 | ||
1239 | cat >> confdefs.h <<\EOF | |
1240 | #define __SVR4__ 1 | |
1241 | EOF | |
1242 | ||
1243 | DEFAULT_wxUSE_MOTIF=1 | |
1244 | ;; | |
1245 | *-*-aix* ) | |
1246 | USE_AIX=1 | |
1247 | USE_SYSV=1 | |
1248 | USE_SVR4=1 | |
1249 | cat >> confdefs.h <<\EOF | |
1250 | #define __AIX__ 1 | |
1251 | EOF | |
1252 | ||
1253 | cat >> confdefs.h <<\EOF | |
1254 | #define __SYSV__ 1 | |
1255 | EOF | |
1256 | ||
1257 | cat >> confdefs.h <<\EOF | |
1258 | #define __SVR4__ 1 | |
1259 | EOF | |
1260 | ||
1261 | DEFAULT_wxUSE_MOTIF=1 | |
1262 | ;; | |
1263 | *) | |
1264 | { echo "configure: error: unknown system type $(host)." 1>&2; exit 1; } | |
1265 | esac | |
1266 | ||
1267 | if test "$USE_UNIX" = 1 ; then | |
1268 | wxUSE_UNIX=yes | |
1269 | cat >> confdefs.h <<\EOF | |
1270 | #define __UNIX__ 1 | |
1271 | EOF | |
1272 | ||
1273 | fi | |
1274 | ||
1275 | if test "$USE_LINUX" = 1; then | |
1276 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 | |
1277 | echo "configure:1278: checking for gettext in -lc" >&5 | |
1278 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` | |
1279 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1280 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1281 | else | |
1282 | ac_save_LIBS="$LIBS" | |
1283 | LIBS="-lc $LIBS" | |
1284 | cat > conftest.$ac_ext <<EOF | |
1285 | #line 1286 "configure" | |
1286 | #include "confdefs.h" | |
1287 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1288 | /* We use char because int might match the return type of a gcc2 | |
1289 | builtin and then its argument prototype would still apply. */ | |
1290 | char gettext(); | |
1291 | ||
1292 | int main() { | |
1293 | gettext() | |
1294 | ; return 0; } | |
1295 | EOF | |
1296 | if { (eval echo configure:1297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
1297 | rm -rf conftest* | |
1298 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1299 | else | |
1300 | echo "configure: failed program was:" >&5 | |
1301 | cat conftest.$ac_ext >&5 | |
1302 | rm -rf conftest* | |
1303 | eval "ac_cv_lib_$ac_lib_var=no" | |
1304 | fi | |
1305 | rm -f conftest* | |
1306 | LIBS="$ac_save_LIBS" | |
1307 | ||
1308 | fi | |
1309 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1310 | echo "$ac_t""yes" 1>&6 | |
1311 | cat >> confdefs.h <<\EOF | |
1312 | #define wxHAVE_GLIBC2 1 | |
1313 | EOF | |
1314 | ||
1315 | else | |
1316 | echo "$ac_t""no" 1>&6 | |
1317 | fi | |
1318 | ||
1319 | fi | |
1320 | ||
1321 | cat >> confdefs.h <<\EOF | |
1322 | #define __UNIX__ 1 | |
1323 | EOF | |
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | DEBUG_CONFIGURE=0 | |
1330 | if test $DEBUG_CONFIGURE = 1; then | |
1331 | DEFAULT_wxUSE_THREADS=yes | |
1332 | ||
1333 | DEFAULT_wxUSE_OPTIMISE=no | |
1334 | DEFAULT_wxUSE_PROFILE=no | |
1335 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1336 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1337 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1338 | DEFAULT_wxUSE_MEM_TRACING=no | |
1339 | DEFAULT_wxUSE_DMALLOC=no | |
1340 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1341 | ||
1342 | DEFAULT_wxUSE_LOG=yes | |
1343 | ||
1344 | DEFAULT_wxUSE_GUI=yes | |
1345 | ||
1346 | DEFAULT_wxUSE_ZLIB=no | |
1347 | DEFAULT_wxUSE_LIBPNG=no | |
1348 | DEFAULT_wxUSE_LIBGIF=no | |
1349 | DEFAULT_wxUSE_LIBJPEG=no | |
1350 | DEFAULT_wxUSE_ODBC=no | |
1351 | ||
1352 | DEFAULT_wxUSE_FILE=no | |
1353 | DEFAULT_wxUSE_TEXTFILE=no | |
1354 | DEFAULT_wxUSE_TIMEDATE=no | |
1355 | DEFAULT_wxUSE_INTL=no | |
1356 | DEFAULT_wxUSE_CONFIG=no | |
1357 | DEFAULT_wxUSE_STREAMS=no | |
1358 | DEFAULT_wxUSE_SOCKETS=no | |
1359 | DEFAULT_wxUSE_SERIAL=no | |
1360 | DEFAULT_wxUSE_JOYSTICK=no | |
1361 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1362 | DEFAULT_wxUSE_LONGLONG=no | |
1363 | ||
1364 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1365 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1366 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1367 | ||
1368 | DEFAULT_wxUSE_X_RESOURCES=no | |
1369 | DEFAULT_wxUSE_CLIPBOARD=no | |
1370 | DEFAULT_wxUSE_TOOLTIPS=no | |
1371 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1372 | DEFAULT_wxUSE_SPLINES=no | |
1373 | ||
1374 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1375 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1376 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1377 | ||
1378 | DEFAULT_wxUSE_PROLOGIO=no | |
1379 | DEFAULT_wxUSE_RESOURCES=no | |
1380 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1381 | DEFAULT_wxUSE_IPC=no | |
1382 | DEFAULT_wxUSE_HELP=no | |
1383 | DEFAULT_wxUSE_WXTREE=no | |
1384 | DEFAULT_wxUSE_METAFILE=no | |
1385 | ||
1386 | DEFAULT_wxUSE_COMMONDLGS=no | |
1387 | DEFAULT_wxUSE_MINIFRAME=no | |
1388 | DEFAULT_wxUSE_VALIDATORS=yes | |
1389 | ||
1390 | DEFAULT_wxUSE_ACCEL=no | |
1391 | DEFAULT_wxUSE_CARET=no | |
1392 | DEFAULT_wxUSE_BMPBUTTON=no | |
1393 | DEFAULT_wxUSE_CHECKBOX=no | |
1394 | DEFAULT_wxUSE_CHECKLST=no | |
1395 | DEFAULT_wxUSE_COMBOBOX=no | |
1396 | DEFAULT_wxUSE_GAUGE=no | |
1397 | DEFAULT_wxUSE_GRID=no | |
1398 | DEFAULT_wxUSE_IMAGLIST=no | |
1399 | DEFAULT_wxUSE_LISTBOX=no | |
1400 | DEFAULT_wxUSE_LISTCTRL=no | |
1401 | DEFAULT_wxUSE_NOTEBOOK=no | |
1402 | DEFAULT_wxUSE_RADIOBOX=no | |
1403 | DEFAULT_wxUSE_RADIOBTN=no | |
1404 | DEFAULT_wxUSE_SASHWINDOW=no | |
1405 | DEFAULT_wxUSE_SCROLLBAR=no | |
1406 | DEFAULT_wxUSE_SLIDER=no | |
1407 | DEFAULT_wxUSE_SPINBTN=no | |
1408 | DEFAULT_wxUSE_SPLITTER=no | |
1409 | DEFAULT_wxUSE_STATBMP=no | |
1410 | DEFAULT_wxUSE_STATBOX=no | |
1411 | DEFAULT_wxUSE_STATLINE=no | |
1412 | DEFAULT_wxUSE_STATUSBAR=yes | |
1413 | DEFAULT_wxUSE_TABDIALOG=no | |
1414 | DEFAULT_wxUSE_TOOLBAR=no | |
1415 | DEFAULT_wxUSE_TREECTRL=no | |
1416 | ||
1417 | DEFAULT_wxUSE_UNICODE=no | |
1418 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1419 | else | |
1420 | DEFAULT_wxUSE_THREADS=yes | |
1421 | ||
1422 | DEFAULT_wxUSE_OPTIMISE=yes | |
1423 | DEFAULT_wxUSE_PROFILE=no | |
1424 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1425 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1426 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1427 | DEFAULT_wxUSE_MEM_TRACING=no | |
1428 | DEFAULT_wxUSE_DMALLOC=no | |
1429 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1430 | ||
1431 | DEFAULT_wxUSE_LOG=yes | |
1432 | ||
1433 | DEFAULT_wxUSE_GUI=yes | |
1434 | ||
1435 | DEFAULT_wxUSE_ZLIB=yes | |
1436 | DEFAULT_wxUSE_LIBPNG=yes | |
1437 | DEFAULT_wxUSE_LIBGIF=yes | |
1438 | DEFAULT_wxUSE_LIBJPEG=yes | |
1439 | DEFAULT_wxUSE_ODBC=no | |
1440 | ||
1441 | DEFAULT_wxUSE_FILE=yes | |
1442 | DEFAULT_wxUSE_TEXTFILE=yes | |
1443 | DEFAULT_wxUSE_TIMEDATE=yes | |
1444 | DEFAULT_wxUSE_INTL=yes | |
1445 | DEFAULT_wxUSE_CONFIG=yes | |
1446 | DEFAULT_wxUSE_STREAMS=yes | |
1447 | DEFAULT_wxUSE_SOCKETS=yes | |
1448 | DEFAULT_wxUSE_SERIAL=yes | |
1449 | DEFAULT_wxUSE_JOYSTICK=yes | |
1450 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
1451 | DEFAULT_wxUSE_LONGLONG=no | |
1452 | ||
1453 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1454 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1455 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1456 | ||
1457 | DEFAULT_wxUSE_X_RESOURCES=no | |
1458 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1459 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1460 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1461 | DEFAULT_wxUSE_SPLINES=yes | |
1462 | ||
1463 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1464 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1465 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1466 | ||
1467 | DEFAULT_wxUSE_PROLOGIO=yes | |
1468 | DEFAULT_wxUSE_RESOURCES=yes | |
1469 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1470 | DEFAULT_wxUSE_IPC=yes | |
1471 | DEFAULT_wxUSE_HELP=yes | |
1472 | DEFAULT_wxUSE_WXTREE=yes | |
1473 | DEFAULT_wxUSE_METAFILE=yes | |
1474 | ||
1475 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1476 | DEFAULT_wxUSE_MINIFRAME=yes | |
1477 | DEFAULT_wxUSE_VALIDATORS=yes | |
1478 | ||
1479 | DEFAULT_wxUSE_ACCEL=yes | |
1480 | DEFAULT_wxUSE_CARET=yes | |
1481 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1482 | DEFAULT_wxUSE_CHECKBOX=yes | |
1483 | DEFAULT_wxUSE_CHECKLST=yes | |
1484 | DEFAULT_wxUSE_COMBOBOX=yes | |
1485 | DEFAULT_wxUSE_GAUGE=yes | |
1486 | DEFAULT_wxUSE_GRID=yes | |
1487 | DEFAULT_wxUSE_IMAGLIST=yes | |
1488 | DEFAULT_wxUSE_LISTBOX=yes | |
1489 | DEFAULT_wxUSE_LISTCTRL=yes | |
1490 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1491 | DEFAULT_wxUSE_RADIOBOX=yes | |
1492 | DEFAULT_wxUSE_RADIOBTN=yes | |
1493 | DEFAULT_wxUSE_SASHWINDOW=yes | |
1494 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1495 | DEFAULT_wxUSE_SLIDER=yes | |
1496 | DEFAULT_wxUSE_SPINBTN=yes | |
1497 | DEFAULT_wxUSE_SPLITTER=yes | |
1498 | DEFAULT_wxUSE_STATBMP=yes | |
1499 | DEFAULT_wxUSE_STATBOX=yes | |
1500 | DEFAULT_wxUSE_STATLINE=yes | |
1501 | DEFAULT_wxUSE_STATUSBAR=yes | |
1502 | DEFAULT_wxUSE_TABDIALOG=no | |
1503 | DEFAULT_wxUSE_TOOLBAR=yes | |
1504 | DEFAULT_wxUSE_TREECTRL=yes | |
1505 | ||
1506 | DEFAULT_wxUSE_UNICODE=no | |
1507 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1508 | fi | |
1509 | ||
1510 | ||
1511 | ||
1512 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
1513 | if test "${with_gtk_prefix+set}" = set; then | |
1514 | withval="$with_gtk_prefix" | |
1515 | gtk_config_prefix="$withval" | |
1516 | else | |
1517 | gtk_config_prefix="" | |
1518 | fi | |
1519 | ||
1520 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
1521 | if test "${with_gtk_exec_prefix+set}" = set; then | |
1522 | withval="$with_gtk_exec_prefix" | |
1523 | gtk_config_exec_prefix="$withval" | |
1524 | else | |
1525 | gtk_config_exec_prefix="" | |
1526 | fi | |
1527 | ||
1528 | # Check whether --with-gtk or --without-gtk was given. | |
1529 | if test "${with_gtk+set}" = set; then | |
1530 | withval="$with_gtk" | |
1531 | wxUSE_GTK="$withval" | |
1532 | else | |
1533 | wxUSE_GTK=0 | |
1534 | fi | |
1535 | ||
1536 | # Check whether --with-motif or --without-motif was given. | |
1537 | if test "${with_motif+set}" = set; then | |
1538 | withval="$with_motif" | |
1539 | wxUSE_MOTIF="$withval" | |
1540 | else | |
1541 | wxUSE_MOTIF=0 | |
1542 | fi | |
1543 | ||
1544 | # Check whether --with-cygwin or --without-cygwin was given. | |
1545 | if test "${with_cygwin+set}" = set; then | |
1546 | withval="$with_cygwin" | |
1547 | wxUSE_CYGWIN="$withval" | |
1548 | else | |
1549 | wxUSE_CYGWIN=0 | |
1550 | fi | |
1551 | ||
1552 | # Check whether --with-mingw or --without-mingw was given. | |
1553 | if test "${with_mingw+set}" = set; then | |
1554 | withval="$with_mingw" | |
1555 | wxUSE_MINGW="$withval" | |
1556 | else | |
1557 | wxUSE_MINGW=0 | |
1558 | fi | |
1559 | ||
1560 | ||
1561 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
1562 | if test "${with_dmalloc+set}" = set; then | |
1563 | withval="$with_dmalloc" | |
1564 | wxUSE_DMALLOC="$withval" | |
1565 | else | |
1566 | wxUSE_DMALLOC=$DEFAULT_wxUSE_DMALLOC | |
1567 | fi | |
1568 | ||
1569 | # Check whether --with-zlib or --without-zlib was given. | |
1570 | if test "${with_zlib+set}" = set; then | |
1571 | withval="$with_zlib" | |
1572 | wxUSE_ZLIB="$withval" | |
1573 | else | |
1574 | wxUSE_ZLIB=$DEFAULT_wxUSE_ZLIB | |
1575 | fi | |
1576 | ||
1577 | # Check whether --with-libpng or --without-libpng was given. | |
1578 | if test "${with_libpng+set}" = set; then | |
1579 | withval="$with_libpng" | |
1580 | wxUSE_LIBPNG="$withval" | |
1581 | else | |
1582 | wxUSE_LIBPNG=$DEFAULT_wxUSE_LIBPNG | |
1583 | fi | |
1584 | ||
1585 | # Check whether --with-libgif or --without-libgif was given. | |
1586 | if test "${with_libgif+set}" = set; then | |
1587 | withval="$with_libgif" | |
1588 | wxUSE_LIBGIF="${withval}" | |
1589 | else | |
1590 | wxUSE_LIBGIF=$DEFAULT_wxUSE_LIBGIF | |
1591 | fi | |
1592 | ||
1593 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
1594 | if test "${with_libjpeg+set}" = set; then | |
1595 | withval="$with_libjpeg" | |
1596 | wxUSE_LIBJPEG="${withval}" | |
1597 | else | |
1598 | wxUSE_LIBJPEG=$DEFAULT_wxUSE_LIBJPEG | |
1599 | fi | |
1600 | ||
1601 | # Check whether --with-opengl or --without-opengl was given. | |
1602 | if test "${with_opengl+set}" = set; then | |
1603 | withval="$with_opengl" | |
1604 | wxUSE_OPENGL="$withval" | |
1605 | else | |
1606 | wxUSE_OPENGL=$DEFAULT_wxUSE_OPENGL | |
1607 | fi | |
1608 | ||
1609 | # Check whether --with-odbc or --without-odbc was given. | |
1610 | if test "${with_odbc+set}" = set; then | |
1611 | withval="$with_odbc" | |
1612 | wxUSE_ODBC="$withval" | |
1613 | else | |
1614 | wxUSE_ODBC=$DEFAULT_wxUSE_ODBC | |
1615 | fi | |
1616 | ||
1617 | ||
1618 | ||
1619 | ||
1620 | # Check whether --enable-optimise or --disable-optimise was given. | |
1621 | if test "${enable_optimise+set}" = set; then | |
1622 | enableval="$enable_optimise" | |
1623 | wxUSE_OPTIMISE="$enableval" | |
1624 | else | |
1625 | wxUSE_OPTIMISE=$DEFAULT_wxUSE_OPTIMISE | |
1626 | fi | |
1627 | ||
1628 | # Check whether --enable-optimize or --disable-optimize was given. | |
1629 | if test "${enable_optimize+set}" = set; then | |
1630 | enableval="$enable_optimize" | |
1631 | wxUSE_OPTIMISE="$enableval" | |
1632 | else | |
1633 | wxUSE_OPTIMISE=$DEFAULT_wxUSE_OPTIMISE | |
1634 | fi | |
1635 | ||
1636 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
1637 | if test "${enable_debug_flag+set}" = set; then | |
1638 | enableval="$enable_debug_flag" | |
1639 | wxUSE_DEBUG_FLAG="$enableval" | |
1640 | else | |
1641 | wxUSE_DEBUG_FLAG=$DEFAULT_wxUSE_DEBUG_FLAG | |
1642 | fi | |
1643 | ||
1644 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
1645 | if test "${enable_debug_info+set}" = set; then | |
1646 | enableval="$enable_debug_info" | |
1647 | wxUSE_DEBUG_INFO="$enableval" | |
1648 | else | |
1649 | wxUSE_DEBUG_INFO=$DEFAULT_wxUSE_DEBUG_INFO | |
1650 | fi | |
1651 | ||
1652 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
1653 | if test "${enable_debug_gdb+set}" = set; then | |
1654 | enableval="$enable_debug_gdb" | |
1655 | wxUSE_DEBUG_GDB="$enableval" | |
1656 | else | |
1657 | wxUSE_DEBUG_GDB=$DEFAULT_wxUSE_DEBUG_GDB | |
1658 | fi | |
1659 | ||
1660 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
1661 | if test "${enable_debug_cntxt+set}" = set; then | |
1662 | enableval="$enable_debug_cntxt" | |
1663 | cat >> confdefs.h <<\EOF | |
1664 | #define wxUSE_DEBUG_CONTEXT 1 | |
1665 | EOF | |
1666 | ||
1667 | fi | |
1668 | ||
1669 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
1670 | if test "${enable_mem_tracing+set}" = set; then | |
1671 | enableval="$enable_mem_tracing" | |
1672 | wxUSE_MEM_TRACING="$enableval" | |
1673 | else | |
1674 | wxUSE_MEM_TRACING=$DEFAULT_wxUSE_MEM_TRACING | |
1675 | fi | |
1676 | ||
1677 | # Check whether --enable-profile or --disable-profile was given. | |
1678 | if test "${enable_profile+set}" = set; then | |
1679 | enableval="$enable_profile" | |
1680 | wxUSE_PROFILE="$enableval" | |
1681 | else | |
1682 | wxUSE_PROFILE=$DEFAULT_wxUSE_PROFILE | |
1683 | fi | |
1684 | ||
1685 | ||
1686 | ||
1687 | # Check whether --enable-gui or --disable-gui was given. | |
1688 | if test "${enable_gui+set}" = set; then | |
1689 | enableval="$enable_gui" | |
1690 | wxUSE_GUI="$enableval" | |
1691 | else | |
1692 | wxUSE_GUI=$DEFAULT_wxUSE_GUI | |
1693 | fi | |
1694 | ||
1695 | ||
1696 | ||
1697 | # Check whether --enable-intl or --disable-intl was given. | |
1698 | if test "${enable_intl+set}" = set; then | |
1699 | enableval="$enable_intl" | |
1700 | wxUSE_INTL="$enableval" | |
1701 | else | |
1702 | wxUSE_INTL=$DEFAULT_wxUSE_INTL | |
1703 | fi | |
1704 | ||
1705 | # Check whether --enable-config or --disable-config was given. | |
1706 | if test "${enable_config+set}" = set; then | |
1707 | enableval="$enable_config" | |
1708 | wxUSE_CONFIG="$enableval" | |
1709 | else | |
1710 | wxUSE_CONFIG=$DEFAULT_wxUSE_CONFIG | |
1711 | fi | |
1712 | ||
1713 | # Check whether --enable-sockets or --disable-sockets was given. | |
1714 | if test "${enable_sockets+set}" = set; then | |
1715 | enableval="$enable_sockets" | |
1716 | wxUSE_SOCKETS="$enableval" | |
1717 | else | |
1718 | wxUSE_SOCKETS=$DEFAULT_wxUSE_SOCKETS | |
1719 | fi | |
1720 | ||
1721 | # Check whether --enable-ipc or --disable-ipc was given. | |
1722 | if test "${enable_ipc+set}" = set; then | |
1723 | enableval="$enable_ipc" | |
1724 | wxUSE_IPC="$enableval" | |
1725 | else | |
1726 | wxUSE_IPC=$DEFAULT_wxUSE_IPC | |
1727 | fi | |
1728 | ||
1729 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
1730 | if test "${enable_apple_ieee+set}" = set; then | |
1731 | enableval="$enable_apple_ieee" | |
1732 | wxUSE_APPLE_IEEE="$enableval" | |
1733 | else | |
1734 | wxUSE_APPLE_IEEE=$DEFAULT_wxUSE_APPLE_IEEE | |
1735 | fi | |
1736 | ||
1737 | # Check whether --enable-timedate or --disable-timedate was given. | |
1738 | if test "${enable_timedate+set}" = set; then | |
1739 | enableval="$enable_timedate" | |
1740 | wxUSE_TIMEDATE="$enableval" | |
1741 | else | |
1742 | wxUSE_TIMEDATE=$DEFAULT_wxUSE_TIMEDATE | |
1743 | fi | |
1744 | ||
1745 | # Check whether --enable-fraction or --disable-fraction was given. | |
1746 | if test "${enable_fraction+set}" = set; then | |
1747 | enableval="$enable_fraction" | |
1748 | wxUSE_FRACTION="$enableval" | |
1749 | else | |
1750 | wxUSE_FRACTION=$DEFAULT_wxUSE_FRACTION | |
1751 | fi | |
1752 | ||
1753 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
1754 | if test "${enable_dynlib+set}" = set; then | |
1755 | enableval="$enable_dynlib" | |
1756 | wxUSE_DYNLIB_CLASS="$enableval" | |
1757 | else | |
1758 | wxUSE_DYNLIB_CLASS=$DEFAULT_wxUSE_DYNLIB_CLASS | |
1759 | fi | |
1760 | ||
1761 | # Check whether --enable-longlong or --disable-longlong was given. | |
1762 | if test "${enable_longlong+set}" = set; then | |
1763 | enableval="$enable_longlong" | |
1764 | wxUSE_LONGLONG="${enableval}" | |
1765 | else | |
1766 | wxUSE_LONGLONG=$DEFAULT_wxUSE_LONGLONG | |
1767 | fi | |
1768 | ||
1769 | # Check whether --enable-log or --disable-log was given. | |
1770 | if test "${enable_log+set}" = set; then | |
1771 | enableval="$enable_log" | |
1772 | wxUSE_LOG="$enableval" | |
1773 | else | |
1774 | wxUSE_LOG=$DEFAULT_wxUSE_LOG | |
1775 | fi | |
1776 | ||
1777 | # Check whether --enable-streams or --disable-streams was given. | |
1778 | if test "${enable_streams+set}" = set; then | |
1779 | enableval="$enable_streams" | |
1780 | wxUSE_STREAMS="$enableval" | |
1781 | else | |
1782 | wxUSE_STREAMS=$DEFAULT_wxUSE_STREAMS | |
1783 | fi | |
1784 | ||
1785 | # Check whether --enable-file or --disable-file was given. | |
1786 | if test "${enable_file+set}" = set; then | |
1787 | enableval="$enable_file" | |
1788 | wxUSE_FILE="$enableval" | |
1789 | else | |
1790 | wxUSE_FILE=$DEFAULT_wxUSE_FILE | |
1791 | fi | |
1792 | ||
1793 | # Check whether --enable-textfile or --disable-textfile was given. | |
1794 | if test "${enable_textfile+set}" = set; then | |
1795 | enableval="$enable_textfile" | |
1796 | wxUSE_TEXTFILE="$enableval" | |
1797 | else | |
1798 | wxUSE_TEXTFILE=$DEFAULT_wxUSE_TEXTFILE | |
1799 | fi | |
1800 | ||
1801 | # Check whether --enable-unicode or --disable-unicode was given. | |
1802 | if test "${enable_unicode+set}" = set; then | |
1803 | enableval="$enable_unicode" | |
1804 | wxUSE_UNICODE="$enableval" | |
1805 | else | |
1806 | wxUSE_UNICODE=$DEFAULT_wxUSE_UNICODE | |
1807 | fi | |
1808 | ||
1809 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
1810 | if test "${enable_wcsrtombs+set}" = set; then | |
1811 | enableval="$enable_wcsrtombs" | |
1812 | wxUSE_WCSRTOMBS="$enableval" | |
1813 | else | |
1814 | wxUSE_WCSRTOMBS=$DEFAULT_wxUSE_WCSRTOMBS | |
1815 | fi | |
1816 | ||
1817 | # Check whether --enable-joystick or --disable-joystick was given. | |
1818 | if test "${enable_joystick+set}" = set; then | |
1819 | enableval="$enable_joystick" | |
1820 | wxUSE_JOYSTICK="$enableval" | |
1821 | else | |
1822 | wxUSE_JOYSTICK=$DEFAULT_wxUSE_JOYSTICK | |
1823 | fi | |
1824 | ||
1825 | ||
1826 | ||
1827 | # Check whether --enable-threads or --disable-threads was given. | |
1828 | if test "${enable_threads+set}" = set; then | |
1829 | enableval="$enable_threads" | |
1830 | wxUSE_THREADS="${enableval}" | |
1831 | else | |
1832 | wxUSE_THREADS=$DEFAULT_wxUSE_THREADS | |
1833 | fi | |
1834 | ||
1835 | # Check whether --enable-serial or --disable-serial was given. | |
1836 | if test "${enable_serial+set}" = set; then | |
1837 | enableval="$enable_serial" | |
1838 | wxUSE_SERIAL="${enableval}" | |
1839 | else | |
1840 | wxUSE_SERIAL=$DEFAULT_wxUSE_SERIAL | |
1841 | fi | |
1842 | ||
1843 | ||
1844 | ||
1845 | # Check whether --enable-docview or --disable-docview was given. | |
1846 | if test "${enable_docview+set}" = set; then | |
1847 | enableval="$enable_docview" | |
1848 | wxUSE_DOC_VIEW_ARCHITECTURE="$enableval" | |
1849 | else | |
1850 | wxUSE_DOC_VIEW_ARCHITECTURE=$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
1851 | fi | |
1852 | ||
1853 | # Check whether --enable-help or --disable-help was given. | |
1854 | if test "${enable_help+set}" = set; then | |
1855 | enableval="$enable_help" | |
1856 | wxUSE_HELP="$enableval" | |
1857 | else | |
1858 | wxUSE_HELP=$DEFAULT_wxUSE_HELP | |
1859 | fi | |
1860 | ||
1861 | # Check whether --enable-constraints or --disable-constraints was given. | |
1862 | if test "${enable_constraints+set}" = set; then | |
1863 | enableval="$enable_constraints" | |
1864 | wxUSE_CONSTRAINTS="$enableval" | |
1865 | else | |
1866 | wxUSE_CONSTRAINTS=$DEFAULT_wxUSE_CONSTRAINTS | |
1867 | fi | |
1868 | ||
1869 | # Check whether --enable-printarch or --disable-printarch was given. | |
1870 | if test "${enable_printarch+set}" = set; then | |
1871 | enableval="$enable_printarch" | |
1872 | wxUSE_PRINTING_ARCHITECTURE="${enableval}" | |
1873 | else | |
1874 | wxUSE_PRINTING_ARCHITECTURE=$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
1875 | fi | |
1876 | ||
1877 | # Check whether --enable-mdi or --disable-mdi was given. | |
1878 | if test "${enable_mdi+set}" = set; then | |
1879 | enableval="$enable_mdi" | |
1880 | wxUSE_MDI_ARCHITECTURE="${enableval}" | |
1881 | else | |
1882 | wxUSE_MDI_ARCHITECTURE=$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
1883 | fi | |
1884 | ||
1885 | ||
1886 | # Check whether --enable-postscript or --disable-postscript was given. | |
1887 | if test "${enable_postscript+set}" = set; then | |
1888 | enableval="$enable_postscript" | |
1889 | wxUSE_POSTSCRIPT="$enableval" | |
1890 | else | |
1891 | wxUSE_POSTSCRIPT=$DEFAULT_wxUSE_POSTSCRIPT | |
1892 | fi | |
1893 | ||
1894 | ||
1895 | ||
1896 | # Check whether --enable-prologio or --disable-prologio was given. | |
1897 | if test "${enable_prologio+set}" = set; then | |
1898 | enableval="$enable_prologio" | |
1899 | wxUSE_PROLOGIO="${enableval}" | |
1900 | else | |
1901 | wxUSE_PROLOGIO=$DEFAULT_wxUSE_PROLOGIO | |
1902 | fi | |
1903 | ||
1904 | # Check whether --enable-resources or --disable-resources was given. | |
1905 | if test "${enable_resources+set}" = set; then | |
1906 | enableval="$enable_resources" | |
1907 | wxUSE_RESOURCES="${enableval}" | |
1908 | else | |
1909 | wxUSE_RESOURCES=$DEFAULT_wxUSE_RESOURCES | |
1910 | fi | |
1911 | ||
1912 | ||
1913 | # Check whether --enable-xresources or --disable-xresources was given. | |
1914 | if test "${enable_xresources+set}" = set; then | |
1915 | enableval="$enable_xresources" | |
1916 | wxUSE_X_RESOURCES="${enableval}" | |
1917 | else | |
1918 | wxUSE_X_RESOURCES=$DEFAULT_wxUSE_X_RESOURCES | |
1919 | fi | |
1920 | ||
1921 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
1922 | if test "${enable_clipboard+set}" = set; then | |
1923 | enableval="$enable_clipboard" | |
1924 | wxUSE_CLIPBOARD="${enableval}" | |
1925 | else | |
1926 | wxUSE_CLIPBOARD=$DEFAULT_wxUSE_CLIPBOARD | |
1927 | fi | |
1928 | ||
1929 | # Check whether --enable-dnd or --disable-dnd was given. | |
1930 | if test "${enable_dnd+set}" = set; then | |
1931 | enableval="$enable_dnd" | |
1932 | wxUSE_DRAG_AND_DROP="${enableval}" | |
1933 | else | |
1934 | wxUSE_DRAG_AND_DROP=$DEFAULT_wxUSE_DRAG_AND_DROP | |
1935 | fi | |
1936 | ||
1937 | ||
1938 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
1939 | if test "${enable_wxtree+set}" = set; then | |
1940 | enableval="$enable_wxtree" | |
1941 | wxUSE_WXTREE="${enableval}" | |
1942 | else | |
1943 | wxUSE_WXTREE=$DEFAULT_wxUSE_WXTREE | |
1944 | fi | |
1945 | ||
1946 | ||
1947 | ||
1948 | # Check whether --enable-controls or --disable-controls was given. | |
1949 | if test "${enable_controls+set}" = set; then | |
1950 | enableval="$enable_controls" | |
1951 | wxUSE_CONTROLS="${enableval}" | |
1952 | fi | |
1953 | ||
1954 | ||
1955 | if test "$wxUSE_CONTROLS" = "yes"; then | |
1956 | DEFAULT_wxUSE_ACCEL=yes | |
1957 | DEFAULT_wxUSE_CARET=yes | |
1958 | DEFAULT_wxUSE_COMBOBOX=yes | |
1959 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1960 | DEFAULT_wxUSE_CHECKBOX=yes | |
1961 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
1962 | DEFAULT_wxUSE_GAUGE=yes | |
1963 | DEFAULT_wxUSE_GRID=yes | |
1964 | DEFAULT_wxUSE_IMAGLIST=yes | |
1965 | DEFAULT_wxUSE_LISTBOX=yes | |
1966 | DEFAULT_wxUSE_LISTCTRL=yes | |
1967 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1968 | DEFAULT_wxUSE_RADIOBOX=yes | |
1969 | DEFAULT_wxUSE_RADIOBTN=yes | |
1970 | DEFAULT_wxUSE_SASH=yes | |
1971 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1972 | DEFAULT_wxUSE_SLIDER=yes | |
1973 | DEFAULT_wxUSE_SPINBTN=yes | |
1974 | DEFAULT_wxUSE_SPLITTER=yes | |
1975 | DEFAULT_wxUSE_STATBMP=yes | |
1976 | DEFAULT_wxUSE_STATBOX=yes | |
1977 | DEFAULT_wxUSE_STATLINE=yes | |
1978 | DEFAULT_wxUSE_STATUSBAR=yes | |
1979 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1980 | DEFAULT_wxUSE_TOOLBAR=yes | |
1981 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1982 | DEFAULT_wxUSE_TREECTRL=yes | |
1983 | elif test "$wxUSE_CONTROLS" = "no"; then | |
1984 | DEFAULT_wxUSE_ACCEL=no | |
1985 | DEFAULT_wxUSE_CARET=no | |
1986 | DEFAULT_wxUSE_COMBOBOX=no | |
1987 | DEFAULT_wxUSE_BMPBUTTON=no | |
1988 | DEFAULT_wxUSE_CHECKBOX=no | |
1989 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
1990 | DEFAULT_wxUSE_GAUGE=no | |
1991 | DEFAULT_wxUSE_GRID=no | |
1992 | DEFAULT_wxUSE_IMAGLIST=no | |
1993 | DEFAULT_wxUSE_LISTBOX=no | |
1994 | DEFAULT_wxUSE_LISTCTRL=no | |
1995 | DEFAULT_wxUSE_NOTEBOOK=no | |
1996 | DEFAULT_wxUSE_RADIOBOX=no | |
1997 | DEFAULT_wxUSE_RADIOBTN=no | |
1998 | DEFAULT_wxUSE_SASH=no | |
1999 | DEFAULT_wxUSE_SCROLLBAR=no | |
2000 | DEFAULT_wxUSE_SLIDER=no | |
2001 | DEFAULT_wxUSE_SPINBTN=no | |
2002 | DEFAULT_wxUSE_SPLITTER=no | |
2003 | DEFAULT_wxUSE_STATBMP=no | |
2004 | DEFAULT_wxUSE_STATBOX=no | |
2005 | DEFAULT_wxUSE_STATLINE=no | |
2006 | DEFAULT_wxUSE_STATUSBAR=no | |
2007 | DEFAULT_wxUSE_TAB_DIALOG=no | |
2008 | DEFAULT_wxUSE_TOOLBAR=no | |
2009 | DEFAULT_wxUSE_TOOLTIPS=no | |
2010 | DEFAULT_wxUSE_TREECTRL=no | |
2011 | fi | |
2012 | ||
2013 | # Check whether --enable-accel or --disable-accel was given. | |
2014 | if test "${enable_accel+set}" = set; then | |
2015 | enableval="$enable_accel" | |
2016 | wxUSE_ACCEL="${enableval}" | |
2017 | else | |
2018 | wxUSE_ACCEL=$DEFAULT_wxUSE_ACCEL | |
2019 | fi | |
2020 | ||
2021 | # Check whether --enable-caret or --disable-caret was given. | |
2022 | if test "${enable_caret+set}" = set; then | |
2023 | enableval="$enable_caret" | |
2024 | wxUSE_CARET="${enableval}" | |
2025 | else | |
2026 | wxUSE_CARET=$DEFAULT_wxUSE_CARET | |
2027 | fi | |
2028 | ||
2029 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
2030 | if test "${enable_bmpbutton+set}" = set; then | |
2031 | enableval="$enable_bmpbutton" | |
2032 | wxUSE_BMPBUTTON="${enableval}" | |
2033 | else | |
2034 | wxUSE_BMPBUTTON=$DEFAULT_wxUSE_BMPBUTTON | |
2035 | fi | |
2036 | ||
2037 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
2038 | if test "${enable_checkbox+set}" = set; then | |
2039 | enableval="$enable_checkbox" | |
2040 | wxUSE_CHECKBOX="${enableval}" | |
2041 | else | |
2042 | wxUSE_CHECKBOX=$DEFAULT_wxUSE_CHECKBOX | |
2043 | fi | |
2044 | ||
2045 | # Check whether --enable-checklst or --disable-checklst was given. | |
2046 | if test "${enable_checklst+set}" = set; then | |
2047 | enableval="$enable_checklst" | |
2048 | wxUSE_CHECKLST="${enableval}" | |
2049 | else | |
2050 | wxUSE_CHECKLST=$DEFAULT_wxUSE_CHECKLST | |
2051 | fi | |
2052 | ||
2053 | # Check whether --enable-combobox or --disable-combobox was given. | |
2054 | if test "${enable_combobox+set}" = set; then | |
2055 | enableval="$enable_combobox" | |
2056 | wxUSE_COMBOBOX="${enableval}" | |
2057 | else | |
2058 | wxUSE_COMBOBOX=$DEFAULT_wxUSE_COMBOBOX | |
2059 | fi | |
2060 | ||
2061 | # Check whether --enable-gauge or --disable-gauge was given. | |
2062 | if test "${enable_gauge+set}" = set; then | |
2063 | enableval="$enable_gauge" | |
2064 | wxUSE_GAUGE="${enableval}" | |
2065 | else | |
2066 | wxUSE_GAUGE=$DEFAULT_wxUSE_GAUGE | |
2067 | fi | |
2068 | ||
2069 | # Check whether --enable-grid or --disable-grid was given. | |
2070 | if test "${enable_grid+set}" = set; then | |
2071 | enableval="$enable_grid" | |
2072 | wxUSE_GRID="${enableval}" | |
2073 | else | |
2074 | wxUSE_GRID=$DEFAULT_wxUSE_GRID | |
2075 | fi | |
2076 | ||
2077 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
2078 | if test "${enable_imaglist+set}" = set; then | |
2079 | enableval="$enable_imaglist" | |
2080 | wxUSE_IMAGLIST="${enableval}" | |
2081 | else | |
2082 | wxUSE_IMAGLIST=$DEFAULT_wxUSE_IMAGLIST | |
2083 | fi | |
2084 | ||
2085 | # Check whether --enable-listbox or --disable-listbox was given. | |
2086 | if test "${enable_listbox+set}" = set; then | |
2087 | enableval="$enable_listbox" | |
2088 | wxUSE_LISTBOX="${enableval}" | |
2089 | else | |
2090 | wxUSE_LISTBOX=$DEFAULT_wxUSE_LISTBOX | |
2091 | fi | |
2092 | ||
2093 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
2094 | if test "${enable_listctrl+set}" = set; then | |
2095 | enableval="$enable_listctrl" | |
2096 | wxUSE_LISTCTRL="${enableval}" | |
2097 | else | |
2098 | wxUSE_LISTCTRL=$DEFAULT_wxUSE_LISTCTRL | |
2099 | fi | |
2100 | ||
2101 | # Check whether --enable-notebook or --disable-notebook was given. | |
2102 | if test "${enable_notebook+set}" = set; then | |
2103 | enableval="$enable_notebook" | |
2104 | wxUSE_NOTEBOOK="${enableval}" | |
2105 | else | |
2106 | wxUSE_NOTEBOOK=$DEFAULT_wxUSE_NOTEBOOK | |
2107 | fi | |
2108 | ||
2109 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
2110 | if test "${enable_radiobox+set}" = set; then | |
2111 | enableval="$enable_radiobox" | |
2112 | wxUSE_RADIOBOX="${enableval}" | |
2113 | else | |
2114 | wxUSE_RADIOBOX=$DEFAULT_wxUSE_RADIOBOX | |
2115 | fi | |
2116 | ||
2117 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
2118 | if test "${enable_radiobtn+set}" = set; then | |
2119 | enableval="$enable_radiobtn" | |
2120 | wxUSE_RADIOBTN="${enableval}" | |
2121 | else | |
2122 | wxUSE_RADIOBTN=$DEFAULT_wxUSE_RADIOBTN | |
2123 | fi | |
2124 | ||
2125 | # Check whether --enable-sash or --disable-sash was given. | |
2126 | if test "${enable_sash+set}" = set; then | |
2127 | enableval="$enable_sash" | |
2128 | wxUSE_SASH="${enableval}" | |
2129 | else | |
2130 | wxUSE_SASH=$DEFAULT_wxUSE_SASH | |
2131 | fi | |
2132 | ||
2133 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
2134 | if test "${enable_scrollbar+set}" = set; then | |
2135 | enableval="$enable_scrollbar" | |
2136 | wxUSE_SCROLLBAR="${enableval}" | |
2137 | else | |
2138 | wxUSE_SCROLLBAR=$DEFAULT_wxUSE_SCROLLBAR | |
2139 | fi | |
2140 | ||
2141 | # Check whether --enable-slider or --disable-slider was given. | |
2142 | if test "${enable_slider+set}" = set; then | |
2143 | enableval="$enable_slider" | |
2144 | wxUSE_SLIDER="${enableval}" | |
2145 | else | |
2146 | wxUSE_SLIDER=$DEFAULT_wxUSE_SLIDER | |
2147 | fi | |
2148 | ||
2149 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
2150 | if test "${enable_spinbtn+set}" = set; then | |
2151 | enableval="$enable_spinbtn" | |
2152 | wxUSE_SPINBTN="${enableval}" | |
2153 | else | |
2154 | wxUSE_SPINBTN=$DEFAULT_wxUSE_SPINBTN | |
2155 | fi | |
2156 | ||
2157 | # Check whether --enable-splitter or --disable-splitter was given. | |
2158 | if test "${enable_splitter+set}" = set; then | |
2159 | enableval="$enable_splitter" | |
2160 | wxUSE_SPLITTER="${enableval}" | |
2161 | else | |
2162 | wxUSE_SPLITTER=$DEFAULT_wxUSE_SPLITTER | |
2163 | fi | |
2164 | ||
2165 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
2166 | if test "${enable_statbmp+set}" = set; then | |
2167 | enableval="$enable_statbmp" | |
2168 | wxUSE_STATBMP="${enableval}" | |
2169 | else | |
2170 | wxUSE_STATBMP=$DEFAULT_wxUSE_STATBMP | |
2171 | fi | |
2172 | ||
2173 | # Check whether --enable-statbox or --disable-statbox was given. | |
2174 | if test "${enable_statbox+set}" = set; then | |
2175 | enableval="$enable_statbox" | |
2176 | wxUSE_STATBOX="${enableval}" | |
2177 | else | |
2178 | wxUSE_STATBOX=$DEFAULT_wxUSE_STATBOX | |
2179 | fi | |
2180 | ||
2181 | # Check whether --enable-statline or --disable-statline was given. | |
2182 | if test "${enable_statline+set}" = set; then | |
2183 | enableval="$enable_statline" | |
2184 | wxUSE_STATLINE="${enableval}" | |
2185 | else | |
2186 | wxUSE_STATLINE=$DEFAULT_wxUSE_STATLINE | |
2187 | fi | |
2188 | ||
2189 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
2190 | if test "${enable_statusbar+set}" = set; then | |
2191 | enableval="$enable_statusbar" | |
2192 | wxUSE_STATUSBAR="${enableval}" | |
2193 | else | |
2194 | wxUSE_STATUSBAR=$DEFAULT_wxUSE_STATUSBAR | |
2195 | fi | |
2196 | ||
2197 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
2198 | if test "${enable_tabdialog+set}" = set; then | |
2199 | enableval="$enable_tabdialog" | |
2200 | wxUSE_TABDIALOG="${enableval}" | |
2201 | else | |
2202 | wxUSE_TABDIALOG=$DEFAULT_wxUSE_TABDIALOG | |
2203 | fi | |
2204 | ||
2205 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
2206 | if test "${enable_toolbar+set}" = set; then | |
2207 | enableval="$enable_toolbar" | |
2208 | wxUSE_TOOLBAR="${enableval}" | |
2209 | else | |
2210 | wxUSE_TOOLBAR=$DEFAULT_wxUSE_TOOLBAR | |
2211 | fi | |
2212 | ||
2213 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
2214 | if test "${enable_treectrl+set}" = set; then | |
2215 | enableval="$enable_treectrl" | |
2216 | wxUSE_TREECTRL="${enableval}" | |
2217 | else | |
2218 | wxUSE_TREECTRL=$DEFAULT_wxUSE_TREECTRL | |
2219 | fi | |
2220 | ||
2221 | ||
2222 | ||
2223 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
2224 | if test "${enable_commondlg+set}" = set; then | |
2225 | enableval="$enable_commondlg" | |
2226 | wxUSE_COMMONDLGS="${enableval}" | |
2227 | else | |
2228 | wxUSE_COMMONDLGS=$DEFAULT_wxUSE_COMMONDLGS | |
2229 | fi | |
2230 | ||
2231 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
2232 | if test "${enable_miniframe+set}" = set; then | |
2233 | enableval="$enable_miniframe" | |
2234 | wxUSE_MINIFRAME="${enableval}" | |
2235 | else | |
2236 | wxUSE_MINIFRAME=$DEFAULT_wxUSE_MINIFRAME | |
2237 | fi | |
2238 | ||
2239 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
2240 | if test "${enable_tooltips+set}" = set; then | |
2241 | enableval="$enable_tooltips" | |
2242 | wxUSE_TOOLTIPS="${enableval}" | |
2243 | else | |
2244 | wxUSE_TOOLTIPS=$DEFAULT_wxUSE_TOOLTIPS | |
2245 | fi | |
2246 | ||
2247 | # Check whether --enable-splines or --disable-splines was given. | |
2248 | if test "${enable_splines+set}" = set; then | |
2249 | enableval="$enable_splines" | |
2250 | wxUSE_SPLINES="${enableval}" | |
2251 | else | |
2252 | wxUSE_SPLINES=$DEFAULT_wxUSE_SPLINES | |
2253 | fi | |
2254 | ||
2255 | # Check whether --enable-validators or --disable-validators was given. | |
2256 | if test "${enable_validators+set}" = set; then | |
2257 | enableval="$enable_validators" | |
2258 | wxUSE_VALIDATORS="${enableval}" | |
2259 | else | |
2260 | wxUSE_VALIDATORS=$DEFAULT_wxUSE_VALIDATORS | |
2261 | fi | |
2262 | ||
2263 | ||
2264 | NUM_TOOLKITS="$((${wxUSE_GTK:-0}+${wxUSE_MOTIF:-0}+${wxUSE_MSW:-0}))" | |
2265 | ||
2266 | case "$NUM_TOOLKITS" in | |
2267 | 1) | |
2268 | ;; | |
2269 | 0) | |
2270 | if test "$((${DEFAULT_wxUSE_GTK:-0}+${DEFAULT_wxUSE_MOTIF:-0}+${DEFAULT_wxUSE_MSW:-0}))" = 0; then | |
2271 | { echo "configure: error: Please specify a toolkit" 1>&2; exit 1; } | |
2272 | fi | |
2273 | ||
2274 | wxUSE_GTK=$DEFAULT_wxUSE_GTK | |
2275 | wxUSE_MOTIF=$DEFAULT_wxUSE_MOTIF | |
2276 | wxUSE_MSW=$DEFAULT_wxUSE_MSW | |
2277 | ;; | |
2278 | *) | |
2279 | { echo "configure: error: Please specify at most one toolkit" 1>&2; exit 1; } | |
2280 | esac | |
2281 | ||
2282 | ||
2283 | cat > confcache <<\EOF | |
2284 | # This file is a shell script that caches the results of configure | |
2285 | # tests run on this system so they can be shared between configure | |
2286 | # scripts and configure runs. It is not useful on other systems. | |
2287 | # If it contains results you don't want to keep, you may remove or edit it. | |
2288 | # | |
2289 | # By default, configure uses ./config.cache as the cache file, | |
2290 | # creating it if it does not exist already. You can give configure | |
2291 | # the --cache-file=FILE option to use a different cache file; that is | |
2292 | # what configure does when it calls configure scripts in | |
2293 | # subdirectories, so they share the cache. | |
2294 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2295 | # config.status only pays attention to the cache file if you give it the | |
2296 | # --recheck option to rerun configure. | |
2297 | # | |
2298 | EOF | |
2299 | # The following way of writing the cache mishandles newlines in values, | |
2300 | # but we know of no workaround that is simple, portable, and efficient. | |
2301 | # So, don't put newlines in cache variables' values. | |
2302 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2303 | # and sets the high bit in the cache file unless we assign to the vars. | |
2304 | (set) 2>&1 | | |
2305 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
2306 | *ac_space=\ *) | |
2307 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2308 | # turns \\\\ into \\, and sed turns \\ into \). | |
2309 | sed -n \ | |
2310 | -e "s/'/'\\\\''/g" \ | |
2311 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2312 | ;; | |
2313 | *) | |
2314 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2315 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2316 | ;; | |
2317 | esac >> confcache | |
2318 | if cmp -s $cache_file confcache; then | |
2319 | : | |
2320 | else | |
2321 | if test -w $cache_file; then | |
2322 | echo "updating cache $cache_file" | |
2323 | cat confcache > $cache_file | |
2324 | else | |
2325 | echo "not updating unwritable cache $cache_file" | |
2326 | fi | |
2327 | fi | |
2328 | rm -f confcache | |
2329 | ||
2330 | ||
2331 | if eval "test $host != $build"; then | |
2332 | if eval "test $build != NONE"; then | |
2333 | CC="$build-gcc" | |
2334 | CXX="$build-g++" | |
2335 | RANLIB="$build-ranlib" | |
2336 | NM="$build-nm" | |
2337 | fi | |
2338 | fi | |
2339 | ||
2340 | # Extract the first word of "gcc", so it can be a program name with args. | |
2341 | set dummy gcc; ac_word=$2 | |
2342 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2343 | echo "configure:2344: checking for $ac_word" >&5 | |
2344 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
2345 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2346 | else | |
2347 | if test -n "$CC"; then | |
2348 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2349 | else | |
2350 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2351 | ac_dummy="$PATH" | |
2352 | for ac_dir in $ac_dummy; do | |
2353 | test -z "$ac_dir" && ac_dir=. | |
2354 | if test -f $ac_dir/$ac_word; then | |
2355 | ac_cv_prog_CC="gcc" | |
2356 | break | |
2357 | fi | |
2358 | done | |
2359 | IFS="$ac_save_ifs" | |
2360 | fi | |
2361 | fi | |
2362 | CC="$ac_cv_prog_CC" | |
2363 | if test -n "$CC"; then | |
2364 | echo "$ac_t""$CC" 1>&6 | |
2365 | else | |
2366 | echo "$ac_t""no" 1>&6 | |
2367 | fi | |
2368 | ||
2369 | if test -z "$CC"; then | |
2370 | # Extract the first word of "cc", so it can be a program name with args. | |
2371 | set dummy cc; ac_word=$2 | |
2372 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2373 | echo "configure:2374: checking for $ac_word" >&5 | |
2374 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
2375 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2376 | else | |
2377 | if test -n "$CC"; then | |
2378 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2379 | else | |
2380 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2381 | ac_prog_rejected=no | |
2382 | ac_dummy="$PATH" | |
2383 | for ac_dir in $ac_dummy; do | |
2384 | test -z "$ac_dir" && ac_dir=. | |
2385 | if test -f $ac_dir/$ac_word; then | |
2386 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
2387 | ac_prog_rejected=yes | |
2388 | continue | |
2389 | fi | |
2390 | ac_cv_prog_CC="cc" | |
2391 | break | |
2392 | fi | |
2393 | done | |
2394 | IFS="$ac_save_ifs" | |
2395 | if test $ac_prog_rejected = yes; then | |
2396 | # We found a bogon in the path, so make sure we never use it. | |
2397 | set dummy $ac_cv_prog_CC | |
2398 | shift | |
2399 | if test $# -gt 0; then | |
2400 | # We chose a different compiler from the bogus one. | |
2401 | # However, it has the same basename, so the bogon will be chosen | |
2402 | # first if we set CC to just the basename; use the full file name. | |
2403 | shift | |
2404 | set dummy "$ac_dir/$ac_word" "$@" | |
2405 | shift | |
2406 | ac_cv_prog_CC="$@" | |
2407 | fi | |
2408 | fi | |
2409 | fi | |
2410 | fi | |
2411 | CC="$ac_cv_prog_CC" | |
2412 | if test -n "$CC"; then | |
2413 | echo "$ac_t""$CC" 1>&6 | |
2414 | else | |
2415 | echo "$ac_t""no" 1>&6 | |
2416 | fi | |
2417 | ||
2418 | if test -z "$CC"; then | |
2419 | case "`uname -s`" in | |
2420 | *win32* | *WIN32*) | |
2421 | # Extract the first word of "cl", so it can be a program name with args. | |
2422 | set dummy cl; ac_word=$2 | |
2423 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2424 | echo "configure:2425: checking for $ac_word" >&5 | |
2425 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
2426 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2427 | else | |
2428 | if test -n "$CC"; then | |
2429 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2430 | else | |
2431 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2432 | ac_dummy="$PATH" | |
2433 | for ac_dir in $ac_dummy; do | |
2434 | test -z "$ac_dir" && ac_dir=. | |
2435 | if test -f $ac_dir/$ac_word; then | |
2436 | ac_cv_prog_CC="cl" | |
2437 | break | |
2438 | fi | |
2439 | done | |
2440 | IFS="$ac_save_ifs" | |
2441 | fi | |
2442 | fi | |
2443 | CC="$ac_cv_prog_CC" | |
2444 | if test -n "$CC"; then | |
2445 | echo "$ac_t""$CC" 1>&6 | |
2446 | else | |
2447 | echo "$ac_t""no" 1>&6 | |
2448 | fi | |
2449 | ;; | |
2450 | esac | |
2451 | fi | |
2452 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
2453 | fi | |
2454 | ||
2455 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
2456 | echo "configure:2457: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
2457 | ||
2458 | ac_ext=c | |
2459 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2460 | ac_cpp='$CPP $CPPFLAGS' | |
2461 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2462 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2463 | cross_compiling=$ac_cv_prog_cc_cross | |
2464 | ||
2465 | cat > conftest.$ac_ext << EOF | |
2466 | ||
2467 | #line 2468 "configure" | |
2468 | #include "confdefs.h" | |
2469 | ||
2470 | main(){return(0);} | |
2471 | EOF | |
2472 | if { (eval echo configure:2473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2473 | ac_cv_prog_cc_works=yes | |
2474 | # If we can't run a trivial program, we are probably using a cross compiler. | |
2475 | if (./conftest; exit) 2>/dev/null; then | |
2476 | ac_cv_prog_cc_cross=no | |
2477 | else | |
2478 | ac_cv_prog_cc_cross=yes | |
2479 | fi | |
2480 | else | |
2481 | echo "configure: failed program was:" >&5 | |
2482 | cat conftest.$ac_ext >&5 | |
2483 | ac_cv_prog_cc_works=no | |
2484 | fi | |
2485 | rm -fr conftest* | |
2486 | ac_ext=c | |
2487 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2488 | ac_cpp='$CPP $CPPFLAGS' | |
2489 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2490 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2491 | cross_compiling=$ac_cv_prog_cc_cross | |
2492 | ||
2493 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
2494 | if test $ac_cv_prog_cc_works = no; then | |
2495 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
2496 | fi | |
2497 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
2498 | echo "configure:2499: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
2499 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
2500 | cross_compiling=$ac_cv_prog_cc_cross | |
2501 | ||
2502 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
2503 | echo "configure:2504: checking whether we are using GNU C" >&5 | |
2504 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
2505 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2506 | else | |
2507 | cat > conftest.c <<EOF | |
2508 | #ifdef __GNUC__ | |
2509 | yes; | |
2510 | #endif | |
2511 | EOF | |
2512 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
2513 | ac_cv_prog_gcc=yes | |
2514 | else | |
2515 | ac_cv_prog_gcc=no | |
2516 | fi | |
2517 | fi | |
2518 | ||
2519 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
2520 | ||
2521 | if test $ac_cv_prog_gcc = yes; then | |
2522 | GCC=yes | |
2523 | else | |
2524 | GCC= | |
2525 | fi | |
2526 | ||
2527 | ac_test_CFLAGS="${CFLAGS+set}" | |
2528 | ac_save_CFLAGS="$CFLAGS" | |
2529 | CFLAGS= | |
2530 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
2531 | echo "configure:2532: checking whether ${CC-cc} accepts -g" >&5 | |
2532 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | |
2533 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2534 | else | |
2535 | echo 'void f(){}' > conftest.c | |
2536 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
2537 | ac_cv_prog_cc_g=yes | |
2538 | else | |
2539 | ac_cv_prog_cc_g=no | |
2540 | fi | |
2541 | rm -f conftest* | |
2542 | ||
2543 | fi | |
2544 | ||
2545 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
2546 | if test "$ac_test_CFLAGS" = set; then | |
2547 | CFLAGS="$ac_save_CFLAGS" | |
2548 | elif test $ac_cv_prog_cc_g = yes; then | |
2549 | if test "$GCC" = yes; then | |
2550 | CFLAGS="-g -O2" | |
2551 | else | |
2552 | CFLAGS="-g" | |
2553 | fi | |
2554 | else | |
2555 | if test "$GCC" = yes; then | |
2556 | CFLAGS="-O2" | |
2557 | else | |
2558 | CFLAGS= | |
2559 | fi | |
2560 | fi | |
2561 | ||
2562 | ||
2563 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
2564 | ||
2565 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
2566 | echo "configure:2567: checking how to run the C preprocessor" >&5 | |
2567 | # On Suns, sometimes $CPP names a directory. | |
2568 | if test -n "$CPP" && test -d "$CPP"; then | |
2569 | CPP= | |
2570 | fi | |
2571 | if test -z "$CPP"; then | |
2572 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
2573 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2574 | else | |
2575 | # This must be in double quotes, not single quotes, because CPP may get | |
2576 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
2577 | CPP="${CC-cc} -E" | |
2578 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2579 | # not just through cpp. | |
2580 | cat > conftest.$ac_ext <<EOF | |
2581 | #line 2582 "configure" | |
2582 | #include "confdefs.h" | |
2583 | #include <assert.h> | |
2584 | Syntax Error | |
2585 | EOF | |
2586 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2587 | { (eval echo configure:2588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2588 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
2589 | if test -z "$ac_err"; then | |
2590 | : | |
2591 | else | |
2592 | echo "$ac_err" >&5 | |
2593 | echo "configure: failed program was:" >&5 | |
2594 | cat conftest.$ac_ext >&5 | |
2595 | rm -rf conftest* | |
2596 | CPP="${CC-cc} -E -traditional-cpp" | |
2597 | cat > conftest.$ac_ext <<EOF | |
2598 | #line 2599 "configure" | |
2599 | #include "confdefs.h" | |
2600 | #include <assert.h> | |
2601 | Syntax Error | |
2602 | EOF | |
2603 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2604 | { (eval echo configure:2605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2605 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
2606 | if test -z "$ac_err"; then | |
2607 | : | |
2608 | else | |
2609 | echo "$ac_err" >&5 | |
2610 | echo "configure: failed program was:" >&5 | |
2611 | cat conftest.$ac_ext >&5 | |
2612 | rm -rf conftest* | |
2613 | CPP="${CC-cc} -nologo -E" | |
2614 | cat > conftest.$ac_ext <<EOF | |
2615 | #line 2616 "configure" | |
2616 | #include "confdefs.h" | |
2617 | #include <assert.h> | |
2618 | Syntax Error | |
2619 | EOF | |
2620 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2621 | { (eval echo configure:2622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2622 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
2623 | if test -z "$ac_err"; then | |
2624 | : | |
2625 | else | |
2626 | echo "$ac_err" >&5 | |
2627 | echo "configure: failed program was:" >&5 | |
2628 | cat conftest.$ac_ext >&5 | |
2629 | rm -rf conftest* | |
2630 | CPP=/lib/cpp | |
2631 | fi | |
2632 | rm -f conftest* | |
2633 | fi | |
2634 | rm -f conftest* | |
2635 | fi | |
2636 | rm -f conftest* | |
2637 | ac_cv_prog_CPP="$CPP" | |
2638 | fi | |
2639 | CPP="$ac_cv_prog_CPP" | |
2640 | else | |
2641 | ac_cv_prog_CPP="$CPP" | |
2642 | fi | |
2643 | echo "$ac_t""$CPP" 1>&6 | |
2644 | ||
2645 | ||
2646 | if test $ac_cv_prog_gcc = yes; then | |
2647 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
2648 | echo "configure:2649: checking whether ${CC-cc} needs -traditional" >&5 | |
2649 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then | |
2650 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2651 | else | |
2652 | ac_pattern="Autoconf.*'x'" | |
2653 | cat > conftest.$ac_ext <<EOF | |
2654 | #line 2655 "configure" | |
2655 | #include "confdefs.h" | |
2656 | #include <sgtty.h> | |
2657 | Autoconf TIOCGETP | |
2658 | EOF | |
2659 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2660 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
2661 | rm -rf conftest* | |
2662 | ac_cv_prog_gcc_traditional=yes | |
2663 | else | |
2664 | rm -rf conftest* | |
2665 | ac_cv_prog_gcc_traditional=no | |
2666 | fi | |
2667 | rm -f conftest* | |
2668 | ||
2669 | ||
2670 | if test $ac_cv_prog_gcc_traditional = no; then | |
2671 | cat > conftest.$ac_ext <<EOF | |
2672 | #line 2673 "configure" | |
2673 | #include "confdefs.h" | |
2674 | #include <termio.h> | |
2675 | Autoconf TCGETA | |
2676 | EOF | |
2677 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2678 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
2679 | rm -rf conftest* | |
2680 | ac_cv_prog_gcc_traditional=yes | |
2681 | fi | |
2682 | rm -f conftest* | |
2683 | ||
2684 | fi | |
2685 | fi | |
2686 | ||
2687 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
2688 | if test $ac_cv_prog_gcc_traditional = yes; then | |
2689 | CC="$CC -traditional" | |
2690 | fi | |
2691 | fi | |
2692 | ||
2693 | ||
2694 | ||
2695 | ac_ext=C | |
2696 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2697 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2698 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2699 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2700 | cross_compiling=$ac_cv_prog_cxx_cross | |
2701 | ||
2702 | ||
2703 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
2704 | do | |
2705 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2706 | set dummy $ac_prog; ac_word=$2 | |
2707 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2708 | echo "configure:2709: checking for $ac_word" >&5 | |
2709 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then | |
2710 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2711 | else | |
2712 | if test -n "$CXX"; then | |
2713 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2714 | else | |
2715 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2716 | ac_dummy="$PATH" | |
2717 | for ac_dir in $ac_dummy; do | |
2718 | test -z "$ac_dir" && ac_dir=. | |
2719 | if test -f $ac_dir/$ac_word; then | |
2720 | ac_cv_prog_CXX="$ac_prog" | |
2721 | break | |
2722 | fi | |
2723 | done | |
2724 | IFS="$ac_save_ifs" | |
2725 | fi | |
2726 | fi | |
2727 | CXX="$ac_cv_prog_CXX" | |
2728 | if test -n "$CXX"; then | |
2729 | echo "$ac_t""$CXX" 1>&6 | |
2730 | else | |
2731 | echo "$ac_t""no" 1>&6 | |
2732 | fi | |
2733 | ||
2734 | test -n "$CXX" && break | |
2735 | done | |
2736 | test -n "$CXX" || CXX="gcc" | |
2737 | ||
2738 | ||
2739 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
2740 | echo "configure:2741: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 | |
2741 | ||
2742 | ac_ext=C | |
2743 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2744 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2745 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2746 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2747 | cross_compiling=$ac_cv_prog_cxx_cross | |
2748 | ||
2749 | cat > conftest.$ac_ext << EOF | |
2750 | ||
2751 | #line 2752 "configure" | |
2752 | #include "confdefs.h" | |
2753 | ||
2754 | int main(){return(0);} | |
2755 | EOF | |
2756 | if { (eval echo configure:2757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2757 | ac_cv_prog_cxx_works=yes | |
2758 | # If we can't run a trivial program, we are probably using a cross compiler. | |
2759 | if (./conftest; exit) 2>/dev/null; then | |
2760 | ac_cv_prog_cxx_cross=no | |
2761 | else | |
2762 | ac_cv_prog_cxx_cross=yes | |
2763 | fi | |
2764 | else | |
2765 | echo "configure: failed program was:" >&5 | |
2766 | cat conftest.$ac_ext >&5 | |
2767 | ac_cv_prog_cxx_works=no | |
2768 | fi | |
2769 | rm -fr conftest* | |
2770 | ac_ext=C | |
2771 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2772 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2773 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2774 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2775 | cross_compiling=$ac_cv_prog_cxx_cross | |
2776 | ||
2777 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
2778 | if test $ac_cv_prog_cxx_works = no; then | |
2779 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
2780 | fi | |
2781 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
2782 | echo "configure:2783: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
2783 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 | |
2784 | cross_compiling=$ac_cv_prog_cxx_cross | |
2785 | ||
2786 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
2787 | echo "configure:2788: checking whether we are using GNU C++" >&5 | |
2788 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then | |
2789 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2790 | else | |
2791 | cat > conftest.C <<EOF | |
2792 | #ifdef __GNUC__ | |
2793 | yes; | |
2794 | #endif | |
2795 | EOF | |
2796 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
2797 | ac_cv_prog_gxx=yes | |
2798 | else | |
2799 | ac_cv_prog_gxx=no | |
2800 | fi | |
2801 | fi | |
2802 | ||
2803 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
2804 | ||
2805 | if test $ac_cv_prog_gxx = yes; then | |
2806 | GXX=yes | |
2807 | else | |
2808 | GXX= | |
2809 | fi | |
2810 | ||
2811 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
2812 | ac_save_CXXFLAGS="$CXXFLAGS" | |
2813 | CXXFLAGS= | |
2814 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
2815 | echo "configure:2816: checking whether ${CXX-g++} accepts -g" >&5 | |
2816 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then | |
2817 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2818 | else | |
2819 | echo 'void f(){}' > conftest.cc | |
2820 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
2821 | ac_cv_prog_cxx_g=yes | |
2822 | else | |
2823 | ac_cv_prog_cxx_g=no | |
2824 | fi | |
2825 | rm -f conftest* | |
2826 | ||
2827 | fi | |
2828 | ||
2829 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
2830 | if test "$ac_test_CXXFLAGS" = set; then | |
2831 | CXXFLAGS="$ac_save_CXXFLAGS" | |
2832 | elif test $ac_cv_prog_cxx_g = yes; then | |
2833 | if test "$GXX" = yes; then | |
2834 | CXXFLAGS="-g -O2" | |
2835 | else | |
2836 | CXXFLAGS="-g" | |
2837 | fi | |
2838 | else | |
2839 | if test "$GXX" = yes; then | |
2840 | CXXFLAGS="-O2" | |
2841 | else | |
2842 | CXXFLAGS= | |
2843 | fi | |
2844 | fi | |
2845 | ||
2846 | ||
2847 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
2848 | echo "configure:2849: checking how to run the C++ preprocessor" >&5 | |
2849 | if test -z "$CXXCPP"; then | |
2850 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
2851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2852 | else | |
2853 | ac_ext=C | |
2854 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2855 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2856 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2857 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2858 | cross_compiling=$ac_cv_prog_cxx_cross | |
2859 | CXXCPP="${CXX-g++} -E" | |
2860 | cat > conftest.$ac_ext <<EOF | |
2861 | #line 2862 "configure" | |
2862 | #include "confdefs.h" | |
2863 | #include <stdlib.h> | |
2864 | EOF | |
2865 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2866 | { (eval echo configure:2867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2867 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
2868 | if test -z "$ac_err"; then | |
2869 | : | |
2870 | else | |
2871 | echo "$ac_err" >&5 | |
2872 | echo "configure: failed program was:" >&5 | |
2873 | cat conftest.$ac_ext >&5 | |
2874 | rm -rf conftest* | |
2875 | CXXCPP=/lib/cpp | |
2876 | fi | |
2877 | rm -f conftest* | |
2878 | ac_cv_prog_CXXCPP="$CXXCPP" | |
2879 | ac_ext=C | |
2880 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2881 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2882 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2883 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2884 | cross_compiling=$ac_cv_prog_cxx_cross | |
2885 | fi | |
2886 | fi | |
2887 | CXXCPP="$ac_cv_prog_CXXCPP" | |
2888 | echo "$ac_t""$CXXCPP" 1>&6 | |
2889 | ||
2890 | ||
2891 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
2892 | ||
2893 | ac_ext=c | |
2894 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2895 | ac_cpp='$CPP $CPPFLAGS' | |
2896 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2897 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2898 | cross_compiling=$ac_cv_prog_cc_cross | |
2899 | ||
2900 | ||
2901 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2902 | set dummy ranlib; ac_word=$2 | |
2903 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2904 | echo "configure:2905: checking for $ac_word" >&5 | |
2905 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
2906 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2907 | else | |
2908 | if test -n "$RANLIB"; then | |
2909 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2910 | else | |
2911 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2912 | ac_dummy="$PATH" | |
2913 | for ac_dir in $ac_dummy; do | |
2914 | test -z "$ac_dir" && ac_dir=. | |
2915 | if test -f $ac_dir/$ac_word; then | |
2916 | ac_cv_prog_RANLIB="ranlib" | |
2917 | break | |
2918 | fi | |
2919 | done | |
2920 | IFS="$ac_save_ifs" | |
2921 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
2922 | fi | |
2923 | fi | |
2924 | RANLIB="$ac_cv_prog_RANLIB" | |
2925 | if test -n "$RANLIB"; then | |
2926 | echo "$ac_t""$RANLIB" 1>&6 | |
2927 | else | |
2928 | echo "$ac_t""no" 1>&6 | |
2929 | fi | |
2930 | ||
2931 | ||
2932 | # Extract the first word of "ar", so it can be a program name with args. | |
2933 | set dummy ar; ac_word=$2 | |
2934 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2935 | echo "configure:2936: checking for $ac_word" >&5 | |
2936 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | |
2937 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2938 | else | |
2939 | if test -n "$AR"; then | |
2940 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
2941 | else | |
2942 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2943 | ac_dummy="$PATH" | |
2944 | for ac_dir in $ac_dummy; do | |
2945 | test -z "$ac_dir" && ac_dir=. | |
2946 | if test -f $ac_dir/$ac_word; then | |
2947 | ac_cv_prog_AR="ar" | |
2948 | break | |
2949 | fi | |
2950 | done | |
2951 | IFS="$ac_save_ifs" | |
2952 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
2953 | fi | |
2954 | fi | |
2955 | AR="$ac_cv_prog_AR" | |
2956 | if test -n "$AR"; then | |
2957 | echo "$ac_t""$AR" 1>&6 | |
2958 | else | |
2959 | echo "$ac_t""no" 1>&6 | |
2960 | fi | |
2961 | ||
2962 | ||
2963 | # Find a good install program. We prefer a C program (faster), | |
2964 | # so one script is as good as another. But avoid the broken or | |
2965 | # incompatible versions: | |
2966 | # SysV /etc/install, /usr/sbin/install | |
2967 | # SunOS /usr/etc/install | |
2968 | # IRIX /sbin/install | |
2969 | # AIX /bin/install | |
2970 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2971 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2972 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2973 | # ./install, which can be erroneously created by make from ./install.sh. | |
2974 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
2975 | echo "configure:2976: checking for a BSD compatible install" >&5 | |
2976 | if test -z "$INSTALL"; then | |
2977 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
2978 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2979 | else | |
2980 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
2981 | for ac_dir in $PATH; do | |
2982 | # Account for people who put trailing slashes in PATH elements. | |
2983 | case "$ac_dir/" in | |
2984 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
2985 | *) | |
2986 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2987 | # Don't use installbsd from OSF since it installs stuff as root | |
2988 | # by default. | |
2989 | for ac_prog in ginstall scoinst install; do | |
2990 | if test -f $ac_dir/$ac_prog; then | |
2991 | if test $ac_prog = install && | |
2992 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
2993 | # AIX install. It has an incompatible calling convention. | |
2994 | : | |
2995 | else | |
2996 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
2997 | break 2 | |
2998 | fi | |
2999 | fi | |
3000 | done | |
3001 | ;; | |
3002 | esac | |
3003 | done | |
3004 | IFS="$ac_save_IFS" | |
3005 | ||
3006 | fi | |
3007 | if test "${ac_cv_path_install+set}" = set; then | |
3008 | INSTALL="$ac_cv_path_install" | |
3009 | else | |
3010 | # As a last resort, use the slow shell script. We don't cache a | |
3011 | # path for INSTALL within a source directory, because that will | |
3012 | # break other packages using the cache if that directory is | |
3013 | # removed, or if the path is relative. | |
3014 | INSTALL="$ac_install_sh" | |
3015 | fi | |
3016 | fi | |
3017 | echo "$ac_t""$INSTALL" 1>&6 | |
3018 | ||
3019 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3020 | # It thinks the first close brace ends the variable substitution. | |
3021 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3022 | ||
3023 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
3024 | ||
3025 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3026 | ||
3027 | ||
3028 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
3029 | echo "configure:3030: checking whether ln -s works" >&5 | |
3030 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | |
3031 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3032 | else | |
3033 | rm -f conftestdata | |
3034 | if ln -s X conftestdata 2>/dev/null | |
3035 | then | |
3036 | rm -f conftestdata | |
3037 | ac_cv_prog_LN_S="ln -s" | |
3038 | else | |
3039 | ac_cv_prog_LN_S=ln | |
3040 | fi | |
3041 | fi | |
3042 | LN_S="$ac_cv_prog_LN_S" | |
3043 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
3044 | echo "$ac_t""yes" 1>&6 | |
3045 | else | |
3046 | echo "$ac_t""no" 1>&6 | |
3047 | fi | |
3048 | ||
3049 | ||
3050 | # Extract the first word of "strip", so it can be a program name with args. | |
3051 | set dummy strip; ac_word=$2 | |
3052 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3053 | echo "configure:3054: checking for $ac_word" >&5 | |
3054 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | |
3055 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3056 | else | |
3057 | if test -n "$STRIP"; then | |
3058 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3059 | else | |
3060 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3061 | ac_dummy="$PATH" | |
3062 | for ac_dir in $ac_dummy; do | |
3063 | test -z "$ac_dir" && ac_dir=. | |
3064 | if test -f $ac_dir/$ac_word; then | |
3065 | ac_cv_prog_STRIP="strip" | |
3066 | break | |
3067 | fi | |
3068 | done | |
3069 | IFS="$ac_save_ifs" | |
3070 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
3071 | fi | |
3072 | fi | |
3073 | STRIP="$ac_cv_prog_STRIP" | |
3074 | if test -n "$STRIP"; then | |
3075 | echo "$ac_t""$STRIP" 1>&6 | |
3076 | else | |
3077 | echo "$ac_t""no" 1>&6 | |
3078 | fi | |
3079 | ||
3080 | ||
3081 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 | |
3082 | echo "configure:3083: checking "make for VPATH support"" >&5 | |
3083 | cat - << EOF > confMake | |
3084 | check : file | |
3085 | cp \$? \$@ | |
3086 | cp \$? final_file | |
3087 | EOF | |
3088 | ||
3089 | if test ! -d sub ; then | |
3090 | mkdir sub | |
3091 | fi | |
3092 | echo dummy > sub/file | |
3093 | ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null | |
3094 | RESULT=$? | |
3095 | rm -f sub/file check final_file confMake | |
3096 | rmdir sub | |
3097 | if test "$RESULT" = 0; then | |
3098 | echo "$ac_t""yes" 1>&6 | |
3099 | else | |
3100 | echo "$ac_t""no" 1>&6 | |
3101 | { echo "configure: error: You need a make-utility that is able to use the variable | |
3102 | VPATH correctly. | |
3103 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } | |
3104 | fi | |
3105 | ||
3106 | for ac_prog in 'bison -y' byacc | |
3107 | do | |
3108 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3109 | set dummy $ac_prog; ac_word=$2 | |
3110 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3111 | echo "configure:3112: checking for $ac_word" >&5 | |
3112 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then | |
3113 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3114 | else | |
3115 | if test -n "$YACC"; then | |
3116 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
3117 | else | |
3118 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3119 | ac_dummy="$PATH" | |
3120 | for ac_dir in $ac_dummy; do | |
3121 | test -z "$ac_dir" && ac_dir=. | |
3122 | if test -f $ac_dir/$ac_word; then | |
3123 | ac_cv_prog_YACC="$ac_prog" | |
3124 | break | |
3125 | fi | |
3126 | done | |
3127 | IFS="$ac_save_ifs" | |
3128 | fi | |
3129 | fi | |
3130 | YACC="$ac_cv_prog_YACC" | |
3131 | if test -n "$YACC"; then | |
3132 | echo "$ac_t""$YACC" 1>&6 | |
3133 | else | |
3134 | echo "$ac_t""no" 1>&6 | |
3135 | fi | |
3136 | ||
3137 | test -n "$YACC" && break | |
3138 | done | |
3139 | test -n "$YACC" || YACC="yacc" | |
3140 | ||
3141 | ||
3142 | missing_dir=`cd $ac_aux_dir && pwd` | |
3143 | for ac_prog in flex lex | |
3144 | do | |
3145 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3146 | set dummy $ac_prog; ac_word=$2 | |
3147 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3148 | echo "configure:3149: checking for $ac_word" >&5 | |
3149 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then | |
3150 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3151 | else | |
3152 | if test -n "$LEX"; then | |
3153 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
3154 | else | |
3155 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3156 | ac_dummy="$PATH" | |
3157 | for ac_dir in $ac_dummy; do | |
3158 | test -z "$ac_dir" && ac_dir=. | |
3159 | if test -f $ac_dir/$ac_word; then | |
3160 | ac_cv_prog_LEX="$ac_prog" | |
3161 | break | |
3162 | fi | |
3163 | done | |
3164 | IFS="$ac_save_ifs" | |
3165 | fi | |
3166 | fi | |
3167 | LEX="$ac_cv_prog_LEX" | |
3168 | if test -n "$LEX"; then | |
3169 | echo "$ac_t""$LEX" 1>&6 | |
3170 | else | |
3171 | echo "$ac_t""no" 1>&6 | |
3172 | fi | |
3173 | ||
3174 | test -n "$LEX" && break | |
3175 | done | |
3176 | test -n "$LEX" || LEX=""$missing_dir/missing flex"" | |
3177 | ||
3178 | # Extract the first word of "flex", so it can be a program name with args. | |
3179 | set dummy flex; ac_word=$2 | |
3180 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3181 | echo "configure:3182: checking for $ac_word" >&5 | |
3182 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then | |
3183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3184 | else | |
3185 | if test -n "$LEX"; then | |
3186 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
3187 | else | |
3188 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3189 | ac_dummy="$PATH" | |
3190 | for ac_dir in $ac_dummy; do | |
3191 | test -z "$ac_dir" && ac_dir=. | |
3192 | if test -f $ac_dir/$ac_word; then | |
3193 | ac_cv_prog_LEX="flex" | |
3194 | break | |
3195 | fi | |
3196 | done | |
3197 | IFS="$ac_save_ifs" | |
3198 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
3199 | fi | |
3200 | fi | |
3201 | LEX="$ac_cv_prog_LEX" | |
3202 | if test -n "$LEX"; then | |
3203 | echo "$ac_t""$LEX" 1>&6 | |
3204 | else | |
3205 | echo "$ac_t""no" 1>&6 | |
3206 | fi | |
3207 | ||
3208 | if test -z "$LEXLIB" | |
3209 | then | |
3210 | case "$LEX" in | |
3211 | flex*) ac_lib=fl ;; | |
3212 | *) ac_lib=l ;; | |
3213 | esac | |
3214 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
3215 | echo "configure:3216: checking for yywrap in -l$ac_lib" >&5 | |
3216 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` | |
3217 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3218 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3219 | else | |
3220 | ac_save_LIBS="$LIBS" | |
3221 | LIBS="-l$ac_lib $LIBS" | |
3222 | cat > conftest.$ac_ext <<EOF | |
3223 | #line 3224 "configure" | |
3224 | #include "confdefs.h" | |
3225 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3226 | /* We use char because int might match the return type of a gcc2 | |
3227 | builtin and then its argument prototype would still apply. */ | |
3228 | char yywrap(); | |
3229 | ||
3230 | int main() { | |
3231 | yywrap() | |
3232 | ; return 0; } | |
3233 | EOF | |
3234 | if { (eval echo configure:3235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3235 | rm -rf conftest* | |
3236 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3237 | else | |
3238 | echo "configure: failed program was:" >&5 | |
3239 | cat conftest.$ac_ext >&5 | |
3240 | rm -rf conftest* | |
3241 | eval "ac_cv_lib_$ac_lib_var=no" | |
3242 | fi | |
3243 | rm -f conftest* | |
3244 | LIBS="$ac_save_LIBS" | |
3245 | ||
3246 | fi | |
3247 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3248 | echo "$ac_t""yes" 1>&6 | |
3249 | LEXLIB="-l$ac_lib" | |
3250 | else | |
3251 | echo "$ac_t""no" 1>&6 | |
3252 | fi | |
3253 | ||
3254 | fi | |
3255 | ||
3256 | echo $ac_n "checking lex output file root""... $ac_c" 1>&6 | |
3257 | echo "configure:3258: checking lex output file root" >&5 | |
3258 | if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then | |
3259 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3260 | else | |
3261 | # The minimal lex program is just a single line: %%. But some broken lexes | |
3262 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
3263 | echo '%% | |
3264 | %%' | $LEX | |
3265 | if test -f lex.yy.c; then | |
3266 | ac_cv_prog_lex_root=lex.yy | |
3267 | elif test -f lexyy.c; then | |
3268 | ac_cv_prog_lex_root=lexyy | |
3269 | else | |
3270 | { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; } | |
3271 | fi | |
3272 | fi | |
3273 | ||
3274 | echo "$ac_t""$ac_cv_prog_lex_root" 1>&6 | |
3275 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
3276 | ||
3277 | echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 | |
3278 | echo "configure:3279: checking whether yytext is a pointer" >&5 | |
3279 | if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then | |
3280 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3281 | else | |
3282 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
3283 | # default is implementation-dependent. Figure out which it is, since | |
3284 | # not all implementations provide the %pointer and %array declarations. | |
3285 | ac_cv_prog_lex_yytext_pointer=no | |
3286 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
3287 | ac_save_LIBS="$LIBS" | |
3288 | LIBS="$LIBS $LEXLIB" | |
3289 | cat > conftest.$ac_ext <<EOF | |
3290 | #line 3291 "configure" | |
3291 | #include "confdefs.h" | |
3292 | `cat $LEX_OUTPUT_ROOT.c` | |
3293 | int main() { | |
3294 | ||
3295 | ; return 0; } | |
3296 | EOF | |
3297 | if { (eval echo configure:3298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3298 | rm -rf conftest* | |
3299 | ac_cv_prog_lex_yytext_pointer=yes | |
3300 | else | |
3301 | echo "configure: failed program was:" >&5 | |
3302 | cat conftest.$ac_ext >&5 | |
3303 | fi | |
3304 | rm -f conftest* | |
3305 | LIBS="$ac_save_LIBS" | |
3306 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
3307 | ||
3308 | fi | |
3309 | ||
3310 | echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6 | |
3311 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
3312 | cat >> confdefs.h <<\EOF | |
3313 | #define YYTEXT_POINTER 1 | |
3314 | EOF | |
3315 | ||
3316 | fi | |
3317 | ||
3318 | ||
3319 | # Check whether --enable-static or --disable-static was given. | |
3320 | if test "${enable_static+set}" = set; then | |
3321 | enableval="$enable_static" | |
3322 | p=${PACKAGE-default} | |
3323 | case "$enableval" in | |
3324 | yes) enable_static=yes ;; | |
3325 | no) enable_static=no ;; | |
3326 | *) | |
3327 | enable_static=no | |
3328 | # Look at the argument we got. We use all the common list separators. | |
3329 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3330 | for pkg in $enableval; do | |
3331 | if test "X$pkg" = "X$p"; then | |
3332 | enable_static=yes | |
3333 | fi | |
3334 | done | |
3335 | IFS="$ac_save_ifs" | |
3336 | ;; | |
3337 | esac | |
3338 | else | |
3339 | enable_static=no | |
3340 | fi | |
3341 | ||
3342 | # Check whether --enable-shared or --disable-shared was given. | |
3343 | if test "${enable_shared+set}" = set; then | |
3344 | enableval="$enable_shared" | |
3345 | p=${PACKAGE-default} | |
3346 | case "$enableval" in | |
3347 | yes) enable_shared=yes ;; | |
3348 | no) enable_shared=no ;; | |
3349 | *) | |
3350 | enable_shared=no | |
3351 | # Look at the argument we got. We use all the common list separators. | |
3352 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3353 | for pkg in $enableval; do | |
3354 | if test "X$pkg" = "X$p"; then | |
3355 | enable_shared=yes | |
3356 | fi | |
3357 | done | |
3358 | IFS="$ac_save_ifs" | |
3359 | ;; | |
3360 | esac | |
3361 | else | |
3362 | enable_shared=yes | |
3363 | fi | |
3364 | ||
3365 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
3366 | echo "configure:3367: checking build system type" >&5 | |
3367 | ||
3368 | build_alias=$build | |
3369 | case "$build_alias" in | |
3370 | NONE) | |
3371 | case $nonopt in | |
3372 | NONE) build_alias=$host_alias ;; | |
3373 | *) build_alias=$nonopt ;; | |
3374 | esac ;; | |
3375 | esac | |
3376 | ||
3377 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
3378 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3379 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3380 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3381 | echo "$ac_t""$build" 1>&6 | |
3382 | ||
3383 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
3384 | if test "${with_gnu_ld+set}" = set; then | |
3385 | withval="$with_gnu_ld" | |
3386 | test "$withval" = no || with_gnu_ld=yes | |
3387 | else | |
3388 | with_gnu_ld=no | |
3389 | fi | |
3390 | ||
3391 | ac_prog=ld | |
3392 | if test "$ac_cv_prog_gcc" = yes; then | |
3393 | # Check if gcc -print-prog-name=ld gives a path. | |
3394 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | |
3395 | echo "configure:3396: checking for ld used by GCC" >&5 | |
3396 | ac_prog=`($CC -print-prog-name=ld) 2>&5` | |
3397 | case "$ac_prog" in | |
3398 | # Accept absolute paths. | |
3399 | /* | [A-Za-z]:/*) | |
3400 | # Canonicalize the path of ld | |
3401 | re_direlt='/[^/][^/]*/\.\./' | |
3402 | sub_uncdrive='s%^\([A-Za-z]\):/%//\1/%' | |
3403 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3404 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3405 | done | |
3406 | case "$host_os" in | |
3407 | cygwin*) | |
3408 | # Convert to a UNC path for cygwin | |
3409 | test -z "$LD" && LD=`echo X$ac_prog | $Xsed -e "$sub_uncdrive"` | |
3410 | ;; | |
3411 | *) | |
3412 | test -z "$LD" && LD="$ac_prog" | |
3413 | ;; | |
3414 | esac | |
3415 | ;; | |
3416 | ## | |
3417 | ## FIXME: The code fails later on if we try to use an $LD with | |
3418 | ## '\\' path separators. | |
3419 | ## | |
3420 | [A-Za-z]:[\\]*) | |
3421 | # Canonicalize the path of ld | |
3422 | re_direlt='\\[^\\][^\\]*\\\.\.\(\\\)' | |
3423 | sub_uncdrive='s%^\([A-Za-z]\):\\%//\1/%' | |
3424 | sub_uncdir='s%\\%/%g' | |
3425 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3426 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%\1%"` | |
3427 | done | |
3428 | case "$host_os" in | |
3429 | cygwin*) | |
3430 | # Convert to a UNC path for cygwin | |
3431 | test -z "$LD" && LD=`echo X$ac_prog | sed -e 's%^X%%' -e "$sub_uncdrive" -e "$sub_uncdir"` | |
3432 | ;; | |
3433 | *) | |
3434 | test -z "$LD" && LD="$ac_prog" | |
3435 | ;; | |
3436 | esac | |
3437 | ;; | |
3438 | "") | |
3439 | # If it fails, then pretend we aren't using GCC. | |
3440 | ac_prog=ld | |
3441 | ;; | |
3442 | *) | |
3443 | # If it is relative, then search for the first ld in PATH. | |
3444 | with_gnu_ld=unknown | |
3445 | ;; | |
3446 | esac | |
3447 | elif test "$with_gnu_ld" = yes; then | |
3448 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | |
3449 | echo "configure:3450: checking for GNU ld" >&5 | |
3450 | else | |
3451 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | |
3452 | echo "configure:3453: checking for non-GNU ld" >&5 | |
3453 | fi | |
3454 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then | |
3455 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3456 | else | |
3457 | if test -z "$LD"; then | |
3458 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3459 | for ac_dir in $PATH; do | |
3460 | test -z "$ac_dir" && ac_dir=. | |
3461 | if test -f "$ac_dir/$ac_prog"; then | |
3462 | ac_cv_path_LD="$ac_dir/$ac_prog" | |
3463 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3464 | # but apparently some GNU ld's only accept -v. | |
3465 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3466 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
3467 | test "$with_gnu_ld" != no && break | |
3468 | else | |
3469 | test "$with_gnu_ld" != yes && break | |
3470 | fi | |
3471 | fi | |
3472 | done | |
3473 | IFS="$ac_save_ifs" | |
3474 | else | |
3475 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
3476 | fi | |
3477 | fi | |
3478 | ||
3479 | LD="$ac_cv_path_LD" | |
3480 | if test -n "$LD"; then | |
3481 | echo "$ac_t""$LD" 1>&6 | |
3482 | else | |
3483 | echo "$ac_t""no" 1>&6 | |
3484 | fi | |
3485 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | |
3486 | ||
3487 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 | |
3488 | echo "configure:3489: checking if the linker ($LD) is GNU ld" >&5 | |
3489 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then | |
3490 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3491 | else | |
3492 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3493 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
3494 | ac_cv_prog_gnu_ld=yes | |
3495 | else | |
3496 | ac_cv_prog_gnu_ld=no | |
3497 | fi | |
3498 | fi | |
3499 | ||
3500 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 | |
3501 | ||
3502 | ||
3503 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 | |
3504 | echo "configure:3505: checking for BSD-compatible nm" >&5 | |
3505 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then | |
3506 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3507 | else | |
3508 | if test -n "$NM"; then | |
3509 | # Let the user override the test. | |
3510 | ac_cv_path_NM="$NM" | |
3511 | else | |
3512 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3513 | for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do | |
3514 | test -z "$ac_dir" && ac_dir=. | |
3515 | if test -f $ac_dir/nm; then | |
3516 | # Check to see if the nm accepts a BSD-compat flag. | |
3517 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3518 | # nm: unknown option "B" ignored | |
3519 | if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
3520 | ac_cv_path_NM="$ac_dir/nm -B" | |
3521 | elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
3522 | ac_cv_path_NM="$ac_dir/nm -p" | |
3523 | else | |
3524 | ac_cv_path_NM="$ac_dir/nm" | |
3525 | fi | |
3526 | break | |
3527 | fi | |
3528 | done | |
3529 | IFS="$ac_save_ifs" | |
3530 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm | |
3531 | fi | |
3532 | fi | |
3533 | ||
3534 | NM="$ac_cv_path_NM" | |
3535 | echo "$ac_t""$NM" 1>&6 | |
3536 | ||
3537 | ||
3538 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
3539 | echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 | |
3540 | echo "configure:3541: checking command to parse $NM output" >&5 | |
3541 | if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then | |
3542 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3543 | else | |
3544 | # These are sane defaults that work on at least a few old systems. | |
3545 | # {They come from Ultrix. What could be older than Ultrix?!! ;)} | |
3546 | ||
3547 | # Character class describing NM global symbol codes. | |
3548 | ac_symcode='[BCDEGRSTU]' | |
3549 | ||
3550 | # Regexp to match symbols that can be accessed directly from C. | |
3551 | ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
3552 | ||
3553 | # Transform the above into a raw symbol and a C symbol. | |
3554 | ac_symxfrm='\1 \1' | |
3555 | ||
3556 | # Define system-specific variables. | |
3557 | case "$host_os" in | |
3558 | aix*) | |
3559 | ac_symcode='[BCDTU]' | |
3560 | ;; | |
3561 | sunos* | cygwin32* | mingw32*) | |
3562 | ac_sympat='_\([_A-Za-z][_A-Za-z0-9]*\)' | |
3563 | ac_symxfrm='_\1 \1' | |
3564 | ;; | |
3565 | irix*) | |
3566 | # Cannot use undefined symbols on IRIX because inlined functions mess us up. | |
3567 | ac_symcode='[BCDEGRST]' | |
3568 | ;; | |
3569 | solaris*) | |
3570 | ac_symcode='[BDTU]' | |
3571 | ;; | |
3572 | esac | |
3573 | ||
3574 | # If we're using GNU nm, then use its standard symbol codes. | |
3575 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then | |
3576 | ac_symcode='[ABCDGISTUW]' | |
3577 | fi | |
3578 | ||
3579 | case "$host_os" in | |
3580 | cygwin32* | mingw32*) | |
3581 | # We do not want undefined symbols on cygwin32. The user must | |
3582 | # arrange to define them via -l arguments. | |
3583 | ac_symcode='[ABCDGISTW]' | |
3584 | ;; | |
3585 | esac | |
3586 | ||
3587 | # Write the raw and C identifiers. | |
3588 | ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* $ac_symcode $ac_sympat$/$ac_symxfrm/p'" | |
3589 | ||
3590 | # Check to see that the pipe works correctly. | |
3591 | ac_pipe_works=no | |
3592 | cat > conftest.$ac_ext <<EOF | |
3593 | #ifdef __cplusplus | |
3594 | extern "C" { | |
3595 | #endif | |
3596 | char nm_test_var; | |
3597 | void nm_test_func(){} | |
3598 | #ifdef __cplusplus | |
3599 | } | |
3600 | #endif | |
3601 | int main(){nm_test_var='a';nm_test_func;return 0;} | |
3602 | EOF | |
3603 | if { (eval echo configure:3604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3604 | # Now try to grab the symbols. | |
3605 | ac_nlist=conftest.nm | |
3606 | if { (eval echo configure:3607: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then | |
3607 | ||
3608 | # Try sorting and uniquifying the output. | |
3609 | if sort "$ac_nlist" | uniq > "$ac_nlist"T; then | |
3610 | mv -f "$ac_nlist"T "$ac_nlist" | |
3611 | ac_wcout=`wc "$ac_nlist" 2>/dev/null` | |
3612 | ac_count=`echo "X$ac_wcout" | sed -e 's,^X,,' -e 's/^[ ]*\([0-9][0-9]*\).*$/\1/'` | |
3613 | (test "$ac_count" -ge 0) 2>/dev/null || ac_count=-1 | |
3614 | else | |
3615 | rm -f "$ac_nlist"T | |
3616 | ac_count=-1 | |
3617 | fi | |
3618 | ||
3619 | # Make sure that we snagged all the symbols we need. | |
3620 | if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then | |
3621 | if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then | |
3622 | cat <<EOF > conftest.c | |
3623 | #ifdef __cplusplus | |
3624 | extern "C" { | |
3625 | #endif | |
3626 | ||
3627 | EOF | |
3628 | # Now generate the symbol file. | |
3629 | sed 's/^.* \(.*\)$/extern char \1;/' < "$ac_nlist" >> conftest.c | |
3630 | ||
3631 | cat <<EOF >> conftest.c | |
3632 | #if defined (__STDC__) && __STDC__ | |
3633 | # define __ptr_t void * | |
3634 | #else | |
3635 | # define __ptr_t char * | |
3636 | #endif | |
3637 | ||
3638 | /* The number of symbols in dld_preloaded_symbols, -1 if unsorted. */ | |
3639 | int dld_preloaded_symbol_count = $ac_count; | |
3640 | ||
3641 | /* The mapping between symbol names and symbols. */ | |
3642 | struct { | |
3643 | char *name; | |
3644 | __ptr_t address; | |
3645 | } | |
3646 | dld_preloaded_symbols[] = | |
3647 | { | |
3648 | EOF | |
3649 | sed 's/^\(.*\) \(.*\)$/ {"\1", (__ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c | |
3650 | cat <<\EOF >> conftest.c | |
3651 | {0, (__ptr_t) 0} | |
3652 | }; | |
3653 | ||
3654 | #ifdef __cplusplus | |
3655 | } | |
3656 | #endif | |
3657 | EOF | |
3658 | # Now try linking the two files. | |
3659 | mv conftest.$ac_objext conftestm.$ac_objext | |
3660 | ac_save_LIBS="$LIBS" | |
3661 | ac_save_CFLAGS="$CFLAGS" | |
3662 | LIBS="conftestm.$ac_objext" | |
3663 | CFLAGS="$CFLAGS$no_builtin_flag" | |
3664 | if { (eval echo configure:3665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
3665 | ac_pipe_works=yes | |
3666 | else | |
3667 | echo "configure: failed program was:" >&5 | |
3668 | cat conftest.c >&5 | |
3669 | fi | |
3670 | LIBS="$ac_save_LIBS" | |
3671 | CFLAGS="$ac_save_CFLAGS" | |
3672 | else | |
3673 | echo "cannot find nm_test_func in $ac_nlist" >&5 | |
3674 | fi | |
3675 | else | |
3676 | echo "cannot find nm_test_var in $ac_nlist" >&5 | |
3677 | fi | |
3678 | else | |
3679 | echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5 | |
3680 | fi | |
3681 | else | |
3682 | echo "$progname: failed program was:" >&5 | |
3683 | cat conftest.c >&5 | |
3684 | fi | |
3685 | rm -rf conftest* | |
3686 | ||
3687 | # Do not use the global_symbol_pipe unless it works. | |
3688 | test "$ac_pipe_works" = yes || ac_cv_sys_global_symbol_pipe= | |
3689 | ||
3690 | fi | |
3691 | ||
3692 | ||
3693 | ac_result=yes | |
3694 | if test -z "$ac_cv_sys_global_symbol_pipe"; then | |
3695 | ac_result=no | |
3696 | fi | |
3697 | echo "$ac_t""$ac_result" 1>&6 | |
3698 | ||
3699 | echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6 | |
3700 | echo "configure:3701: checking for _ prefix in compiled symbols" >&5 | |
3701 | if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then | |
3702 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3703 | else | |
3704 | ac_cv_sys_symbol_underscore=no | |
3705 | cat > conftest.$ac_ext <<EOF | |
3706 | void nm_test_func(){} | |
3707 | int main(){nm_test_func;return 0;} | |
3708 | EOF | |
3709 | if { (eval echo configure:3710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3710 | # Now try to grab the symbols. | |
3711 | ac_nlist=conftest.nm | |
3712 | if { (eval echo configure:3713: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then | |
3713 | # See whether the symbols have a leading underscore. | |
3714 | if egrep '^_nm_test_func' "$ac_nlist" >/dev/null; then | |
3715 | ac_cv_sys_symbol_underscore=yes | |
3716 | else | |
3717 | if egrep '^nm_test_func ' "$ac_nlist" >/dev/null; then | |
3718 | : | |
3719 | else | |
3720 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | |
3721 | fi | |
3722 | fi | |
3723 | else | |
3724 | echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5 | |
3725 | fi | |
3726 | else | |
3727 | echo "configure: failed program was:" >&5 | |
3728 | cat conftest.c >&5 | |
3729 | fi | |
3730 | rm -rf conftest* | |
3731 | ||
3732 | fi | |
3733 | ||
3734 | echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6 | |
3735 | if test x$ac_cv_sys_symbol_underscore = xyes; then | |
3736 | cat >> confdefs.h <<\EOF | |
3737 | #define WITH_SYMBOL_UNDERSCORE 1 | |
3738 | EOF | |
3739 | ||
3740 | fi | |
3741 | ||
3742 | if test $host != $build; then | |
3743 | ac_tool_prefix=${host_alias}- | |
3744 | else | |
3745 | ac_tool_prefix= | |
3746 | fi | |
3747 | ||
3748 | # Always use our own libtool. | |
3749 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
3750 | ||
3751 | # Check for any special flags to pass to ltconfig. | |
3752 | libtool_flags= | |
3753 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
3754 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
3755 | test "$silent" = yes && libtool_flags="$libtool_flags --silent" | |
3756 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" | |
3757 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
3758 | ||
3759 | # Some flags need to be propagated to the compiler or linker for good | |
3760 | # libtool support. | |
3761 | case "$host" in | |
3762 | *-*-irix6*) | |
3763 | # Find out which ABI we are using. | |
3764 | echo '#line 3765 "configure"' > conftest.$ac_ext | |
3765 | if { (eval echo configure:3766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3766 | case "`/usr/bin/file conftest.o`" in | |
3767 | *32-bit*) | |
3768 | LD="${LD-ld} -32" | |
3769 | ;; | |
3770 | *N32*) | |
3771 | LD="${LD-ld} -n32" | |
3772 | ;; | |
3773 | *64-bit*) | |
3774 | LD="${LD-ld} -64" | |
3775 | ;; | |
3776 | esac | |
3777 | fi | |
3778 | rm -rf conftest* | |
3779 | ;; | |
3780 | ||
3781 | *-*-sco3.2v5*) | |
3782 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
3783 | SAVE_CFLAGS="$CFLAGS" | |
3784 | CFLAGS="$CFLAGS -belf" | |
3785 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 | |
3786 | echo "configure:3787: checking whether the C compiler needs -belf" >&5 | |
3787 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then | |
3788 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3789 | else | |
3790 | cat > conftest.$ac_ext <<EOF | |
3791 | #line 3792 "configure" | |
3792 | #include "confdefs.h" | |
3793 | ||
3794 | int main() { | |
3795 | ||
3796 | ; return 0; } | |
3797 | EOF | |
3798 | if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3799 | rm -rf conftest* | |
3800 | lt_cv_cc_needs_belf=yes | |
3801 | else | |
3802 | echo "configure: failed program was:" >&5 | |
3803 | cat conftest.$ac_ext >&5 | |
3804 | rm -rf conftest* | |
3805 | lt_cv_cc_needs_belf=no | |
3806 | fi | |
3807 | rm -f conftest* | |
3808 | fi | |
3809 | ||
3810 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | |
3811 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
3812 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
3813 | CFLAGS="$SAVE_CFLAGS" | |
3814 | fi | |
3815 | ;; | |
3816 | ||
3817 | *-*-cygwin32*) | |
3818 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
3819 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
3820 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3821 | echo "configure:3822: checking for $ac_word" >&5 | |
3822 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then | |
3823 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3824 | else | |
3825 | if test -n "$DLLTOOL"; then | |
3826 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
3827 | else | |
3828 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3829 | ac_dummy="$PATH" | |
3830 | for ac_dir in $ac_dummy; do | |
3831 | test -z "$ac_dir" && ac_dir=. | |
3832 | if test -f $ac_dir/$ac_word; then | |
3833 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
3834 | break | |
3835 | fi | |
3836 | done | |
3837 | IFS="$ac_save_ifs" | |
3838 | fi | |
3839 | fi | |
3840 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
3841 | if test -n "$DLLTOOL"; then | |
3842 | echo "$ac_t""$DLLTOOL" 1>&6 | |
3843 | else | |
3844 | echo "$ac_t""no" 1>&6 | |
3845 | fi | |
3846 | ||
3847 | ||
3848 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
3849 | if test -n "$ac_tool_prefix"; then | |
3850 | # Extract the first word of "dlltool", so it can be a program name with args. | |
3851 | set dummy dlltool; ac_word=$2 | |
3852 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3853 | echo "configure:3854: checking for $ac_word" >&5 | |
3854 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then | |
3855 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3856 | else | |
3857 | if test -n "$DLLTOOL"; then | |
3858 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
3859 | else | |
3860 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3861 | ac_dummy="$PATH" | |
3862 | for ac_dir in $ac_dummy; do | |
3863 | test -z "$ac_dir" && ac_dir=. | |
3864 | if test -f $ac_dir/$ac_word; then | |
3865 | ac_cv_prog_DLLTOOL="dlltool" | |
3866 | break | |
3867 | fi | |
3868 | done | |
3869 | IFS="$ac_save_ifs" | |
3870 | test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false" | |
3871 | fi | |
3872 | fi | |
3873 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
3874 | if test -n "$DLLTOOL"; then | |
3875 | echo "$ac_t""$DLLTOOL" 1>&6 | |
3876 | else | |
3877 | echo "$ac_t""no" 1>&6 | |
3878 | fi | |
3879 | ||
3880 | else | |
3881 | DLLTOOL="false" | |
3882 | fi | |
3883 | fi | |
3884 | ||
3885 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
3886 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
3887 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3888 | echo "configure:3889: checking for $ac_word" >&5 | |
3889 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then | |
3890 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3891 | else | |
3892 | if test -n "$AS"; then | |
3893 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
3894 | else | |
3895 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3896 | ac_dummy="$PATH" | |
3897 | for ac_dir in $ac_dummy; do | |
3898 | test -z "$ac_dir" && ac_dir=. | |
3899 | if test -f $ac_dir/$ac_word; then | |
3900 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
3901 | break | |
3902 | fi | |
3903 | done | |
3904 | IFS="$ac_save_ifs" | |
3905 | fi | |
3906 | fi | |
3907 | AS="$ac_cv_prog_AS" | |
3908 | if test -n "$AS"; then | |
3909 | echo "$ac_t""$AS" 1>&6 | |
3910 | else | |
3911 | echo "$ac_t""no" 1>&6 | |
3912 | fi | |
3913 | ||
3914 | ||
3915 | if test -z "$ac_cv_prog_AS"; then | |
3916 | if test -n "$ac_tool_prefix"; then | |
3917 | # Extract the first word of "as", so it can be a program name with args. | |
3918 | set dummy as; ac_word=$2 | |
3919 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3920 | echo "configure:3921: checking for $ac_word" >&5 | |
3921 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then | |
3922 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3923 | else | |
3924 | if test -n "$AS"; then | |
3925 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
3926 | else | |
3927 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3928 | ac_dummy="$PATH" | |
3929 | for ac_dir in $ac_dummy; do | |
3930 | test -z "$ac_dir" && ac_dir=. | |
3931 | if test -f $ac_dir/$ac_word; then | |
3932 | ac_cv_prog_AS="as" | |
3933 | break | |
3934 | fi | |
3935 | done | |
3936 | IFS="$ac_save_ifs" | |
3937 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false" | |
3938 | fi | |
3939 | fi | |
3940 | AS="$ac_cv_prog_AS" | |
3941 | if test -n "$AS"; then | |
3942 | echo "$ac_t""$AS" 1>&6 | |
3943 | else | |
3944 | echo "$ac_t""no" 1>&6 | |
3945 | fi | |
3946 | ||
3947 | else | |
3948 | AS="false" | |
3949 | fi | |
3950 | fi | |
3951 | ||
3952 | ||
3953 | ;; | |
3954 | ||
3955 | esac | |
3956 | ||
3957 | # enable the --disable-libtool-lock switch | |
3958 | ||
3959 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
3960 | if test "${enable_libtool_lock+set}" = set; then | |
3961 | enableval="$enable_libtool_lock" | |
3962 | need_locks=$enableval | |
3963 | else | |
3964 | need_locks=yes | |
3965 | fi | |
3966 | ||
3967 | ||
3968 | if test x"$need_locks" = xno; then | |
3969 | libtool_flags="$libtool_flags --disable-lock" | |
3970 | fi | |
3971 | ||
3972 | ||
3973 | # Actually configure libtool. ac_aux_dir is where install-sh is found. | |
3974 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
3975 | LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \ | |
3976 | DLLTOOL="$DLLTOOL" AS="$AS" \ | |
3977 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | |
3978 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ | |
3979 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } | |
3980 | ||
3981 | # Redirect the config.log output again, so that the ltconfig log is not | |
3982 | # clobbered by the next message. | |
3983 | exec 5>>./config.log | |
3984 | ||
3985 | ||
3986 | ||
3987 | SEARCH_INCLUDE="\ | |
3988 | /usr/Motif-1.2/include \ | |
3989 | /usr/Motif-2.1/include \ | |
3990 | \ | |
3991 | /usr/include/Motif1.2 \ | |
3992 | /opt/xpm/include/X11 \ | |
3993 | \ | |
3994 | /usr/Motif1.2/include \ | |
3995 | /usr/dt/include \ | |
3996 | /usr/include/Xm \ | |
3997 | \ | |
3998 | /usr/X11R6/include \ | |
3999 | /usr/X11R5/include \ | |
4000 | /usr/X11R4/include \ | |
4001 | \ | |
4002 | /usr/X11R6/lib \ | |
4003 | /usr/X11R5/lib \ | |
4004 | /usr/X11R4/lib \ | |
4005 | \ | |
4006 | /usr/include/X11R6 \ | |
4007 | /usr/include/X11R5 \ | |
4008 | /usr/include/X11R4 \ | |
4009 | \ | |
4010 | /usr/local/X11R6/include \ | |
4011 | /usr/local/X11R5/include \ | |
4012 | /usr/local/X11R4/include \ | |
4013 | \ | |
4014 | /usr/local/include/X11R6 \ | |
4015 | /usr/local/include/X11R5 \ | |
4016 | /usr/local/include/X11R4 \ | |
4017 | \ | |
4018 | /usr/X11/include \ | |
4019 | /usr/include/X11 \ | |
4020 | /usr/local/X11/include \ | |
4021 | /usr/local/include/X11 \ | |
4022 | \ | |
4023 | /usr/X386/include \ | |
4024 | /usr/x386/include \ | |
4025 | /usr/XFree86/include/X11 \ | |
4026 | \ | |
4027 | /usr/include \ | |
4028 | /usr/include/gtk \ | |
4029 | /usr/include/gdk \ | |
4030 | /usr/include/glib \ | |
4031 | /usr/local/include \ | |
4032 | /usr/unsupported/include \ | |
4033 | /usr/athena/include \ | |
4034 | /usr/local/x11r5/include \ | |
4035 | /usr/lpp/Xamples/include \ | |
4036 | \ | |
4037 | /usr/local/include/gtk \ | |
4038 | /usr/local/include/qt \ | |
4039 | /usr/include/qt \ | |
4040 | \ | |
4041 | /usr/openwin/include \ | |
4042 | /usr/openwin/share/include \ | |
4043 | " | |
4044 | ||
4045 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
4046 | ||
4047 | ||
4048 | cat > confcache <<\EOF | |
4049 | # This file is a shell script that caches the results of configure | |
4050 | # tests run on this system so they can be shared between configure | |
4051 | # scripts and configure runs. It is not useful on other systems. | |
4052 | # If it contains results you don't want to keep, you may remove or edit it. | |
4053 | # | |
4054 | # By default, configure uses ./config.cache as the cache file, | |
4055 | # creating it if it does not exist already. You can give configure | |
4056 | # the --cache-file=FILE option to use a different cache file; that is | |
4057 | # what configure does when it calls configure scripts in | |
4058 | # subdirectories, so they share the cache. | |
4059 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
4060 | # config.status only pays attention to the cache file if you give it the | |
4061 | # --recheck option to rerun configure. | |
4062 | # | |
4063 | EOF | |
4064 | # The following way of writing the cache mishandles newlines in values, | |
4065 | # but we know of no workaround that is simple, portable, and efficient. | |
4066 | # So, don't put newlines in cache variables' values. | |
4067 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4068 | # and sets the high bit in the cache file unless we assign to the vars. | |
4069 | (set) 2>&1 | | |
4070 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4071 | *ac_space=\ *) | |
4072 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
4073 | # turns \\\\ into \\, and sed turns \\ into \). | |
4074 | sed -n \ | |
4075 | -e "s/'/'\\\\''/g" \ | |
4076 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
4077 | ;; | |
4078 | *) | |
4079 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4080 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
4081 | ;; | |
4082 | esac >> confcache | |
4083 | if cmp -s $cache_file confcache; then | |
4084 | : | |
4085 | else | |
4086 | if test -w $cache_file; then | |
4087 | echo "updating cache $cache_file" | |
4088 | cat confcache > $cache_file | |
4089 | else | |
4090 | echo "not updating unwritable cache $cache_file" | |
4091 | fi | |
4092 | fi | |
4093 | rm -f confcache | |
4094 | ||
4095 | ||
4096 | # If we find X, set shell vars x_includes and x_libraries to the | |
4097 | # paths, otherwise set no_x=yes. | |
4098 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
4099 | # --without-x overrides everything else, but does not touch the cache. | |
4100 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
4101 | echo "configure:4102: checking for X" >&5 | |
4102 | ||
4103 | # Check whether --with-x or --without-x was given. | |
4104 | if test "${with_x+set}" = set; then | |
4105 | withval="$with_x" | |
4106 | : | |
4107 | fi | |
4108 | ||
4109 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
4110 | if test "x$with_x" = xno; then | |
4111 | # The user explicitly disabled X. | |
4112 | have_x=disabled | |
4113 | else | |
4114 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
4115 | # Both variables are already set. | |
4116 | have_x=yes | |
4117 | else | |
4118 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
4119 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4120 | else | |
4121 | # One or both of the vars are not set, and there is no cached value. | |
4122 | ac_x_includes=NO ac_x_libraries=NO | |
4123 | rm -fr conftestdir | |
4124 | if mkdir conftestdir; then | |
4125 | cd conftestdir | |
4126 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
4127 | cat > Imakefile <<'EOF' | |
4128 | acfindx: | |
4129 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
4130 | EOF | |
4131 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
4132 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
4133 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
4134 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
4135 | for ac_extension in a so sl; do | |
4136 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
4137 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
4138 | ac_im_usrlibdir=$ac_im_libdir; break | |
4139 | fi | |
4140 | done | |
4141 | # Screen out bogus values from the imake configuration. They are | |
4142 | # bogus both because they are the default anyway, and because | |
4143 | # using them would break gcc on systems where it needs fixed includes. | |
4144 | case "$ac_im_incroot" in | |
4145 | /usr/include) ;; | |
4146 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
4147 | esac | |
4148 | case "$ac_im_usrlibdir" in | |
4149 | /usr/lib | /lib) ;; | |
4150 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
4151 | esac | |
4152 | fi | |
4153 | cd .. | |
4154 | rm -fr conftestdir | |
4155 | fi | |
4156 | ||
4157 | if test "$ac_x_includes" = NO; then | |
4158 | # Guess where to find include files, by looking for this one X11 .h file. | |
4159 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
4160 | ||
4161 | # First, try using that file with no special directory specified. | |
4162 | cat > conftest.$ac_ext <<EOF | |
4163 | #line 4164 "configure" | |
4164 | #include "confdefs.h" | |
4165 | #include <$x_direct_test_include> | |
4166 | EOF | |
4167 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4168 | { (eval echo configure:4169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
4169 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
4170 | if test -z "$ac_err"; then | |
4171 | rm -rf conftest* | |
4172 | # We can compile using X headers with no special include directory. | |
4173 | ac_x_includes= | |
4174 | else | |
4175 | echo "$ac_err" >&5 | |
4176 | echo "configure: failed program was:" >&5 | |
4177 | cat conftest.$ac_ext >&5 | |
4178 | rm -rf conftest* | |
4179 | # Look for the header file in a standard set of common directories. | |
4180 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
4181 | for ac_dir in \ | |
4182 | /usr/X11/include \ | |
4183 | /usr/X11R6/include \ | |
4184 | /usr/X11R5/include \ | |
4185 | /usr/X11R4/include \ | |
4186 | \ | |
4187 | /usr/include/X11 \ | |
4188 | /usr/include/X11R6 \ | |
4189 | /usr/include/X11R5 \ | |
4190 | /usr/include/X11R4 \ | |
4191 | \ | |
4192 | /usr/local/X11/include \ | |
4193 | /usr/local/X11R6/include \ | |
4194 | /usr/local/X11R5/include \ | |
4195 | /usr/local/X11R4/include \ | |
4196 | \ | |
4197 | /usr/local/include/X11 \ | |
4198 | /usr/local/include/X11R6 \ | |
4199 | /usr/local/include/X11R5 \ | |
4200 | /usr/local/include/X11R4 \ | |
4201 | \ | |
4202 | /usr/X386/include \ | |
4203 | /usr/x386/include \ | |
4204 | /usr/XFree86/include/X11 \ | |
4205 | \ | |
4206 | /usr/include \ | |
4207 | /usr/local/include \ | |
4208 | /usr/unsupported/include \ | |
4209 | /usr/athena/include \ | |
4210 | /usr/local/x11r5/include \ | |
4211 | /usr/lpp/Xamples/include \ | |
4212 | \ | |
4213 | /usr/openwin/include \ | |
4214 | /usr/openwin/share/include \ | |
4215 | ; \ | |
4216 | do | |
4217 | if test -r "$ac_dir/$x_direct_test_include"; then | |
4218 | ac_x_includes=$ac_dir | |
4219 | break | |
4220 | fi | |
4221 | done | |
4222 | fi | |
4223 | rm -f conftest* | |
4224 | fi # $ac_x_includes = NO | |
4225 | ||
4226 | if test "$ac_x_libraries" = NO; then | |
4227 | # Check for the libraries. | |
4228 | ||
4229 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
4230 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
4231 | ||
4232 | # See if we find them without any special options. | |
4233 | # Don't add to $LIBS permanently. | |
4234 | ac_save_LIBS="$LIBS" | |
4235 | LIBS="-l$x_direct_test_library $LIBS" | |
4236 | cat > conftest.$ac_ext <<EOF | |
4237 | #line 4238 "configure" | |
4238 | #include "confdefs.h" | |
4239 | ||
4240 | int main() { | |
4241 | ${x_direct_test_function}() | |
4242 | ; return 0; } | |
4243 | EOF | |
4244 | if { (eval echo configure:4245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4245 | rm -rf conftest* | |
4246 | LIBS="$ac_save_LIBS" | |
4247 | # We can link X programs with no special library path. | |
4248 | ac_x_libraries= | |
4249 | else | |
4250 | echo "configure: failed program was:" >&5 | |
4251 | cat conftest.$ac_ext >&5 | |
4252 | rm -rf conftest* | |
4253 | LIBS="$ac_save_LIBS" | |
4254 | # First see if replacing the include by lib works. | |
4255 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
4256 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
4257 | /usr/X11/lib \ | |
4258 | /usr/X11R6/lib \ | |
4259 | /usr/X11R5/lib \ | |
4260 | /usr/X11R4/lib \ | |
4261 | \ | |
4262 | /usr/lib/X11 \ | |
4263 | /usr/lib/X11R6 \ | |
4264 | /usr/lib/X11R5 \ | |
4265 | /usr/lib/X11R4 \ | |
4266 | \ | |
4267 | /usr/local/X11/lib \ | |
4268 | /usr/local/X11R6/lib \ | |
4269 | /usr/local/X11R5/lib \ | |
4270 | /usr/local/X11R4/lib \ | |
4271 | \ | |
4272 | /usr/local/lib/X11 \ | |
4273 | /usr/local/lib/X11R6 \ | |
4274 | /usr/local/lib/X11R5 \ | |
4275 | /usr/local/lib/X11R4 \ | |
4276 | \ | |
4277 | /usr/X386/lib \ | |
4278 | /usr/x386/lib \ | |
4279 | /usr/XFree86/lib/X11 \ | |
4280 | \ | |
4281 | /usr/lib \ | |
4282 | /usr/local/lib \ | |
4283 | /usr/unsupported/lib \ | |
4284 | /usr/athena/lib \ | |
4285 | /usr/local/x11r5/lib \ | |
4286 | /usr/lpp/Xamples/lib \ | |
4287 | /lib/usr/lib/X11 \ | |
4288 | \ | |
4289 | /usr/openwin/lib \ | |
4290 | /usr/openwin/share/lib \ | |
4291 | ; \ | |
4292 | do | |
4293 | for ac_extension in a so sl; do | |
4294 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
4295 | ac_x_libraries=$ac_dir | |
4296 | break 2 | |
4297 | fi | |
4298 | done | |
4299 | done | |
4300 | fi | |
4301 | rm -f conftest* | |
4302 | fi # $ac_x_libraries = NO | |
4303 | ||
4304 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
4305 | # Didn't find X anywhere. Cache the known absence of X. | |
4306 | ac_cv_have_x="have_x=no" | |
4307 | else | |
4308 | # Record where we found X for the cache. | |
4309 | ac_cv_have_x="have_x=yes \ | |
4310 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
4311 | fi | |
4312 | fi | |
4313 | fi | |
4314 | eval "$ac_cv_have_x" | |
4315 | fi # $with_x != no | |
4316 | ||
4317 | if test "$have_x" != yes; then | |
4318 | echo "$ac_t""$have_x" 1>&6 | |
4319 | no_x=yes | |
4320 | else | |
4321 | # If each of the values was on the command line, it overrides each guess. | |
4322 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
4323 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
4324 | # Update the cache value to reflect the command line values. | |
4325 | ac_cv_have_x="have_x=yes \ | |
4326 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
4327 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
4328 | fi | |
4329 | ||
4330 | if test "$no_x" = yes; then | |
4331 | # Not all programs may use this symbol, but it does not hurt to define it. | |
4332 | cat >> confdefs.h <<\EOF | |
4333 | #define X_DISPLAY_MISSING 1 | |
4334 | EOF | |
4335 | ||
4336 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
4337 | else | |
4338 | if test -n "$x_includes"; then | |
4339 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
4340 | fi | |
4341 | ||
4342 | # It would also be nice to do this for all -L options, not just this one. | |
4343 | if test -n "$x_libraries"; then | |
4344 | X_LIBS="$X_LIBS -L$x_libraries" | |
4345 | # For Solaris; some versions of Sun CC require a space after -R and | |
4346 | # others require no space. Words are not sufficient . . . . | |
4347 | case "`(uname -sr) 2>/dev/null`" in | |
4348 | "SunOS 5"*) | |
4349 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
4350 | echo "configure:4351: checking whether -R must be followed by a space" >&5 | |
4351 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | |
4352 | cat > conftest.$ac_ext <<EOF | |
4353 | #line 4354 "configure" | |
4354 | #include "confdefs.h" | |
4355 | ||
4356 | int main() { | |
4357 | ||
4358 | ; return 0; } | |
4359 | EOF | |
4360 | if { (eval echo configure:4361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4361 | rm -rf conftest* | |
4362 | ac_R_nospace=yes | |
4363 | else | |
4364 | echo "configure: failed program was:" >&5 | |
4365 | cat conftest.$ac_ext >&5 | |
4366 | rm -rf conftest* | |
4367 | ac_R_nospace=no | |
4368 | fi | |
4369 | rm -f conftest* | |
4370 | if test $ac_R_nospace = yes; then | |
4371 | echo "$ac_t""no" 1>&6 | |
4372 | X_LIBS="$X_LIBS -R$x_libraries" | |
4373 | else | |
4374 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
4375 | cat > conftest.$ac_ext <<EOF | |
4376 | #line 4377 "configure" | |
4377 | #include "confdefs.h" | |
4378 | ||
4379 | int main() { | |
4380 | ||
4381 | ; return 0; } | |
4382 | EOF | |
4383 | if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4384 | rm -rf conftest* | |
4385 | ac_R_space=yes | |
4386 | else | |
4387 | echo "configure: failed program was:" >&5 | |
4388 | cat conftest.$ac_ext >&5 | |
4389 | rm -rf conftest* | |
4390 | ac_R_space=no | |
4391 | fi | |
4392 | rm -f conftest* | |
4393 | if test $ac_R_space = yes; then | |
4394 | echo "$ac_t""yes" 1>&6 | |
4395 | X_LIBS="$X_LIBS -R $x_libraries" | |
4396 | else | |
4397 | echo "$ac_t""neither works" 1>&6 | |
4398 | fi | |
4399 | fi | |
4400 | LIBS="$ac_xsave_LIBS" | |
4401 | esac | |
4402 | fi | |
4403 | ||
4404 | # Check for system-dependent libraries X programs must link with. | |
4405 | # Do this before checking for the system-independent R6 libraries | |
4406 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
4407 | ||
4408 | if test "$ISC" = yes; then | |
4409 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
4410 | else | |
4411 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
4412 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
4413 | # the Alpha needs dnet_stub (dnet does not exist). | |
4414 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
4415 | echo "configure:4416: checking for dnet_ntoa in -ldnet" >&5 | |
4416 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
4417 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4418 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4419 | else | |
4420 | ac_save_LIBS="$LIBS" | |
4421 | LIBS="-ldnet $LIBS" | |
4422 | cat > conftest.$ac_ext <<EOF | |
4423 | #line 4424 "configure" | |
4424 | #include "confdefs.h" | |
4425 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4426 | /* We use char because int might match the return type of a gcc2 | |
4427 | builtin and then its argument prototype would still apply. */ | |
4428 | char dnet_ntoa(); | |
4429 | ||
4430 | int main() { | |
4431 | dnet_ntoa() | |
4432 | ; return 0; } | |
4433 | EOF | |
4434 | if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4435 | rm -rf conftest* | |
4436 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4437 | else | |
4438 | echo "configure: failed program was:" >&5 | |
4439 | cat conftest.$ac_ext >&5 | |
4440 | rm -rf conftest* | |
4441 | eval "ac_cv_lib_$ac_lib_var=no" | |
4442 | fi | |
4443 | rm -f conftest* | |
4444 | LIBS="$ac_save_LIBS" | |
4445 | ||
4446 | fi | |
4447 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4448 | echo "$ac_t""yes" 1>&6 | |
4449 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
4450 | else | |
4451 | echo "$ac_t""no" 1>&6 | |
4452 | fi | |
4453 | ||
4454 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
4455 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
4456 | echo "configure:4457: checking for dnet_ntoa in -ldnet_stub" >&5 | |
4457 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
4458 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4459 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4460 | else | |
4461 | ac_save_LIBS="$LIBS" | |
4462 | LIBS="-ldnet_stub $LIBS" | |
4463 | cat > conftest.$ac_ext <<EOF | |
4464 | #line 4465 "configure" | |
4465 | #include "confdefs.h" | |
4466 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4467 | /* We use char because int might match the return type of a gcc2 | |
4468 | builtin and then its argument prototype would still apply. */ | |
4469 | char dnet_ntoa(); | |
4470 | ||
4471 | int main() { | |
4472 | dnet_ntoa() | |
4473 | ; return 0; } | |
4474 | EOF | |
4475 | if { (eval echo configure:4476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4476 | rm -rf conftest* | |
4477 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4478 | else | |
4479 | echo "configure: failed program was:" >&5 | |
4480 | cat conftest.$ac_ext >&5 | |
4481 | rm -rf conftest* | |
4482 | eval "ac_cv_lib_$ac_lib_var=no" | |
4483 | fi | |
4484 | rm -f conftest* | |
4485 | LIBS="$ac_save_LIBS" | |
4486 | ||
4487 | fi | |
4488 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4489 | echo "$ac_t""yes" 1>&6 | |
4490 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
4491 | else | |
4492 | echo "$ac_t""no" 1>&6 | |
4493 | fi | |
4494 | ||
4495 | fi | |
4496 | ||
4497 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
4498 | # to get the SysV transport functions. | |
4499 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
4500 | # needs -lnsl. | |
4501 | # The nsl library prevents programs from opening the X display | |
4502 | # on Irix 5.2, according to dickey@clark.net. | |
4503 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
4504 | echo "configure:4505: checking for gethostbyname" >&5 | |
4505 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then | |
4506 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4507 | else | |
4508 | cat > conftest.$ac_ext <<EOF | |
4509 | #line 4510 "configure" | |
4510 | #include "confdefs.h" | |
4511 | /* System header to define __stub macros and hopefully few prototypes, | |
4512 | which can conflict with char gethostbyname(); below. */ | |
4513 | #include <assert.h> | |
4514 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4515 | /* We use char because int might match the return type of a gcc2 | |
4516 | builtin and then its argument prototype would still apply. */ | |
4517 | char gethostbyname(); | |
4518 | ||
4519 | int main() { | |
4520 | ||
4521 | /* The GNU C library defines this for functions which it implements | |
4522 | to always fail with ENOSYS. Some functions are actually named | |
4523 | something starting with __ and the normal name is an alias. */ | |
4524 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
4525 | choke me | |
4526 | #else | |
4527 | gethostbyname(); | |
4528 | #endif | |
4529 | ||
4530 | ; return 0; } | |
4531 | EOF | |
4532 | if { (eval echo configure:4533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4533 | rm -rf conftest* | |
4534 | eval "ac_cv_func_gethostbyname=yes" | |
4535 | else | |
4536 | echo "configure: failed program was:" >&5 | |
4537 | cat conftest.$ac_ext >&5 | |
4538 | rm -rf conftest* | |
4539 | eval "ac_cv_func_gethostbyname=no" | |
4540 | fi | |
4541 | rm -f conftest* | |
4542 | fi | |
4543 | ||
4544 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
4545 | echo "$ac_t""yes" 1>&6 | |
4546 | : | |
4547 | else | |
4548 | echo "$ac_t""no" 1>&6 | |
4549 | fi | |
4550 | ||
4551 | if test $ac_cv_func_gethostbyname = no; then | |
4552 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
4553 | echo "configure:4554: checking for gethostbyname in -lnsl" >&5 | |
4554 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | |
4555 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4556 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4557 | else | |
4558 | ac_save_LIBS="$LIBS" | |
4559 | LIBS="-lnsl $LIBS" | |
4560 | cat > conftest.$ac_ext <<EOF | |
4561 | #line 4562 "configure" | |
4562 | #include "confdefs.h" | |
4563 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4564 | /* We use char because int might match the return type of a gcc2 | |
4565 | builtin and then its argument prototype would still apply. */ | |
4566 | char gethostbyname(); | |
4567 | ||
4568 | int main() { | |
4569 | gethostbyname() | |
4570 | ; return 0; } | |
4571 | EOF | |
4572 | if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4573 | rm -rf conftest* | |
4574 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4575 | else | |
4576 | echo "configure: failed program was:" >&5 | |
4577 | cat conftest.$ac_ext >&5 | |
4578 | rm -rf conftest* | |
4579 | eval "ac_cv_lib_$ac_lib_var=no" | |
4580 | fi | |
4581 | rm -f conftest* | |
4582 | LIBS="$ac_save_LIBS" | |
4583 | ||
4584 | fi | |
4585 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4586 | echo "$ac_t""yes" 1>&6 | |
4587 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
4588 | else | |
4589 | echo "$ac_t""no" 1>&6 | |
4590 | fi | |
4591 | ||
4592 | fi | |
4593 | ||
4594 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
4595 | # socket/setsockopt and other routines are undefined under SCO ODT | |
4596 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
4597 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
4598 | # gethostby* variants that don't use the nameserver (or something). | |
4599 | # -lsocket must be given before -lnsl if both are needed. | |
4600 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
4601 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
4602 | echo "configure:4603: checking for connect" >&5 | |
4603 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then | |
4604 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4605 | else | |
4606 | cat > conftest.$ac_ext <<EOF | |
4607 | #line 4608 "configure" | |
4608 | #include "confdefs.h" | |
4609 | /* System header to define __stub macros and hopefully few prototypes, | |
4610 | which can conflict with char connect(); below. */ | |
4611 | #include <assert.h> | |
4612 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4613 | /* We use char because int might match the return type of a gcc2 | |
4614 | builtin and then its argument prototype would still apply. */ | |
4615 | char connect(); | |
4616 | ||
4617 | int main() { | |
4618 | ||
4619 | /* The GNU C library defines this for functions which it implements | |
4620 | to always fail with ENOSYS. Some functions are actually named | |
4621 | something starting with __ and the normal name is an alias. */ | |
4622 | #if defined (__stub_connect) || defined (__stub___connect) | |
4623 | choke me | |
4624 | #else | |
4625 | connect(); | |
4626 | #endif | |
4627 | ||
4628 | ; return 0; } | |
4629 | EOF | |
4630 | if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4631 | rm -rf conftest* | |
4632 | eval "ac_cv_func_connect=yes" | |
4633 | else | |
4634 | echo "configure: failed program was:" >&5 | |
4635 | cat conftest.$ac_ext >&5 | |
4636 | rm -rf conftest* | |
4637 | eval "ac_cv_func_connect=no" | |
4638 | fi | |
4639 | rm -f conftest* | |
4640 | fi | |
4641 | ||
4642 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
4643 | echo "$ac_t""yes" 1>&6 | |
4644 | : | |
4645 | else | |
4646 | echo "$ac_t""no" 1>&6 | |
4647 | fi | |
4648 | ||
4649 | if test $ac_cv_func_connect = no; then | |
4650 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
4651 | echo "configure:4652: checking for connect in -lsocket" >&5 | |
4652 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | |
4653 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4654 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4655 | else | |
4656 | ac_save_LIBS="$LIBS" | |
4657 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
4658 | cat > conftest.$ac_ext <<EOF | |
4659 | #line 4660 "configure" | |
4660 | #include "confdefs.h" | |
4661 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4662 | /* We use char because int might match the return type of a gcc2 | |
4663 | builtin and then its argument prototype would still apply. */ | |
4664 | char connect(); | |
4665 | ||
4666 | int main() { | |
4667 | connect() | |
4668 | ; return 0; } | |
4669 | EOF | |
4670 | if { (eval echo configure:4671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4671 | rm -rf conftest* | |
4672 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4673 | else | |
4674 | echo "configure: failed program was:" >&5 | |
4675 | cat conftest.$ac_ext >&5 | |
4676 | rm -rf conftest* | |
4677 | eval "ac_cv_lib_$ac_lib_var=no" | |
4678 | fi | |
4679 | rm -f conftest* | |
4680 | LIBS="$ac_save_LIBS" | |
4681 | ||
4682 | fi | |
4683 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4684 | echo "$ac_t""yes" 1>&6 | |
4685 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
4686 | else | |
4687 | echo "$ac_t""no" 1>&6 | |
4688 | fi | |
4689 | ||
4690 | fi | |
4691 | ||
4692 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
4693 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
4694 | echo "configure:4695: checking for remove" >&5 | |
4695 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then | |
4696 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4697 | else | |
4698 | cat > conftest.$ac_ext <<EOF | |
4699 | #line 4700 "configure" | |
4700 | #include "confdefs.h" | |
4701 | /* System header to define __stub macros and hopefully few prototypes, | |
4702 | which can conflict with char remove(); below. */ | |
4703 | #include <assert.h> | |
4704 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4705 | /* We use char because int might match the return type of a gcc2 | |
4706 | builtin and then its argument prototype would still apply. */ | |
4707 | char remove(); | |
4708 | ||
4709 | int main() { | |
4710 | ||
4711 | /* The GNU C library defines this for functions which it implements | |
4712 | to always fail with ENOSYS. Some functions are actually named | |
4713 | something starting with __ and the normal name is an alias. */ | |
4714 | #if defined (__stub_remove) || defined (__stub___remove) | |
4715 | choke me | |
4716 | #else | |
4717 | remove(); | |
4718 | #endif | |
4719 | ||
4720 | ; return 0; } | |
4721 | EOF | |
4722 | if { (eval echo configure:4723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4723 | rm -rf conftest* | |
4724 | eval "ac_cv_func_remove=yes" | |
4725 | else | |
4726 | echo "configure: failed program was:" >&5 | |
4727 | cat conftest.$ac_ext >&5 | |
4728 | rm -rf conftest* | |
4729 | eval "ac_cv_func_remove=no" | |
4730 | fi | |
4731 | rm -f conftest* | |
4732 | fi | |
4733 | ||
4734 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
4735 | echo "$ac_t""yes" 1>&6 | |
4736 | : | |
4737 | else | |
4738 | echo "$ac_t""no" 1>&6 | |
4739 | fi | |
4740 | ||
4741 | if test $ac_cv_func_remove = no; then | |
4742 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
4743 | echo "configure:4744: checking for remove in -lposix" >&5 | |
4744 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | |
4745 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4746 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4747 | else | |
4748 | ac_save_LIBS="$LIBS" | |
4749 | LIBS="-lposix $LIBS" | |
4750 | cat > conftest.$ac_ext <<EOF | |
4751 | #line 4752 "configure" | |
4752 | #include "confdefs.h" | |
4753 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4754 | /* We use char because int might match the return type of a gcc2 | |
4755 | builtin and then its argument prototype would still apply. */ | |
4756 | char remove(); | |
4757 | ||
4758 | int main() { | |
4759 | remove() | |
4760 | ; return 0; } | |
4761 | EOF | |
4762 | if { (eval echo configure:4763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4763 | rm -rf conftest* | |
4764 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4765 | else | |
4766 | echo "configure: failed program was:" >&5 | |
4767 | cat conftest.$ac_ext >&5 | |
4768 | rm -rf conftest* | |
4769 | eval "ac_cv_lib_$ac_lib_var=no" | |
4770 | fi | |
4771 | rm -f conftest* | |
4772 | LIBS="$ac_save_LIBS" | |
4773 | ||
4774 | fi | |
4775 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4776 | echo "$ac_t""yes" 1>&6 | |
4777 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
4778 | else | |
4779 | echo "$ac_t""no" 1>&6 | |
4780 | fi | |
4781 | ||
4782 | fi | |
4783 | ||
4784 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
4785 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
4786 | echo "configure:4787: checking for shmat" >&5 | |
4787 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then | |
4788 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4789 | else | |
4790 | cat > conftest.$ac_ext <<EOF | |
4791 | #line 4792 "configure" | |
4792 | #include "confdefs.h" | |
4793 | /* System header to define __stub macros and hopefully few prototypes, | |
4794 | which can conflict with char shmat(); below. */ | |
4795 | #include <assert.h> | |
4796 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4797 | /* We use char because int might match the return type of a gcc2 | |
4798 | builtin and then its argument prototype would still apply. */ | |
4799 | char shmat(); | |
4800 | ||
4801 | int main() { | |
4802 | ||
4803 | /* The GNU C library defines this for functions which it implements | |
4804 | to always fail with ENOSYS. Some functions are actually named | |
4805 | something starting with __ and the normal name is an alias. */ | |
4806 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
4807 | choke me | |
4808 | #else | |
4809 | shmat(); | |
4810 | #endif | |
4811 | ||
4812 | ; return 0; } | |
4813 | EOF | |
4814 | if { (eval echo configure:4815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4815 | rm -rf conftest* | |
4816 | eval "ac_cv_func_shmat=yes" | |
4817 | else | |
4818 | echo "configure: failed program was:" >&5 | |
4819 | cat conftest.$ac_ext >&5 | |
4820 | rm -rf conftest* | |
4821 | eval "ac_cv_func_shmat=no" | |
4822 | fi | |
4823 | rm -f conftest* | |
4824 | fi | |
4825 | ||
4826 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
4827 | echo "$ac_t""yes" 1>&6 | |
4828 | : | |
4829 | else | |
4830 | echo "$ac_t""no" 1>&6 | |
4831 | fi | |
4832 | ||
4833 | if test $ac_cv_func_shmat = no; then | |
4834 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
4835 | echo "configure:4836: checking for shmat in -lipc" >&5 | |
4836 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | |
4837 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4838 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4839 | else | |
4840 | ac_save_LIBS="$LIBS" | |
4841 | LIBS="-lipc $LIBS" | |
4842 | cat > conftest.$ac_ext <<EOF | |
4843 | #line 4844 "configure" | |
4844 | #include "confdefs.h" | |
4845 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4846 | /* We use char because int might match the return type of a gcc2 | |
4847 | builtin and then its argument prototype would still apply. */ | |
4848 | char shmat(); | |
4849 | ||
4850 | int main() { | |
4851 | shmat() | |
4852 | ; return 0; } | |
4853 | EOF | |
4854 | if { (eval echo configure:4855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4855 | rm -rf conftest* | |
4856 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4857 | else | |
4858 | echo "configure: failed program was:" >&5 | |
4859 | cat conftest.$ac_ext >&5 | |
4860 | rm -rf conftest* | |
4861 | eval "ac_cv_lib_$ac_lib_var=no" | |
4862 | fi | |
4863 | rm -f conftest* | |
4864 | LIBS="$ac_save_LIBS" | |
4865 | ||
4866 | fi | |
4867 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4868 | echo "$ac_t""yes" 1>&6 | |
4869 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
4870 | else | |
4871 | echo "$ac_t""no" 1>&6 | |
4872 | fi | |
4873 | ||
4874 | fi | |
4875 | fi | |
4876 | ||
4877 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
4878 | ac_save_LDFLAGS="$LDFLAGS" | |
4879 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
4880 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
4881 | # check for ICE first), but we must link in the order -lSM -lICE or | |
4882 | # we get undefined symbols. So assume we have SM if we have ICE. | |
4883 | # These have to be linked with before -lX11, unlike the other | |
4884 | # libraries we check for below, so use a different variable. | |
4885 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
4886 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
4887 | echo "configure:4888: checking for IceConnectionNumber in -lICE" >&5 | |
4888 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | |
4889 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4890 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4891 | else | |
4892 | ac_save_LIBS="$LIBS" | |
4893 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
4894 | cat > conftest.$ac_ext <<EOF | |
4895 | #line 4896 "configure" | |
4896 | #include "confdefs.h" | |
4897 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4898 | /* We use char because int might match the return type of a gcc2 | |
4899 | builtin and then its argument prototype would still apply. */ | |
4900 | char IceConnectionNumber(); | |
4901 | ||
4902 | int main() { | |
4903 | IceConnectionNumber() | |
4904 | ; return 0; } | |
4905 | EOF | |
4906 | if { (eval echo configure:4907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4907 | rm -rf conftest* | |
4908 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4909 | else | |
4910 | echo "configure: failed program was:" >&5 | |
4911 | cat conftest.$ac_ext >&5 | |
4912 | rm -rf conftest* | |
4913 | eval "ac_cv_lib_$ac_lib_var=no" | |
4914 | fi | |
4915 | rm -f conftest* | |
4916 | LIBS="$ac_save_LIBS" | |
4917 | ||
4918 | fi | |
4919 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4920 | echo "$ac_t""yes" 1>&6 | |
4921 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
4922 | else | |
4923 | echo "$ac_t""no" 1>&6 | |
4924 | fi | |
4925 | ||
4926 | LDFLAGS="$ac_save_LDFLAGS" | |
4927 | ||
4928 | fi | |
4929 | ||
4930 | ||
4931 | if test "$no_x" = "yes"; then | |
4932 | { echo "configure: error: X11 libraries not found" 1>&2; exit 1; } | |
4933 | fi | |
4934 | ||
4935 | CHECK_INCLUDE="-I/usr/include $X_CFLAGS" | |
4936 | CHECK_LIB="-L/lib -L/usr/lib $X_LIBS" | |
4937 | ||
4938 | ||
4939 | TOOLKIT= | |
4940 | TOOLKIT_DEF= | |
4941 | TOOLKIT_DIR= | |
4942 | TOOLKIT_INCLUDE= | |
4943 | ||
4944 | GUI_TK_LIBRARY= | |
4945 | GUI_TK_LINK= | |
4946 | ||
4947 | WXGTK12= | |
4948 | ||
4949 | if test "$wxUSE_GTK" = 1; then | |
4950 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
4951 | if test "${with_gtk_prefix+set}" = set; then | |
4952 | withval="$with_gtk_prefix" | |
4953 | gtk_config_prefix="$withval" | |
4954 | else | |
4955 | gtk_config_prefix="" | |
4956 | fi | |
4957 | ||
4958 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
4959 | if test "${with_gtk_exec_prefix+set}" = set; then | |
4960 | withval="$with_gtk_exec_prefix" | |
4961 | gtk_config_exec_prefix="$withval" | |
4962 | else | |
4963 | gtk_config_exec_prefix="" | |
4964 | fi | |
4965 | ||
4966 | ||
4967 | if test x$gtk_config_exec_prefix != x ; then | |
4968 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
4969 | if test x${GTK_CONFIG+set} != xset ; then | |
4970 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
4971 | fi | |
4972 | fi | |
4973 | if test x$gtk_config_prefix != x ; then | |
4974 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
4975 | if test x${GTK_CONFIG+set} != xset ; then | |
4976 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
4977 | fi | |
4978 | fi | |
4979 | ||
4980 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
4981 | set dummy gtk-config; ac_word=$2 | |
4982 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4983 | echo "configure:4984: checking for $ac_word" >&5 | |
4984 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
4985 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4986 | else | |
4987 | case "$GTK_CONFIG" in | |
4988 | /*) | |
4989 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
4990 | ;; | |
4991 | ?:/*) | |
4992 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
4993 | ;; | |
4994 | *) | |
4995 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4996 | ac_dummy="$PATH" | |
4997 | for ac_dir in $ac_dummy; do | |
4998 | test -z "$ac_dir" && ac_dir=. | |
4999 | if test -f $ac_dir/$ac_word; then | |
5000 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
5001 | break | |
5002 | fi | |
5003 | done | |
5004 | IFS="$ac_save_ifs" | |
5005 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
5006 | ;; | |
5007 | esac | |
5008 | fi | |
5009 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
5010 | if test -n "$GTK_CONFIG"; then | |
5011 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
5012 | else | |
5013 | echo "$ac_t""no" 1>&6 | |
5014 | fi | |
5015 | ||
5016 | min_gtk_version=1.2.0 | |
5017 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
5018 | echo "configure:5019: checking for GTK - version >= $min_gtk_version" >&5 | |
5019 | no_gtk="" | |
5020 | if test "$GTK_CONFIG" != "no" ; then | |
5021 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
5022 | GTK_LIBS=`$GTK_CONFIG --libs` | |
5023 | ac_save_CFLAGS="$CFLAGS" | |
5024 | ac_save_LIBS="$LIBS" | |
5025 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
5026 | LIBS="$LIBS $GTK_LIBS" | |
5027 | if test "$cross_compiling" = yes; then | |
5028 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
5029 | else | |
5030 | cat > conftest.$ac_ext <<EOF | |
5031 | #line 5032 "configure" | |
5032 | #include "confdefs.h" | |
5033 | ||
5034 | #include <gtk/gtk.h> | |
5035 | #include <stdio.h> | |
5036 | ||
5037 | int | |
5038 | main () | |
5039 | { | |
5040 | int major, minor, micro; | |
5041 | ||
5042 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
5043 | printf("%s, bad version string\n", "$min_gtk_version"); | |
5044 | exit(1); | |
5045 | } | |
5046 | ||
5047 | if (gtk_minor_version == 1) return FALSE; | |
5048 | ||
5049 | return !((gtk_major_version > major) || | |
5050 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
5051 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
5052 | } | |
5053 | ||
5054 | EOF | |
5055 | if { (eval echo configure:5056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
5056 | then | |
5057 | : | |
5058 | else | |
5059 | echo "configure: failed program was:" >&5 | |
5060 | cat conftest.$ac_ext >&5 | |
5061 | rm -fr conftest* | |
5062 | no_gtk=yes | |
5063 | fi | |
5064 | rm -fr conftest* | |
5065 | fi | |
5066 | ||
5067 | CFLAGS="$ac_save_CFLAGS" | |
5068 | LIBS="$ac_save_LIBS" | |
5069 | else | |
5070 | no_gtk=yes | |
5071 | fi | |
5072 | if test "x$no_gtk" = x ; then | |
5073 | echo "$ac_t""yes" 1>&6 | |
5074 | WXGTK12=1 | |
5075 | else | |
5076 | echo "$ac_t""no" 1>&6 | |
5077 | GTK_CFLAGS="" | |
5078 | GTK_LIBS="" | |
5079 | : | |
5080 | fi | |
5081 | ||
5082 | ||
5083 | ||
5084 | if test "$WXGTK12" != 1; then | |
5085 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
5086 | if test "${with_gtk_prefix+set}" = set; then | |
5087 | withval="$with_gtk_prefix" | |
5088 | gtk_config_prefix="$withval" | |
5089 | else | |
5090 | gtk_config_prefix="" | |
5091 | fi | |
5092 | ||
5093 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
5094 | if test "${with_gtk_exec_prefix+set}" = set; then | |
5095 | withval="$with_gtk_exec_prefix" | |
5096 | gtk_config_exec_prefix="$withval" | |
5097 | else | |
5098 | gtk_config_exec_prefix="" | |
5099 | fi | |
5100 | ||
5101 | ||
5102 | if test x$gtk_config_exec_prefix != x ; then | |
5103 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
5104 | if test x${GTK_CONFIG+set} != xset ; then | |
5105 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
5106 | fi | |
5107 | fi | |
5108 | if test x$gtk_config_prefix != x ; then | |
5109 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
5110 | if test x${GTK_CONFIG+set} != xset ; then | |
5111 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
5112 | fi | |
5113 | fi | |
5114 | ||
5115 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
5116 | set dummy gtk-config; ac_word=$2 | |
5117 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5118 | echo "configure:5119: checking for $ac_word" >&5 | |
5119 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
5120 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5121 | else | |
5122 | case "$GTK_CONFIG" in | |
5123 | /*) | |
5124 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
5125 | ;; | |
5126 | ?:/*) | |
5127 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
5128 | ;; | |
5129 | *) | |
5130 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5131 | ac_dummy="$PATH" | |
5132 | for ac_dir in $ac_dummy; do | |
5133 | test -z "$ac_dir" && ac_dir=. | |
5134 | if test -f $ac_dir/$ac_word; then | |
5135 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
5136 | break | |
5137 | fi | |
5138 | done | |
5139 | IFS="$ac_save_ifs" | |
5140 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
5141 | ;; | |
5142 | esac | |
5143 | fi | |
5144 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
5145 | if test -n "$GTK_CONFIG"; then | |
5146 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
5147 | else | |
5148 | echo "$ac_t""no" 1>&6 | |
5149 | fi | |
5150 | ||
5151 | min_gtk_version=1.0.0 | |
5152 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
5153 | echo "configure:5154: checking for GTK - version >= $min_gtk_version" >&5 | |
5154 | no_gtk="" | |
5155 | if test "$GTK_CONFIG" != "no" ; then | |
5156 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
5157 | GTK_LIBS=`$GTK_CONFIG --libs` | |
5158 | ac_save_CFLAGS="$CFLAGS" | |
5159 | ac_save_LIBS="$LIBS" | |
5160 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
5161 | LIBS="$LIBS $GTK_LIBS" | |
5162 | if test "$cross_compiling" = yes; then | |
5163 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
5164 | else | |
5165 | cat > conftest.$ac_ext <<EOF | |
5166 | #line 5167 "configure" | |
5167 | #include "confdefs.h" | |
5168 | ||
5169 | #include <gtk/gtk.h> | |
5170 | #include <stdio.h> | |
5171 | ||
5172 | int | |
5173 | main () | |
5174 | { | |
5175 | int major, minor, micro; | |
5176 | ||
5177 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
5178 | printf("%s, bad version string\n", "$min_gtk_version"); | |
5179 | exit(1); | |
5180 | } | |
5181 | ||
5182 | if (gtk_minor_version == 1) return FALSE; | |
5183 | ||
5184 | return !((gtk_major_version > major) || | |
5185 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
5186 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
5187 | } | |
5188 | ||
5189 | EOF | |
5190 | if { (eval echo configure:5191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
5191 | then | |
5192 | : | |
5193 | else | |
5194 | echo "configure: failed program was:" >&5 | |
5195 | cat conftest.$ac_ext >&5 | |
5196 | rm -fr conftest* | |
5197 | no_gtk=yes | |
5198 | fi | |
5199 | rm -fr conftest* | |
5200 | fi | |
5201 | ||
5202 | CFLAGS="$ac_save_CFLAGS" | |
5203 | LIBS="$ac_save_LIBS" | |
5204 | else | |
5205 | no_gtk=yes | |
5206 | fi | |
5207 | if test "x$no_gtk" = x ; then | |
5208 | echo "$ac_t""yes" 1>&6 | |
5209 | : | |
5210 | else | |
5211 | echo "$ac_t""no" 1>&6 | |
5212 | GTK_CFLAGS="" | |
5213 | GTK_LIBS="" | |
5214 | { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.X or 1.0.X?" 1>&2; exit 1; } | |
5215 | fi | |
5216 | ||
5217 | ||
5218 | ||
5219 | fi | |
5220 | ||
5221 | TOOLKIT_INCLUDE="$GTK_CFLAGS" | |
5222 | GUI_TK_LIBRARY="$GTK_LIBS" | |
5223 | ||
5224 | TOOLKIT=GTK | |
5225 | LTLIBOBJS="$LTLIBOBJS image.lo utilsgtk.lo win_gtk.lo" | |
5226 | fi | |
5227 | ||
5228 | if test "$wxUSE_MOTIF" = 1; then | |
5229 | echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6 | |
5230 | echo "configure:5231: checking for Motif/Lesstif includes" >&5 | |
5231 | ||
5232 | ac_find_includes= | |
5233 | for ac_dir in $SEARCH_INCLUDE; | |
5234 | do | |
5235 | if test -f "$ac_dir/Xm/Xm.h"; then | |
5236 | ac_find_includes=$ac_dir | |
5237 | break | |
5238 | fi | |
5239 | done | |
5240 | ||
5241 | if test "$ac_find_includes" != "" ; then | |
5242 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
5243 | else | |
5244 | echo "$ac_t""no" 1>&6 | |
5245 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
5246 | fi | |
5247 | ||
5248 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
5249 | echo "configure:5250: checking for Motif/Lesstif library" >&5 | |
5250 | ||
5251 | ac_find_libraries= | |
5252 | for ac_dir in $SEARCH_LIB; | |
5253 | do | |
5254 | for ac_extension in a so sl; do | |
5255 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
5256 | ac_find_libraries=$ac_dir | |
5257 | break 2 | |
5258 | fi | |
5259 | done | |
5260 | done | |
5261 | ||
5262 | if test "$ac_find_libraries" != "" ; then | |
5263 | ||
5264 | ac_path_to_include=$ac_find_includes | |
5265 | echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
5266 | result=$? | |
5267 | if test $result = 0; then | |
5268 | ac_path_to_include="" | |
5269 | else | |
5270 | ac_path_to_include="-I$ac_find_includes" | |
5271 | fi | |
5272 | ||
5273 | ||
5274 | echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null | |
5275 | result=$? | |
5276 | if test $result = 0; then | |
5277 | ac_path_to_link="" | |
5278 | else | |
5279 | ac_path_to_link="-L$ac_find_libraries" | |
5280 | fi | |
5281 | ||
5282 | ||
5283 | CHECK_LINK="$CHECK_LIB $ac_path_to_link" | |
5284 | CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include" | |
5285 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
5286 | else | |
5287 | echo "$ac_t""no" 1>&6 | |
5288 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
5289 | fi | |
5290 | ||
5291 | echo $ac_n "checking for Xt library""... $ac_c" 1>&6 | |
5292 | echo "configure:5293: checking for Xt library" >&5 | |
5293 | ||
5294 | ac_find_libraries= | |
5295 | for ac_dir in $SEARCH_LIB; | |
5296 | do | |
5297 | for ac_extension in a so sl; do | |
5298 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
5299 | ac_find_libraries=$ac_dir | |
5300 | break 2 | |
5301 | fi | |
5302 | done | |
5303 | done | |
5304 | ||
5305 | if test "$ac_find_libraries" != "" ; then | |
5306 | ||
5307 | echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null | |
5308 | result=$? | |
5309 | if test $result = 0; then | |
5310 | ac_path_to_link="" | |
5311 | else | |
5312 | ac_path_to_link="-L$ac_find_libraries" | |
5313 | fi | |
5314 | ||
5315 | CHECK_LINK="$CHECK_LIB $ac_path_to_link" | |
5316 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
5317 | else | |
5318 | echo "$ac_t""no" 1>&6 | |
5319 | { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; } | |
5320 | fi | |
5321 | ||
5322 | XPM_LINK="" | |
5323 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
5324 | echo "configure:5325: checking for Xpm library" >&5 | |
5325 | ||
5326 | ac_find_libraries= | |
5327 | for ac_dir in $SEARCH_LIB; | |
5328 | do | |
5329 | for ac_extension in a so sl; do | |
5330 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
5331 | ac_find_libraries=$ac_dir | |
5332 | break 2 | |
5333 | fi | |
5334 | done | |
5335 | done | |
5336 | ||
5337 | if test "$ac_find_libraries" != "" ; then | |
5338 | ||
5339 | echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null | |
5340 | result=$? | |
5341 | if test $result = 0; then | |
5342 | ac_path_to_link="" | |
5343 | else | |
5344 | ac_path_to_link="-L$ac_find_libraries" | |
5345 | fi | |
5346 | ||
5347 | CHECK_LINK="$CHECK_LIB $ac_path_to_link" | |
5348 | XPM_LINK="-lXpm " | |
5349 | cat >> confdefs.h <<\EOF | |
5350 | #define wxHAVE_LIB_XPM 1 | |
5351 | EOF | |
5352 | ||
5353 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
5354 | else | |
5355 | echo "$ac_t""no" 1>&6 | |
5356 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
5357 | fi | |
5358 | ||
5359 | GUI_TK_LINK="-lXm $(XPM_LINK)-lXmu -lXt -lX11 -lm" | |
5360 | GUI_TK_LIBRARY="$CHECK_LIB $GUI_TK_LINK" | |
5361 | TOOLKIT=MOTIF | |
5362 | fi | |
5363 | ||
5364 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"` | |
5365 | ||
5366 | TOOLKIT_DEF=-D__WX${TOOLKIT}__ | |
5367 | ||
5368 | WX_LIBRARY=${TOOLKIT_DIR}2 | |
5369 | ||
5370 | ||
5371 | for ac_hdr in strings.h | |
5372 | do | |
5373 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
5374 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5375 | echo "configure:5376: checking for $ac_hdr" >&5 | |
5376 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
5377 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5378 | else | |
5379 | cat > conftest.$ac_ext <<EOF | |
5380 | #line 5381 "configure" | |
5381 | #include "confdefs.h" | |
5382 | #include <$ac_hdr> | |
5383 | EOF | |
5384 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5385 | { (eval echo configure:5386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
5386 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
5387 | if test -z "$ac_err"; then | |
5388 | rm -rf conftest* | |
5389 | eval "ac_cv_header_$ac_safe=yes" | |
5390 | else | |
5391 | echo "$ac_err" >&5 | |
5392 | echo "configure: failed program was:" >&5 | |
5393 | cat conftest.$ac_ext >&5 | |
5394 | rm -rf conftest* | |
5395 | eval "ac_cv_header_$ac_safe=no" | |
5396 | fi | |
5397 | rm -f conftest* | |
5398 | fi | |
5399 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5400 | echo "$ac_t""yes" 1>&6 | |
5401 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
5402 | cat >> confdefs.h <<EOF | |
5403 | #define $ac_tr_hdr 1 | |
5404 | EOF | |
5405 | ||
5406 | else | |
5407 | echo "$ac_t""no" 1>&6 | |
5408 | fi | |
5409 | done | |
5410 | ||
5411 | for ac_hdr in unistd.h | |
5412 | do | |
5413 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
5414 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5415 | echo "configure:5416: checking for $ac_hdr" >&5 | |
5416 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
5417 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5418 | else | |
5419 | cat > conftest.$ac_ext <<EOF | |
5420 | #line 5421 "configure" | |
5421 | #include "confdefs.h" | |
5422 | #include <$ac_hdr> | |
5423 | EOF | |
5424 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5425 | { (eval echo configure:5426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
5426 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
5427 | if test -z "$ac_err"; then | |
5428 | rm -rf conftest* | |
5429 | eval "ac_cv_header_$ac_safe=yes" | |
5430 | else | |
5431 | echo "$ac_err" >&5 | |
5432 | echo "configure: failed program was:" >&5 | |
5433 | cat conftest.$ac_ext >&5 | |
5434 | rm -rf conftest* | |
5435 | eval "ac_cv_header_$ac_safe=no" | |
5436 | fi | |
5437 | rm -f conftest* | |
5438 | fi | |
5439 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5440 | echo "$ac_t""yes" 1>&6 | |
5441 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
5442 | cat >> confdefs.h <<EOF | |
5443 | #define $ac_tr_hdr 1 | |
5444 | EOF | |
5445 | ||
5446 | else | |
5447 | echo "$ac_t""no" 1>&6 | |
5448 | fi | |
5449 | done | |
5450 | ||
5451 | for ac_hdr in wchar.h | |
5452 | do | |
5453 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
5454 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5455 | echo "configure:5456: checking for $ac_hdr" >&5 | |
5456 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
5457 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5458 | else | |
5459 | cat > conftest.$ac_ext <<EOF | |
5460 | #line 5461 "configure" | |
5461 | #include "confdefs.h" | |
5462 | #include <$ac_hdr> | |
5463 | EOF | |
5464 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5465 | { (eval echo configure:5466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
5466 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
5467 | if test -z "$ac_err"; then | |
5468 | rm -rf conftest* | |
5469 | eval "ac_cv_header_$ac_safe=yes" | |
5470 | else | |
5471 | echo "$ac_err" >&5 | |
5472 | echo "configure: failed program was:" >&5 | |
5473 | cat conftest.$ac_ext >&5 | |
5474 | rm -rf conftest* | |
5475 | eval "ac_cv_header_$ac_safe=no" | |
5476 | fi | |
5477 | rm -f conftest* | |
5478 | fi | |
5479 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5480 | echo "$ac_t""yes" 1>&6 | |
5481 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
5482 | cat >> confdefs.h <<EOF | |
5483 | #define $ac_tr_hdr 1 | |
5484 | EOF | |
5485 | ||
5486 | else | |
5487 | echo "$ac_t""no" 1>&6 | |
5488 | fi | |
5489 | done | |
5490 | ||
5491 | for ac_hdr in wcstr.h | |
5492 | do | |
5493 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
5494 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5495 | echo "configure:5496: checking for $ac_hdr" >&5 | |
5496 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
5497 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5498 | else | |
5499 | cat > conftest.$ac_ext <<EOF | |
5500 | #line 5501 "configure" | |
5501 | #include "confdefs.h" | |
5502 | #include <$ac_hdr> | |
5503 | EOF | |
5504 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5505 | { (eval echo configure:5506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
5506 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
5507 | if test -z "$ac_err"; then | |
5508 | rm -rf conftest* | |
5509 | eval "ac_cv_header_$ac_safe=yes" | |
5510 | else | |
5511 | echo "$ac_err" >&5 | |
5512 | echo "configure: failed program was:" >&5 | |
5513 | cat conftest.$ac_ext >&5 | |
5514 | rm -rf conftest* | |
5515 | eval "ac_cv_header_$ac_safe=no" | |
5516 | fi | |
5517 | rm -f conftest* | |
5518 | fi | |
5519 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5520 | echo "$ac_t""yes" 1>&6 | |
5521 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
5522 | cat >> confdefs.h <<EOF | |
5523 | #define $ac_tr_hdr 1 | |
5524 | EOF | |
5525 | ||
5526 | else | |
5527 | echo "$ac_t""no" 1>&6 | |
5528 | fi | |
5529 | done | |
5530 | ||
5531 | for ac_hdr in fnmatch.h | |
5532 | do | |
5533 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
5534 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5535 | echo "configure:5536: checking for $ac_hdr" >&5 | |
5536 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
5537 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5538 | else | |
5539 | cat > conftest.$ac_ext <<EOF | |
5540 | #line 5541 "configure" | |
5541 | #include "confdefs.h" | |
5542 | #include <$ac_hdr> | |
5543 | EOF | |
5544 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5545 | { (eval echo configure:5546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
5546 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
5547 | if test -z "$ac_err"; then | |
5548 | rm -rf conftest* | |
5549 | eval "ac_cv_header_$ac_safe=yes" | |
5550 | else | |
5551 | echo "$ac_err" >&5 | |
5552 | echo "configure: failed program was:" >&5 | |
5553 | cat conftest.$ac_ext >&5 | |
5554 | rm -rf conftest* | |
5555 | eval "ac_cv_header_$ac_safe=no" | |
5556 | fi | |
5557 | rm -f conftest* | |
5558 | fi | |
5559 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5560 | echo "$ac_t""yes" 1>&6 | |
5561 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
5562 | cat >> confdefs.h <<EOF | |
5563 | #define $ac_tr_hdr 1 | |
5564 | EOF | |
5565 | ||
5566 | else | |
5567 | echo "$ac_t""no" 1>&6 | |
5568 | fi | |
5569 | done | |
5570 | ||
5571 | ||
5572 | ||
5573 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
5574 | echo "configure:5575: checking for ANSI C header files" >&5 | |
5575 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | |
5576 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5577 | else | |
5578 | cat > conftest.$ac_ext <<EOF | |
5579 | #line 5580 "configure" | |
5580 | #include "confdefs.h" | |
5581 | #include <stdlib.h> | |
5582 | #include <stdarg.h> | |
5583 | #include <string.h> | |
5584 | #include <float.h> | |
5585 | EOF | |
5586 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5587 | { (eval echo configure:5588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
5588 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
5589 | if test -z "$ac_err"; then | |
5590 | rm -rf conftest* | |
5591 | ac_cv_header_stdc=yes | |
5592 | else | |
5593 | echo "$ac_err" >&5 | |
5594 | echo "configure: failed program was:" >&5 | |
5595 | cat conftest.$ac_ext >&5 | |
5596 | rm -rf conftest* | |
5597 | ac_cv_header_stdc=no | |
5598 | fi | |
5599 | rm -f conftest* | |
5600 | ||
5601 | if test $ac_cv_header_stdc = yes; then | |
5602 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5603 | cat > conftest.$ac_ext <<EOF | |
5604 | #line 5605 "configure" | |
5605 | #include "confdefs.h" | |
5606 | #include <string.h> | |
5607 | EOF | |
5608 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5609 | egrep "memchr" >/dev/null 2>&1; then | |
5610 | : | |
5611 | else | |
5612 | rm -rf conftest* | |
5613 | ac_cv_header_stdc=no | |
5614 | fi | |
5615 | rm -f conftest* | |
5616 | ||
5617 | fi | |
5618 | ||
5619 | if test $ac_cv_header_stdc = yes; then | |
5620 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5621 | cat > conftest.$ac_ext <<EOF | |
5622 | #line 5623 "configure" | |
5623 | #include "confdefs.h" | |
5624 | #include <stdlib.h> | |
5625 | EOF | |
5626 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5627 | egrep "free" >/dev/null 2>&1; then | |
5628 | : | |
5629 | else | |
5630 | rm -rf conftest* | |
5631 | ac_cv_header_stdc=no | |
5632 | fi | |
5633 | rm -f conftest* | |
5634 | ||
5635 | fi | |
5636 | ||
5637 | if test $ac_cv_header_stdc = yes; then | |
5638 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5639 | if test "$cross_compiling" = yes; then | |
5640 | : | |
5641 | else | |
5642 | cat > conftest.$ac_ext <<EOF | |
5643 | #line 5644 "configure" | |
5644 | #include "confdefs.h" | |
5645 | #include <ctype.h> | |
5646 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5647 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5648 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5649 | int main () { int i; for (i = 0; i < 256; i++) | |
5650 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
5651 | exit (0); } | |
5652 | ||
5653 | EOF | |
5654 | if { (eval echo configure:5655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
5655 | then | |
5656 | : | |
5657 | else | |
5658 | echo "configure: failed program was:" >&5 | |
5659 | cat conftest.$ac_ext >&5 | |
5660 | rm -fr conftest* | |
5661 | ac_cv_header_stdc=no | |
5662 | fi | |
5663 | rm -fr conftest* | |
5664 | fi | |
5665 | ||
5666 | fi | |
5667 | fi | |
5668 | ||
5669 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
5670 | if test $ac_cv_header_stdc = yes; then | |
5671 | cat >> confdefs.h <<\EOF | |
5672 | #define STDC_HEADERS 1 | |
5673 | EOF | |
5674 | ||
5675 | fi | |
5676 | ||
5677 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
5678 | echo "configure:5679: checking for mode_t" >&5 | |
5679 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then | |
5680 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5681 | else | |
5682 | cat > conftest.$ac_ext <<EOF | |
5683 | #line 5684 "configure" | |
5684 | #include "confdefs.h" | |
5685 | #include <sys/types.h> | |
5686 | #if STDC_HEADERS | |
5687 | #include <stdlib.h> | |
5688 | #include <stddef.h> | |
5689 | #endif | |
5690 | EOF | |
5691 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5692 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
5693 | rm -rf conftest* | |
5694 | ac_cv_type_mode_t=yes | |
5695 | else | |
5696 | rm -rf conftest* | |
5697 | ac_cv_type_mode_t=no | |
5698 | fi | |
5699 | rm -f conftest* | |
5700 | ||
5701 | fi | |
5702 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
5703 | if test $ac_cv_type_mode_t = no; then | |
5704 | cat >> confdefs.h <<\EOF | |
5705 | #define mode_t int | |
5706 | EOF | |
5707 | ||
5708 | fi | |
5709 | ||
5710 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
5711 | echo "configure:5712: checking for off_t" >&5 | |
5712 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then | |
5713 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5714 | else | |
5715 | cat > conftest.$ac_ext <<EOF | |
5716 | #line 5717 "configure" | |
5717 | #include "confdefs.h" | |
5718 | #include <sys/types.h> | |
5719 | #if STDC_HEADERS | |
5720 | #include <stdlib.h> | |
5721 | #include <stddef.h> | |
5722 | #endif | |
5723 | EOF | |
5724 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5725 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
5726 | rm -rf conftest* | |
5727 | ac_cv_type_off_t=yes | |
5728 | else | |
5729 | rm -rf conftest* | |
5730 | ac_cv_type_off_t=no | |
5731 | fi | |
5732 | rm -f conftest* | |
5733 | ||
5734 | fi | |
5735 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
5736 | if test $ac_cv_type_off_t = no; then | |
5737 | cat >> confdefs.h <<\EOF | |
5738 | #define off_t long | |
5739 | EOF | |
5740 | ||
5741 | fi | |
5742 | ||
5743 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
5744 | echo "configure:5745: checking for pid_t" >&5 | |
5745 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | |
5746 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5747 | else | |
5748 | cat > conftest.$ac_ext <<EOF | |
5749 | #line 5750 "configure" | |
5750 | #include "confdefs.h" | |
5751 | #include <sys/types.h> | |
5752 | #if STDC_HEADERS | |
5753 | #include <stdlib.h> | |
5754 | #include <stddef.h> | |
5755 | #endif | |
5756 | EOF | |
5757 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5758 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
5759 | rm -rf conftest* | |
5760 | ac_cv_type_pid_t=yes | |
5761 | else | |
5762 | rm -rf conftest* | |
5763 | ac_cv_type_pid_t=no | |
5764 | fi | |
5765 | rm -f conftest* | |
5766 | ||
5767 | fi | |
5768 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
5769 | if test $ac_cv_type_pid_t = no; then | |
5770 | cat >> confdefs.h <<\EOF | |
5771 | #define pid_t int | |
5772 | EOF | |
5773 | ||
5774 | fi | |
5775 | ||
5776 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
5777 | echo "configure:5778: checking for size_t" >&5 | |
5778 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | |
5779 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5780 | else | |
5781 | cat > conftest.$ac_ext <<EOF | |
5782 | #line 5783 "configure" | |
5783 | #include "confdefs.h" | |
5784 | #include <sys/types.h> | |
5785 | #if STDC_HEADERS | |
5786 | #include <stdlib.h> | |
5787 | #include <stddef.h> | |
5788 | #endif | |
5789 | EOF | |
5790 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5791 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
5792 | rm -rf conftest* | |
5793 | ac_cv_type_size_t=yes | |
5794 | else | |
5795 | rm -rf conftest* | |
5796 | ac_cv_type_size_t=no | |
5797 | fi | |
5798 | rm -f conftest* | |
5799 | ||
5800 | fi | |
5801 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
5802 | if test $ac_cv_type_size_t = no; then | |
5803 | cat >> confdefs.h <<\EOF | |
5804 | #define size_t unsigned | |
5805 | EOF | |
5806 | ||
5807 | fi | |
5808 | ||
5809 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
5810 | echo "configure:5811: checking for uid_t in sys/types.h" >&5 | |
5811 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then | |
5812 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5813 | else | |
5814 | cat > conftest.$ac_ext <<EOF | |
5815 | #line 5816 "configure" | |
5816 | #include "confdefs.h" | |
5817 | #include <sys/types.h> | |
5818 | EOF | |
5819 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5820 | egrep "uid_t" >/dev/null 2>&1; then | |
5821 | rm -rf conftest* | |
5822 | ac_cv_type_uid_t=yes | |
5823 | else | |
5824 | rm -rf conftest* | |
5825 | ac_cv_type_uid_t=no | |
5826 | fi | |
5827 | rm -f conftest* | |
5828 | ||
5829 | fi | |
5830 | ||
5831 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
5832 | if test $ac_cv_type_uid_t = no; then | |
5833 | cat >> confdefs.h <<\EOF | |
5834 | #define uid_t int | |
5835 | EOF | |
5836 | ||
5837 | cat >> confdefs.h <<\EOF | |
5838 | #define gid_t int | |
5839 | EOF | |
5840 | ||
5841 | fi | |
5842 | ||
5843 | ||
5844 | ||
5845 | ||
5846 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
5847 | echo "configure:5848: checking for working const" >&5 | |
5848 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | |
5849 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5850 | else | |
5851 | cat > conftest.$ac_ext <<EOF | |
5852 | #line 5853 "configure" | |
5853 | #include "confdefs.h" | |
5854 | ||
5855 | int main() { | |
5856 | ||
5857 | /* Ultrix mips cc rejects this. */ | |
5858 | typedef int charset[2]; const charset x; | |
5859 | /* SunOS 4.1.1 cc rejects this. */ | |
5860 | char const *const *ccp; | |
5861 | char **p; | |
5862 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5863 | struct point {int x, y;}; | |
5864 | static struct point const zero = {0,0}; | |
5865 | /* AIX XL C 1.02.0.0 rejects this. | |
5866 | It does not let you subtract one const X* pointer from another in an arm | |
5867 | of an if-expression whose if-part is not a constant expression */ | |
5868 | const char *g = "string"; | |
5869 | ccp = &g + (g ? g-g : 0); | |
5870 | /* HPUX 7.0 cc rejects these. */ | |
5871 | ++ccp; | |
5872 | p = (char**) ccp; | |
5873 | ccp = (char const *const *) p; | |
5874 | { /* SCO 3.2v4 cc rejects this. */ | |
5875 | char *t; | |
5876 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5877 | ||
5878 | *t++ = 0; | |
5879 | } | |
5880 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5881 | int x[] = {25, 17}; | |
5882 | const int *foo = &x[0]; | |
5883 | ++foo; | |
5884 | } | |
5885 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5886 | typedef const int *iptr; | |
5887 | iptr p = 0; | |
5888 | ++p; | |
5889 | } | |
5890 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5891 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5892 | struct s { int j; const int *ap[3]; }; | |
5893 | struct s *b; b->j = 5; | |
5894 | } | |
5895 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5896 | const int foo = 10; | |
5897 | } | |
5898 | ||
5899 | ; return 0; } | |
5900 | EOF | |
5901 | if { (eval echo configure:5902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
5902 | rm -rf conftest* | |
5903 | ac_cv_c_const=yes | |
5904 | else | |
5905 | echo "configure: failed program was:" >&5 | |
5906 | cat conftest.$ac_ext >&5 | |
5907 | rm -rf conftest* | |
5908 | ac_cv_c_const=no | |
5909 | fi | |
5910 | rm -f conftest* | |
5911 | fi | |
5912 | ||
5913 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
5914 | if test $ac_cv_c_const = no; then | |
5915 | cat >> confdefs.h <<\EOF | |
5916 | #define const | |
5917 | EOF | |
5918 | ||
5919 | fi | |
5920 | ||
5921 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
5922 | echo "configure:5923: checking for inline" >&5 | |
5923 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | |
5924 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5925 | else | |
5926 | ac_cv_c_inline=no | |
5927 | for ac_kw in inline __inline__ __inline; do | |
5928 | cat > conftest.$ac_ext <<EOF | |
5929 | #line 5930 "configure" | |
5930 | #include "confdefs.h" | |
5931 | ||
5932 | int main() { | |
5933 | } $ac_kw foo() { | |
5934 | ; return 0; } | |
5935 | EOF | |
5936 | if { (eval echo configure:5937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
5937 | rm -rf conftest* | |
5938 | ac_cv_c_inline=$ac_kw; break | |
5939 | else | |
5940 | echo "configure: failed program was:" >&5 | |
5941 | cat conftest.$ac_ext >&5 | |
5942 | fi | |
5943 | rm -f conftest* | |
5944 | done | |
5945 | ||
5946 | fi | |
5947 | ||
5948 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
5949 | case "$ac_cv_c_inline" in | |
5950 | inline | yes) ;; | |
5951 | no) cat >> confdefs.h <<\EOF | |
5952 | #define inline | |
5953 | EOF | |
5954 | ;; | |
5955 | *) cat >> confdefs.h <<EOF | |
5956 | #define inline $ac_cv_c_inline | |
5957 | EOF | |
5958 | ;; | |
5959 | esac | |
5960 | ||
5961 | ||
5962 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
5963 | echo "configure:5964: checking size of int *" >&5 | |
5964 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then | |
5965 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5966 | else | |
5967 | if test "$cross_compiling" = yes; then | |
5968 | ac_cv_sizeof_int_p=4 | |
5969 | else | |
5970 | cat > conftest.$ac_ext <<EOF | |
5971 | #line 5972 "configure" | |
5972 | #include "confdefs.h" | |
5973 | #include <stdio.h> | |
5974 | main() | |
5975 | { | |
5976 | FILE *f=fopen("conftestval", "w"); | |
5977 | if (!f) exit(1); | |
5978 | fprintf(f, "%d\n", sizeof(int *)); | |
5979 | exit(0); | |
5980 | } | |
5981 | EOF | |
5982 | if { (eval echo configure:5983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
5983 | then | |
5984 | ac_cv_sizeof_int_p=`cat conftestval` | |
5985 | else | |
5986 | echo "configure: failed program was:" >&5 | |
5987 | cat conftest.$ac_ext >&5 | |
5988 | rm -fr conftest* | |
5989 | ac_cv_sizeof_int_p=0 | |
5990 | fi | |
5991 | rm -fr conftest* | |
5992 | fi | |
5993 | ||
5994 | fi | |
5995 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
5996 | cat >> confdefs.h <<EOF | |
5997 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
5998 | EOF | |
5999 | ||
6000 | ||
6001 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
6002 | echo "configure:6003: checking size of int" >&5 | |
6003 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | |
6004 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6005 | else | |
6006 | if test "$cross_compiling" = yes; then | |
6007 | ac_cv_sizeof_int=4 | |
6008 | else | |
6009 | cat > conftest.$ac_ext <<EOF | |
6010 | #line 6011 "configure" | |
6011 | #include "confdefs.h" | |
6012 | #include <stdio.h> | |
6013 | main() | |
6014 | { | |
6015 | FILE *f=fopen("conftestval", "w"); | |
6016 | if (!f) exit(1); | |
6017 | fprintf(f, "%d\n", sizeof(int)); | |
6018 | exit(0); | |
6019 | } | |
6020 | EOF | |
6021 | if { (eval echo configure:6022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
6022 | then | |
6023 | ac_cv_sizeof_int=`cat conftestval` | |
6024 | else | |
6025 | echo "configure: failed program was:" >&5 | |
6026 | cat conftest.$ac_ext >&5 | |
6027 | rm -fr conftest* | |
6028 | ac_cv_sizeof_int=0 | |
6029 | fi | |
6030 | rm -fr conftest* | |
6031 | fi | |
6032 | ||
6033 | fi | |
6034 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
6035 | cat >> confdefs.h <<EOF | |
6036 | #define SIZEOF_INT $ac_cv_sizeof_int | |
6037 | EOF | |
6038 | ||
6039 | ||
6040 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
6041 | echo "configure:6042: checking size of long" >&5 | |
6042 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then | |
6043 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6044 | else | |
6045 | if test "$cross_compiling" = yes; then | |
6046 | ac_cv_sizeof_long=4 | |
6047 | else | |
6048 | cat > conftest.$ac_ext <<EOF | |
6049 | #line 6050 "configure" | |
6050 | #include "confdefs.h" | |
6051 | #include <stdio.h> | |
6052 | main() | |
6053 | { | |
6054 | FILE *f=fopen("conftestval", "w"); | |
6055 | if (!f) exit(1); | |
6056 | fprintf(f, "%d\n", sizeof(long)); | |
6057 | exit(0); | |
6058 | } | |
6059 | EOF | |
6060 | if { (eval echo configure:6061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
6061 | then | |
6062 | ac_cv_sizeof_long=`cat conftestval` | |
6063 | else | |
6064 | echo "configure: failed program was:" >&5 | |
6065 | cat conftest.$ac_ext >&5 | |
6066 | rm -fr conftest* | |
6067 | ac_cv_sizeof_long=0 | |
6068 | fi | |
6069 | rm -fr conftest* | |
6070 | fi | |
6071 | ||
6072 | fi | |
6073 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
6074 | cat >> confdefs.h <<EOF | |
6075 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
6076 | EOF | |
6077 | ||
6078 | ||
6079 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
6080 | echo "configure:6081: checking size of long long" >&5 | |
6081 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | |
6082 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6083 | else | |
6084 | if test "$cross_compiling" = yes; then | |
6085 | ac_cv_sizeof_long_long=0 | |
6086 | else | |
6087 | cat > conftest.$ac_ext <<EOF | |
6088 | #line 6089 "configure" | |
6089 | #include "confdefs.h" | |
6090 | #include <stdio.h> | |
6091 | main() | |
6092 | { | |
6093 | FILE *f=fopen("conftestval", "w"); | |
6094 | if (!f) exit(1); | |
6095 | fprintf(f, "%d\n", sizeof(long long)); | |
6096 | exit(0); | |
6097 | } | |
6098 | EOF | |
6099 | if { (eval echo configure:6100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
6100 | then | |
6101 | ac_cv_sizeof_long_long=`cat conftestval` | |
6102 | else | |
6103 | echo "configure: failed program was:" >&5 | |
6104 | cat conftest.$ac_ext >&5 | |
6105 | rm -fr conftest* | |
6106 | ac_cv_sizeof_long_long=0 | |
6107 | fi | |
6108 | rm -fr conftest* | |
6109 | fi | |
6110 | ||
6111 | fi | |
6112 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
6113 | cat >> confdefs.h <<EOF | |
6114 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
6115 | EOF | |
6116 | ||
6117 | ||
6118 | ||
6119 | ||
6120 | if test "$cross_compiling" = "yes"; then | |
6121 | cat >> confdefs.h <<\EOF | |
6122 | #define wxUSE_IOSTREAMH 1 | |
6123 | EOF | |
6124 | ||
6125 | else | |
6126 | ||
6127 | ac_ext=C | |
6128 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6129 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6130 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6131 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6132 | cross_compiling=$ac_cv_prog_cxx_cross | |
6133 | ||
6134 | ||
6135 | for ac_hdr in iostream | |
6136 | do | |
6137 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
6138 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6139 | echo "configure:6140: checking for $ac_hdr" >&5 | |
6140 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
6141 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6142 | else | |
6143 | cat > conftest.$ac_ext <<EOF | |
6144 | #line 6145 "configure" | |
6145 | #include "confdefs.h" | |
6146 | #include <$ac_hdr> | |
6147 | EOF | |
6148 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6149 | { (eval echo configure:6150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6150 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6151 | if test -z "$ac_err"; then | |
6152 | rm -rf conftest* | |
6153 | eval "ac_cv_header_$ac_safe=yes" | |
6154 | else | |
6155 | echo "$ac_err" >&5 | |
6156 | echo "configure: failed program was:" >&5 | |
6157 | cat conftest.$ac_ext >&5 | |
6158 | rm -rf conftest* | |
6159 | eval "ac_cv_header_$ac_safe=no" | |
6160 | fi | |
6161 | rm -f conftest* | |
6162 | fi | |
6163 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6164 | echo "$ac_t""yes" 1>&6 | |
6165 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
6166 | cat >> confdefs.h <<EOF | |
6167 | #define $ac_tr_hdr 1 | |
6168 | EOF | |
6169 | ||
6170 | else | |
6171 | echo "$ac_t""no" 1>&6 | |
6172 | fi | |
6173 | done | |
6174 | ||
6175 | ||
6176 | if test "x$HAVE_IOSTREAM" = x ; then | |
6177 | cat >> confdefs.h <<\EOF | |
6178 | #define wxUSE_IOSTREAMH 1 | |
6179 | EOF | |
6180 | ||
6181 | else | |
6182 | : | |
6183 | fi | |
6184 | ||
6185 | ac_ext=c | |
6186 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6187 | ac_cpp='$CPP $CPPFLAGS' | |
6188 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6189 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6190 | cross_compiling=$ac_cv_prog_cc_cross | |
6191 | ||
6192 | fi | |
6193 | ||
6194 | ||
6195 | ||
6196 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
6197 | echo "configure:6198: checking if C++ compiler supports bool" >&5 | |
6198 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then | |
6199 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6200 | else | |
6201 | ||
6202 | ||
6203 | ac_ext=C | |
6204 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6205 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6206 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6207 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6208 | cross_compiling=$ac_cv_prog_cxx_cross | |
6209 | ||
6210 | ||
6211 | if test "$cross_compiling" = yes; then | |
6212 | wx_cv_cpp_bool=no | |
6213 | ||
6214 | else | |
6215 | cat > conftest.$ac_ext <<EOF | |
6216 | #line 6217 "configure" | |
6217 | #include "confdefs.h" | |
6218 | #ifdef __cplusplus | |
6219 | extern "C" void exit(int); | |
6220 | #endif | |
6221 | ||
6222 | int main() | |
6223 | { | |
6224 | bool b = true; | |
6225 | ||
6226 | return 0; | |
6227 | } | |
6228 | ||
6229 | EOF | |
6230 | if { (eval echo configure:6231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
6231 | then | |
6232 | ||
6233 | cat >> confdefs.h <<\EOF | |
6234 | #define HAVE_BOOL 1 | |
6235 | EOF | |
6236 | ||
6237 | wx_cv_cpp_bool=yes | |
6238 | ||
6239 | else | |
6240 | echo "configure: failed program was:" >&5 | |
6241 | cat conftest.$ac_ext >&5 | |
6242 | rm -fr conftest* | |
6243 | wx_cv_cpp_bool=no | |
6244 | fi | |
6245 | rm -fr conftest* | |
6246 | fi | |
6247 | ||
6248 | ||
6249 | ac_ext=c | |
6250 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6251 | ac_cpp='$CPP $CPPFLAGS' | |
6252 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6253 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6254 | cross_compiling=$ac_cv_prog_cc_cross | |
6255 | ||
6256 | ||
6257 | fi | |
6258 | ||
6259 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
6260 | ||
6261 | if test "$wx_cv_cpp_bool" = "yes"; then | |
6262 | cat >> confdefs.h <<\EOF | |
6263 | #define HAVE_BOOL 1 | |
6264 | EOF | |
6265 | ||
6266 | fi | |
6267 | ||
6268 | ||
6269 | ||
6270 | echo $ac_n "checking if size_t and int are different types""... $ac_c" 1>&6 | |
6271 | echo "configure:6272: checking if size_t and int are different types" >&5 | |
6272 | if eval "test \"`echo '$''{'wx_cv_cpp_sizet_not_int'+set}'`\" = set"; then | |
6273 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6274 | else | |
6275 | ||
6276 | ||
6277 | ac_ext=C | |
6278 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6279 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6280 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6281 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6282 | cross_compiling=$ac_cv_prog_cxx_cross | |
6283 | ||
6284 | ||
6285 | if test "$cross_compiling" = yes; then | |
6286 | wx_cv_cpp_sizet_not_int=no | |
6287 | ||
6288 | else | |
6289 | cat > conftest.$ac_ext <<EOF | |
6290 | #line 6291 "configure" | |
6291 | #include "confdefs.h" | |
6292 | #ifdef __cplusplus | |
6293 | extern "C" void exit(int); | |
6294 | #endif | |
6295 | ||
6296 | #include <stdlib.h> | |
6297 | ||
6298 | class S | |
6299 | { | |
6300 | public: | |
6301 | S(char *s) { m_s = s; } | |
6302 | ||
6303 | char operator[](size_t n) const { return m_s[n]; } | |
6304 | char operator[](int n) const { return m_s[n]; } | |
6305 | ||
6306 | private: | |
6307 | char *m_s; | |
6308 | }; | |
6309 | ||
6310 | int main() | |
6311 | { | |
6312 | S s("dummy"); | |
6313 | size_t n1 = 2; | |
6314 | int n2 = 3; | |
6315 | ||
6316 | return s[n1] == s[n2]; | |
6317 | } | |
6318 | ||
6319 | EOF | |
6320 | if { (eval echo configure:6321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
6321 | then | |
6322 | cat >> confdefs.h <<\EOF | |
6323 | #define wxUSE_SIZE_T_STRING_OPERATOR 1 | |
6324 | EOF | |
6325 | wx_cv_cpp_sizet_not_int=yes | |
6326 | else | |
6327 | echo "configure: failed program was:" >&5 | |
6328 | cat conftest.$ac_ext >&5 | |
6329 | rm -fr conftest* | |
6330 | wx_cv_cpp_sizet_not_int=no | |
6331 | fi | |
6332 | rm -fr conftest* | |
6333 | fi | |
6334 | ||
6335 | ||
6336 | ac_ext=c | |
6337 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6338 | ac_cpp='$CPP $CPPFLAGS' | |
6339 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6340 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6341 | cross_compiling=$ac_cv_prog_cc_cross | |
6342 | ||
6343 | ||
6344 | fi | |
6345 | ||
6346 | echo "$ac_t""$wx_cv_cpp_sizet_not_int" 1>&6 | |
6347 | ||
6348 | ||
6349 | ||
6350 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
6351 | echo "configure:6352: checking for wcslen in -lc" >&5 | |
6352 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` | |
6353 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6354 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6355 | else | |
6356 | ac_save_LIBS="$LIBS" | |
6357 | LIBS="-lc $LIBS" | |
6358 | cat > conftest.$ac_ext <<EOF | |
6359 | #line 6360 "configure" | |
6360 | #include "confdefs.h" | |
6361 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6362 | /* We use char because int might match the return type of a gcc2 | |
6363 | builtin and then its argument prototype would still apply. */ | |
6364 | char wcslen(); | |
6365 | ||
6366 | int main() { | |
6367 | wcslen() | |
6368 | ; return 0; } | |
6369 | EOF | |
6370 | if { (eval echo configure:6371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6371 | rm -rf conftest* | |
6372 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6373 | else | |
6374 | echo "configure: failed program was:" >&5 | |
6375 | cat conftest.$ac_ext >&5 | |
6376 | rm -rf conftest* | |
6377 | eval "ac_cv_lib_$ac_lib_var=no" | |
6378 | fi | |
6379 | rm -f conftest* | |
6380 | LIBS="$ac_save_LIBS" | |
6381 | ||
6382 | fi | |
6383 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6384 | echo "$ac_t""yes" 1>&6 | |
6385 | ||
6386 | cat >> confdefs.h <<\EOF | |
6387 | #define HAVE_WCSLEN 1 | |
6388 | EOF | |
6389 | ||
6390 | WCHAR_LINK="" | |
6391 | ||
6392 | else | |
6393 | echo "$ac_t""no" 1>&6 | |
6394 | ||
6395 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
6396 | echo "configure:6397: checking for wcslen in -lw" >&5 | |
6397 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` | |
6398 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6399 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6400 | else | |
6401 | ac_save_LIBS="$LIBS" | |
6402 | LIBS="-lw $LIBS" | |
6403 | cat > conftest.$ac_ext <<EOF | |
6404 | #line 6405 "configure" | |
6405 | #include "confdefs.h" | |
6406 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6407 | /* We use char because int might match the return type of a gcc2 | |
6408 | builtin and then its argument prototype would still apply. */ | |
6409 | char wcslen(); | |
6410 | ||
6411 | int main() { | |
6412 | wcslen() | |
6413 | ; return 0; } | |
6414 | EOF | |
6415 | if { (eval echo configure:6416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6416 | rm -rf conftest* | |
6417 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6418 | else | |
6419 | echo "configure: failed program was:" >&5 | |
6420 | cat conftest.$ac_ext >&5 | |
6421 | rm -rf conftest* | |
6422 | eval "ac_cv_lib_$ac_lib_var=no" | |
6423 | fi | |
6424 | rm -f conftest* | |
6425 | LIBS="$ac_save_LIBS" | |
6426 | ||
6427 | fi | |
6428 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6429 | echo "$ac_t""yes" 1>&6 | |
6430 | ||
6431 | cat >> confdefs.h <<\EOF | |
6432 | #define HAVE_WCSLEN 1 | |
6433 | EOF | |
6434 | ||
6435 | WCHAR_LINK="-lw" | |
6436 | ||
6437 | else | |
6438 | echo "$ac_t""no" 1>&6 | |
6439 | fi | |
6440 | ||
6441 | ||
6442 | fi | |
6443 | ||
6444 | ||
6445 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
6446 | echo "configure:6447: checking for vprintf" >&5 | |
6447 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then | |
6448 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6449 | else | |
6450 | cat > conftest.$ac_ext <<EOF | |
6451 | #line 6452 "configure" | |
6452 | #include "confdefs.h" | |
6453 | /* System header to define __stub macros and hopefully few prototypes, | |
6454 | which can conflict with char vprintf(); below. */ | |
6455 | #include <assert.h> | |
6456 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6457 | /* We use char because int might match the return type of a gcc2 | |
6458 | builtin and then its argument prototype would still apply. */ | |
6459 | char vprintf(); | |
6460 | ||
6461 | int main() { | |
6462 | ||
6463 | /* The GNU C library defines this for functions which it implements | |
6464 | to always fail with ENOSYS. Some functions are actually named | |
6465 | something starting with __ and the normal name is an alias. */ | |
6466 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
6467 | choke me | |
6468 | #else | |
6469 | vprintf(); | |
6470 | #endif | |
6471 | ||
6472 | ; return 0; } | |
6473 | EOF | |
6474 | if { (eval echo configure:6475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6475 | rm -rf conftest* | |
6476 | eval "ac_cv_func_vprintf=yes" | |
6477 | else | |
6478 | echo "configure: failed program was:" >&5 | |
6479 | cat conftest.$ac_ext >&5 | |
6480 | rm -rf conftest* | |
6481 | eval "ac_cv_func_vprintf=no" | |
6482 | fi | |
6483 | rm -f conftest* | |
6484 | fi | |
6485 | ||
6486 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
6487 | echo "$ac_t""yes" 1>&6 | |
6488 | cat >> confdefs.h <<\EOF | |
6489 | #define HAVE_VPRINTF 1 | |
6490 | EOF | |
6491 | ||
6492 | else | |
6493 | echo "$ac_t""no" 1>&6 | |
6494 | fi | |
6495 | ||
6496 | if test "$ac_cv_func_vprintf" != yes; then | |
6497 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
6498 | echo "configure:6499: checking for _doprnt" >&5 | |
6499 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then | |
6500 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6501 | else | |
6502 | cat > conftest.$ac_ext <<EOF | |
6503 | #line 6504 "configure" | |
6504 | #include "confdefs.h" | |
6505 | /* System header to define __stub macros and hopefully few prototypes, | |
6506 | which can conflict with char _doprnt(); below. */ | |
6507 | #include <assert.h> | |
6508 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6509 | /* We use char because int might match the return type of a gcc2 | |
6510 | builtin and then its argument prototype would still apply. */ | |
6511 | char _doprnt(); | |
6512 | ||
6513 | int main() { | |
6514 | ||
6515 | /* The GNU C library defines this for functions which it implements | |
6516 | to always fail with ENOSYS. Some functions are actually named | |
6517 | something starting with __ and the normal name is an alias. */ | |
6518 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
6519 | choke me | |
6520 | #else | |
6521 | _doprnt(); | |
6522 | #endif | |
6523 | ||
6524 | ; return 0; } | |
6525 | EOF | |
6526 | if { (eval echo configure:6527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6527 | rm -rf conftest* | |
6528 | eval "ac_cv_func__doprnt=yes" | |
6529 | else | |
6530 | echo "configure: failed program was:" >&5 | |
6531 | cat conftest.$ac_ext >&5 | |
6532 | rm -rf conftest* | |
6533 | eval "ac_cv_func__doprnt=no" | |
6534 | fi | |
6535 | rm -f conftest* | |
6536 | fi | |
6537 | ||
6538 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
6539 | echo "$ac_t""yes" 1>&6 | |
6540 | cat >> confdefs.h <<\EOF | |
6541 | #define HAVE_DOPRNT 1 | |
6542 | EOF | |
6543 | ||
6544 | else | |
6545 | echo "$ac_t""no" 1>&6 | |
6546 | fi | |
6547 | ||
6548 | fi | |
6549 | ||
6550 | ||
6551 | for ac_func in vsnprintf | |
6552 | do | |
6553 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
6554 | echo "configure:6555: checking for $ac_func" >&5 | |
6555 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
6556 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6557 | else | |
6558 | cat > conftest.$ac_ext <<EOF | |
6559 | #line 6560 "configure" | |
6560 | #include "confdefs.h" | |
6561 | /* System header to define __stub macros and hopefully few prototypes, | |
6562 | which can conflict with char $ac_func(); below. */ | |
6563 | #include <assert.h> | |
6564 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6565 | /* We use char because int might match the return type of a gcc2 | |
6566 | builtin and then its argument prototype would still apply. */ | |
6567 | char $ac_func(); | |
6568 | ||
6569 | int main() { | |
6570 | ||
6571 | /* The GNU C library defines this for functions which it implements | |
6572 | to always fail with ENOSYS. Some functions are actually named | |
6573 | something starting with __ and the normal name is an alias. */ | |
6574 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6575 | choke me | |
6576 | #else | |
6577 | $ac_func(); | |
6578 | #endif | |
6579 | ||
6580 | ; return 0; } | |
6581 | EOF | |
6582 | if { (eval echo configure:6583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6583 | rm -rf conftest* | |
6584 | eval "ac_cv_func_$ac_func=yes" | |
6585 | else | |
6586 | echo "configure: failed program was:" >&5 | |
6587 | cat conftest.$ac_ext >&5 | |
6588 | rm -rf conftest* | |
6589 | eval "ac_cv_func_$ac_func=no" | |
6590 | fi | |
6591 | rm -f conftest* | |
6592 | fi | |
6593 | ||
6594 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6595 | echo "$ac_t""yes" 1>&6 | |
6596 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6597 | cat >> confdefs.h <<EOF | |
6598 | #define $ac_tr_func 1 | |
6599 | EOF | |
6600 | cat >> confdefs.h <<\EOF | |
6601 | #define HAVE_VSNPRINTF 1 | |
6602 | EOF | |
6603 | ||
6604 | else | |
6605 | echo "$ac_t""no" 1>&6 | |
6606 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
6607 | ||
6608 | fi | |
6609 | done | |
6610 | ||
6611 | ||
6612 | for ac_func in vfork | |
6613 | do | |
6614 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
6615 | echo "configure:6616: checking for $ac_func" >&5 | |
6616 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
6617 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6618 | else | |
6619 | cat > conftest.$ac_ext <<EOF | |
6620 | #line 6621 "configure" | |
6621 | #include "confdefs.h" | |
6622 | /* System header to define __stub macros and hopefully few prototypes, | |
6623 | which can conflict with char $ac_func(); below. */ | |
6624 | #include <assert.h> | |
6625 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6626 | /* We use char because int might match the return type of a gcc2 | |
6627 | builtin and then its argument prototype would still apply. */ | |
6628 | char $ac_func(); | |
6629 | ||
6630 | int main() { | |
6631 | ||
6632 | /* The GNU C library defines this for functions which it implements | |
6633 | to always fail with ENOSYS. Some functions are actually named | |
6634 | something starting with __ and the normal name is an alias. */ | |
6635 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6636 | choke me | |
6637 | #else | |
6638 | $ac_func(); | |
6639 | #endif | |
6640 | ||
6641 | ; return 0; } | |
6642 | EOF | |
6643 | if { (eval echo configure:6644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6644 | rm -rf conftest* | |
6645 | eval "ac_cv_func_$ac_func=yes" | |
6646 | else | |
6647 | echo "configure: failed program was:" >&5 | |
6648 | cat conftest.$ac_ext >&5 | |
6649 | rm -rf conftest* | |
6650 | eval "ac_cv_func_$ac_func=no" | |
6651 | fi | |
6652 | rm -f conftest* | |
6653 | fi | |
6654 | ||
6655 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6656 | echo "$ac_t""yes" 1>&6 | |
6657 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6658 | cat >> confdefs.h <<EOF | |
6659 | #define $ac_tr_func 1 | |
6660 | EOF | |
6661 | ||
6662 | else | |
6663 | echo "$ac_t""no" 1>&6 | |
6664 | fi | |
6665 | done | |
6666 | ||
6667 | ||
6668 | POSIX4_LINK= | |
6669 | for ac_func in nanosleep | |
6670 | do | |
6671 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
6672 | echo "configure:6673: checking for $ac_func" >&5 | |
6673 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
6674 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6675 | else | |
6676 | cat > conftest.$ac_ext <<EOF | |
6677 | #line 6678 "configure" | |
6678 | #include "confdefs.h" | |
6679 | /* System header to define __stub macros and hopefully few prototypes, | |
6680 | which can conflict with char $ac_func(); below. */ | |
6681 | #include <assert.h> | |
6682 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6683 | /* We use char because int might match the return type of a gcc2 | |
6684 | builtin and then its argument prototype would still apply. */ | |
6685 | char $ac_func(); | |
6686 | ||
6687 | int main() { | |
6688 | ||
6689 | /* The GNU C library defines this for functions which it implements | |
6690 | to always fail with ENOSYS. Some functions are actually named | |
6691 | something starting with __ and the normal name is an alias. */ | |
6692 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6693 | choke me | |
6694 | #else | |
6695 | $ac_func(); | |
6696 | #endif | |
6697 | ||
6698 | ; return 0; } | |
6699 | EOF | |
6700 | if { (eval echo configure:6701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6701 | rm -rf conftest* | |
6702 | eval "ac_cv_func_$ac_func=yes" | |
6703 | else | |
6704 | echo "configure: failed program was:" >&5 | |
6705 | cat conftest.$ac_ext >&5 | |
6706 | rm -rf conftest* | |
6707 | eval "ac_cv_func_$ac_func=no" | |
6708 | fi | |
6709 | rm -f conftest* | |
6710 | fi | |
6711 | ||
6712 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6713 | echo "$ac_t""yes" 1>&6 | |
6714 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6715 | cat >> confdefs.h <<EOF | |
6716 | #define $ac_tr_func 1 | |
6717 | EOF | |
6718 | cat >> confdefs.h <<\EOF | |
6719 | #define HAVE_NANOSLEEP 1 | |
6720 | EOF | |
6721 | ||
6722 | else | |
6723 | echo "$ac_t""no" 1>&6 | |
6724 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
6725 | echo "configure:6726: checking for nanosleep in -lposix4" >&5 | |
6726 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` | |
6727 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6728 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6729 | else | |
6730 | ac_save_LIBS="$LIBS" | |
6731 | LIBS="-lposix4 $LIBS" | |
6732 | cat > conftest.$ac_ext <<EOF | |
6733 | #line 6734 "configure" | |
6734 | #include "confdefs.h" | |
6735 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6736 | /* We use char because int might match the return type of a gcc2 | |
6737 | builtin and then its argument prototype would still apply. */ | |
6738 | char nanosleep(); | |
6739 | ||
6740 | int main() { | |
6741 | nanosleep() | |
6742 | ; return 0; } | |
6743 | EOF | |
6744 | if { (eval echo configure:6745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6745 | rm -rf conftest* | |
6746 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6747 | else | |
6748 | echo "configure: failed program was:" >&5 | |
6749 | cat conftest.$ac_ext >&5 | |
6750 | rm -rf conftest* | |
6751 | eval "ac_cv_lib_$ac_lib_var=no" | |
6752 | fi | |
6753 | rm -f conftest* | |
6754 | LIBS="$ac_save_LIBS" | |
6755 | ||
6756 | fi | |
6757 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6758 | echo "$ac_t""yes" 1>&6 | |
6759 | ||
6760 | cat >> confdefs.h <<\EOF | |
6761 | #define HAVE_NANOSLEEP 1 | |
6762 | EOF | |
6763 | ||
6764 | POSIX4_LINK="-lposix4" | |
6765 | ||
6766 | else | |
6767 | echo "$ac_t""no" 1>&6 | |
6768 | ||
6769 | for ac_func in usleep | |
6770 | do | |
6771 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
6772 | echo "configure:6773: checking for $ac_func" >&5 | |
6773 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
6774 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6775 | else | |
6776 | cat > conftest.$ac_ext <<EOF | |
6777 | #line 6778 "configure" | |
6778 | #include "confdefs.h" | |
6779 | /* System header to define __stub macros and hopefully few prototypes, | |
6780 | which can conflict with char $ac_func(); below. */ | |
6781 | #include <assert.h> | |
6782 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6783 | /* We use char because int might match the return type of a gcc2 | |
6784 | builtin and then its argument prototype would still apply. */ | |
6785 | char $ac_func(); | |
6786 | ||
6787 | int main() { | |
6788 | ||
6789 | /* The GNU C library defines this for functions which it implements | |
6790 | to always fail with ENOSYS. Some functions are actually named | |
6791 | something starting with __ and the normal name is an alias. */ | |
6792 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6793 | choke me | |
6794 | #else | |
6795 | $ac_func(); | |
6796 | #endif | |
6797 | ||
6798 | ; return 0; } | |
6799 | EOF | |
6800 | if { (eval echo configure:6801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6801 | rm -rf conftest* | |
6802 | eval "ac_cv_func_$ac_func=yes" | |
6803 | else | |
6804 | echo "configure: failed program was:" >&5 | |
6805 | cat conftest.$ac_ext >&5 | |
6806 | rm -rf conftest* | |
6807 | eval "ac_cv_func_$ac_func=no" | |
6808 | fi | |
6809 | rm -f conftest* | |
6810 | fi | |
6811 | ||
6812 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6813 | echo "$ac_t""yes" 1>&6 | |
6814 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6815 | cat >> confdefs.h <<EOF | |
6816 | #define $ac_tr_func 1 | |
6817 | EOF | |
6818 | cat >> confdefs.h <<\EOF | |
6819 | #define HAVE_USLEEP 1 | |
6820 | EOF | |
6821 | ||
6822 | else | |
6823 | echo "$ac_t""no" 1>&6 | |
6824 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
6825 | fi | |
6826 | done | |
6827 | ||
6828 | ||
6829 | fi | |
6830 | ||
6831 | ||
6832 | fi | |
6833 | done | |
6834 | ||
6835 | ||
6836 | for ac_func in uname gethostname | |
6837 | do | |
6838 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
6839 | echo "configure:6840: checking for $ac_func" >&5 | |
6840 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
6841 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6842 | else | |
6843 | cat > conftest.$ac_ext <<EOF | |
6844 | #line 6845 "configure" | |
6845 | #include "confdefs.h" | |
6846 | /* System header to define __stub macros and hopefully few prototypes, | |
6847 | which can conflict with char $ac_func(); below. */ | |
6848 | #include <assert.h> | |
6849 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6850 | /* We use char because int might match the return type of a gcc2 | |
6851 | builtin and then its argument prototype would still apply. */ | |
6852 | char $ac_func(); | |
6853 | ||
6854 | int main() { | |
6855 | ||
6856 | /* The GNU C library defines this for functions which it implements | |
6857 | to always fail with ENOSYS. Some functions are actually named | |
6858 | something starting with __ and the normal name is an alias. */ | |
6859 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6860 | choke me | |
6861 | #else | |
6862 | $ac_func(); | |
6863 | #endif | |
6864 | ||
6865 | ; return 0; } | |
6866 | EOF | |
6867 | if { (eval echo configure:6868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6868 | rm -rf conftest* | |
6869 | eval "ac_cv_func_$ac_func=yes" | |
6870 | else | |
6871 | echo "configure: failed program was:" >&5 | |
6872 | cat conftest.$ac_ext >&5 | |
6873 | rm -rf conftest* | |
6874 | eval "ac_cv_func_$ac_func=no" | |
6875 | fi | |
6876 | rm -f conftest* | |
6877 | fi | |
6878 | ||
6879 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6880 | echo "$ac_t""yes" 1>&6 | |
6881 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6882 | cat >> confdefs.h <<EOF | |
6883 | #define $ac_tr_func 1 | |
6884 | EOF | |
6885 | break | |
6886 | else | |
6887 | echo "$ac_t""no" 1>&6 | |
6888 | fi | |
6889 | done | |
6890 | ||
6891 | ||
6892 | ||
6893 | cat > confcache <<\EOF | |
6894 | # This file is a shell script that caches the results of configure | |
6895 | # tests run on this system so they can be shared between configure | |
6896 | # scripts and configure runs. It is not useful on other systems. | |
6897 | # If it contains results you don't want to keep, you may remove or edit it. | |
6898 | # | |
6899 | # By default, configure uses ./config.cache as the cache file, | |
6900 | # creating it if it does not exist already. You can give configure | |
6901 | # the --cache-file=FILE option to use a different cache file; that is | |
6902 | # what configure does when it calls configure scripts in | |
6903 | # subdirectories, so they share the cache. | |
6904 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6905 | # config.status only pays attention to the cache file if you give it the | |
6906 | # --recheck option to rerun configure. | |
6907 | # | |
6908 | EOF | |
6909 | # The following way of writing the cache mishandles newlines in values, | |
6910 | # but we know of no workaround that is simple, portable, and efficient. | |
6911 | # So, don't put newlines in cache variables' values. | |
6912 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6913 | # and sets the high bit in the cache file unless we assign to the vars. | |
6914 | (set) 2>&1 | | |
6915 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6916 | *ac_space=\ *) | |
6917 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6918 | # turns \\\\ into \\, and sed turns \\ into \). | |
6919 | sed -n \ | |
6920 | -e "s/'/'\\\\''/g" \ | |
6921 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6922 | ;; | |
6923 | *) | |
6924 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6925 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6926 | ;; | |
6927 | esac >> confcache | |
6928 | if cmp -s $cache_file confcache; then | |
6929 | : | |
6930 | else | |
6931 | if test -w $cache_file; then | |
6932 | echo "updating cache $cache_file" | |
6933 | cat confcache > $cache_file | |
6934 | else | |
6935 | echo "not updating unwritable cache $cache_file" | |
6936 | fi | |
6937 | fi | |
6938 | rm -f confcache | |
6939 | ||
6940 | ||
6941 | ||
6942 | ||
6943 | THREADS_LINK="" | |
6944 | THREADS_OBJ="" | |
6945 | ||
6946 | if test "$wxUSE_THREADS" = "yes"; then | |
6947 | ||
6948 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 | |
6949 | echo "configure:6950: checking for pthread_create in -lpthread" >&5 | |
6950 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` | |
6951 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6952 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6953 | else | |
6954 | ac_save_LIBS="$LIBS" | |
6955 | LIBS="-lpthread $LIBS" | |
6956 | cat > conftest.$ac_ext <<EOF | |
6957 | #line 6958 "configure" | |
6958 | #include "confdefs.h" | |
6959 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6960 | /* We use char because int might match the return type of a gcc2 | |
6961 | builtin and then its argument prototype would still apply. */ | |
6962 | char pthread_create(); | |
6963 | ||
6964 | int main() { | |
6965 | pthread_create() | |
6966 | ; return 0; } | |
6967 | EOF | |
6968 | if { (eval echo configure:6969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6969 | rm -rf conftest* | |
6970 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6971 | else | |
6972 | echo "configure: failed program was:" >&5 | |
6973 | cat conftest.$ac_ext >&5 | |
6974 | rm -rf conftest* | |
6975 | eval "ac_cv_lib_$ac_lib_var=no" | |
6976 | fi | |
6977 | rm -f conftest* | |
6978 | LIBS="$ac_save_LIBS" | |
6979 | ||
6980 | fi | |
6981 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6982 | echo "$ac_t""yes" 1>&6 | |
6983 | ||
6984 | THREADS_OBJ="threadpsx.lo" | |
6985 | THREADS_LINK="pthread" | |
6986 | ||
6987 | else | |
6988 | echo "$ac_t""no" 1>&6 | |
6989 | ||
6990 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | |
6991 | echo "configure:6992: checking for pthread_create in -lc_r" >&5 | |
6992 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` | |
6993 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6994 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6995 | else | |
6996 | ac_save_LIBS="$LIBS" | |
6997 | LIBS="-lc_r $LIBS" | |
6998 | cat > conftest.$ac_ext <<EOF | |
6999 | #line 7000 "configure" | |
7000 | #include "confdefs.h" | |
7001 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7002 | /* We use char because int might match the return type of a gcc2 | |
7003 | builtin and then its argument prototype would still apply. */ | |
7004 | char pthread_create(); | |
7005 | ||
7006 | int main() { | |
7007 | pthread_create() | |
7008 | ; return 0; } | |
7009 | EOF | |
7010 | if { (eval echo configure:7011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7011 | rm -rf conftest* | |
7012 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7013 | else | |
7014 | echo "configure: failed program was:" >&5 | |
7015 | cat conftest.$ac_ext >&5 | |
7016 | rm -rf conftest* | |
7017 | eval "ac_cv_lib_$ac_lib_var=no" | |
7018 | fi | |
7019 | rm -f conftest* | |
7020 | LIBS="$ac_save_LIBS" | |
7021 | ||
7022 | fi | |
7023 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7024 | echo "$ac_t""yes" 1>&6 | |
7025 | ||
7026 | THREADS_OBJ="threadpsx.lo" | |
7027 | THREADS_LINK="c_r" | |
7028 | ||
7029 | else | |
7030 | echo "$ac_t""no" 1>&6 | |
7031 | ||
7032 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
7033 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
7034 | echo "configure:7035: checking for sys/prctl.h" >&5 | |
7035 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
7036 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7037 | else | |
7038 | cat > conftest.$ac_ext <<EOF | |
7039 | #line 7040 "configure" | |
7040 | #include "confdefs.h" | |
7041 | #include <sys/prctl.h> | |
7042 | EOF | |
7043 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7044 | { (eval echo configure:7045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
7045 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
7046 | if test -z "$ac_err"; then | |
7047 | rm -rf conftest* | |
7048 | eval "ac_cv_header_$ac_safe=yes" | |
7049 | else | |
7050 | echo "$ac_err" >&5 | |
7051 | echo "configure: failed program was:" >&5 | |
7052 | cat conftest.$ac_ext >&5 | |
7053 | rm -rf conftest* | |
7054 | eval "ac_cv_header_$ac_safe=no" | |
7055 | fi | |
7056 | rm -f conftest* | |
7057 | fi | |
7058 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7059 | echo "$ac_t""yes" 1>&6 | |
7060 | ||
7061 | THREADS_OBJ="threadsgi.lo" | |
7062 | ||
7063 | else | |
7064 | echo "$ac_t""no" 1>&6 | |
7065 | fi | |
7066 | ||
7067 | ||
7068 | fi | |
7069 | ||
7070 | ||
7071 | fi | |
7072 | ||
7073 | if test "$THREADS_LINK" != ""; then | |
7074 | cat >> confdefs.h <<\EOF | |
7075 | #define wxUSE_THREADS 1 | |
7076 | EOF | |
7077 | ||
7078 | else | |
7079 | echo "configure: warning: No thread support on this system" 1>&2 | |
7080 | fi | |
7081 | fi | |
7082 | ||
7083 | if test -z "$THREADS_OBJ"; then | |
7084 | wxUSE_THREADS=no | |
7085 | fi | |
7086 | ||
7087 | if test "$wxUSE_THREADS" = "yes"; then | |
7088 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
7089 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
7090 | ||
7091 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
7092 | EXTRA_VPATH="$EXTRA_VPATH:\$(srcdir)/unix" | |
7093 | LTLIBOBJS="$LTLIBOBJS $THREADS_OBJ" | |
7094 | ||
7095 | ||
7096 | for ac_hdr in sched.h | |
7097 | do | |
7098 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7099 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
7100 | echo "configure:7101: checking for $ac_hdr" >&5 | |
7101 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
7102 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7103 | else | |
7104 | cat > conftest.$ac_ext <<EOF | |
7105 | #line 7106 "configure" | |
7106 | #include "confdefs.h" | |
7107 | #include <$ac_hdr> | |
7108 | EOF | |
7109 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7110 | { (eval echo configure:7111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
7111 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
7112 | if test -z "$ac_err"; then | |
7113 | rm -rf conftest* | |
7114 | eval "ac_cv_header_$ac_safe=yes" | |
7115 | else | |
7116 | echo "$ac_err" >&5 | |
7117 | echo "configure: failed program was:" >&5 | |
7118 | cat conftest.$ac_ext >&5 | |
7119 | rm -rf conftest* | |
7120 | eval "ac_cv_header_$ac_safe=no" | |
7121 | fi | |
7122 | rm -f conftest* | |
7123 | fi | |
7124 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7125 | echo "$ac_t""yes" 1>&6 | |
7126 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7127 | cat >> confdefs.h <<EOF | |
7128 | #define $ac_tr_hdr 1 | |
7129 | EOF | |
7130 | ||
7131 | else | |
7132 | echo "$ac_t""no" 1>&6 | |
7133 | fi | |
7134 | done | |
7135 | ||
7136 | ||
7137 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
7138 | echo "configure:7139: checking for sched_yield in -l$THREADS_LINK" >&5 | |
7139 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` | |
7140 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7141 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7142 | else | |
7143 | ac_save_LIBS="$LIBS" | |
7144 | LIBS="-l$THREADS_LINK $LIBS" | |
7145 | cat > conftest.$ac_ext <<EOF | |
7146 | #line 7147 "configure" | |
7147 | #include "confdefs.h" | |
7148 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7149 | /* We use char because int might match the return type of a gcc2 | |
7150 | builtin and then its argument prototype would still apply. */ | |
7151 | char sched_yield(); | |
7152 | ||
7153 | int main() { | |
7154 | sched_yield() | |
7155 | ; return 0; } | |
7156 | EOF | |
7157 | if { (eval echo configure:7158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7158 | rm -rf conftest* | |
7159 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7160 | else | |
7161 | echo "configure: failed program was:" >&5 | |
7162 | cat conftest.$ac_ext >&5 | |
7163 | rm -rf conftest* | |
7164 | eval "ac_cv_lib_$ac_lib_var=no" | |
7165 | fi | |
7166 | rm -f conftest* | |
7167 | LIBS="$ac_save_LIBS" | |
7168 | ||
7169 | fi | |
7170 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7171 | echo "$ac_t""yes" 1>&6 | |
7172 | cat >> confdefs.h <<\EOF | |
7173 | #define HAVE_SCHED_YIELD 1 | |
7174 | EOF | |
7175 | ||
7176 | else | |
7177 | echo "$ac_t""no" 1>&6 | |
7178 | echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6 | |
7179 | echo "configure:7180: checking for sched_yield in -l"posix4"" >&5 | |
7180 | ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'` | |
7181 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7182 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7183 | else | |
7184 | ac_save_LIBS="$LIBS" | |
7185 | LIBS="-l"posix4" $LIBS" | |
7186 | cat > conftest.$ac_ext <<EOF | |
7187 | #line 7188 "configure" | |
7188 | #include "confdefs.h" | |
7189 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7190 | /* We use char because int might match the return type of a gcc2 | |
7191 | builtin and then its argument prototype would still apply. */ | |
7192 | char sched_yield(); | |
7193 | ||
7194 | int main() { | |
7195 | sched_yield() | |
7196 | ; return 0; } | |
7197 | EOF | |
7198 | if { (eval echo configure:7199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7199 | rm -rf conftest* | |
7200 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7201 | else | |
7202 | echo "configure: failed program was:" >&5 | |
7203 | cat conftest.$ac_ext >&5 | |
7204 | rm -rf conftest* | |
7205 | eval "ac_cv_lib_$ac_lib_var=no" | |
7206 | fi | |
7207 | rm -f conftest* | |
7208 | LIBS="$ac_save_LIBS" | |
7209 | ||
7210 | fi | |
7211 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7212 | echo "$ac_t""yes" 1>&6 | |
7213 | cat >> confdefs.h <<\EOF | |
7214 | #define HAVE_SCHED_YIELD 1 | |
7215 | EOF | |
7216 | POSIX4_LINK="-lposix4" | |
7217 | else | |
7218 | echo "$ac_t""no" 1>&6 | |
7219 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
7220 | ||
7221 | fi | |
7222 | ||
7223 | ||
7224 | fi | |
7225 | ||
7226 | ||
7227 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
7228 | echo "configure:7229: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 | |
7229 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` | |
7230 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7231 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7232 | else | |
7233 | ac_save_LIBS="$LIBS" | |
7234 | LIBS="-l$THREADS_LINK $LIBS" | |
7235 | cat > conftest.$ac_ext <<EOF | |
7236 | #line 7237 "configure" | |
7237 | #include "confdefs.h" | |
7238 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7239 | /* We use char because int might match the return type of a gcc2 | |
7240 | builtin and then its argument prototype would still apply. */ | |
7241 | char pthread_attr_getschedpolicy(); | |
7242 | ||
7243 | int main() { | |
7244 | pthread_attr_getschedpolicy() | |
7245 | ; return 0; } | |
7246 | EOF | |
7247 | if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7248 | rm -rf conftest* | |
7249 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7250 | else | |
7251 | echo "configure: failed program was:" >&5 | |
7252 | cat conftest.$ac_ext >&5 | |
7253 | rm -rf conftest* | |
7254 | eval "ac_cv_lib_$ac_lib_var=no" | |
7255 | fi | |
7256 | rm -f conftest* | |
7257 | LIBS="$ac_save_LIBS" | |
7258 | ||
7259 | fi | |
7260 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7261 | echo "$ac_t""yes" 1>&6 | |
7262 | cat >> confdefs.h <<\EOF | |
7263 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
7264 | EOF | |
7265 | ||
7266 | else | |
7267 | echo "$ac_t""no" 1>&6 | |
7268 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6 | |
7269 | echo "configure:7270: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5 | |
7270 | ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` | |
7271 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7272 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7273 | else | |
7274 | ac_save_LIBS="$LIBS" | |
7275 | LIBS="-l"posix4" $LIBS" | |
7276 | cat > conftest.$ac_ext <<EOF | |
7277 | #line 7278 "configure" | |
7278 | #include "confdefs.h" | |
7279 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7280 | /* We use char because int might match the return type of a gcc2 | |
7281 | builtin and then its argument prototype would still apply. */ | |
7282 | char pthread_attr_getschedpolicy(); | |
7283 | ||
7284 | int main() { | |
7285 | pthread_attr_getschedpolicy() | |
7286 | ; return 0; } | |
7287 | EOF | |
7288 | if { (eval echo configure:7289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7289 | rm -rf conftest* | |
7290 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7291 | else | |
7292 | echo "configure: failed program was:" >&5 | |
7293 | cat conftest.$ac_ext >&5 | |
7294 | rm -rf conftest* | |
7295 | eval "ac_cv_lib_$ac_lib_var=no" | |
7296 | fi | |
7297 | rm -f conftest* | |
7298 | LIBS="$ac_save_LIBS" | |
7299 | ||
7300 | fi | |
7301 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7302 | echo "$ac_t""yes" 1>&6 | |
7303 | cat >> confdefs.h <<\EOF | |
7304 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
7305 | EOF | |
7306 | POSIX4_LINK="-lposix4" | |
7307 | else | |
7308 | echo "$ac_t""no" 1>&6 | |
7309 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
7310 | ||
7311 | fi | |
7312 | ||
7313 | ||
7314 | fi | |
7315 | ||
7316 | ||
7317 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 | |
7318 | echo "configure:7319: checking for pthread_cancel in -l$THREADS_LINK" >&5 | |
7319 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` | |
7320 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7321 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7322 | else | |
7323 | ac_save_LIBS="$LIBS" | |
7324 | LIBS="-l$THREADS_LINK $LIBS" | |
7325 | cat > conftest.$ac_ext <<EOF | |
7326 | #line 7327 "configure" | |
7327 | #include "confdefs.h" | |
7328 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7329 | /* We use char because int might match the return type of a gcc2 | |
7330 | builtin and then its argument prototype would still apply. */ | |
7331 | char pthread_cancel(); | |
7332 | ||
7333 | int main() { | |
7334 | pthread_cancel() | |
7335 | ; return 0; } | |
7336 | EOF | |
7337 | if { (eval echo configure:7338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7338 | rm -rf conftest* | |
7339 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7340 | else | |
7341 | echo "configure: failed program was:" >&5 | |
7342 | cat conftest.$ac_ext >&5 | |
7343 | rm -rf conftest* | |
7344 | eval "ac_cv_lib_$ac_lib_var=no" | |
7345 | fi | |
7346 | rm -f conftest* | |
7347 | LIBS="$ac_save_LIBS" | |
7348 | ||
7349 | fi | |
7350 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7351 | echo "$ac_t""yes" 1>&6 | |
7352 | cat >> confdefs.h <<\EOF | |
7353 | #define HAVE_PTHREAD_CANCEL 1 | |
7354 | EOF | |
7355 | ||
7356 | else | |
7357 | echo "$ac_t""no" 1>&6 | |
7358 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
7359 | fi | |
7360 | ||
7361 | ||
7362 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
7363 | echo "configure:7364: checking for pthread_cleanup_push/pop" >&5 | |
7364 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then | |
7365 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7366 | else | |
7367 | ||
7368 | cat > conftest.$ac_ext <<EOF | |
7369 | #line 7370 "configure" | |
7370 | #include "confdefs.h" | |
7371 | #include <pthread.h> | |
7372 | int main() { | |
7373 | ||
7374 | pthread_cleanup_push(NULL, NULL); | |
7375 | pthread_cleanup_pop(0); | |
7376 | ||
7377 | ; return 0; } | |
7378 | EOF | |
7379 | if { (eval echo configure:7380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
7380 | rm -rf conftest* | |
7381 | ||
7382 | wx_cv_func_pthread_cleanup_push=yes | |
7383 | cat >> confdefs.h <<\EOF | |
7384 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
7385 | EOF | |
7386 | ||
7387 | ||
7388 | else | |
7389 | echo "configure: failed program was:" >&5 | |
7390 | cat conftest.$ac_ext >&5 | |
7391 | rm -rf conftest* | |
7392 | ||
7393 | wx_cv_func_pthread_cleanup_push=no | |
7394 | ||
7395 | fi | |
7396 | rm -f conftest* | |
7397 | ||
7398 | fi | |
7399 | ||
7400 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
7401 | ||
7402 | THREADS_LINK="-l$THREADS_LINK" | |
7403 | fi | |
7404 | ||
7405 | if test "$WXGTK12" = 1 ; then | |
7406 | cat >> confdefs.h <<EOF | |
7407 | #define __WXGTK12__ $WXGTK12 | |
7408 | EOF | |
7409 | ||
7410 | fi | |
7411 | ||
7412 | WXDEBUG= | |
7413 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
7414 | wxUSE_DEBUG_INFO=yes | |
7415 | WXDEBUG="-ggdb" | |
7416 | fi | |
7417 | ||
7418 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
7419 | WXDEBUG="-g" | |
7420 | wxUSE_OPTIMISE=no | |
7421 | fi | |
7422 | ||
7423 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
7424 | cat >> confdefs.h <<\EOF | |
7425 | #define WXDEBUG 1 | |
7426 | EOF | |
7427 | ||
7428 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
7429 | else | |
7430 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
7431 | fi | |
7432 | ||
7433 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
7434 | cat >> confdefs.h <<\EOF | |
7435 | #define wxUSE_MEMORY_TRACING 1 | |
7436 | EOF | |
7437 | ||
7438 | cat >> confdefs.h <<\EOF | |
7439 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
7440 | EOF | |
7441 | ||
7442 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
7443 | fi | |
7444 | ||
7445 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
7446 | DMALLOC_LINK="-ldmalloc" | |
7447 | fi | |
7448 | ||
7449 | PROFILE= | |
7450 | if test "$wxUSE_PROFILE" = "yes" ; then | |
7451 | PROFILE="-pg" | |
7452 | fi | |
7453 | ||
7454 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
7455 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
7456 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
7457 | OPTIMISE= | |
7458 | else | |
7459 | if test "$GCC" = yes ; then | |
7460 | OPTIMISE="-O2" | |
7461 | case "${host}" in | |
7462 | i586-*-*|i686-*-* ) | |
7463 | OPTIMISE="${OPTIMISE} " | |
7464 | ;; | |
7465 | esac | |
7466 | else | |
7467 | OPTIMISE="-O" | |
7468 | fi | |
7469 | fi | |
7470 | ||
7471 | ||
7472 | if test "$wxUSE_ZLIB" = "yes" ; then | |
7473 | cat >> confdefs.h <<\EOF | |
7474 | #define wxUSE_ZLIB 1 | |
7475 | EOF | |
7476 | ||
7477 | EXTRA_VPATH="$EXTRA_VPATH:\$(srcdir)/zlib" | |
7478 | LTLIBOBJS="$LTLIBOBJS adler32.lo compress.lo crc32.lo gzio.lo uncompr.lo deflate.lo trees.lo zutil.lo inflate.lo infblock.lo inftrees.lo infcodes.lo infutil.lo inffast.lo" | |
7479 | if eval "test x$wxUSE_STREAMS = x1"; then | |
7480 | LTLIBOBJS="$LTLIBOBJS zstream.lo" | |
7481 | fi | |
7482 | fi | |
7483 | ||
7484 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
7485 | cat >> confdefs.h <<\EOF | |
7486 | #define wxUSE_LIBPNG 1 | |
7487 | EOF | |
7488 | ||
7489 | LTLIBOBJS="$LTLIBOBJS imagpng.lo png.lo pngset.lo pngget.lo pngrutil.lo pngtrans.lo pngwutil.lo pngread.lo pngrio.lo pngwio.lo pngwrite.lo pngrtran.lo pngwtran.lo pngmem.lo pngerror.lo pngpread.lo" | |
7490 | EXTRA_VPATH="$EXTRA_VPATH:\$(srcdir)/png" | |
7491 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
7492 | fi | |
7493 | ||
7494 | if test "$wxUSE_LIBGIF" = "yes" ; then | |
7495 | cat >> confdefs.h <<\EOF | |
7496 | #define wxUSE_LIBGIF 1 | |
7497 | EOF | |
7498 | ||
7499 | LTLIBOBJS="$LTLIBOBJS imaggif.lo" | |
7500 | fi | |
7501 | ||
7502 | if test "$wxUSE_LIBJPEG" = "yes" ; then | |
7503 | cat >> confdefs.h <<\EOF | |
7504 | #define wxUSE_LIBJPEG 1 | |
7505 | EOF | |
7506 | ||
7507 | EXTRA_VPATH="$EXTRA_VPATH:\${srcdir}/jpeg" | |
7508 | LTLIBOBJS="$LTLIBOBJS imagjpeg.lo \ | |
7509 | jcomapi.lo jutils.lo jerror.lo jmemmgr.lo jmemnobs.lo \ | |
7510 | jcapimin.lo jcapistd.lo jctrans.lo jcparam.lo jdatadst.lo \ | |
7511 | jcinit.lo jcmaster.lo jcmarker.lo jcmainct.lo jcprepct.lo \ | |
7512 | jccoefct.lo jccolor.lo jcsample.lo jchuff.lo jcphuff.lo \ | |
7513 | jcdctmgr.lo jfdctfst.lo jfdctflt.lo jfdctint.lo \ | |
7514 | jdapimin.lo jdapistd.lo jdtrans.lo jdatasrc.lo \ | |
7515 | jdmaster.lo jdinput.lo jdmarker.lo jdhuff.lo jdphuff.lo \ | |
7516 | jdmainct.lo jdcoefct.lo jdpostct.lo jddctmgr.lo jidctfst.lo \ | |
7517 | jidctflt.lo jidctint.lo jidctred.lo jdsample.lo jdcolor.lo \ | |
7518 | jquant1.lo jquant2.lo jdmerge.lo" | |
7519 | fi | |
7520 | ||
7521 | if test "$wxUSE_OPENGL" = "yes"; then | |
7522 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
7523 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
7524 | echo "configure:7525: checking for GL/gl.h" >&5 | |
7525 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
7526 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7527 | else | |
7528 | cat > conftest.$ac_ext <<EOF | |
7529 | #line 7530 "configure" | |
7530 | #include "confdefs.h" | |
7531 | #include <GL/gl.h> | |
7532 | EOF | |
7533 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7534 | { (eval echo configure:7535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
7535 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
7536 | if test -z "$ac_err"; then | |
7537 | rm -rf conftest* | |
7538 | eval "ac_cv_header_$ac_safe=yes" | |
7539 | else | |
7540 | echo "$ac_err" >&5 | |
7541 | echo "configure: failed program was:" >&5 | |
7542 | cat conftest.$ac_ext >&5 | |
7543 | rm -rf conftest* | |
7544 | eval "ac_cv_header_$ac_safe=no" | |
7545 | fi | |
7546 | rm -f conftest* | |
7547 | fi | |
7548 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7549 | echo "$ac_t""yes" 1>&6 | |
7550 | ||
7551 | echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6 | |
7552 | echo "configure:7553: checking for glInitNames in -lGL" >&5 | |
7553 | ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'` | |
7554 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7555 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7556 | else | |
7557 | ac_save_LIBS="$LIBS" | |
7558 | LIBS="-lGL wxUSE_OPENGL=0 $LIBS" | |
7559 | cat > conftest.$ac_ext <<EOF | |
7560 | #line 7561 "configure" | |
7561 | #include "confdefs.h" | |
7562 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7563 | /* We use char because int might match the return type of a gcc2 | |
7564 | builtin and then its argument prototype would still apply. */ | |
7565 | char glInitNames(); | |
7566 | ||
7567 | int main() { | |
7568 | glInitNames() | |
7569 | ; return 0; } | |
7570 | EOF | |
7571 | if { (eval echo configure:7572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7572 | rm -rf conftest* | |
7573 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7574 | else | |
7575 | echo "configure: failed program was:" >&5 | |
7576 | cat conftest.$ac_ext >&5 | |
7577 | rm -rf conftest* | |
7578 | eval "ac_cv_lib_$ac_lib_var=no" | |
7579 | fi | |
7580 | rm -f conftest* | |
7581 | LIBS="$ac_save_LIBS" | |
7582 | ||
7583 | fi | |
7584 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7585 | echo "$ac_t""yes" 1>&6 | |
7586 | ||
7587 | OPENGL_LINK="-lGL" | |
7588 | cat >> confdefs.h <<\EOF | |
7589 | #define wxUSE_OPENGL 1 | |
7590 | EOF | |
7591 | ||
7592 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
7593 | ||
7594 | else | |
7595 | echo "$ac_t""no" 1>&6 | |
7596 | ||
7597 | echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6 | |
7598 | echo "configure:7599: checking for glInitNames in -lMesaGL" >&5 | |
7599 | ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'` | |
7600 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7601 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7602 | else | |
7603 | ac_save_LIBS="$LIBS" | |
7604 | LIBS="-lMesaGL $LIBS" | |
7605 | cat > conftest.$ac_ext <<EOF | |
7606 | #line 7607 "configure" | |
7607 | #include "confdefs.h" | |
7608 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7609 | /* We use char because int might match the return type of a gcc2 | |
7610 | builtin and then its argument prototype would still apply. */ | |
7611 | char glInitNames(); | |
7612 | ||
7613 | int main() { | |
7614 | glInitNames() | |
7615 | ; return 0; } | |
7616 | EOF | |
7617 | if { (eval echo configure:7618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7618 | rm -rf conftest* | |
7619 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7620 | else | |
7621 | echo "configure: failed program was:" >&5 | |
7622 | cat conftest.$ac_ext >&5 | |
7623 | rm -rf conftest* | |
7624 | eval "ac_cv_lib_$ac_lib_var=no" | |
7625 | fi | |
7626 | rm -f conftest* | |
7627 | LIBS="$ac_save_LIBS" | |
7628 | ||
7629 | fi | |
7630 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7631 | echo "$ac_t""yes" 1>&6 | |
7632 | ||
7633 | OPENGL_LINK="-lMesaGL" | |
7634 | cat >> confdefs.h <<\EOF | |
7635 | #define wxUSE_OPENGL 1 | |
7636 | EOF | |
7637 | ||
7638 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
7639 | ||
7640 | else | |
7641 | echo "$ac_t""no" 1>&6 | |
7642 | wxUSE_OPENGL=0 | |
7643 | fi | |
7644 | ||
7645 | ||
7646 | fi | |
7647 | ||
7648 | ||
7649 | else | |
7650 | echo "$ac_t""no" 1>&6 | |
7651 | wxUSE_OPENGL=0 | |
7652 | fi | |
7653 | ||
7654 | fi | |
7655 | ||
7656 | ||
7657 | if test "$wxUSE_GUI" = "yes"; then | |
7658 | cat >> confdefs.h <<\EOF | |
7659 | #define wxUSE_GUI 1 | |
7660 | EOF | |
7661 | ||
7662 | ||
7663 | LTLIBOBJS="$LTLIBOBJS \ | |
7664 | main.lo app.lo event.lo wincmn.lo window.lo control.lo framecmn.lo frame.lo dialog.lo panelg.lo \ | |
7665 | button.lo stattext.lo textctrl.lo \ | |
7666 | bitmap.lo brush.lo colour.lo cursor.lo data.lo dc.lo dcbase.lo dcclient.lo \ | |
7667 | dcmemory.lo dcscreen.lo font.lo gdicmn.lo gdiobj.lo icon.lo palette.lo pen.lo region.lo \ | |
7668 | menu.lo \ | |
7669 | settings.lo timer.lo msgdlgg.lo" | |
7670 | else | |
7671 | cat >> confdefs.h <<\EOF | |
7672 | #define wxUSE_NOGUI 1 | |
7673 | EOF | |
7674 | ||
7675 | fi | |
7676 | ||
7677 | ||
7678 | if test "$wxUSE_UNIX" = "yes"; then | |
7679 | cat >> confdefs.h <<\EOF | |
7680 | #define wxUSE_UNIX 1 | |
7681 | EOF | |
7682 | ||
7683 | LTLIBOBJS="$LTLIBOBJS utilsunx.lo" | |
7684 | fi | |
7685 | ||
7686 | ||
7687 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
7688 | cat >> confdefs.h <<\EOF | |
7689 | #define wxUSE_APPLE_IEEE 1 | |
7690 | EOF | |
7691 | ||
7692 | LTLIBOBJS="$LTLIBOBJS extended.lo" | |
7693 | fi | |
7694 | ||
7695 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
7696 | cat >> confdefs.h <<\EOF | |
7697 | #define wxUSE_TIMEDATE 1 | |
7698 | EOF | |
7699 | ||
7700 | LTLIBOBJS="$LTLIBOBJS date.lo time.lo" | |
7701 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
7702 | fi | |
7703 | ||
7704 | if test "$wxUSE_FILE" = "yes"; then | |
7705 | cat >> confdefs.h <<\EOF | |
7706 | #define wxUSE_FILE 1 | |
7707 | EOF | |
7708 | ||
7709 | LTLIBOBJS="$LTLIBOBJS file.lo" | |
7710 | fi | |
7711 | ||
7712 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
7713 | if test "$wxUSE_FILE" != "yes"; then | |
7714 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 | |
7715 | else | |
7716 | cat >> confdefs.h <<\EOF | |
7717 | #define wxUSE_TEXTFILE 1 | |
7718 | EOF | |
7719 | ||
7720 | LTLIBOBJS="$LTLIBOBJS textfile.lo" | |
7721 | fi | |
7722 | fi | |
7723 | ||
7724 | if test "$wxUSE_CONFIG" = "yes" ; then | |
7725 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
7726 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 | |
7727 | else | |
7728 | cat >> confdefs.h <<\EOF | |
7729 | #define wxUSE_CONFIG 1 | |
7730 | EOF | |
7731 | ||
7732 | LTLIBOBJS="$LTLIBOBJS config.lo fileconf.lo" | |
7733 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
7734 | fi | |
7735 | fi | |
7736 | ||
7737 | if test "$wxUSE_INTL" = "yes" ; then | |
7738 | if test "$wxUSE_FILE" != "yes"; then | |
7739 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 | |
7740 | else | |
7741 | cat >> confdefs.h <<\EOF | |
7742 | #define wxUSE_INTL 1 | |
7743 | EOF | |
7744 | ||
7745 | LTLIBOBJS="$LTLIBOBJS intl.lo" | |
7746 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
7747 | fi | |
7748 | fi | |
7749 | ||
7750 | if test "$wxUSE_LOG" = "yes"; then | |
7751 | cat >> confdefs.h <<\EOF | |
7752 | #define wxUSE_LOG 1 | |
7753 | EOF | |
7754 | ||
7755 | LTLIBOBJS="$LTLIBOBJS log.lo" | |
7756 | fi | |
7757 | ||
7758 | if test "$wxUSE_LONGLONG" = "yes"; then | |
7759 | cat >> confdefs.h <<\EOF | |
7760 | #define wxUSE_LONGLONG 1 | |
7761 | EOF | |
7762 | ||
7763 | LTLIBOBJS="$LTLIBOBJS longlong.lo" | |
7764 | fi | |
7765 | ||
7766 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
7767 | if test "$wxUSE_THREADS" = "yes" ; then | |
7768 | cat >> confdefs.h <<\EOF | |
7769 | #define wxUSE_SOCKETS 1 | |
7770 | EOF | |
7771 | ||
7772 | LTLIBOBJS="$LTLIBOBJS sckint.lo socket.lo sckaddr.lo protocol.lo http.lo ftp.lo url.lo" | |
7773 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket" | |
7774 | else | |
7775 | echo "configure: warning: socket classes require --with-threads and won't be compiled without it" 1>&2 | |
7776 | wxUSE_SOCKETS=0 | |
7777 | fi | |
7778 | fi | |
7779 | ||
7780 | if test "$wxUSE_STREAMS" = "yes" ; then | |
7781 | cat >> confdefs.h <<\EOF | |
7782 | #define wxUSE_STREAMS 1 | |
7783 | EOF | |
7784 | ||
7785 | LTLIBOBJS="$LTLIBOBJS stream.lo wfstream.lo datstrm.lo mstream.lo objstrm.lo" | |
7786 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
7787 | LTLIBOBJS="$LTLIBOBJS sckstrm.lo" | |
7788 | fi | |
7789 | fi | |
7790 | ||
7791 | if test "$wxUSE_SERIAL" = "yes" ; then | |
7792 | cat >> confdefs.h <<\EOF | |
7793 | #define wxUSE_SERIAL 1 | |
7794 | EOF | |
7795 | ||
7796 | fi | |
7797 | ||
7798 | ||
7799 | if test "$wxUSE_SOCKETS" = "yes"; then | |
7800 | ||
7801 | ac_ext=C | |
7802 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7803 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7804 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7805 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7806 | cross_compiling=$ac_cv_prog_cxx_cross | |
7807 | ||
7808 | echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6 | |
7809 | echo "configure:7810: checking the type of the third argument of getsockname" >&5 | |
7810 | cat > conftest.$ac_ext <<EOF | |
7811 | #line 7812 "configure" | |
7812 | #include "confdefs.h" | |
7813 | #include <sys/socket.h> | |
7814 | int main() { | |
7815 | socklen_t len; getsockname(0, NULL, &len); | |
7816 | ; return 0; } | |
7817 | EOF | |
7818 | if { (eval echo configure:7819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
7819 | rm -rf conftest* | |
7820 | cat >> confdefs.h <<\EOF | |
7821 | #define SOCKLEN_T socklen_t | |
7822 | EOF | |
7823 | echo "$ac_t""socklen_t" 1>&6 | |
7824 | else | |
7825 | echo "configure: failed program was:" >&5 | |
7826 | cat conftest.$ac_ext >&5 | |
7827 | rm -rf conftest* | |
7828 | cat > conftest.$ac_ext <<EOF | |
7829 | #line 7830 "configure" | |
7830 | #include "confdefs.h" | |
7831 | #include <sys/socket.h> | |
7832 | int main() { | |
7833 | size_t len; getsockname(0, NULL, &len); | |
7834 | ; return 0; } | |
7835 | EOF | |
7836 | if { (eval echo configure:7837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
7837 | rm -rf conftest* | |
7838 | cat >> confdefs.h <<\EOF | |
7839 | #define SOCKLEN_T size_t | |
7840 | EOF | |
7841 | echo "$ac_t""size_t" 1>&6 | |
7842 | else | |
7843 | echo "configure: failed program was:" >&5 | |
7844 | cat conftest.$ac_ext >&5 | |
7845 | rm -rf conftest* | |
7846 | cat > conftest.$ac_ext <<EOF | |
7847 | #line 7848 "configure" | |
7848 | #include "confdefs.h" | |
7849 | #include <sys/socket.h> | |
7850 | int main() { | |
7851 | int len; getsockname(0, NULL, &len); | |
7852 | ; return 0; } | |
7853 | EOF | |
7854 | if { (eval echo configure:7855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
7855 | rm -rf conftest* | |
7856 | cat >> confdefs.h <<\EOF | |
7857 | #define SOCKLEN_T int | |
7858 | EOF | |
7859 | echo "$ac_t""int" 1>&6 | |
7860 | else | |
7861 | echo "configure: failed program was:" >&5 | |
7862 | cat conftest.$ac_ext >&5 | |
7863 | rm -rf conftest* | |
7864 | echo "$ac_t""unknown" 1>&6 | |
7865 | ||
7866 | fi | |
7867 | rm -f conftest* | |
7868 | ||
7869 | fi | |
7870 | rm -f conftest* | |
7871 | ||
7872 | fi | |
7873 | rm -f conftest* | |
7874 | ac_ext=c | |
7875 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7876 | ac_cpp='$CPP $CPPFLAGS' | |
7877 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7878 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7879 | cross_compiling=$ac_cv_prog_cc_cross | |
7880 | ||
7881 | fi | |
7882 | ||
7883 | ||
7884 | if test "$wxUSE_JOYSTICK" = 1; then | |
7885 | for ac_hdr in linux/joystick.h | |
7886 | do | |
7887 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7888 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
7889 | echo "configure:7890: checking for $ac_hdr" >&5 | |
7890 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
7891 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7892 | else | |
7893 | cat > conftest.$ac_ext <<EOF | |
7894 | #line 7895 "configure" | |
7895 | #include "confdefs.h" | |
7896 | #include <$ac_hdr> | |
7897 | EOF | |
7898 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7899 | { (eval echo configure:7900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
7900 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
7901 | if test -z "$ac_err"; then | |
7902 | rm -rf conftest* | |
7903 | eval "ac_cv_header_$ac_safe=yes" | |
7904 | else | |
7905 | echo "$ac_err" >&5 | |
7906 | echo "configure: failed program was:" >&5 | |
7907 | cat conftest.$ac_ext >&5 | |
7908 | rm -rf conftest* | |
7909 | eval "ac_cv_header_$ac_safe=no" | |
7910 | fi | |
7911 | rm -f conftest* | |
7912 | fi | |
7913 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7914 | echo "$ac_t""yes" 1>&6 | |
7915 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7916 | cat >> confdefs.h <<EOF | |
7917 | #define $ac_tr_hdr 1 | |
7918 | EOF | |
7919 | ||
7920 | else | |
7921 | echo "$ac_t""no" 1>&6 | |
7922 | fi | |
7923 | done | |
7924 | ||
7925 | if test "$ac_cv_header_linux_joystick_h" = "yes"; then | |
7926 | cat >> confdefs.h <<\EOF | |
7927 | #define wxUSE_JOYSTICK 1 | |
7928 | EOF | |
7929 | ||
7930 | LTLIBOBJS="$LTLIBOBJS joystick.lo" | |
7931 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
7932 | fi | |
7933 | fi | |
7934 | ||
7935 | ||
7936 | HAVE_DL_FUNCS=0 | |
7937 | HAVE_SHL_FUNCS=0 | |
7938 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
7939 | for ac_func in dlopen | |
7940 | do | |
7941 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
7942 | echo "configure:7943: checking for $ac_func" >&5 | |
7943 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
7944 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7945 | else | |
7946 | cat > conftest.$ac_ext <<EOF | |
7947 | #line 7948 "configure" | |
7948 | #include "confdefs.h" | |
7949 | /* System header to define __stub macros and hopefully few prototypes, | |
7950 | which can conflict with char $ac_func(); below. */ | |
7951 | #include <assert.h> | |
7952 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7953 | /* We use char because int might match the return type of a gcc2 | |
7954 | builtin and then its argument prototype would still apply. */ | |
7955 | char $ac_func(); | |
7956 | ||
7957 | int main() { | |
7958 | ||
7959 | /* The GNU C library defines this for functions which it implements | |
7960 | to always fail with ENOSYS. Some functions are actually named | |
7961 | something starting with __ and the normal name is an alias. */ | |
7962 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7963 | choke me | |
7964 | #else | |
7965 | $ac_func(); | |
7966 | #endif | |
7967 | ||
7968 | ; return 0; } | |
7969 | EOF | |
7970 | if { (eval echo configure:7971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7971 | rm -rf conftest* | |
7972 | eval "ac_cv_func_$ac_func=yes" | |
7973 | else | |
7974 | echo "configure: failed program was:" >&5 | |
7975 | cat conftest.$ac_ext >&5 | |
7976 | rm -rf conftest* | |
7977 | eval "ac_cv_func_$ac_func=no" | |
7978 | fi | |
7979 | rm -f conftest* | |
7980 | fi | |
7981 | ||
7982 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7983 | echo "$ac_t""yes" 1>&6 | |
7984 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7985 | cat >> confdefs.h <<EOF | |
7986 | #define $ac_tr_func 1 | |
7987 | EOF | |
7988 | cat >> confdefs.h <<\EOF | |
7989 | #define HAVE_DLOPEN 1 | |
7990 | EOF | |
7991 | HAVE_DL_FUNCS=1 | |
7992 | else | |
7993 | echo "$ac_t""no" 1>&6 | |
7994 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
7995 | echo "configure:7996: checking for dlopen in -ldl" >&5 | |
7996 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` | |
7997 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7998 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7999 | else | |
8000 | ac_save_LIBS="$LIBS" | |
8001 | LIBS="-ldl $LIBS" | |
8002 | cat > conftest.$ac_ext <<EOF | |
8003 | #line 8004 "configure" | |
8004 | #include "confdefs.h" | |
8005 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8006 | /* We use char because int might match the return type of a gcc2 | |
8007 | builtin and then its argument prototype would still apply. */ | |
8008 | char dlopen(); | |
8009 | ||
8010 | int main() { | |
8011 | dlopen() | |
8012 | ; return 0; } | |
8013 | EOF | |
8014 | if { (eval echo configure:8015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8015 | rm -rf conftest* | |
8016 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8017 | else | |
8018 | echo "configure: failed program was:" >&5 | |
8019 | cat conftest.$ac_ext >&5 | |
8020 | rm -rf conftest* | |
8021 | eval "ac_cv_lib_$ac_lib_var=no" | |
8022 | fi | |
8023 | rm -f conftest* | |
8024 | LIBS="$ac_save_LIBS" | |
8025 | ||
8026 | fi | |
8027 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8028 | echo "$ac_t""yes" 1>&6 | |
8029 | cat >> confdefs.h <<\EOF | |
8030 | #define HAVE_DLOPEN 1 | |
8031 | EOF | |
8032 | HAVE_DL_FUNCS=1 | |
8033 | else | |
8034 | echo "$ac_t""no" 1>&6 | |
8035 | fi | |
8036 | ||
8037 | fi | |
8038 | done | |
8039 | ||
8040 | for ac_func in shl_load | |
8041 | do | |
8042 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
8043 | echo "configure:8044: checking for $ac_func" >&5 | |
8044 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
8045 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8046 | else | |
8047 | cat > conftest.$ac_ext <<EOF | |
8048 | #line 8049 "configure" | |
8049 | #include "confdefs.h" | |
8050 | /* System header to define __stub macros and hopefully few prototypes, | |
8051 | which can conflict with char $ac_func(); below. */ | |
8052 | #include <assert.h> | |
8053 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8054 | /* We use char because int might match the return type of a gcc2 | |
8055 | builtin and then its argument prototype would still apply. */ | |
8056 | char $ac_func(); | |
8057 | ||
8058 | int main() { | |
8059 | ||
8060 | /* The GNU C library defines this for functions which it implements | |
8061 | to always fail with ENOSYS. Some functions are actually named | |
8062 | something starting with __ and the normal name is an alias. */ | |
8063 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8064 | choke me | |
8065 | #else | |
8066 | $ac_func(); | |
8067 | #endif | |
8068 | ||
8069 | ; return 0; } | |
8070 | EOF | |
8071 | if { (eval echo configure:8072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8072 | rm -rf conftest* | |
8073 | eval "ac_cv_func_$ac_func=yes" | |
8074 | else | |
8075 | echo "configure: failed program was:" >&5 | |
8076 | cat conftest.$ac_ext >&5 | |
8077 | rm -rf conftest* | |
8078 | eval "ac_cv_func_$ac_func=no" | |
8079 | fi | |
8080 | rm -f conftest* | |
8081 | fi | |
8082 | ||
8083 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8084 | echo "$ac_t""yes" 1>&6 | |
8085 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8086 | cat >> confdefs.h <<EOF | |
8087 | #define $ac_tr_func 1 | |
8088 | EOF | |
8089 | cat >> confdefs.h <<\EOF | |
8090 | #define HAVE_SHL_LOAD 1 | |
8091 | EOF | |
8092 | HAVE_DL_FUNCS=1 HAVE_SHL_FUNCS=1 | |
8093 | else | |
8094 | echo "$ac_t""no" 1>&6 | |
8095 | fi | |
8096 | done | |
8097 | ||
8098 | ||
8099 | if test "$HAVE_DL_FUNCS" = 0; then | |
8100 | echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2 | |
8101 | wxUSE_ODBC=no | |
8102 | wxUSE_DYNLIB_CLASS=no | |
8103 | fi | |
8104 | fi | |
8105 | ||
8106 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
8107 | cat >> confdefs.h <<\EOF | |
8108 | #define wxUSE_DYNLIB_CLASS 1 | |
8109 | EOF | |
8110 | ||
8111 | LTLIBOBJS="$LTLIBOBJS dynlib.lo" | |
8112 | fi | |
8113 | ||
8114 | ||
8115 | if test "$wxUSE_UNICODE" = "yes" ; then | |
8116 | cat >> confdefs.h <<\EOF | |
8117 | #define wxUSE_UNICODE 1 | |
8118 | EOF | |
8119 | ||
8120 | fi | |
8121 | ||
8122 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
8123 | cat >> confdefs.h <<\EOF | |
8124 | #define wxUSE_WCSRTOMBS 1 | |
8125 | EOF | |
8126 | ||
8127 | fi | |
8128 | ||
8129 | ||
8130 | IODBC_C_SRC="" | |
8131 | if test "$wxUSE_ODBC" = "yes" ; then | |
8132 | cat >> confdefs.h <<\EOF | |
8133 | #define wxUSE_ODBC 1 | |
8134 | EOF | |
8135 | ||
8136 | EXTRA_VPATH="$EXTRA_VPATH:\$(srcdir)/iodbc" | |
8137 | LTLIBOBJS="$LTLIBOBJS catalog.lo connect.lo dlf.lo dlproc.lo execute.lo fetch.lo hdbc.lo henv.lo herr.lo hstmt.lo info.lo itrace.lo misc.lo prepare.lo result.lo" | |
8138 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
8139 | fi | |
8140 | ||
8141 | ||
8142 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
8143 | cat >> confdefs.h <<\EOF | |
8144 | #define wxUSE_POSTSCRIPT 1 | |
8145 | EOF | |
8146 | ||
8147 | LTLIBOBJS="$LTLIBOBJS printps.lo dcpsg.lo" | |
8148 | fi | |
8149 | ||
8150 | cat >> confdefs.h <<\EOF | |
8151 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
8152 | EOF | |
8153 | ||
8154 | ||
8155 | cat >> confdefs.h <<\EOF | |
8156 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
8157 | EOF | |
8158 | ||
8159 | ||
8160 | ||
8161 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
8162 | cat >> confdefs.h <<\EOF | |
8163 | #define wxUSE_CONSTRAINTS 1 | |
8164 | EOF | |
8165 | ||
8166 | ||
8167 | LTLIBOBJS="$LTLIBOBJS layout.lo laywin.lo" | |
8168 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
8169 | fi | |
8170 | ||
8171 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
8172 | cat >> confdefs.h <<\EOF | |
8173 | #define wxUSE_MDI_ARCHITECTURE 1 | |
8174 | EOF | |
8175 | ||
8176 | LTLIBOBJS="$LTLIBOBJS mdi.lo" | |
8177 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
8178 | fi | |
8179 | ||
8180 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
8181 | cat >> confdefs.h <<\EOF | |
8182 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
8183 | EOF | |
8184 | ||
8185 | LTLIBOBJS="$LTLIBOBJS docview.lo" | |
8186 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
8187 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
8188 | LTLIBOBJS="$LTLIBOBJS docmdi.lo" | |
8189 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
8190 | fi | |
8191 | fi | |
8192 | ||
8193 | if test "$wxUSE_HELP" = "yes"; then | |
8194 | cat >> confdefs.h <<\EOF | |
8195 | #define wxUSE_HELP 1 | |
8196 | EOF | |
8197 | ||
8198 | LTLIBOBJS="$LTLIBOBJS helpext.lo helphtml.lo helpbase.lo" | |
8199 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
8200 | fi | |
8201 | ||
8202 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
8203 | cat >> confdefs.h <<\EOF | |
8204 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
8205 | EOF | |
8206 | ||
8207 | LTLIBOBJS="$LTLIBOBJS prntbase.lo paper.lo" | |
8208 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
8209 | fi | |
8210 | ||
8211 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
8212 | cat >> confdefs.h <<\EOF | |
8213 | #define wxUSE_PROLOGIO 1 | |
8214 | EOF | |
8215 | ||
8216 | LTLIBOBJS="$LTLIBOBJS wxexpr.lo parser.lo" | |
8217 | fi | |
8218 | ||
8219 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
8220 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
8221 | cat >> confdefs.h <<\EOF | |
8222 | #define wxUSE_RESOURCES 1 | |
8223 | EOF | |
8224 | ||
8225 | LTLIBOBJS="$LTLIBOBJS resource.lo" | |
8226 | if test "$wxUSE_GTK" = 1; then | |
8227 | LTLIBOBJS="$LTLIBOBJS utilsres.lo" | |
8228 | fi | |
8229 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
8230 | else | |
8231 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 | |
8232 | fi | |
8233 | fi | |
8234 | ||
8235 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
8236 | cat >> confdefs.h <<\EOF | |
8237 | #define wxUSE_X_RESOURCES 1 | |
8238 | EOF | |
8239 | ||
8240 | fi | |
8241 | ||
8242 | ||
8243 | if test "$wxUSE_IPC" = "yes"; then | |
8244 | cat >> confdefs.h <<\EOF | |
8245 | #define wxUSE_IPC 1 | |
8246 | EOF | |
8247 | ||
8248 | LTLIBOBJS="$LTLIBOBJS ipcbase.lo sckipc.lo" | |
8249 | fi | |
8250 | ||
8251 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
8252 | cat >> confdefs.h <<\EOF | |
8253 | #define wxUSE_CLIPBOARD 1 | |
8254 | EOF | |
8255 | ||
8256 | LTLIBOBJS="$LTLIBOBJS clipbrd.lo dataobj.lo" | |
8257 | fi | |
8258 | ||
8259 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
8260 | if test "$WXGTK12" = 1 ; then | |
8261 | cat >> confdefs.h <<\EOF | |
8262 | #define wxUSE_DRAG_AND_DROP 1 | |
8263 | EOF | |
8264 | ||
8265 | LTLIBOBJS="$LTLIBOBJS dnd.lo" | |
8266 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
8267 | if test "$wxUSE_CLIPBOARD" != "yes"; then | |
8268 | LTLIBOBJS="$LTLIBOBJS dataobj.lo" | |
8269 | fi | |
8270 | else | |
8271 | echo "configure: warning: drag and drop is only supported under GTK 1.2" 1>&2 | |
8272 | fi | |
8273 | fi | |
8274 | ||
8275 | if test "$wxUSE_SPLINES" = "yes" ; then | |
8276 | cat >> confdefs.h <<\EOF | |
8277 | #define wxUSE_SPLINES 1 | |
8278 | EOF | |
8279 | ||
8280 | fi | |
8281 | ||
8282 | ||
8283 | if test "$wxUSE_ACCEL" = "yes"; then | |
8284 | cat >> confdefs.h <<\EOF | |
8285 | #define wxUSE_ACCEL 1 | |
8286 | EOF | |
8287 | ||
8288 | LTLIBOBJS="$LTLIBOBJS accel.lo" | |
8289 | fi | |
8290 | ||
8291 | if test "$wxUSE_CARET" = "yes"; then | |
8292 | cat >> confdefs.h <<\EOF | |
8293 | #define wxUSE_CARET 1 | |
8294 | EOF | |
8295 | ||
8296 | LTLIBOBJS="$LTLIBOBJS caret.lo" | |
8297 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
8298 | fi | |
8299 | ||
8300 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
8301 | cat >> confdefs.h <<\EOF | |
8302 | #define wxUSE_COMBOBOX 1 | |
8303 | EOF | |
8304 | ||
8305 | LTLIBOBJS="$LTLIBOBJS choice.lo combobox.lo" | |
8306 | fi | |
8307 | ||
8308 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
8309 | cat >> confdefs.h <<\EOF | |
8310 | #define wxUSE_BMPBUTTON 1 | |
8311 | EOF | |
8312 | ||
8313 | LTLIBOBJS="$LTLIBOBJS bmpbuttn.lo" | |
8314 | fi | |
8315 | ||
8316 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
8317 | cat >> confdefs.h <<\EOF | |
8318 | #define wxUSE_CHECKBOX 1 | |
8319 | EOF | |
8320 | ||
8321 | LTLIBOBJS="$LTLIBOBJS checkbox.lo" | |
8322 | fi | |
8323 | ||
8324 | if test "$wxUSE_CHECKLST" = "yes"; then | |
8325 | cat >> confdefs.h <<\EOF | |
8326 | #define wxUSE_CHECKLISTBOX 1 | |
8327 | EOF | |
8328 | ||
8329 | LTLIBOBJS="$LTLIBOBJS checklst.lo" | |
8330 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
8331 | fi | |
8332 | ||
8333 | if test "$wxUSE_GAUGE" = "yes"; then | |
8334 | cat >> confdefs.h <<\EOF | |
8335 | #define wxUSE_GAUGE 1 | |
8336 | EOF | |
8337 | ||
8338 | LTLIBOBJS="$LTLIBOBJS gauge.lo" | |
8339 | fi | |
8340 | ||
8341 | if test "$wxUSE_GRID" = "yes"; then | |
8342 | cat >> confdefs.h <<\EOF | |
8343 | #define wxUSE_GRID 1 | |
8344 | EOF | |
8345 | ||
8346 | LTLIBOBJS="$LTLIBOBJS gridg.lo" | |
8347 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
8348 | fi | |
8349 | ||
8350 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
8351 | cat >> confdefs.h <<\EOF | |
8352 | #define wxUSE_IMAGLIST 1 | |
8353 | EOF | |
8354 | ||
8355 | LTLIBOBJS="$LTLIBOBJS imaglist.lo" | |
8356 | fi | |
8357 | ||
8358 | if test "$wxUSE_LISTBOX" = "yes"; then | |
8359 | cat >> confdefs.h <<\EOF | |
8360 | #define wxUSE_LISTBOX 1 | |
8361 | EOF | |
8362 | ||
8363 | LTLIBOBJS="$LTLIBOBJS listbox.lo" | |
8364 | fi | |
8365 | ||
8366 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
8367 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
8368 | cat >> confdefs.h <<\EOF | |
8369 | #define wxUSE_LISTCTRL 1 | |
8370 | EOF | |
8371 | ||
8372 | LTLIBOBJS="$LTLIBOBJS listctrl.lo" | |
8373 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
8374 | else | |
8375 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
8376 | fi | |
8377 | fi | |
8378 | ||
8379 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
8380 | cat >> confdefs.h <<\EOF | |
8381 | #define wxUSE_NOTEBOOK 1 | |
8382 | EOF | |
8383 | ||
8384 | LTLIBOBJS="$LTLIBOBJS notebook.lo" | |
8385 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
8386 | fi | |
8387 | ||
8388 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
8389 | cat >> confdefs.h <<\EOF | |
8390 | #define wxUSE_RADIOBOX 1 | |
8391 | EOF | |
8392 | ||
8393 | LTLIBOBJS="$LTLIBOBJS radiobox.lo" | |
8394 | fi | |
8395 | ||
8396 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
8397 | cat >> confdefs.h <<\EOF | |
8398 | #define wxUSE_RADIOBTN 1 | |
8399 | EOF | |
8400 | ||
8401 | LTLIBOBJS="$LTLIBOBJS radiobut.lo" | |
8402 | fi | |
8403 | ||
8404 | if test "wxUSE_SASH" = 1; then | |
8405 | cat >> confdefs.h <<\EOF | |
8406 | #define wxUSE_SASH 1 | |
8407 | EOF | |
8408 | ||
8409 | LTLIBOBJS="$LTLIBOBJS sashwin.lo" | |
8410 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
8411 | fi | |
8412 | ||
8413 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
8414 | cat >> confdefs.h <<\EOF | |
8415 | #define wxUSE_SCROLLBAR 1 | |
8416 | EOF | |
8417 | ||
8418 | LTLIBOBJS="$LTLIBOBJS scrolbar.lo scrolwin.lo" | |
8419 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll" | |
8420 | fi | |
8421 | ||
8422 | if test "$wxUSE_SLIDER" = "yes"; then | |
8423 | cat >> confdefs.h <<\EOF | |
8424 | #define wxUSE_SLIDER 1 | |
8425 | EOF | |
8426 | ||
8427 | LTLIBOBJS="$LTLIBOBJS slider.lo" | |
8428 | fi | |
8429 | ||
8430 | if test "$wxUSE_SPINBTN" = "yes"; then | |
8431 | cat >> confdefs.h <<\EOF | |
8432 | #define wxUSE_SPINBTN 1 | |
8433 | EOF | |
8434 | ||
8435 | LTLIBOBJS="$LTLIBOBJS spinbutt.lo" | |
8436 | fi | |
8437 | ||
8438 | if test "$wxUSE_SPLITTER" = "yes"; then | |
8439 | cat >> confdefs.h <<\EOF | |
8440 | #define wxUSE_SPLITTER 1 | |
8441 | EOF | |
8442 | ||
8443 | LTLIBOBJS="$LTLIBOBJS splitter.lo" | |
8444 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
8445 | fi | |
8446 | ||
8447 | if test "$wxUSE_STATBMP" = "yes"; then | |
8448 | cat >> confdefs.h <<\EOF | |
8449 | #define wxUSE_STATBMP 1 | |
8450 | EOF | |
8451 | ||
8452 | LTLIBOBJS="$LTLIBOBJS statbmp.lo" | |
8453 | fi | |
8454 | ||
8455 | if test "$wxUSE_STATBOX" = "yes"; then | |
8456 | cat >> confdefs.h <<\EOF | |
8457 | #define wxUSE_STATBOX 1 | |
8458 | EOF | |
8459 | ||
8460 | LTLIBOBJS="$LTLIBOBJS statbox.lo" | |
8461 | fi | |
8462 | ||
8463 | if test "$wxUSE_STATLINE" = "yes"; then | |
8464 | cat >> confdefs.h <<\EOF | |
8465 | #define wxUSE_STATLINE 1 | |
8466 | EOF | |
8467 | ||
8468 | LTLIBOBJS="$LTLIBOBJS statline.lo" | |
8469 | fi | |
8470 | ||
8471 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
8472 | cat >> confdefs.h <<\EOF | |
8473 | #define wxUSE_STATUSBAR 1 | |
8474 | EOF | |
8475 | ||
8476 | LTLIBOBJS="$LTLIBOBJS statusbr.lo" | |
8477 | fi | |
8478 | ||
8479 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
8480 | cat >> confdefs.h <<\EOF | |
8481 | #define wxUSE_TAB_DIALOG 1 | |
8482 | EOF | |
8483 | ||
8484 | LTLIBOBJS="$LTLIBOBJS tabg.lo" | |
8485 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
8486 | fi | |
8487 | ||
8488 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
8489 | cat >> confdefs.h <<\EOF | |
8490 | #define wxUSE_TOOLBAR 1 | |
8491 | EOF | |
8492 | ||
8493 | LTLIBOBJS="$LTLIBOBJS tbarbase.lo tbargtk.lo" | |
8494 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
8495 | fi | |
8496 | ||
8497 | if test "$wxUSE_TOOLTIPS" = "yes" ; then | |
8498 | if test "$wxUSE_MOTIF" = "yes"; then | |
8499 | echo "configure: warning: tooltips are not supported yet under Motif" 1>&2 | |
8500 | else | |
8501 | cat >> confdefs.h <<\EOF | |
8502 | #define wxUSE_TOOLTIPS 1 | |
8503 | EOF | |
8504 | ||
8505 | LTLIBOBJS="$LTLIBOBJS tooltip.lo" | |
8506 | fi | |
8507 | fi | |
8508 | ||
8509 | if test "$wxUSE_TREECTRL" = "yes"; then | |
8510 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
8511 | cat >> confdefs.h <<\EOF | |
8512 | #define wxUSE_TREECTRL 1 | |
8513 | EOF | |
8514 | ||
8515 | LTLIBOBJS="$LTLIBOBJS treectrl.lo" | |
8516 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
8517 | else | |
8518 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
8519 | fi | |
8520 | fi | |
8521 | ||
8522 | ||
8523 | if test "$wxUSE_WXTREE" = "yes"; then | |
8524 | cat >> confdefs.h <<\EOF | |
8525 | #define wxUSE_WXTREE 1 | |
8526 | EOF | |
8527 | ||
8528 | fi | |
8529 | ||
8530 | if test "$wxUSE_METAFILE" = "yes"; then | |
8531 | cat >> confdefs.h <<\EOF | |
8532 | #define wxUSE_METAFILE 1 | |
8533 | EOF | |
8534 | ||
8535 | LTLIBOBJS="$LTLIBOBJS metafile.lo" | |
8536 | fi | |
8537 | ||
8538 | if test "$wxUSE_COMMONDLGS" = "yes"; then | |
8539 | LTLIBOBJS="$LTLIBOBJS progdlgg.lo filedlg.lo fontdlgg.lo" | |
8540 | ||
8541 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
8542 | echo "configure: warning: many common dialogs cannot be used without constraints so they won't be compiled without them" 1>&2 | |
8543 | else | |
8544 | cat >> confdefs.h <<\EOF | |
8545 | #define wxUSE_CONSTRAINTS 1 | |
8546 | EOF | |
8547 | ||
8548 | cat >> confdefs.h <<\EOF | |
8549 | #define wxUSE_TEXTDLG 1 | |
8550 | EOF | |
8551 | ||
8552 | LTLIBOBJS="$LTLIBOBJS colrdlgg.lo textdlgg.lo choicdgg.lo" | |
8553 | ||
8554 | if test "$wxUSE_TREECTRL" != "yes"; then | |
8555 | echo "configure: warning: wxDirDialog cannot be used without wxTreeCtrl and it won't be compiled without it" 1>&2 | |
8556 | else | |
8557 | cat >> confdefs.h <<\EOF | |
8558 | #define wxUSE_DIRDLG 1 | |
8559 | EOF | |
8560 | ||
8561 | LTLIBOBJS="$LTLIBOBJS dirdlgg.lo" | |
8562 | fi | |
8563 | fi | |
8564 | ||
8565 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
8566 | LTLIBOBJS="$LTLIBOBJS prntdlgg.lo" | |
8567 | else | |
8568 | echo "configure: warning: wxPrintDialog class won't be compiled without printing support" 1>&2 | |
8569 | fi | |
8570 | fi | |
8571 | ||
8572 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
8573 | cat >> confdefs.h <<\EOF | |
8574 | #define wxUSE_MINIFRAME 1 | |
8575 | EOF | |
8576 | ||
8577 | LTLIBOBJS="$LTLIBOBJS minifram.lo" | |
8578 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
8579 | fi | |
8580 | ||
8581 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
8582 | cat >> confdefs.h <<\EOF | |
8583 | #define wxUSE_VALIDATORS 1 | |
8584 | EOF | |
8585 | ||
8586 | LTLIBOBJS="$LTLIBOBJS valgen.lo validate.lo valtext.lo" | |
8587 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
8588 | fi | |
8589 | ||
8590 | ||
8591 | GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK" | |
8592 | ||
8593 | EXTRA_LIBS="$LIBS $POSIX4_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $GUILIBS" | |
8594 | ||
8595 | LIBS="\${top_builddir}/src/libwx_${WX_LIBRARY}.la $EXTRA_LIBS" | |
8596 | ||
8597 | INCLUDES="$TOOLKIT_INCLUDE $ZLIB_INCLUDE $LIBPNG_INCLUDE -I. -I\${top_builddir}/include -I\${top_srcdir}/include" | |
8598 | ||
8599 | if test "$ac_cv_prog_gcc" = "yes"; then | |
8600 | CXXWARNINGS="-Wall" | |
8601 | fi | |
8602 | EXTRA_CFLAGS="$WXDEBUG $PROFILE $OPTIMISE $INCLUDES" | |
8603 | ||
8604 | CFLAGS="$CFLAGS $EXTRA_CFLAGS" | |
8605 | CXXFLAGS="$CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS" | |
8606 | ||
8607 | if test "$wxUSE_GUI" = "yes"; then | |
8608 | ||
8609 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \ | |
8610 | forty fractal image wxpoem" | |
8611 | fi | |
8612 | ||
8613 | ||
8614 | ||
8615 | ||
8616 | ||
8617 | ||
8618 | LIBTOOL="$LIBTOOL --silent" | |
8619 | ||
8620 | ||
8621 | ||
8622 | ||
8623 | ||
8624 | ||
8625 | ||
8626 | ||
8627 | ||
8628 | ||
8629 | ||
8630 | ||
8631 | ||
8632 | ||
8633 | ||
8634 | ||
8635 | ||
8636 | ||
8637 | ||
8638 | ||
8639 | SETUPH_DIR=include/wx/${TOOLKIT_DIR} | |
8640 | mkdir -p ${SETUPH_DIR} | |
8641 | ||
8642 | ||
8643 | ||
8644 | ||
8645 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
8646 | echo "configure:8647: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
8647 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | |
8648 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
8649 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8650 | else | |
8651 | cat > conftestmake <<\EOF | |
8652 | all: | |
8653 | @echo 'ac_maketemp="${MAKE}"' | |
8654 | EOF | |
8655 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
8656 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
8657 | if test -n "$ac_maketemp"; then | |
8658 | eval ac_cv_prog_make_${ac_make}_set=yes | |
8659 | else | |
8660 | eval ac_cv_prog_make_${ac_make}_set=no | |
8661 | fi | |
8662 | rm -f conftestmake | |
8663 | fi | |
8664 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
8665 | echo "$ac_t""yes" 1>&6 | |
8666 | SET_MAKE= | |
8667 | else | |
8668 | echo "$ac_t""no" 1>&6 | |
8669 | SET_MAKE="MAKE=${MAKE-make}" | |
8670 | fi | |
8671 | ||
8672 | ||
8673 | trap '' 1 2 15 | |
8674 | cat > confcache <<\EOF | |
8675 | # This file is a shell script that caches the results of configure | |
8676 | # tests run on this system so they can be shared between configure | |
8677 | # scripts and configure runs. It is not useful on other systems. | |
8678 | # If it contains results you don't want to keep, you may remove or edit it. | |
8679 | # | |
8680 | # By default, configure uses ./config.cache as the cache file, | |
8681 | # creating it if it does not exist already. You can give configure | |
8682 | # the --cache-file=FILE option to use a different cache file; that is | |
8683 | # what configure does when it calls configure scripts in | |
8684 | # subdirectories, so they share the cache. | |
8685 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8686 | # config.status only pays attention to the cache file if you give it the | |
8687 | # --recheck option to rerun configure. | |
8688 | # | |
8689 | EOF | |
8690 | # The following way of writing the cache mishandles newlines in values, | |
8691 | # but we know of no workaround that is simple, portable, and efficient. | |
8692 | # So, don't put newlines in cache variables' values. | |
8693 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8694 | # and sets the high bit in the cache file unless we assign to the vars. | |
8695 | (set) 2>&1 | | |
8696 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8697 | *ac_space=\ *) | |
8698 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8699 | # turns \\\\ into \\, and sed turns \\ into \). | |
8700 | sed -n \ | |
8701 | -e "s/'/'\\\\''/g" \ | |
8702 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8703 | ;; | |
8704 | *) | |
8705 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8706 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8707 | ;; | |
8708 | esac >> confcache | |
8709 | if cmp -s $cache_file confcache; then | |
8710 | : | |
8711 | else | |
8712 | if test -w $cache_file; then | |
8713 | echo "updating cache $cache_file" | |
8714 | cat confcache > $cache_file | |
8715 | else | |
8716 | echo "not updating unwritable cache $cache_file" | |
8717 | fi | |
8718 | fi | |
8719 | rm -f confcache | |
8720 | ||
8721 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
8722 | ||
8723 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
8724 | # Let make expand exec_prefix. | |
8725 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8726 | ||
8727 | # Any assignment to VPATH causes Sun make to only execute | |
8728 | # the first set of double-colon rules, so remove it if not needed. | |
8729 | # If there is a colon in the path, we need to keep it. | |
8730 | if test "x$srcdir" = x.; then | |
8731 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
8732 | fi | |
8733 | ||
8734 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
8735 | ||
8736 | DEFS=-DHAVE_CONFIG_H | |
8737 | ||
8738 | # Without the "./", some shells look in PATH for config.status. | |
8739 | : ${CONFIG_STATUS=./config.status} | |
8740 | ||
8741 | echo creating $CONFIG_STATUS | |
8742 | rm -f $CONFIG_STATUS | |
8743 | cat > $CONFIG_STATUS <<EOF | |
8744 | #! /bin/sh | |
8745 | # Generated automatically by configure. | |
8746 | # Run this file to recreate the current configuration. | |
8747 | # This directory was configured as follows, | |
8748 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
8749 | # | |
8750 | # $0 $ac_configure_args | |
8751 | # | |
8752 | # Compiler output produced by configure, useful for debugging | |
8753 | # configure, is in ./config.log if it exists. | |
8754 | ||
8755 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
8756 | for ac_option | |
8757 | do | |
8758 | case "\$ac_option" in | |
8759 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
8760 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
8761 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
8762 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
8763 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
8764 | exit 0 ;; | |
8765 | -help | --help | --hel | --he | --h) | |
8766 | echo "\$ac_cs_usage"; exit 0 ;; | |
8767 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
8768 | esac | |
8769 | done | |
8770 | ||
8771 | ac_given_srcdir=$srcdir | |
8772 | ac_given_INSTALL="$INSTALL" | |
8773 | ||
8774 | trap 'rm -fr `echo " | |
8775 | Makefile src/Makefile wx-config | |
8776 | samples/Makefile | |
8777 | samples/bombs/Makefile | |
8778 | samples/caret/Makefile | |
8779 | samples/checklst/Makefile | |
8780 | samples/config/Makefile | |
8781 | samples/controls/Makefile | |
8782 | samples/db/Makefile | |
8783 | samples/dialogs/Makefile | |
8784 | samples/dnd/Makefile | |
8785 | samples/docview/Makefile | |
8786 | samples/docvwmdi/Makefile | |
8787 | samples/drawing/Makefile | |
8788 | samples/dynamic/Makefile | |
8789 | samples/forty/Makefile | |
8790 | samples/fractal/Makefile | |
8791 | samples/grid/Makefile | |
8792 | samples/help/Makefile | |
8793 | samples/image/Makefile | |
8794 | samples/internat/Makefile | |
8795 | samples/joytest/Makefile | |
8796 | samples/layout/Makefile | |
8797 | samples/listctrl/Makefile | |
8798 | samples/mdi/Makefile | |
8799 | samples/memcheck/Makefile | |
8800 | samples/mfc/Makefile | |
8801 | samples/minifram/Makefile | |
8802 | samples/minimal/Makefile | |
8803 | samples/nativdlg/Makefile | |
8804 | samples/notebook/Makefile | |
8805 | samples/oleauto/Makefile | |
8806 | samples/ownerdrw/Makefile | |
8807 | samples/png/Makefile | |
8808 | samples/printing/Makefile | |
8809 | samples/proplist/Makefile | |
8810 | samples/regtest/Makefile | |
8811 | samples/resource/Makefile | |
8812 | samples/sashtest/Makefile | |
8813 | samples/scroll/Makefile | |
8814 | samples/splitter/Makefile | |
8815 | samples/tab/Makefile | |
8816 | samples/taskbar/Makefile | |
8817 | samples/thread/Makefile | |
8818 | samples/toolbar/Makefile | |
8819 | samples/treectrl/Makefile | |
8820 | samples/typetest/Makefile | |
8821 | samples/validate/Makefile | |
8822 | samples/wxpoem/Makefile | |
8823 | samples/wxsocket/Makefile | |
8824 | ${SETUPH_DIR}/setup.h:include/wx/unix/setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
8825 | EOF | |
8826 | cat >> $CONFIG_STATUS <<EOF | |
8827 | ||
8828 | # Protect against being on the right side of a sed subst in config.status. | |
8829 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
8830 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
8831 | $ac_vpsub | |
8832 | $extrasub | |
8833 | s%@SHELL@%$SHELL%g | |
8834 | s%@CFLAGS@%$CFLAGS%g | |
8835 | s%@CPPFLAGS@%$CPPFLAGS%g | |
8836 | s%@CXXFLAGS@%$CXXFLAGS%g | |
8837 | s%@FFLAGS@%$FFLAGS%g | |
8838 | s%@DEFS@%$DEFS%g | |
8839 | s%@LDFLAGS@%$LDFLAGS%g | |
8840 | s%@LIBS@%$LIBS%g | |
8841 | s%@exec_prefix@%$exec_prefix%g | |
8842 | s%@prefix@%$prefix%g | |
8843 | s%@program_transform_name@%$program_transform_name%g | |
8844 | s%@bindir@%$bindir%g | |
8845 | s%@sbindir@%$sbindir%g | |
8846 | s%@libexecdir@%$libexecdir%g | |
8847 | s%@datadir@%$datadir%g | |
8848 | s%@sysconfdir@%$sysconfdir%g | |
8849 | s%@sharedstatedir@%$sharedstatedir%g | |
8850 | s%@localstatedir@%$localstatedir%g | |
8851 | s%@libdir@%$libdir%g | |
8852 | s%@includedir@%$includedir%g | |
8853 | s%@oldincludedir@%$oldincludedir%g | |
8854 | s%@infodir@%$infodir%g | |
8855 | s%@mandir@%$mandir%g | |
8856 | s%@host@%$host%g | |
8857 | s%@host_alias@%$host_alias%g | |
8858 | s%@host_cpu@%$host_cpu%g | |
8859 | s%@host_vendor@%$host_vendor%g | |
8860 | s%@host_os@%$host_os%g | |
8861 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
8862 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
8863 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
8864 | s%@PACKAGE@%$PACKAGE%g | |
8865 | s%@VERSION@%$VERSION%g | |
8866 | s%@ACLOCAL@%$ACLOCAL%g | |
8867 | s%@AUTOCONF@%$AUTOCONF%g | |
8868 | s%@AUTOMAKE@%$AUTOMAKE%g | |
8869 | s%@AUTOHEADER@%$AUTOHEADER%g | |
8870 | s%@MAKEINFO@%$MAKEINFO%g | |
8871 | s%@SET_MAKE@%$SET_MAKE%g | |
8872 | s%@CC@%$CC%g | |
8873 | s%@CPP@%$CPP%g | |
8874 | s%@CXX@%$CXX%g | |
8875 | s%@CXXCPP@%$CXXCPP%g | |
8876 | s%@RANLIB@%$RANLIB%g | |
8877 | s%@AR@%$AR%g | |
8878 | s%@LN_S@%$LN_S%g | |
8879 | s%@STRIP@%$STRIP%g | |
8880 | s%@YACC@%$YACC%g | |
8881 | s%@LEX@%$LEX%g | |
8882 | s%@LEXLIB@%$LEXLIB%g | |
8883 | s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g | |
8884 | s%@build@%$build%g | |
8885 | s%@build_alias@%$build_alias%g | |
8886 | s%@build_cpu@%$build_cpu%g | |
8887 | s%@build_vendor@%$build_vendor%g | |
8888 | s%@build_os@%$build_os%g | |
8889 | s%@LD@%$LD%g | |
8890 | s%@NM@%$NM%g | |
8891 | s%@LIBTOOL@%$LIBTOOL%g | |
8892 | s%@DLLTOOL@%$DLLTOOL%g | |
8893 | s%@AS@%$AS%g | |
8894 | s%@X_CFLAGS@%$X_CFLAGS%g | |
8895 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
8896 | s%@X_LIBS@%$X_LIBS%g | |
8897 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
8898 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
8899 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
8900 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8901 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
8902 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
8903 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
8904 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
8905 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
8906 | s%@TOOLKIT@%$TOOLKIT%g | |
8907 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
8908 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
8909 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
8910 | s%@EXTRA_VPATH@%$EXTRA_VPATH%g | |
8911 | s%@LTLIBOBJS@%$LTLIBOBJS%g | |
8912 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
8913 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
8914 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
8915 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
8916 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
8917 | ||
8918 | CEOF | |
8919 | EOF | |
8920 | ||
8921 | cat >> $CONFIG_STATUS <<\EOF | |
8922 | ||
8923 | # Split the substitutions into bite-sized pieces for seds with | |
8924 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
8925 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
8926 | ac_file=1 # Number of current file. | |
8927 | ac_beg=1 # First line for current file. | |
8928 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
8929 | ac_more_lines=: | |
8930 | ac_sed_cmds="" | |
8931 | while $ac_more_lines; do | |
8932 | if test $ac_beg -gt 1; then | |
8933 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
8934 | else | |
8935 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
8936 | fi | |
8937 | if test ! -s conftest.s$ac_file; then | |
8938 | ac_more_lines=false | |
8939 | rm -f conftest.s$ac_file | |
8940 | else | |
8941 | if test -z "$ac_sed_cmds"; then | |
8942 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
8943 | else | |
8944 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
8945 | fi | |
8946 | ac_file=`expr $ac_file + 1` | |
8947 | ac_beg=$ac_end | |
8948 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
8949 | fi | |
8950 | done | |
8951 | if test -z "$ac_sed_cmds"; then | |
8952 | ac_sed_cmds=cat | |
8953 | fi | |
8954 | EOF | |
8955 | ||
8956 | cat >> $CONFIG_STATUS <<EOF | |
8957 | ||
8958 | CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile wx-config | |
8959 | samples/Makefile | |
8960 | samples/bombs/Makefile | |
8961 | samples/caret/Makefile | |
8962 | samples/checklst/Makefile | |
8963 | samples/config/Makefile | |
8964 | samples/controls/Makefile | |
8965 | samples/db/Makefile | |
8966 | samples/dialogs/Makefile | |
8967 | samples/dnd/Makefile | |
8968 | samples/docview/Makefile | |
8969 | samples/docvwmdi/Makefile | |
8970 | samples/drawing/Makefile | |
8971 | samples/dynamic/Makefile | |
8972 | samples/forty/Makefile | |
8973 | samples/fractal/Makefile | |
8974 | samples/grid/Makefile | |
8975 | samples/help/Makefile | |
8976 | samples/image/Makefile | |
8977 | samples/internat/Makefile | |
8978 | samples/joytest/Makefile | |
8979 | samples/layout/Makefile | |
8980 | samples/listctrl/Makefile | |
8981 | samples/mdi/Makefile | |
8982 | samples/memcheck/Makefile | |
8983 | samples/mfc/Makefile | |
8984 | samples/minifram/Makefile | |
8985 | samples/minimal/Makefile | |
8986 | samples/nativdlg/Makefile | |
8987 | samples/notebook/Makefile | |
8988 | samples/oleauto/Makefile | |
8989 | samples/ownerdrw/Makefile | |
8990 | samples/png/Makefile | |
8991 | samples/printing/Makefile | |
8992 | samples/proplist/Makefile | |
8993 | samples/regtest/Makefile | |
8994 | samples/resource/Makefile | |
8995 | samples/sashtest/Makefile | |
8996 | samples/scroll/Makefile | |
8997 | samples/splitter/Makefile | |
8998 | samples/tab/Makefile | |
8999 | samples/taskbar/Makefile | |
9000 | samples/thread/Makefile | |
9001 | samples/toolbar/Makefile | |
9002 | samples/treectrl/Makefile | |
9003 | samples/typetest/Makefile | |
9004 | samples/validate/Makefile | |
9005 | samples/wxpoem/Makefile | |
9006 | samples/wxsocket/Makefile | |
9007 | "} | |
9008 | EOF | |
9009 | cat >> $CONFIG_STATUS <<\EOF | |
9010 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
9011 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9012 | case "$ac_file" in | |
9013 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
9014 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9015 | *) ac_file_in="${ac_file}.in" ;; | |
9016 | esac | |
9017 | ||
9018 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
9019 | ||
9020 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9021 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
9022 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
9023 | # The file is in a subdirectory. | |
9024 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
9025 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
9026 | # A "../" for each directory in $ac_dir_suffix. | |
9027 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
9028 | else | |
9029 | ac_dir_suffix= ac_dots= | |
9030 | fi | |
9031 | ||
9032 | case "$ac_given_srcdir" in | |
9033 | .) srcdir=. | |
9034 | if test -z "$ac_dots"; then top_srcdir=. | |
9035 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
9036 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
9037 | *) # Relative path. | |
9038 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
9039 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
9040 | esac | |
9041 | ||
9042 | case "$ac_given_INSTALL" in | |
9043 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
9044 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
9045 | esac | |
9046 | ||
9047 | echo creating "$ac_file" | |
9048 | rm -f "$ac_file" | |
9049 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
9050 | case "$ac_file" in | |
9051 | *Makefile*) ac_comsub="1i\\ | |
9052 | # $configure_input" ;; | |
9053 | *) ac_comsub= ;; | |
9054 | esac | |
9055 | ||
9056 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
9057 | sed -e "$ac_comsub | |
9058 | s%@configure_input@%$configure_input%g | |
9059 | s%@srcdir@%$srcdir%g | |
9060 | s%@top_srcdir@%$top_srcdir%g | |
9061 | s%@INSTALL@%$INSTALL%g | |
9062 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
9063 | fi; done | |
9064 | rm -f conftest.s* | |
9065 | ||
9066 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
9067 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
9068 | # | |
9069 | # ac_d sets the value in "#define NAME VALUE" lines. | |
9070 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
9071 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
9072 | ac_dC='\3' | |
9073 | ac_dD='%g' | |
9074 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
9075 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9076 | ac_uB='\([ ]\)%\1#\2define\3' | |
9077 | ac_uC=' ' | |
9078 | ac_uD='\4%g' | |
9079 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
9080 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9081 | ac_eB='$%\1#\2define\3' | |
9082 | ac_eC=' ' | |
9083 | ac_eD='%g' | |
9084 | ||
9085 | if test "${CONFIG_HEADERS+set}" != set; then | |
9086 | EOF | |
9087 | cat >> $CONFIG_STATUS <<EOF | |
9088 | CONFIG_HEADERS="${SETUPH_DIR}/setup.h:include/wx/unix/setup.h.in" | |
9089 | EOF | |
9090 | cat >> $CONFIG_STATUS <<\EOF | |
9091 | fi | |
9092 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
9093 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9094 | case "$ac_file" in | |
9095 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
9096 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9097 | *) ac_file_in="${ac_file}.in" ;; | |
9098 | esac | |
9099 | ||
9100 | echo creating $ac_file | |
9101 | ||
9102 | rm -f conftest.frag conftest.in conftest.out | |
9103 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
9104 | cat $ac_file_inputs > conftest.in | |
9105 | ||
9106 | EOF | |
9107 | ||
9108 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
9109 | # the proper values into config.h.in to produce config.h. And first: | |
9110 | # Protect against being on the right side of a sed subst in config.status. | |
9111 | # Protect against being in an unquoted here document in config.status. | |
9112 | rm -f conftest.vals | |
9113 | cat > conftest.hdr <<\EOF | |
9114 | s/[\\&%]/\\&/g | |
9115 | s%[\\$`]%\\&%g | |
9116 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
9117 | s%ac_d%ac_u%gp | |
9118 | s%ac_u%ac_e%gp | |
9119 | EOF | |
9120 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
9121 | rm -f conftest.hdr | |
9122 | ||
9123 | # This sed command replaces #undef with comments. This is necessary, for | |
9124 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
9125 | # on some systems where configure will not decide to define it. | |
9126 | cat >> conftest.vals <<\EOF | |
9127 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
9128 | EOF | |
9129 | ||
9130 | # Break up conftest.vals because some shells have a limit on | |
9131 | # the size of here documents, and old seds have small limits too. | |
9132 | ||
9133 | rm -f conftest.tail | |
9134 | while : | |
9135 | do | |
9136 | ac_lines=`grep -c . conftest.vals` | |
9137 | # grep -c gives empty output for an empty file on some AIX systems. | |
9138 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
9139 | # Write a limited-size here document to conftest.frag. | |
9140 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
9141 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
9142 | echo 'CEOF | |
9143 | sed -f conftest.frag conftest.in > conftest.out | |
9144 | rm -f conftest.in | |
9145 | mv conftest.out conftest.in | |
9146 | ' >> $CONFIG_STATUS | |
9147 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
9148 | rm -f conftest.vals | |
9149 | mv conftest.tail conftest.vals | |
9150 | done | |
9151 | rm -f conftest.vals | |
9152 | ||
9153 | cat >> $CONFIG_STATUS <<\EOF | |
9154 | rm -f conftest.frag conftest.h | |
9155 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
9156 | cat conftest.in >> conftest.h | |
9157 | rm -f conftest.in | |
9158 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
9159 | echo "$ac_file is unchanged" | |
9160 | rm -f conftest.h | |
9161 | else | |
9162 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9163 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
9164 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
9165 | # The file is in a subdirectory. | |
9166 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
9167 | fi | |
9168 | rm -f $ac_file | |
9169 | mv conftest.h $ac_file | |
9170 | fi | |
9171 | fi; done | |
9172 | ||
9173 | EOF | |
9174 | cat >> $CONFIG_STATUS <<EOF | |
9175 | ||
9176 | SETUPH_DIR=${SETUPH_DIR} | |
9177 | EOF | |
9178 | cat >> $CONFIG_STATUS <<\EOF | |
9179 | test -z "$CONFIG_HEADERS" || echo timestamp > ${SETUPH_DIR}/stamp-h | |
9180 | chmod +x wx-config | |
9181 | exit 0 | |
9182 | EOF | |
9183 | chmod +x $CONFIG_STATUS | |
9184 | rm -fr confdefs* $ac_clean_files | |
9185 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
9186 | ||
9187 |